Click or drag to resize
Accord.NET (logo)

NaiveBayesTDistribution Constructor (Int32, Int32, FuncInt32, Int32, TDistribution)

Constructs a new Naïve Bayes Classifier.

Namespace:  Accord.MachineLearning.Bayes
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
public NaiveBayes(
	int classes,
	int inputs,
	Func<int, int, TDistribution> initial
Request Example View Source


Type: SystemInt32
The number of output classes.
Type: SystemInt32
The number of input variables.
Type: SystemFuncInt32, Int32, TDistribution
A function that can initialized the distribution components of all classes modeled by this Naive Bayes. This distribution will be cloned and made available in the Distributions property. The first argument in the function should be the classIndex, and the second the variableIndex.
See Also