Click or drag to resize
NaiveBayesClassifier Methods

The NaiveBayesClassifier type exposes the following members.

Methods
  NameDescription
Public methodClassError
Returns the classification probability error for the input pattern and known target classification.
Public methodCreateContinuousAttribute(IProbabilityDistribution)
Create a continuous variable and the associated distribution function.
Public methodCreateContinuousAttribute(IProbabilityDistribution)
Create a continuous variable and the associated distribution functions for each target classification.
Public methodCreateNominalAttribute
Create a nominal attribute and the number of categories
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetClassCounts
Returns the number of patterns for each target classification.
Public methodGetClassificationErrors
Returns the classification probability errors for each pattern in the training data.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetMeans
Returns a table of means for each continuous attribute in continuousData segmented by the target classes in classificationData.
Public methodGetPredictedClass
Returns the predicted classification for each training pattern.
Public methodGetProbabilities
Returns the predicted classification probabilities for each target class.
Public methodGetStandardDeviations
Returns a table of standard deviations for each continuous attribute in continuousData segmented by the target classes in classificationData.
Public methodGetTrainingErrors
Returns a table of classification errors of non-missing classifications for each target classification plus the overall total of classification errors.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIgnoreMissingValues
Specifies whether or not missing values will be ignored during the training process.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPredictClass
Predicts the classification for the input pattern using the trained Naive Bayes classifier.
Public methodProbabilities
Predicts the classification probabilities for the input pattern using the trained Naive Bayes classifier.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTrain
Trains a Naive Bayes classifier for classifying data into one of nClasses target classifications.
Top
See Also