Package weka.classifiers.bayes
Class DMNBtext.DNBBinary
java.lang.Object
weka.classifiers.bayes.DMNBtext.DNBBinary
- All Implemented Interfaces:
Serializable
- Enclosing class:
- DMNBtext
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble[]
distributionForInstance
(Instance instance) Calculates the class membership probabilities for the given test instance.double
Calculates the class membership probabilities for the given test instance.int
Gets the Target Classvoid
initClassifier
(Instances instances) void
setTargetClass
(int targetClass) Sets the Target ClasstoString()
Returns a string representation of the classifier.void
updateClassifier
(Instance ins)
-
Constructor Details
-
DNBBinary
public DNBBinary()
-
-
Method Details
-
initClassifier
- Throws:
Exception
-
updateClassifier
- Throws:
Exception
-
getLogProbForTargetClass
Calculates the class membership probabilities for the given test instance.- Parameters:
instance
- the instance to be classified- Returns:
- predicted class probability distribution
- Throws:
Exception
- if there is a problem generating the prediction
-
distributionForInstance
Calculates the class membership probabilities for the given test instance.- Parameters:
instance
- the instance to be classified- Returns:
- predicted class probability distribution
- Throws:
Exception
- if there is a problem generating the prediction
-
toString
Returns a string representation of the classifier. -
setTargetClass
public void setTargetClass(int targetClass) Sets the Target Class -
getTargetClass
public int getTargetClass()Gets the Target Class- Returns:
- the Target Class Index
-