com.rapidminer.operator.learner.subgroups.hypothesis
Class Hypothesis

java.lang.Object
  extended by com.rapidminer.operator.learner.subgroups.hypothesis.Hypothesis
All Implemented Interfaces:
java.io.Serializable

public class Hypothesis
extends java.lang.Object
implements java.io.Serializable

This is a hypothesis for subgroup discovery.

Author:
Tobias Malbrecht
See Also:
Serialized Form

Field Summary
static int NEGATIVE_RULE
           
static int POSITIVE_AND_NEGATIVE_RULES
           
static int POSITIVE_RULE
           
static int PREDICTION_RULE
           
static java.lang.String[] RULE_GENERATION_MODES
           
 
Constructor Summary
Hypothesis()
           
Hypothesis(java.util.Collection<Literal> literals)
           
 
Method Summary
 boolean applicable(Example example)
           
 void apply(Example example)
           
 Hypothesis clone()
           
 Hypothesis combine(Hypothesis otherHypothesis)
           
 boolean equals(java.lang.Object object)
           
 java.util.LinkedList<Rule> generateRules(int ruleGenerationMode, Attribute label)
           
 double getCoveredWeight()
           
 int getNumberOfLiterals()
           
 double getPositiveWeight()
           
 java.util.LinkedList<Hypothesis> refine(java.lang.Iterable<Attribute> attributes)
           
 java.util.LinkedList<Hypothesis> restrictedRefine()
           
 java.util.LinkedList<Hypothesis> restrictedRefine(java.lang.Iterable<Attribute> attributes)
           
 Hypothesis subsume(Hypothesis otherHypothesis)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

POSITIVE_RULE

public static final int POSITIVE_RULE
See Also:
Constant Field Values

NEGATIVE_RULE

public static final int NEGATIVE_RULE
See Also:
Constant Field Values

PREDICTION_RULE

public static final int PREDICTION_RULE
See Also:
Constant Field Values

POSITIVE_AND_NEGATIVE_RULES

public static final int POSITIVE_AND_NEGATIVE_RULES
See Also:
Constant Field Values

RULE_GENERATION_MODES

public static final java.lang.String[] RULE_GENERATION_MODES
Constructor Detail

Hypothesis

public Hypothesis()

Hypothesis

public Hypothesis(java.util.Collection<Literal> literals)
Method Detail

apply

public void apply(Example example)

applicable

public boolean applicable(Example example)

refine

public java.util.LinkedList<Hypothesis> refine(java.lang.Iterable<Attribute> attributes)

restrictedRefine

public java.util.LinkedList<Hypothesis> restrictedRefine(java.lang.Iterable<Attribute> attributes)

restrictedRefine

public java.util.LinkedList<Hypothesis> restrictedRefine()

subsume

public Hypothesis subsume(Hypothesis otherHypothesis)

combine

public Hypothesis combine(Hypothesis otherHypothesis)

generateRules

public java.util.LinkedList<Rule> generateRules(int ruleGenerationMode,
                                                Attribute label)

getNumberOfLiterals

public int getNumberOfLiterals()

getCoveredWeight

public double getCoveredWeight()

getPositiveWeight

public double getPositiveWeight()

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

clone

public Hypothesis clone()
Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2001-2009 by Rapid-I