philsupertramp/game-math
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Predictor Class Referenceabstract

#include <Predictor.h>

Inheritance diagram for Predictor:
Classifier DecisionTree Transformer ANNClassifier KNN NCC MinMaxScaler OneHotEncoder PCA StandardScaler AdalineGD AdalineSGD LogRegSGD Perceptron

Public Member Functions

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
 

Member Function Documentation

◆ fit()

virtual void Predictor::fit ( const Matrix< double > &  X,
const Matrix< double > &  y 
)
pure virtual

Implements training algorithm

Parameters
Xarray-like with the shape: [n_samples, n_features]
yarray-like with shape: [n_samples, 1]
Returns
this

Implemented in AdalineGD, AdalineSGD, DecisionTree, PCA, KNN, LogRegSGD, NCC, Perceptron, OneHotEncoder, StandardScaler, and MinMaxScaler.

◆ predict()

virtual Matrix< double > Predictor::predict ( const Matrix< double > &  )
pure virtual

Makes prediction for given input

Returns

Implemented in Transformer, AdalineGD, AdalineSGD, DecisionTree, KNN, LogRegSGD, NCC, and Perceptron.

◆ transform()

virtual Matrix< double > Predictor::transform ( const Matrix< double > &  )
pure virtual

The documentation for this class was generated from the following file: