_attributes, _classAttribute, _classifier, _datasetHeader| Modifier | Constructor and Description |
|---|---|
protected |
BinaryDecider(String name,
TypedAttribute[] attributes,
TypedAttribute classAttribute,
Vector<weka.filters.Filter> filters) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getDecision(weka.core.Instance instance)
Makes a decision for the given instance.
|
HashMap<Boolean,Double> |
getDecisionDistribution(weka.core.Instance instance)
Returns a HashMap associating possible decision outputs with a confidence value in that decision.
|
InstanceBuilder<A,Boolean> |
getInstanceBuilder()
Returns a builder for constructing an instance that this decider can make a decision for.
|
createDatasetHeader, createNewDataset, getName, getRawClassification, getRawDistributionForInstance, isReady, load, save, test, throwIfCannotClassify, trainprotected BinaryDecider(String name, TypedAttribute[] attributes, TypedAttribute classAttribute, Vector<weka.filters.Filter> filters) throws Exception
Exceptionpublic Boolean getDecision(weka.core.Instance instance) throws Exception
Decider
This function is not available until isReady returns true.
You should typically use an instance builder to generate
the instance that is passed into this method.
public HashMap<Boolean,Double> getDecisionDistribution(weka.core.Instance instance) throws Exception
DeciderDecider.getDecision(Instance)
is clear-cut, or a close tie with other possible decisions.
The method by which these values are calculated and their usefulness depends on the classifier.
This function is not available until isReady returns true.
You should typically use an instance builder to generate
the instance that is passed into this method.
public InstanceBuilder<A,Boolean> getInstanceBuilder()
DeciderCopyright © 2012 David Milne. All Rights Reserved.