com.rapidminer.operator.learner.tree
Class AbstractCriterion

java.lang.Object
  extended by 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

Field Summary
protected  Attribute labelAttribute
           
protected  double[] leftLabelWeights
           
protected  double leftWeight
           
protected  double[] rightLabelWeights
           
protected  double rightWeight
           
protected  double[] totalLabelWeights
           
protected  double totalWeight
           
protected  Attribute weightAttribute
           
 
Constructor Summary
AbstractCriterion()
           
 
Method Summary
 double getIncrementalBenefit()
           
 void startIncrementalCalculation(ExampleSet exampleSet)
           
 boolean supportsIncrementalCalculation()
           
 void swapExample(Example example)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.rapidminer.operator.learner.tree.Criterion
getNominalBenefit, getNumericalBenefit
 

Field Detail

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
Constructor Detail

AbstractCriterion

public AbstractCriterion()
Method Detail

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