|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.operator.Operator
com.rapidminer.operator.learner.AbstractLearner
com.rapidminer.operator.learner.igss.IteratingGSS
public class IteratingGSS
This operator implements the IteratingGSS algorithmus presented in the diploma thesis 'Effiziente Entdeckung unabhaengiger Subgruppen in grossen Datenbanken' at the Department of Computer Science, University of Dortmund.
| Field Summary | |
|---|---|
static java.lang.String[] |
CRITERION_TYPES
|
static int |
FIRST_TYPE_INDEX
|
static int |
LAST_TYPE_INDEX
|
int |
MIN_MODEL_NUMBER
minimal model number for example_criterion |
static java.lang.String |
PARAMETER_DELTA
The parameter name for "desired confidence" |
static java.lang.String |
PARAMETER_EPSILON
The parameter name for "approximation parameter" |
static java.lang.String |
PARAMETER_EXAMPLE_FACTOR
The parameter name for "used by example criterion to determine usefulness of a hypothesis" |
static java.lang.String |
PARAMETER_FORCE_ITERATIONS
The parameter name for "make all iterations even if termination criterion is met" |
static java.lang.String |
PARAMETER_GENERATE_ALL_HYPOTHESIS
The parameter name for "generate h->Y+/Y- or h->Y+ only. |
static java.lang.String |
PARAMETER_ITERATIONS
The parameter name for "the number of iterations" |
static java.lang.String |
PARAMETER_LARGE
The parameter name for "the number of examples a hypothesis must cover before normal approximation is used" |
static java.lang.String |
PARAMETER_MAX_COMPLEXITY
The parameter name for "the maximum complexity of hypothesis" |
static java.lang.String |
PARAMETER_MIN_COMPLEXITY
The parameter name for "the minimum complexity of hypothesis" |
static java.lang.String |
PARAMETER_MIN_UTILITY_PRUNING
The parameter name for "minimum utility used for pruning" |
static java.lang.String |
PARAMETER_MIN_UTILITY_USEFUL
The parameter name for "minimum utility for the usefulness of a rule" |
static java.lang.String |
PARAMETER_REJECTION_SAMPLING
The parameter name for "use rejection sampling instead of weighted examples" |
static java.lang.String |
PARAMETER_RESET_WEIGHTS
The parameter name for "Set weights back to 1 when complexity is increased. |
static java.lang.String |
PARAMETER_STEPSIZE
The parameter name for "the number of examples drawn before the next hypothesis update" |
static java.lang.String |
PARAMETER_USE_BINOMIAL
The parameter name for "Switch to binomial utility funtion before increasing complexity" |
static java.lang.String |
PARAMETER_USE_KBS
The parameter name for "use kbs to reweight examples after each iteration" |
static java.lang.String |
PARAMETER_USEFUL_CRITERION
The parameter name for "criterion to decide if the complexity is increased " |
static java.lang.String |
PARAMETER_UTILITY_FUNCTION
The parameter name for "the utility function to be used" |
static int |
TYPE_BEST_UTILITY
|
static int |
TYPE_EXAMPLE
|
static int |
TYPE_UTILITY
|
static int |
TYPE_WORST_UTILITY
|
| Fields inherited from class com.rapidminer.operator.learner.AbstractLearner |
|---|
PROPERTY_RAPIDMINER_GENERAL_CAPABILITIES_WARN |
| Constructor Summary | |
|---|---|
IteratingGSS(OperatorDescription description)
Must pass the given object to the superclass. |
|
| Method Summary | |
|---|---|
IOObject[] |
apply()
Trains a model using an ExampleSet from the input. |
java.util.LinkedList<Hypothesis> |
generate(java.util.LinkedList<Hypothesis> oldHypothesis)
Generates all successors of the hypothesis in the given list. |
java.lang.Class<?>[] |
getOutputClasses()
Returns the classes that are guaranteed to be returned by apply() as additional output. |
java.util.List<ParameterType> |
getParameterTypes()
Returns a list of ParameterTypes describing the parameters of this operator. |
java.util.LinkedList<Result> |
gss(ExampleSet exampleSet,
java.util.LinkedList<Hypothesis> hypothesisList,
double delta,
double epsilon)
Returns the n best hypothesis with maximum error epsilon with confidence 1-delta. |
boolean |
isUseful(Result current,
java.util.LinkedList<Result> otherResults,
int criterion,
ExampleSet exampleSet,
int min_model_number)
Test if the model is useful according to the given criterion. |
Model |
learn(ExampleSet exampleSet)
Trains a model. |
static double |
log2(double arg)
Returns the logarithm to base 2 |
java.util.LinkedList<Hypothesis> |
prune(java.util.LinkedList<Hypothesis> hypoList,
double minUtility,
double totalWeight,
double totalPositiveWeight,
double delta_p)
Prunes the given list of hypothesis. |
ContingencyMatrix |
reweight(ExampleSet exampleSet,
Model model,
boolean normalize)
Reweights the examples according to knowledge based sampling. |
boolean |
supportsCapability(LearnerCapability lc)
Checks for Learner capabilities. |
| Methods inherited from class com.rapidminer.operator.learner.AbstractLearner |
|---|
getEstimatedPerformance, getInputClasses, getInputDescription, getOptimizationPerformance, getWeights, onlyWarnForNonSufficientCapabilities, shouldCalculateWeights, shouldDeliverOptimizationPerformance, shouldEstimatePerformance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.rapidminer.operator.learner.Learner |
|---|
getName |
| Field Detail |
|---|
public static final java.lang.String PARAMETER_EPSILON
public static final java.lang.String PARAMETER_DELTA
public static final java.lang.String PARAMETER_MIN_UTILITY_PRUNING
public static final java.lang.String PARAMETER_MIN_UTILITY_USEFUL
public static final java.lang.String PARAMETER_STEPSIZE
public static final java.lang.String PARAMETER_LARGE
public static final java.lang.String PARAMETER_MAX_COMPLEXITY
public static final java.lang.String PARAMETER_MIN_COMPLEXITY
public static final java.lang.String PARAMETER_ITERATIONS
public static final java.lang.String PARAMETER_USE_BINOMIAL
public static final java.lang.String PARAMETER_UTILITY_FUNCTION
public static final java.lang.String PARAMETER_USE_KBS
public static final java.lang.String PARAMETER_REJECTION_SAMPLING
public static final java.lang.String PARAMETER_USEFUL_CRITERION
public static final java.lang.String PARAMETER_EXAMPLE_FACTOR
public static final java.lang.String PARAMETER_FORCE_ITERATIONS
public static final java.lang.String PARAMETER_GENERATE_ALL_HYPOTHESIS
public static final java.lang.String PARAMETER_RESET_WEIGHTS
public static final java.lang.String[] CRITERION_TYPES
public static final int FIRST_TYPE_INDEX
public static final int TYPE_WORST_UTILITY
public static final int TYPE_UTILITY
public static final int TYPE_BEST_UTILITY
public static final int TYPE_EXAMPLE
public static final int LAST_TYPE_INDEX
public int MIN_MODEL_NUMBER
| Constructor Detail |
|---|
public IteratingGSS(OperatorDescription description)
| Method Detail |
|---|
public java.util.LinkedList<Result> gss(ExampleSet exampleSet,
java.util.LinkedList<Hypothesis> hypothesisList,
double delta,
double epsilon)
throws OperatorException
OperatorException
public ContingencyMatrix reweight(ExampleSet exampleSet,
Model model,
boolean normalize)
throws OperatorException
OperatorException
public IOObject[] apply()
throws OperatorException
AbstractLearner
apply in class AbstractLearnerOperatorException
public Model learn(ExampleSet exampleSet)
throws OperatorException
Learner
OperatorException
public boolean isUseful(Result current,
java.util.LinkedList<Result> otherResults,
int criterion,
ExampleSet exampleSet,
int min_model_number)
public java.util.LinkedList<Hypothesis> prune(java.util.LinkedList<Hypothesis> hypoList,
double minUtility,
double totalWeight,
double totalPositiveWeight,
double delta_p)
public java.util.LinkedList<Hypothesis> generate(java.util.LinkedList<Hypothesis> oldHypothesis)
public static double log2(double arg)
public boolean supportsCapability(LearnerCapability lc)
Learner
public java.lang.Class<?>[] getOutputClasses()
OperatorReturns the classes that are guaranteed to be returned by
apply() as additional output. Please note that input objects
which should not be consumed must also be defined by this method (e.g.
an example set which is changed but not consumed in the case of a preprocessing
operator must be defined in both, the methods Operator.getInputClasses() and
Operator.getOutputClasses()). The default behavior for input consumation
is defined by Operator.getInputDescription(Class) and can be changed by
overwriting this method. Objects which are not consumed (defined by changing
the implementation in Operator.getInputDescription(Class)) must not be
defined as additional output in this method.
May deliver null or an empy array (no additional output is produced or guaranteed). Must return the class array of delivered output objects otherwise.
getOutputClasses in class AbstractLearnerpublic java.util.List<ParameterType> getParameterTypes()
Operator
getParameterTypes in interface ParameterHandlergetParameterTypes in class Operator
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||