public class SingleGuessRegression extends BaseRegression
User can add jitter to the guess, which adds a small random value to the guess. This has the effect of
forcing the entries to be randomly ranked by an Usage: <guess> [-jitter <jitter>]
BaseEntryRanker, but without
changing the actual guess by that much. The actual size of this step is set by the
value of Jitter.
| Modifier and Type | Field and Description |
|---|---|
protected double |
Guess
Guess for all classes
|
protected double |
Jitter
Amount of jitter added to the answer
|
AttributeSelector, trained, TrainingStats, validated, ValidationStats| Constructor and Description |
|---|
SingleGuessRegression() |
| Modifier and Type | Method and Description |
|---|---|
SingleGuessRegression |
clone() |
double |
getGuess()
Get the user's guess
|
int |
getNFittingParameters()
Number of fitting parameters in a model.
|
protected java.lang.String |
printModel_protected()
Internal method that handles printing the model as a string.
|
java.util.List<java.lang.String> |
printModelDescriptionDetails(boolean htmlFormat)
Print details of the model.
|
java.lang.String |
printUsage()
Print out required format for options.
|
void |
run_protected(Dataset E)
Run a model without checking if stuff is trained (use carefully)
|
void |
setGuess(double x)
Sets the user's guess
|
void |
setOptions(java.util.List OptionsObj)
Set any options for this object.
|
void |
train_protected(Dataset E)
Train a model without evaluating performance
|
doRobustRegression, getRobustRegressionQ, robustTraining, runCommand, setRobustRegressionQabout, crossValidate, crossValidate, crossValidate, done, externallyValidate, getAttributeSelector, getCitations, getFilter, getTrainTime, getValidationMethod, handleSetCommand, isTrained, isValidated, loadState, printCommand, printDescription, printModel, resetModel, run, saveCommand, saveState, setAttributeSelector, setComponent, setFilter, train, trainprotected double Guess
protected double Jitter
public void setOptions(java.util.List OptionsObj)
throws java.lang.Exception
OptionsOptionsObj - Array of options as Objects - can be nulljava.lang.Exception - if problem with inputspublic java.lang.String printUsage()
Optionspublic void setGuess(double x)
x - Desired guesspublic double getGuess()
public SingleGuessRegression clone()
clone in class BaseRegressionpublic void train_protected(Dataset E)
BaseModeltrain_protected in class BaseModelE - Training datapublic void run_protected(Dataset E)
BaseModelrun_protected in class BaseModelE - Training datapublic int getNFittingParameters()
AbstractRegressionModelprotected java.lang.String printModel_protected()
BaseModelprintModel_protected in class BaseModelpublic java.util.List<java.lang.String> printModelDescriptionDetails(boolean htmlFormat)
BaseModelBaseModel.printDescription(boolean).
Implementation note: No not add indentation for details. That is handled
by BaseModel.printDescription(boolean). You should also call the super
operation to get the Normalizer and Attribute selector settings
printModelDescriptionDetails in class BaseModelhtmlFormat - Whether to use HTML format