edu.udo.cs.yale.operator.learner.meta
Class TransformedRegressionModel

java.lang.Object
  extended by edu.udo.cs.yale.operator.AbstractIOObject
      extended by edu.udo.cs.yale.operator.ResultObjectAdapter
          extended by edu.udo.cs.yale.operator.AbstractModel
              extended by edu.udo.cs.yale.operator.IOModel
                  extended by edu.udo.cs.yale.operator.learner.PredictionModel
                      extended by 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

Field Summary
static int EXP
           
static java.lang.String ID
           
private  boolean interpolate
           
static int LOG
           
private  double mean
           
private  int method
           
static java.lang.String[] METHODS
           
private  Model model
           
static int NONE
           
private  double[] rank
           
static int RANK
           
private  double stddev
           
private  boolean zscale
           
 
Constructor Summary
TransformedRegressionModel()
          Necessary for creation via Reflection (see IOModel).
TransformedRegressionModel(Attribute label, int method, double[] rank, Model model, boolean zscale, double mean, double stddev, boolean interpolate)
           
 
Method Summary
 java.lang.String getIdentifier()
           
 void performPrediction(ExampleSet exampleSet, Attribute predictedLabelAttribute)
          Iterates over all examples and applies this model.
 void readPredictionModelData(java.io.ObjectInputStream in)
          Reads model from the file.
 java.lang.String toString()
           
 void writePredictionModelData(java.io.ObjectOutputStream out)
          Writes the model to the output stream.
 
Methods inherited from class edu.udo.cs.yale.operator.learner.PredictionModel
apply, createPredictedLabel, getLabel, readData, removePredictedLabel, setLabel, writeData
 
Methods inherited from class edu.udo.cs.yale.operator.AbstractModel
equals, getExtension, getFileDescription, readModel, readModel, save, setParameter, writeModel, writeModel
 
Methods inherited from class edu.udo.cs.yale.operator.ResultObjectAdapter
addAction, getActions, getName, getVisualisationComponent, toHTML, toResultString
 
Methods inherited from class edu.udo.cs.yale.operator.AbstractIOObject
copy, read, read, read, write, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.udo.cs.yale.operator.ResultObject
getActions, getName, getVisualisationComponent, toResultString
 
Methods inherited from interface edu.udo.cs.yale.operator.IOObject
copy, write, write
 

Field Detail

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
Constructor Detail

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)
Method Detail

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