com.datumbox.framework.core.machinelearning.featureselection
Class TFIDF
- java.lang.Object
-
- com.datumbox.framework.core.machinelearning.common.abstracts.AbstractTrainer<MP,TP>
-
- com.datumbox.framework.core.machinelearning.common.abstracts.featureselectors.AbstractFeatureSelector<MP,TP>
-
- com.datumbox.framework.core.machinelearning.common.abstracts.featureselectors.AbstractScoreBasedFeatureSelector<TFIDF.ModelParameters,TFIDF.TrainingParameters>
-
- com.datumbox.framework.core.machinelearning.featureselection.TFIDF
-
- All Implemented Interfaces:
- Savable, Parallelizable, Trainable<TFIDF.ModelParameters,TFIDF.TrainingParameters>, java.lang.AutoCloseable
public class TFIDF extends AbstractScoreBasedFeatureSelector<TFIDF.ModelParameters,TFIDF.TrainingParameters>
Implementation of the TF-IDF Feature Selection algorithm. * References: http://en.wikipedia.org/wiki/Tf%E2%80%93idf https://gist.github.com/AloneRoad/1605037 http://www.tfidf.com/
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classTFIDF.ModelParametersBase class for every ModelParameter class in the framework.static classTFIDF.TrainingParametersThe AbstractTrainingParameters class stores the parameters that can be changed before training the algorithm.-
Nested classes/interfaces inherited from class com.datumbox.framework.core.machinelearning.common.abstracts.featureselectors.AbstractScoreBasedFeatureSelector
AbstractScoreBasedFeatureSelector.AbstractModelParameters, AbstractScoreBasedFeatureSelector.AbstractTrainingParameters
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidfit(Dataframe trainingData)Trains a model using the provided training parameters and data.-
Methods inherited from class com.datumbox.framework.core.machinelearning.common.abstracts.featureselectors.AbstractFeatureSelector
fit_transform, isParallelized, setParallelized, transform
-
Methods inherited from class com.datumbox.framework.core.machinelearning.common.abstracts.AbstractTrainer
close, delete, getModelParameters, getTrainingParameters, save
-
-
-
-
Method Detail
-
fit
public void fit(Dataframe trainingData)
Trains a model using the provided training parameters and data.- Specified by:
fitin interfaceTrainable<TFIDF.ModelParameters,TFIDF.TrainingParameters>- Overrides:
fitin classAbstractFeatureSelector<TFIDF.ModelParameters,TFIDF.TrainingParameters>
-
-
DataMelt 3.0 © DataMelt by jWork.ORG