com.rapidminer.operator.learner.tree
Class AbstractCriterion
java.lang.Object
com.rapidminer.operator.learner.tree.AbstractCriterion
- All Implemented Interfaces:
- Criterion
- Direct Known Subclasses:
- AccuracyCriterion, GiniIndexCriterion, InfoGainCriterion
public abstract class AbstractCriterion
- extends java.lang.Object
- implements Criterion
This criterion class can be used for the incremental calculation of benefits.
- Author:
- Sebastian Land
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
leftWeight
protected double leftWeight
rightWeight
protected double rightWeight
totalWeight
protected double totalWeight
totalLabelWeights
protected double[] totalLabelWeights
leftLabelWeights
protected double[] leftLabelWeights
rightLabelWeights
protected double[] rightLabelWeights
labelAttribute
protected Attribute labelAttribute
weightAttribute
protected Attribute weightAttribute
AbstractCriterion
public AbstractCriterion()
supportsIncrementalCalculation
public boolean supportsIncrementalCalculation()
- Specified by:
supportsIncrementalCalculation in interface Criterion
startIncrementalCalculation
public void startIncrementalCalculation(ExampleSet exampleSet)
- Specified by:
startIncrementalCalculation in interface Criterion
swapExample
public void swapExample(Example example)
- Specified by:
swapExample in interface Criterion
getIncrementalBenefit
public double getIncrementalBenefit()
- Specified by:
getIncrementalBenefit in interface Criterion
Copyright © 2001-2009 by Rapid-I