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