public class DMNBtext.DNBBinary
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
DNBBinary() |
Modifier and Type | Method and Description |
---|---|
double[] |
distributionForInstance(Instance instance)
Calculates the class membership probabilities for the given test
instance.
|
double |
getLogProbForTargetClass(Instance ins)
Calculates the class membership probabilities for the given test
instance.
|
int |
getTargetClass()
Gets the Target Class
|
void |
initClassifier(Instances instances) |
void |
setTargetClass(int targetClass)
Sets the Target Class
|
java.lang.String |
toString()
Returns a string representation of the classifier.
|
void |
updateClassifier(Instance ins) |
public void initClassifier(Instances instances) throws java.lang.Exception
java.lang.Exception
public void updateClassifier(Instance ins) throws java.lang.Exception
java.lang.Exception
public double getLogProbForTargetClass(Instance ins) throws java.lang.Exception
instance
- the instance to be classifiedjava.lang.Exception
- if there is a problem generating the predictionpublic double[] distributionForInstance(Instance instance) throws java.lang.Exception
instance
- the instance to be classifiedjava.lang.Exception
- if there is a problem generating the predictionpublic java.lang.String toString()
toString
in class java.lang.Object
public void setTargetClass(int targetClass)
public int getTargetClass()