|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.operator.AbstractIOObject
com.rapidminer.operator.ResultObjectAdapter
com.rapidminer.operator.AbstractModel
com.rapidminer.operator.learner.PredictionModel
com.rapidminer.operator.learner.igss.hypothesis.GSSModel
public class GSSModel
Wrapper class for rules found by the Iterating GSS algorithm. Needed because IGSS rules need to be small in order to keep many in main memory
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.rapidminer.operator.AbstractIOObject |
|---|
AbstractIOObject.InputStreamProvider |
| Field Summary | |
|---|---|
protected double[] |
confidences
The confidence values for all predictions. |
protected boolean |
crisp
crisp only crisp ... |
protected Hypothesis |
hypothesis
The all hypothesis of the model. |
protected static Attribute[] |
regularAttributes
The regular attributes used by all rules. |
| Constructor Summary | |
|---|---|
GSSModel(ExampleSet exampleSet,
Hypothesis hypothesis,
double[] confidences)
Creates a new GSSModel. |
|
| Method Summary | |
|---|---|
boolean |
applicable(Example example)
Returns true if the model is applicable to the current example. |
boolean |
equals(java.lang.Object o)
Returns true if the hypothesis contained in the model are equal. |
Hypothesis |
getHypothesis()
Returns the hypothesis stored in this model. |
int |
getPredictionIndex()
Returns the most probable label index for this model. |
int |
hashCode()
|
ExampleSet |
performPrediction(ExampleSet exampleSet,
Attribute predictedLabel)
Iterates over all examples and applies the model to them. |
java.lang.String |
toString()
Returns a String representation of the hypothesis stored in this model. |
| Methods inherited from class com.rapidminer.operator.learner.PredictionModel |
|---|
apply, checkCompatibility, copyPredictedLabel, createPredictedLabel, createPredictionAttributes, getLabel, removePredictedLabel, removePredictedLabel, supportsConfidences |
| Methods inherited from class com.rapidminer.operator.AbstractModel |
|---|
getExtension, getFileDescription, getName, getTrainingHeader, isInTargetEncoding, isUpdatable, setParameter, updateModel |
| Methods inherited from class com.rapidminer.operator.ResultObjectAdapter |
|---|
addAction, getActions, getAnnotations, getResultIcon, log, log, logError, logNote, logWarning, toHTML, toResultString |
| Methods inherited from class com.rapidminer.operator.AbstractIOObject |
|---|
appendOperatorToHistory, copy, getLog, getProcessingHistory, getSource, initWriting, read, read, read, read, setLoggingHandler, setSource, write |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.rapidminer.operator.ResultObject |
|---|
getActions, getResultIcon, toResultString |
| Methods inherited from interface com.rapidminer.operator.IOObject |
|---|
appendOperatorToHistory, copy, getAnnotations, getLog, getProcessingHistory, getSource, setLoggingHandler, setSource, write |
| Field Detail |
|---|
protected Hypothesis hypothesis
protected double[] confidences
protected static Attribute[] regularAttributes
protected boolean crisp
| Constructor Detail |
|---|
public GSSModel(ExampleSet exampleSet,
Hypothesis hypothesis,
double[] confidences)
| Method Detail |
|---|
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int getPredictionIndex()
public ExampleSet performPrediction(ExampleSet exampleSet,
Attribute predictedLabel)
throws OperatorException
performPrediction in class PredictionModelOperatorExceptionpublic boolean applicable(Example example)
public java.lang.String toString()
toString in interface ReadabletoString in class PredictionModelpublic Hypothesis getHypothesis()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||