Main Page | Class Hierarchy | Class List | Class Members

kddml.Core.DataMining.ClassificationTrees.CompoundTree Class Reference

Inheritance diagram for kddml.Core.DataMining.ClassificationTrees.CompoundTree:

kddml.Core.DataMining.ClassificationTrees.Node kddml.Core.DataMining.ClassificationTrees.CompoundTreeManager kddml.Core.DataMining.ClassificationTrees.NodeManager kddml.Core.DataMining.ClassificationTrees.NodeManager kddml.Core.DataMining.ClassificationTrees.CompoundBaggingsTree kddml.Core.DataMining.ClassificationTrees.CompoundBooleanTree List of all members.

Public Member Functions

 CompoundTree ()
boolean isCompoundTree ()
abstract String classify (String[] values)
int getSize ()
void addTree (NodeManager tree)
void removeTree (int index) throws TreeModelException
NodeManager[] getTrees ()
int getNumberOfTrees ()

Protected Member Functions

 CompoundTree (Element node) throws TreeModelException
abstract Element toXML ()

Detailed Description

The compound tree represents a combination of classification trees. Combination can be boolean (and, or of decision tree) or baggings.

Title: KDDML

Description: Knowledge Discovery in Database Environment

Copyright: Copyright (c) 2003-2005

Company: Universita' di Pisa - Dipartimento di Informatica

Author:
Andrea Romei (romei@di.unipi.it)
Version:
2.0.16


Constructor & Destructor Documentation

kddml.Core.DataMining.ClassificationTrees.CompoundTree.CompoundTree  ) 
 

Empty constructor.

kddml.Core.DataMining.ClassificationTrees.CompoundTree.CompoundTree Element  node  )  throws TreeModelException [protected]
 

Proprietary constructor given the XML element.

Parameters:
node Element
Exceptions:
TreeModelException 


Member Function Documentation

boolean kddml.Core.DataMining.ClassificationTrees.CompoundTree.isCompoundTree  )  [virtual]
 

Returns true if the tree is a compound tree, i.e., a combination with and, or, committee of classification trees. Returns false if the tree is a simple tree.

Returns:
boolean

Implements kddml.Core.DataMining.ClassificationTrees.NodeManager.

abstract String kddml.Core.DataMining.ClassificationTrees.CompoundTree.classify String[]  values  )  [pure virtual]
 

Method used to classify an input instance. It depends from the type of combination used.

Parameters:
values String[] classification values returned by single trees.
Returns:
String the classification value.

Implements kddml.Core.DataMining.ClassificationTrees.CompoundTreeManager.

Implemented in kddml.Core.DataMining.ClassificationTrees.CompoundBaggingsTree, and kddml.Core.DataMining.ClassificationTrees.CompoundBooleanTree.

int kddml.Core.DataMining.ClassificationTrees.CompoundTree.getSize  )  [virtual]
 

Returns the size of the tree, i.e. the number of total nodes of the tree.

Returns:
int

Implements kddml.Core.DataMining.ClassificationTrees.NodeManager.

void kddml.Core.DataMining.ClassificationTrees.CompoundTree.addTree NodeManager  tree  ) 
 

Adds a new tree to this combination. Input tree can be either a simple tree, or a compound tree.

Parameters:
tree Node

Implements kddml.Core.DataMining.ClassificationTrees.CompoundTreeManager.

void kddml.Core.DataMining.ClassificationTrees.CompoundTree.removeTree int  index  )  throws TreeModelException
 

Removes a tree with a specifiy index from this combination. Throws an exception if the index is out of range.

Parameters:
index int a non-negative value representing the index of the tree. Must be less than the number of trees returned by getNumberOfTrees. The first tree has index 0.
Exceptions:
TreeModelException if the index is out of range.

Implements kddml.Core.DataMining.ClassificationTrees.CompoundTreeManager.

NodeManager [] kddml.Core.DataMining.ClassificationTrees.CompoundTree.getTrees  ) 
 

Returns all the trees belonging to this compound tree. Output trees can be either a simple tree, or another compound tree.

Returns:
Node[]

Implements kddml.Core.DataMining.ClassificationTrees.CompoundTreeManager.

int kddml.Core.DataMining.ClassificationTrees.CompoundTree.getNumberOfTrees  ) 
 

Returns the number of trees belonging to this compound tree.

Returns:
int

Implements kddml.Core.DataMining.ClassificationTrees.CompoundTreeManager.

abstract Element kddml.Core.DataMining.ClassificationTrees.CompoundTree.toXML  )  [protected, pure virtual]
 

Returns a representation of this object as PMML element.

Returns:
Element

Implements kddml.Core.DataMining.ClassificationTrees.Node.

Implemented in kddml.Core.DataMining.ClassificationTrees.CompoundBaggingsTree, and kddml.Core.DataMining.ClassificationTrees.CompoundBooleanTree.


Generated on Thu Feb 23 13:04:39 2006 for kddml by  doxygen 1.4.3