public class CompoundNaiveBayesModel extends Object implements IgniteModel<Vector,Double>, Exportable<CompoundNaiveBayesModel>, DeployableObject
GaussianNaiveBayesModel
and DiscreteNaiveBayesModel
.Constructor and Description |
---|
CompoundNaiveBayesModel() |
Modifier and Type | Method and Description |
---|---|
List<Object> |
getDependencies()
Returns dependencies of this object that can be object with class defined by client side and unknown for server.
|
DiscreteNaiveBayesModel |
getDiscreteModel()
Returns a discrete model.
|
GaussianNaiveBayesModel |
getGaussianModel()
Returns a gaussian model.
|
Double |
predict(Vector vector)
Make a prediction for the specified input arguments.
|
<P> void |
saveModel(Exporter<CompoundNaiveBayesModel,P> exporter,
P path)
Save model by the given path.
|
CompoundNaiveBayesModel |
withDiscreteFeatureIdsToSkip(Collection<Integer> discreteFeatureIdsToSkip)
Sets feature ids to skip in discrete Bayes.
|
CompoundNaiveBayesModel |
withDiscreteModel(DiscreteNaiveBayesModel discreteModel)
Sets a discrete model.
|
CompoundNaiveBayesModel |
withGaussianFeatureIdsToSkip(Collection<Integer> gaussianFeatureIdsToSkip)
Sets feature ids to skip in Gaussian Bayes.
|
CompoundNaiveBayesModel |
withGaussianModel(GaussianNaiveBayesModel gaussianModel)
Sets a gaussian model.
|
CompoundNaiveBayesModel |
withLabels(double[] labels)
Sets labels.
|
CompoundNaiveBayesModel |
withPriorProbabilities(double[] priorProbabilities)
Sets prior probabilities.
|
public <P> void saveModel(Exporter<CompoundNaiveBayesModel,P> exporter, P path)
saveModel
in interface Exportable<CompoundNaiveBayesModel>
exporter
- Exporter.path
- Path to saved model.public GaussianNaiveBayesModel getGaussianModel()
public DiscreteNaiveBayesModel getDiscreteModel()
public CompoundNaiveBayesModel withPriorProbabilities(double[] priorProbabilities)
public CompoundNaiveBayesModel withLabels(double[] labels)
public CompoundNaiveBayesModel withGaussianModel(GaussianNaiveBayesModel gaussianModel)
public CompoundNaiveBayesModel withDiscreteModel(DiscreteNaiveBayesModel discreteModel)
public CompoundNaiveBayesModel withGaussianFeatureIdsToSkip(Collection<Integer> gaussianFeatureIdsToSkip)
public CompoundNaiveBayesModel withDiscreteFeatureIdsToSkip(Collection<Integer> discreteFeatureIdsToSkip)
public List<Object> getDependencies()
getDependencies
in interface DeployableObject
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.1 Release Date : December 9 2020