philsupertramp/game-math
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
MinMaxScaler Class Reference

#include <Scaler.h>

Inheritance diagram for MinMaxScaler:
Transformer Predictor

Public Member Functions

 MinMaxScaler (double range_min_val=0., double range_max_val=1.0)
 
void fit (const Matrix< double > &X, const Matrix< double > &y) override
 
Matrix< double > transform (const Matrix< double > &in) override
 
- Public Member Functions inherited from Transformer
Matrix< double > predict (const Matrix< double > &in) override
 
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
 

Private Attributes

double min_val
 
double max_val
 

Detailed Description

Examples
ds/preprocessing/TestScaler.cpp.

Constructor & Destructor Documentation

◆ MinMaxScaler()

MinMaxScaler::MinMaxScaler ( double  range_min_val = 0.,
double  range_max_val = 1.0 
)
inline

Member Function Documentation

◆ fit()

void MinMaxScaler::fit ( const Matrix< double > &  X,
const Matrix< double > &  y 
)
inlineoverridevirtual

Implements training algorithm

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

Implements Predictor.

◆ transform()

Matrix< double > MinMaxScaler::transform ( const Matrix< double > &  in)
inlineoverridevirtual

Implements Predictor.

Member Data Documentation

◆ max_val

double MinMaxScaler::max_val
private

◆ min_val

double MinMaxScaler::min_val
private

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