edu.udo.cs.yale.operator.learner.kernel
Class GPModel
java.lang.Object
edu.udo.cs.yale.operator.AbstractIOObject
edu.udo.cs.yale.operator.ResultObjectAdapter
edu.udo.cs.yale.operator.AbstractModel
edu.udo.cs.yale.operator.IOModel
edu.udo.cs.yale.operator.learner.PredictionModel
edu.udo.cs.yale.operator.learner.kernel.KernelModel
edu.udo.cs.yale.operator.learner.kernel.GPModel
- All Implemented Interfaces:
- IOObject, Model, ResultObject, Saveable
public class GPModel
- extends KernelModel
A model learned by the GPLearner.
- Version:
- $Id: GPModel.java,v 1.5 2006/09/30 00:05:31 ingomierswa Exp $
- Author:
- Piotr Kasprzak, Ingo Mierswa
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
model
private Model model
GPModel
public GPModel()
- Constructors
GPModel
public GPModel(Attribute label)
GPModel
public GPModel(Attribute label,
Model model)
getModelInfo
public java.lang.String getModelInfo()
- Specified by:
getModelInfo in class KernelModel
isClassificationModel
public boolean isClassificationModel()
- Specified by:
isClassificationModel in class KernelModel
getAlpha
public double getAlpha(int index)
- Specified by:
getAlpha in class KernelModel
getId
public java.lang.String getId(int index)
- Specified by:
getId in class KernelModel
getNumberOfExamples
public int getNumberOfExamples()
- Specified by:
getNumberOfExamples in class KernelModel
getNumberOfAttributes
public int getNumberOfAttributes()
- Specified by:
getNumberOfAttributes in class KernelModel
getAttributeValue
public double getAttributeValue(int exampleIndex,
int attributeIndex)
- Specified by:
getAttributeValue in class KernelModel
getClassificationLabel
public java.lang.String getClassificationLabel(int index)
- Specified by:
getClassificationLabel in class KernelModel
getRegressionLabel
public double getRegressionLabel(int index)
- Specified by:
getRegressionLabel in class KernelModel
getFunctionValue
public double getFunctionValue(int index)
- Specified by:
getFunctionValue in class KernelModel
readPredictionModelData
public void readPredictionModelData(java.io.ObjectInputStream in)
throws java.io.IOException
- Reads the model data from the input stream.
- Specified by:
readPredictionModelData in class PredictionModel
- Throws:
java.io.IOException
writePredictionModelData
public void writePredictionModelData(java.io.ObjectOutputStream out)
throws java.io.IOException
- Writes the model data into the output stream.
- Specified by:
writePredictionModelData in class PredictionModel
- Throws:
java.io.IOException
performPrediction
public void performPrediction(ExampleSet exampleSet,
Attribute predictedLabel)
throws OperatorException
- Description copied from class:
PredictionModel
- Subclasses should iterated through the given example set and set the
prediction for each example. The given predicted label attribute was
already be added to the example set and should be used to set the
predicted values.
- Specified by:
performPrediction in class PredictionModel
- Throws:
OperatorException
Copyright © 2001-2006