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.doubleCalculates the class membership probabilities for the given test instance.intGets the Target ClassvoidinitClassifier(Instances instances) voidsetTargetClass(int targetClass) Sets the Target ClasstoString()Returns a string representation of the classifier.voidupdateClassifier(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
-