cascading.pattern.model.generalregression
Class GeneralRegressionSpec

java.lang.Object
  extended by cascading.pattern.model.Spec
      extended by cascading.pattern.model.generalregression.GeneralRegressionSpec
All Implemented Interfaces:
Serializable

public class GeneralRegressionSpec
extends Spec

Class GeneralRegressionSpec is used to define a general regression model for classification or prediction, and can be used with CategoricalRegressionFunction and PredictionRegressionFunction respectively.

General regression applies a RegressionTable to each Tuple. If only one table is specified, this spec can be used with the PredictionRegressionFunction. If multiple tables are specified, each must have a unique category and should be used with CategoricalRegressionFunction.

By default, no link function or normalization method is used.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class cascading.pattern.model.Spec
modelSchema
 
Constructor Summary
GeneralRegressionSpec(ModelSchema modelSchema)
           
GeneralRegressionSpec(ModelSchema modelSchema, RegressionTable regressionTable, LinkFunction linkFunction)
           
 
Method Summary
 void addRegressionTable(RegressionTable regressionTable)
           
 LinkFunction getLinkFunction()
           
 Normalization getNormalization()
           
 ExpressionEvaluator[] getRegressionTableEvaluators(Fields argumentFields)
           
 List<RegressionTable> getRegressionTables()
           
 void setLinkFunction(LinkFunction linkFunction)
           
 void setNormalization(Normalization normalization)
           
 String toString()
           
 
Methods inherited from class cascading.pattern.model.Spec
getCategories, getCategoriesArray, getModelSchema, isPredictedCategorical, setModelSchema
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeneralRegressionSpec

public GeneralRegressionSpec(ModelSchema modelSchema,
                             RegressionTable regressionTable,
                             LinkFunction linkFunction)

GeneralRegressionSpec

public GeneralRegressionSpec(ModelSchema modelSchema)
Method Detail

addRegressionTable

public void addRegressionTable(RegressionTable regressionTable)

getRegressionTables

public List<RegressionTable> getRegressionTables()

setNormalization

public void setNormalization(Normalization normalization)

getNormalization

public Normalization getNormalization()

getLinkFunction

public LinkFunction getLinkFunction()

setLinkFunction

public void setLinkFunction(LinkFunction linkFunction)

getRegressionTableEvaluators

public ExpressionEvaluator[] getRegressionTableEvaluators(Fields argumentFields)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.