public class CompoundNaiveBayesModel extends Object implements IgniteModel<Vector,Double>, Exportable<CompoundNaiveBayesModel>, JSONWritable, DeployableObject
GaussianNaiveBayesModel
and DiscreteNaiveBayesModel
.Constructor and Description |
---|
CompoundNaiveBayesModel() |
Modifier and Type | Method and Description |
---|---|
static CompoundNaiveBayesModel |
fromJSON(Path path)
Loads CompoundNaiveBayesModel from JSON file.
|
List<Object> |
getDependencies()
Returns dependencies of this object that can be object with class defined by client side and unknown for server.
|
Collection<Integer> |
getDiscreteFeatureIdsToSkip() |
DiscreteNaiveBayesModel |
getDiscreteModel()
Returns a discrete model.
|
Collection<Integer> |
getGaussianFeatureIdsToSkip() |
GaussianNaiveBayesModel |
getGaussianModel()
Returns a gaussian model.
|
double[] |
getLabels() |
double[] |
getPriorProbabilities() |
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.
|
void |
toJSON(Path 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 double[] getPriorProbabilities()
public double[] getLabels()
public Collection<Integer> getGaussianFeatureIdsToSkip()
public Collection<Integer> getDiscreteFeatureIdsToSkip()
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
public void toJSON(Path path)
toJSON
in interface JSONWritable
public static CompoundNaiveBayesModel fromJSON(Path path)
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021