Click or drag to resize
Accord.NET (logo)

NaiveBayesTDistribution Constructor (Int32, Int32, TDistribution, Double)

Note: This API is now obsolete.

Constructs a new Naïve Bayes Classifier.

Namespace:  Accord.MachineLearning.Bayes
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.7.0
Syntax
[ObsoleteAttribute("Please specify priors using the Priors property.")]
public NaiveBayes(
	int inputs,
	int classes,
	TDistribution initial,
	double[] priors
)
Request Example View Source

Parameters

inputs
Type: SystemInt32
The number of input variables.
classes
Type: SystemInt32
The number of output classes.
initial
Type: TDistribution
An initial distribution to be used to initialized all independent distribution components of this Naive Bayes. This distribution will be cloned and made available in the Distributions property.
priors
Type: SystemDouble
Obsolete
See Also