The NaiveBayesClassifier type exposes the following members.

Constructors

NameDescription
NaiveBayesClassifier
Constructs a NaiveBayesClassifier.

Methods

NameDescription
ClassError
Returns the classification probability error for the input pattern and known target classification.
CreateContinuousAttributeOverloaded.
CreateNominalAttribute
Create a nominal attribute and the number of categories
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetClassCounts
Returns the number of patterns for each target classification.
GetClassificationErrors
Returns the classification probability errors for each pattern in the training data.
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetMeans
Returns a table of means for each continuous attribute in continuousData segmented by the target classes in classificationData.
GetPredictedClass
Returns the predicted classification for each training pattern.
GetProbabilities
Returns the predicted classification probabilities for each target class.
GetStandardDeviations
Returns a table of standard deviations for each continuous attribute in continuousData segmented by the target classes in classificationData.
GetTrainingErrors
Returns a table of classification errors of non-missing classifications for each target classification plus the overall total of classification errors.
GetType
Gets the Type of the current instance.
(Inherited from Object.)
IgnoreMissingValues
Specifies whether or not missing values will be ignored during the training process.
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
PredictClass
Predicts the classification for the input pattern using the trained Naive Bayes classifier.
Probabilities
Predicts the classification probabilities for the input pattern using the trained Naive Bayes classifier.
ToString
Returns a String that represents the current Object.
(Inherited from Object.)
Train
Trains a Naive Bayes classifier for classifying data into one of nClasses target classifications.

Properties

NameDescription
ContinuousSmoothingValue
Parameter for calculating smoothed estimates of conditional probabilities for continuous attributes.
DiscreteSmoothingValue
Parameter for calculating smoothed estimates of conditional probabilities for discrete (nominal) attributes.
ZeroCorrection
Specifies the replacement value to be used for conditional probabilities equal to zero.

See Also