philsupertramp/game-math
|
#include <Classifier.h>
Public Member Functions | |
Classifier () | |
void | initialize_weights (size_t numRows, size_t numColumns=1) |
void | update_weights (const Matrix< double > &update, const Matrix< double > &delta) |
Matrix< double > | transform (const Matrix< double > &in) override |
Public Member Functions inherited from Predictor | |
virtual void | fit (const Matrix< double > &X, const Matrix< double > &y)=0 |
virtual Matrix< double > | predict (const Matrix< double > &)=0 |
virtual Matrix< double > | transform (const Matrix< double > &)=0 |
Public Attributes | |
Matrix< double > | weights |
Vector holding weights. More... | |
Matrix< double > | costs |
Vector holding classification error per epoch. More... | |
Protected Attributes | |
bool | w_initialized = false |
flag to initialize weights only once More... | |
Classifier template class
Inherit and implement:
|
inline |
default constructor
_eta | learning rate |
_n_iter | number learning iterations |
|
inline |
Initialization method for weights hold by the classifier
numRows | number rows |
numColumns | number columns |
Implements Predictor.
|
inline |
Matrix<double> Classifier::costs |
Vector holding classification error per epoch.
|
protected |
flag to initialize weights only once
Matrix<double> Classifier::weights |
Vector holding weights.