|
NaiveBayes< TDistribution, TInput> Constructor (Int32, Int32, Func< Int32, TDistribution> )
|
Constructs a new Naïve Bayes Classifier.
Namespace:
Accord.MachineLearning.Bayes
Assembly:
Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntaxpublic NaiveBayes(
int classes,
int inputs,
Func<int, TDistribution> initializer
)
Public Sub New (
classes As Integer,
inputs As Integer,
initializer As Func(Of Integer, TDistribution)
)
Request Example
View SourceParameters
- classes
- Type: System.Int32
The number of output classes. - inputs
- Type: System.Int32
The number of input variables. - initializer
- Type: System.Func<Int32, TDistribution>
An initialization function used to create the distribution functions for
each class. Those will be available in the Distributions property.
See Also