Interface IScikitLearnContentLoader
-
- All Known Implementing Classes:
BaseScikitLearnContentLoader,BernoulliNaiveBayesContentLoader,BinarizerContentLoader,CategoricalNaiveBayesContentLoader,ComplementNaiveBayesContentLoader,GaussianNaiveBayesContentLoader,LabelBinarizerContentLoader,LabelEncoderContentLoader,MaximumAbsoluteScalerContentLoader,MinimumMaximumScalerContentLoader,MultiLabelBinarizerContentLoader,MultinomialNaiveBayesContentLoader,NormalizerContentLoader,RobustScalerContentLoader,StandardScalerContentLoader
public interface IScikitLearnContentLoaderIScikitLearnContentLoader abstracts the format of individual objects from the file formatting. A class should be derived from this interface for each classifier in scikit-learn.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IScikitLearnContentLoaderduplicate()Creates a clone of the instance.StringgetTypeName()Name of the loader.ObjectloadContent(BinaryModelPackage buffer)Loads a scikit-learn object from an input stream.
-
-
-
Method Detail
-
getTypeName
String getTypeName()
Name of the loader. The name is stored in the header of the binary package file to be used during deserialization.- Returns:
- The name/id of the loader type.
-
loadContent
Object loadContent(BinaryModelPackage buffer)
Loads a scikit-learn object from an input stream.- Parameters:
buffer- The buffer to load the object from.- Returns:
- A deserialized ready to use object.
-
duplicate
IScikitLearnContentLoader duplicate()
Creates a clone of the instance.- Returns:
- An empty clean instance of the loader.
-
-