public class DMNBtext.DNBBinary extends Object implements 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
|
String |
toString()
Returns a string representation of the classifier.
|
void |
updateClassifier(Instance ins) |
public double getLogProbForTargetClass(Instance ins) throws Exception
instance
- the instance to be classifiedException
- if there is a problem generating the predictionpublic double[] distributionForInstance(Instance instance) throws Exception
instance
- the instance to be classifiedException
- if there is a problem generating the predictionpublic String toString()
public void setTargetClass(int targetClass)
public int getTargetClass()
Copyright © 2019 University of Waikato, Hamilton, NZ. All rights reserved.