Main Page | Class Hierarchy | Class List | Class Members

kddml.Core.DataMining.ClassificationTrees.CompoundBooleanTree Class Reference

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

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 List of all members.

Public Member Functions

 CompoundBooleanTree (String positive_class, String negative_class, byte combination_type)
byte getCombinationType ()
String getPositiveClass ()
String getNegativeClass ()
String classify (String[] values)
String toString ()

Static Public Attributes

static final byte AND_TREE = 0
static final byte OR_TREE = 1

Protected Member Functions

 CompoundBooleanTree (Element el) throws TreeModelException
Element toXML ()

Detailed Description

A CompoundBooleanTree implements a combination between two or more classification trees with a boolean operator AND, OR. AND and OR evaluations can be applied only at decision trees, in witch the target attribute is binary with a positive class (e.g. true, yes) and a negative class (e.g. false, no) as values.
More precisely, given n distinct decision trees D1, . . . ,Dn, the AND tree (OR tree) assigns to a tuple the positive class (negative class) if all the trees D1, . . . ,Dn classify the instance with the positive class (negative class); otherwise, the negative class (positive class) is returned.

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.CompoundBooleanTree.CompoundBooleanTree String  positive_class,
String  negative_class,
byte  combination_type
 

Constructor.

Parameters:
positive_class String the positive class relaterd to the target attribute (eg. "yes", "true", ...)
negative_class String the negative class related to the target attribute (eg. "no", "false", ...)
combination_type byte the combination type used for this trees. Can be AND, OR.

kddml.Core.DataMining.ClassificationTrees.CompoundBooleanTree.CompoundBooleanTree Element  el  )  throws TreeModelException [protected]
 

Proprietary constructor given the XML element.

Parameters:
el Element
Exceptions:
TreeModelException 


Member Function Documentation

byte kddml.Core.DataMining.ClassificationTrees.CompoundBooleanTree.getCombinationType  ) 
 

Returns the combination type used for this trees. Can be AND, OR.

Returns:
byte

String kddml.Core.DataMining.ClassificationTrees.CompoundBooleanTree.getPositiveClass  ) 
 

Returns the positive class relaterd to the target attribute (eg. "yes", "true", ...).

Returns:
String

String kddml.Core.DataMining.ClassificationTrees.CompoundBooleanTree.getNegativeClass  ) 
 

Returns the negative class related to the target attribute (eg. "no", "false", ...).

Returns:
String

String kddml.Core.DataMining.ClassificationTrees.CompoundBooleanTree.classify String[]  values  )  [virtual]
 

Method used to classify an input instance. Given n distinct decision trees D1, . . . ,Dn, the AND tree (OR tree) assigns to a tuple the positive class (negative class) if all the trees D1, . . . ,Dn classify the instance with the positive class (negative class); otherwise, the negative class (positive class) is returned.

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

Implements kddml.Core.DataMining.ClassificationTrees.CompoundTree.

String kddml.Core.DataMining.ClassificationTrees.CompoundBooleanTree.toString  )  [virtual]
 

Returns a representation of this object as string.

Returns:
String

Implements kddml.Core.DataMining.ClassificationTrees.Node.

Element kddml.Core.DataMining.ClassificationTrees.CompoundBooleanTree.toXML  )  [protected, virtual]
 

Returns a representation of this object as XML element.

Returns:
Element

Implements kddml.Core.DataMining.ClassificationTrees.CompoundTree.


Member Data Documentation

final byte kddml.Core.DataMining.ClassificationTrees.CompoundBooleanTree.AND_TREE = 0 [static]
 

AND tree combination.

final byte kddml.Core.DataMining.ClassificationTrees.CompoundBooleanTree.OR_TREE = 1 [static]
 

OR tree combination


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