edu.udo.cs.yale.operator.learner.meta
Class TransformedRegressionModel
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.meta.TransformedRegressionModel
- All Implemented Interfaces:
- IOObject, Model, ResultObject, Saveable
public class TransformedRegressionModel
- extends PredictionModel
Model for TransformedRegression. Applies the inverse transformation on the
predictions of the inner model.
- Version:
- $Id: TransformedRegressionModel.java,v 1.11 2006/03/21 15:35:48
ingomierswa Exp $
- Author:
- Stefan Rueping
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
METHODS
public static final java.lang.String[] METHODS
LOG
public static final int LOG
- See Also:
- Constant Field Values
EXP
public static final int EXP
- See Also:
- Constant Field Values
RANK
public static final int RANK
- See Also:
- Constant Field Values
NONE
public static final int NONE
- See Also:
- Constant Field Values
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
method
private int method
rank
private double[] rank
mean
private double mean
stddev
private double stddev
model
private Model model
interpolate
private boolean interpolate
zscale
private boolean zscale
TransformedRegressionModel
public TransformedRegressionModel()
- Necessary for creation via Reflection (see IOModel).
TransformedRegressionModel
public TransformedRegressionModel(Attribute label,
int method,
double[] rank,
Model model,
boolean zscale,
double mean,
double stddev,
boolean interpolate)
performPrediction
public void performPrediction(ExampleSet exampleSet,
Attribute predictedLabelAttribute)
throws OperatorException
- Iterates over all examples and applies this model.
- Specified by:
performPrediction
in class PredictionModel
- Throws:
OperatorException
writePredictionModelData
public void writePredictionModelData(java.io.ObjectOutputStream out)
throws java.io.IOException
- Writes the model to the output stream.
- Specified by:
writePredictionModelData
in class PredictionModel
- Throws:
java.io.IOException
readPredictionModelData
public void readPredictionModelData(java.io.ObjectInputStream in)
throws java.io.IOException
- Reads model from the file.
- Specified by:
readPredictionModelData
in class PredictionModel
- Throws:
java.io.IOException
getIdentifier
public java.lang.String getIdentifier()
toString
public java.lang.String toString()
- Overrides:
toString
in class PredictionModel
Copyright © 2001-2006