MOA 12.03
Real Time Analytics for Data Streams
moa.classifiers.core.conditionaltests.InstanceConditionalTest Class Reference

Abstract conditional test for instances to use to split nodes in Hoeffding trees. More...

Inheritance diagram for moa.classifiers.core.conditionaltests.InstanceConditionalTest:
Collaboration diagram for moa.classifiers.core.conditionaltests.InstanceConditionalTest:

List of all members.

Public Member Functions

abstract int branchForInstance (Instance inst)
 Returns the number of the branch for an instance, -1 if unknown.
boolean resultKnownForInstance (Instance inst)
 Gets whether the number of the branch for an instance is known.
abstract int maxBranches ()
 Gets the number of maximum branches, -1 if unknown.
abstract String describeConditionForBranch (int branch, InstancesHeader context)
 Gets the text that describes the condition of a branch.
abstract int[] getAttsTestDependsOn ()
 Returns an array with the attributes that the test depends on.

Detailed Description

Abstract conditional test for instances to use to split nodes in Hoeffding trees.

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

Definition at line 32 of file InstanceConditionalTest.java.


Member Function Documentation

abstract int moa.classifiers.core.conditionaltests.InstanceConditionalTest.branchForInstance ( Instance  inst) [pure virtual]

Returns the number of the branch for an instance, -1 if unknown.

Parameters:
instthe instance to be used
Returns:
the number of the branch for an instance, -1 if unknown.

Implemented in moa.classifiers.core.conditionaltests.NominalAttributeBinaryTest, moa.classifiers.core.conditionaltests.NominalAttributeMultiwayTest, and moa.classifiers.core.conditionaltests.NumericAttributeBinaryTest.

Referenced by moa.classifiers.trees.DecisionStump.getVotesForInstance(), and moa.classifiers.core.conditionaltests.InstanceConditionalTest.resultKnownForInstance().

Here is the caller graph for this function:

abstract String moa.classifiers.core.conditionaltests.InstanceConditionalTest.describeConditionForBranch ( int  branch,
InstancesHeader  context 
) [pure virtual]

Gets the text that describes the condition of a branch.

It is used to describe the branch.

Parameters:
branchthe number of the branch to describe
contextthe context or header of the data stream
Returns:
the text that describes the condition of the branch

Implemented in moa.classifiers.core.conditionaltests.NominalAttributeBinaryTest, moa.classifiers.core.conditionaltests.NominalAttributeMultiwayTest, and moa.classifiers.core.conditionaltests.NumericAttributeBinaryTest.

abstract int [] moa.classifiers.core.conditionaltests.InstanceConditionalTest.getAttsTestDependsOn ( ) [pure virtual]

Returns an array with the attributes that the test depends on.

Returns:
an array with the attributes that the test depends on

Implemented in moa.classifiers.core.conditionaltests.NominalAttributeBinaryTest, moa.classifiers.core.conditionaltests.NominalAttributeMultiwayTest, and moa.classifiers.core.conditionaltests.NumericAttributeBinaryTest.

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

Here is the caller graph for this function:

abstract int moa.classifiers.core.conditionaltests.InstanceConditionalTest.maxBranches ( ) [pure virtual]

Gets the number of maximum branches, -1 if unknown.

Returns:
the number of maximum branches, -1 if unknown..

Implemented in moa.classifiers.core.conditionaltests.InstanceConditionalBinaryTest, and moa.classifiers.core.conditionaltests.NominalAttributeMultiwayTest.

boolean moa.classifiers.core.conditionaltests.InstanceConditionalTest.resultKnownForInstance ( Instance  inst)

Gets whether the number of the branch for an instance is known.

Parameters:
inst
Returns:
true if the number of the branch for an instance is known

Definition at line 48 of file InstanceConditionalTest.java.

Here is the call graph for this function:


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