Class CategoricalNaiveBayesContentLoader
- java.lang.Object
-
- ai.sklearn4j.core.packaging.loaders.BaseScikitLearnContentLoader<CategoricalNaiveBayes>
-
- ai.sklearn4j.core.packaging.loaders.classifiers.naive_bayes.CategoricalNaiveBayesContentLoader
-
- All Implemented Interfaces:
IScikitLearnContentLoader
public class CategoricalNaiveBayesContentLoader extends BaseScikitLearnContentLoader<CategoricalNaiveBayes>
CategoricalNaiveBayes object loader.
-
-
Constructor Summary
Constructors Constructor Description CategoricalNaiveBayesContentLoader()Instantiate a new object of CategoricalNaiveBayesContentLoader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CategoricalNaiveBayescreateResultObject()Instantiate an unloaded CategoricalNaiveBayes classifier.IScikitLearnContentLoaderduplicate()Create a clean instance of the loader.protected voidregisterSetters()Defines the fields that are required to initialize a trained classifier.-
Methods inherited from class ai.sklearn4j.core.packaging.loaders.BaseScikitLearnContentLoader
getTypeName, loadContent, registerDictionaryField, registerDoubleField, registerListField, registerListOfNumpyArrayField, registerLongField, registerNumpyArrayField, registerStringArrayField, registerStringField
-
-
-
-
Method Detail
-
createResultObject
protected CategoricalNaiveBayes createResultObject()
Instantiate an unloaded CategoricalNaiveBayes classifier.- Specified by:
createResultObjectin classBaseScikitLearnContentLoader<CategoricalNaiveBayes>- Returns:
- The unloaded classifier.
-
duplicate
public IScikitLearnContentLoader duplicate()
Create a clean instance of the loader.- Returns:
- A clean instance of the loader.
-
registerSetters
protected void registerSetters()
Defines the fields that are required to initialize a trained classifier.- Specified by:
registerSettersin classBaseScikitLearnContentLoader<CategoricalNaiveBayes>
-
-