net.sf.myra.antminer
Class ProbabilisticRuleFactory

java.lang.Object
  extended by net.sf.myra.antminer.ProbabilisticRuleFactory
All Implemented Interfaces:
net.sf.myra.framework.TrailFactory

public class ProbabilisticRuleFactory
extends java.lang.Object
implements net.sf.myra.framework.TrailFactory

This class represents a probabilistic (roulette wheel) trail factory.

Version:
$Revision$ $Date:: $
Author:
Fernando Esteban Barril Otero

Field Summary
protected  int MINIMUM_CASES
          Minimum number of covered cases per rule.
static java.lang.String MINIMUM_RULE_CASES
          The property key under which the minimum rule cases value is stored.
static int NO_MINIMUM_CASES
          Constant to indicate that there is no minimum number of covered cases.
 
Constructor Summary
  ProbabilisticRuleFactory(net.sf.myra.framework.Graph<?> graph, net.sf.myra.datamining.data.Dataset dataset)
          Default constructor.
protected ProbabilisticRuleFactory(net.sf.myra.framework.Graph<?> graph, net.sf.myra.datamining.data.Dataset dataset, int mininumCases)
          Default constructor.
 
Method Summary
 net.sf.myra.framework.Trail createTrail()
           
protected  net.sf.myra.datamining.data.Dataset getDataset()
          Returns the dataset reference.
 net.sf.myra.framework.Graph<?> getGraph()
           
protected  net.sf.myra.framework.Vertex<net.sf.myra.datamining.data.Term> process(net.sf.myra.datamining.data.Metadata metadata, net.sf.myra.framework.Vertex<net.sf.myra.datamining.data.Term> vertex, java.util.List<net.sf.myra.datamining.data.Instance> covered)
          Prepares the vertex to be added to a rule.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MINIMUM_RULE_CASES

public static final java.lang.String MINIMUM_RULE_CASES
The property key under which the minimum rule cases value is stored.

See Also:
Constant Field Values

NO_MINIMUM_CASES

public static int NO_MINIMUM_CASES
Constant to indicate that there is no minimum number of covered cases.


MINIMUM_CASES

protected final int MINIMUM_CASES
Minimum number of covered cases per rule.

Constructor Detail

ProbabilisticRuleFactory

public ProbabilisticRuleFactory(net.sf.myra.framework.Graph<?> graph,
                                net.sf.myra.datamining.data.Dataset dataset)
Default constructor.

Parameters:
graph - the problem construction graph.
dataset - the dataset reference.

ProbabilisticRuleFactory

protected ProbabilisticRuleFactory(net.sf.myra.framework.Graph<?> graph,
                                   net.sf.myra.datamining.data.Dataset dataset,
                                   int mininumCases)
Default constructor.

Parameters:
graph - the problem construction graph.
dataset - the dataset reference.
Method Detail

createTrail

public net.sf.myra.framework.Trail createTrail()
Specified by:
createTrail in interface net.sf.myra.framework.TrailFactory

process

protected net.sf.myra.framework.Vertex<net.sf.myra.datamining.data.Term> process(net.sf.myra.datamining.data.Metadata metadata,
                                                                                 net.sf.myra.framework.Vertex<net.sf.myra.datamining.data.Term> vertex,
                                                                                 java.util.List<net.sf.myra.datamining.data.Instance> covered)
Prepares the vertex to be added to a rule. The default implementation just returns the vertex.

Parameters:
vertex - the vertex to be added to the rule.
Returns:
the same vertex instance.

getGraph

public net.sf.myra.framework.Graph<?> getGraph()
Specified by:
getGraph in interface net.sf.myra.framework.TrailFactory

getDataset

protected net.sf.myra.datamining.data.Dataset getDataset()
Returns the dataset reference.

Returns:
the dataset reference.


Copyright © 2013. All Rights Reserved.