com.rapidminer.operator.features.transformation
Class GHAModel
java.lang.Object
com.rapidminer.operator.AbstractIOObject
com.rapidminer.operator.ResultObjectAdapter
com.rapidminer.operator.AbstractModel
com.rapidminer.operator.features.transformation.AbstractEigenvectorModel
com.rapidminer.operator.features.transformation.GHAModel
- All Implemented Interfaces:
- ComponentWeightsCreatable, IOObject, Model, ResultObject, Readable, Reportable, LoggingHandler, java.io.Serializable
public class GHAModel
- extends AbstractEigenvectorModel
- implements ComponentWeightsCreatable
This is the transformation model of the GHA The number of
components is initially specified by the GHA. Additionally
the user can specify a lower number in the ModelApplier. You
can add two prediction parameter:
- number_of_components integer Specify a lower number of
components
- keep_attributes true|false If true, the original
features are not removed.
- Author:
- Daniel Hakenjos, Ingo Mierswa
- See Also:
GHA,
Serialized Form
|
Constructor Summary |
GHAModel(ExampleSet eSet,
double[] eigenvalues,
double[][] weights,
double[] mean)
|
| 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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GHAModel
public GHAModel(ExampleSet eSet,
double[] eigenvalues,
double[][] weights,
double[] mean)
getMean
public double[] getMean()
getWeights
public double[] getWeights(int index)
getEigenvalue
public double getEigenvalue(int index)
getNumberOfComponents
public double getNumberOfComponents()
apply
public ExampleSet apply(ExampleSet exampleSet)
throws OperatorException
- Description copied from interface:
Model
- Applies the model on the given example set. Please note that the delivered
example set might be the same as the input example set. This does, however,
no always to be the case.
- Specified by:
apply in interface Model
- Throws:
OperatorException
setParameter
public void setParameter(java.lang.String name,
java.lang.Object object)
throws OperatorException
- Description copied from class:
AbstractModel
- Throws a UserError since most models should not allow additional
parameters during application. However, subclasses may overwrite this
method.
- Specified by:
setParameter in interface Model- Overrides:
setParameter in class AbstractModel
- Throws:
OperatorException
getWeightsOfComponent
public AttributeWeights getWeightsOfComponent(int component)
throws OperatorException
- Specified by:
getWeightsOfComponent in interface ComponentWeightsCreatable
- Throws:
OperatorException
toString
public java.lang.String toString()
- Specified by:
toString in interface Readable- Overrides:
toString in class java.lang.Object
getEigenvectorTableModel
public EigenvectorModelEigenvectorRenderer.EigenvectorTableModel getEigenvectorTableModel()
- Specified by:
getEigenvectorTableModel in class AbstractEigenvectorModel
getEigenvalueTableModel
public EigenvectorModelEigenvalueRenderer.EigenvalueTableModel getEigenvalueTableModel()
- Specified by:
getEigenvalueTableModel in class AbstractEigenvectorModel
getCumulativeVariance
public double[] getCumulativeVariance()
- Specified by:
getCumulativeVariance in class AbstractEigenvectorModel
Copyright © 2001-2009 by Rapid-I