com.datumbox.framework.core.machinelearning.common.abstracts
Class AbstractTrainer<MP extends AbstractTrainer.AbstractModelParameters,TP extends AbstractTrainer.AbstractTrainingParameters>
- java.lang.Object
-
- com.datumbox.framework.core.machinelearning.common.abstracts.AbstractTrainer<MP,TP>
-
- Type Parameters:
MP-TP-
- Direct Known Subclasses:
- AbstractFeatureSelector, AbstractModeler, AbstractTransformer
public abstract class AbstractTrainer<MP extends AbstractTrainer.AbstractModelParameters,TP extends AbstractTrainer.AbstractTrainingParameters> extends java.lang.Object implements Trainable<MP,TP>
Base class for every Trainable Algorithm of the Framework. This includes Machine Learning Models, Data Transformers, Feature Selectors etc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classAbstractTrainer.AbstractModelParametersBase class for every ModelParameter class in the framework.static classAbstractTrainer.AbstractTrainingParametersThe AbstractTrainingParameters class stores the parameters that can be changed before training the algorithm.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidclose()voiddelete()Deletes the data of the object.voidfit(Dataframe trainingData)Trains a model using the provided training parameters and data.MPgetModelParameters()Returns the model parameters that were estimated after training.TPgetTrainingParameters()It returns the training parameters that configure the algorithm.voidsave(java.lang.String storageName)Saves the data of the object.
-
-
-
Method Detail
-
getModelParameters
public MP getModelParameters()
Returns the model parameters that were estimated after training.- Specified by:
getModelParametersin interfaceTrainable<MP extends AbstractTrainer.AbstractModelParameters,TP extends AbstractTrainer.AbstractTrainingParameters>- Returns:
-
getTrainingParameters
public TP getTrainingParameters()
It returns the training parameters that configure the algorithm.- Specified by:
getTrainingParametersin interfaceTrainable<MP extends AbstractTrainer.AbstractModelParameters,TP extends AbstractTrainer.AbstractTrainingParameters>- Returns:
-
fit
public void fit(Dataframe trainingData)
Trains a model using the provided training parameters and data.- Specified by:
fitin interfaceTrainable<MP extends AbstractTrainer.AbstractModelParameters,TP extends AbstractTrainer.AbstractTrainingParameters>
-
save
public void save(java.lang.String storageName)
Saves the data of the object.
-
delete
public void delete()
Deletes the data of the object.
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
-
DataMelt 3.0 © DataMelt by jWork.ORG