net.sf.myra.antree
Class Builder

java.lang.Object
  extended by net.sf.myra.antree.Builder

public class Builder
extends java.lang.Object

Version:
$Revision: 2341 $ $Date:: 2011-08-29 12:43:18#$
Author:
Fernando Esteban Barril Otero

Field Summary
static java.lang.String ALPHA
          The property key under which the alpha parameter is stored.
static java.lang.String BETA
          The property key under which the beta parameter is stored.
static java.lang.String MINIMUM_INSTANCES
          The property key under which the minimum number of instances for each branch is stored.
 
Constructor Summary
Builder(Graph graph, net.sf.myra.datamining.data.Metadata metadata, net.sf.myra.datamining.data.Label majority)
          Default constructor.
 
Method Summary
 Tree build(net.sf.myra.datamining.data.Dataset dataset)
          Returns a decision tree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MINIMUM_INSTANCES

public static final java.lang.String MINIMUM_INSTANCES
The property key under which the minimum number of instances for each branch is stored.

See Also:
Constant Field Values

ALPHA

public static final java.lang.String ALPHA
The property key under which the alpha parameter is stored.

See Also:
Constant Field Values

BETA

public static final java.lang.String BETA
The property key under which the beta parameter is stored.

See Also:
Constant Field Values
Constructor Detail

Builder

public Builder(Graph graph,
               net.sf.myra.datamining.data.Metadata metadata,
               net.sf.myra.datamining.data.Label majority)
Default constructor.

Parameters:
graph - the constructions graph.
metadata - the dataset's metadata.
majority - the majority label.
Method Detail

build

public Tree build(net.sf.myra.datamining.data.Dataset dataset)
Returns a decision tree.

Returns:
a decision tree.


Copyright © 2013. All Rights Reserved.