mlpack  3.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
ScalingModel Class Reference

The model to save to disk. More...

Public Types

enum  ScalerTypes {
  STANDARD_SCALER,
  MIN_MAX_SCALER,
  MEAN_NORMALIZATION,
  MAX_ABS_SCALER,
  PCA_WHITENING,
  ZCA_WHITENING
}
 

Public Member Functions

 ScalingModel (const int minvalue=0, const int maxvalue=1, double epsilonvalue=0.00005)
 Create an object. More...
 
 ScalingModel (const ScalingModel &other)
 Copy constructor. More...
 
 ScalingModel (ScalingModel &&other)
 Move constructor. More...
 
 ~ScalingModel ()
 Clean up memory. More...
 
template<typename MatType >
void Fit (const MatType &input)
 
template<typename MatType >
void InverseTransform (const MatType &input, MatType &output)
 
ScalingModeloperator= (const ScalingModel &other)
 Copy assignment operator. More...
 
size_t ScalerType () const
 Get the Scaler type. More...
 
size_t & ScalerType ()
 Modify the Scaler type. More...
 
template<typename Archive >
void serialize (Archive &ar, const unsigned int)
 Serialize the model. More...
 
template<typename MatType >
void Transform (const MatType &input, MatType &output)
 Transform to scale features. More...
 

Detailed Description

The model to save to disk.

Definition at line 29 of file scaling_model.hpp.

Member Enumeration Documentation

Enumerator
STANDARD_SCALER 
MIN_MAX_SCALER 
MEAN_NORMALIZATION 
MAX_ABS_SCALER 
PCA_WHITENING 
ZCA_WHITENING 

Definition at line 32 of file scaling_model.hpp.

Constructor & Destructor Documentation

ScalingModel ( const int  minvalue = 0,
const int  maxvalue = 1,
double  epsilonvalue = 0.00005 
)

Create an object.

ScalingModel ( const ScalingModel other)

Copy constructor.

ScalingModel ( ScalingModel &&  other)

Move constructor.

Clean up memory.

Member Function Documentation

void Fit ( const MatType &  input)
void InverseTransform ( const MatType &  input,
MatType &  output 
)
ScalingModel& operator= ( const ScalingModel other)

Copy assignment operator.

size_t ScalerType ( ) const
inline

Get the Scaler type.

Definition at line 72 of file scaling_model.hpp.

size_t& ScalerType ( )
inline

Modify the Scaler type.

Definition at line 74 of file scaling_model.hpp.

void serialize ( Archive &  ar,
const unsigned  int 
)
inline

Serialize the model.

Definition at line 90 of file scaling_model.hpp.

void Transform ( const MatType &  input,
MatType &  output 
)

Transform to scale features.


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