com.rapidminer.operator.learner.rules
Class AbstractCriterion

java.lang.Object
  extended by com.rapidminer.operator.learner.rules.AbstractCriterion
All Implemented Interfaces:
Criterion
Direct Known Subclasses:
AccuracyCriterion, InfoGainCriterion

public abstract class AbstractCriterion
extends java.lang.Object
implements Criterion

This criterion class can be used to incrementally calculate a benefit.

Author:
Sebastian Land

Field Summary
protected  Attribute labelAttribute
           
protected  double[] labelWeights
           
protected  double[] totalLabelWeights
           
protected  double totalWeight
           
protected  double weight
           
protected  Attribute weightAttribute
           
 
Constructor Summary
AbstractCriterion()
           
 
Method Summary
 double[] getOnlineBenefit(Example example)
           
 void reinitOnlineCounting(ExampleSet exampleSet)
           
 void update(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.rules.Criterion
getBenefit, getOnlineBenefit
 

Field Detail

labelWeights

protected double[] labelWeights

weight

protected double weight

totalLabelWeights

protected double[] totalLabelWeights

totalWeight

protected double totalWeight

labelAttribute

protected Attribute labelAttribute

weightAttribute

protected Attribute weightAttribute
Constructor Detail

AbstractCriterion

public AbstractCriterion()
Method Detail

update

public void update(Example example)
Specified by:
update in interface Criterion

getOnlineBenefit

public double[] getOnlineBenefit(Example example)
Specified by:
getOnlineBenefit in interface Criterion

reinitOnlineCounting

public void reinitOnlineCounting(ExampleSet exampleSet)
Specified by:
reinitOnlineCounting in interface Criterion


Copyright © 2001-2009 by Rapid-I