MOA 12.03
Real Time Analytics for Data Streams
moa.classifiers.core.splitcriteria.SplitCriterion Interface Reference

Interface for computing splitting criteria. More...

Inheritance diagram for moa.classifiers.core.splitcriteria.SplitCriterion:
Collaboration diagram for moa.classifiers.core.splitcriteria.SplitCriterion:

List of all members.

Public Member Functions

double getMeritOfSplit (double[] preSplitDist, double[][] postSplitDists)
 Computes the merit of splitting for a given ditribution before the split and after it.
double getRangeOfMerit (double[] preSplitDist)
 Computes the range of splitting merit.

Detailed Description

Interface for computing splitting criteria.

with respect to distributions of class values. The split criterion is used as a parameter on decision trees and decision stumps. The two split criteria most used are Information Gain and Gini.

Author:
Richard Kirkby (rkirkby@cs.waikato.ac.nz)
Version:
Revision:
7

Definition at line 35 of file SplitCriterion.java.


Member Function Documentation

double moa.classifiers.core.splitcriteria.SplitCriterion.getMeritOfSplit ( double[]  preSplitDist,
double  postSplitDists[][] 
)
double moa.classifiers.core.splitcriteria.SplitCriterion.getRangeOfMerit ( double[]  preSplitDist)

Computes the range of splitting merit.

Parameters:
preSplitDistthe class distribution before the split
Returns:
value of the range of splitting merit

Implemented in moa.classifiers.core.splitcriteria.GiniSplitCriterion, and moa.classifiers.core.splitcriteria.InfoGainSplitCriterion.

Referenced by moa.classifiers.trees.HoeffdingTree.attemptToSplit(), and moa.classifiers.trees.HoeffdingOptionTree.attemptToSplit().

Here is the caller graph for this function:


The documentation for this interface was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations