philsupertramp/game-math
Loading...
Searching...
No Matches
Predictor.h
Go to the documentation of this file.
1#include "../Matrix.h"
2
3
5{
6public:
13 virtual void fit(const Matrix<double>& X, const Matrix<double>& y) = 0;
14
20
26};
27
28
29class Transformer : public Predictor
30{
31public:
32 Matrix<double> predict(const Matrix<double>& in) override { return in; };
33};
Definition: Matrix.h:42
Definition: Predictor.h:5
virtual Matrix< double > predict(const Matrix< double > &)=0
virtual Matrix< double > transform(const Matrix< double > &)=0
virtual void fit(const Matrix< double > &X, const Matrix< double > &y)=0
Definition: Predictor.h:30
Matrix< double > predict(const Matrix< double > &in) override
Definition: Predictor.h:32