v2.0.0
Loading...
Searching...
No Matches
MLLIB::MlPipeline Class Reference

Simple scaler → model pipeline. More...

#include <ml_pipeline.h>

Public Member Functions

 MlPipeline ()
void setScaler (const MlScaler &scaler)
void setModel (MlModel::SPtr model)
void fitScaler (const MlTensor &X)
MlTensor predict (const MlTensor &X) const

Detailed Description

Simple scaler → model pipeline.

Definition at line 56 of file ml_pipeline.h.

Constructor & Destructor Documentation

◆ MlPipeline()

MlPipeline::MlPipeline ( )

Default constructor.

Definition at line 63 of file ml_pipeline.cpp.

Member Function Documentation

◆ fitScaler()

void MlPipeline::fitScaler ( const MlTensor & X)

Fit the scaler on the given features (does not train the model).

Parameters
[in]XFeature matrix.

Definition at line 84 of file ml_pipeline.cpp.

◆ predict()

MlTensor MlPipeline::predict ( const MlTensor & X) const

Scale (if scaler set) and predict.

Parameters
[in]XFeature matrix.
Returns
Prediction result.

Definition at line 96 of file ml_pipeline.cpp.

◆ setModel()

void MlPipeline::setModel ( MlModel::SPtr model)

Set the model.

Parameters
[in]modelShared pointer to the model.

Definition at line 77 of file ml_pipeline.cpp.

◆ setScaler()

void MlPipeline::setScaler ( const MlScaler & scaler)

Set the feature scaler.

Parameters
[in]scalerThe scaler to use.

Definition at line 69 of file ml_pipeline.cpp.


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