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, setRobustRegressionQ
about, 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, train
protected double Guess
protected double Jitter
public void setOptions(java.util.List OptionsObj) throws java.lang.Exception
Options
OptionsObj
- Array of options as Objects - can be null
java.lang.Exception
- if problem with inputspublic java.lang.String printUsage()
Options
public void setGuess(double x)
x
- Desired guesspublic double getGuess()
public SingleGuessRegression clone()
clone
in class BaseRegression
public void train_protected(Dataset E)
BaseModel
train_protected
in class BaseModel
E
- Training datapublic void run_protected(Dataset E)
BaseModel
run_protected
in class BaseModel
E
- Training datapublic int getNFittingParameters()
AbstractRegressionModel
protected java.lang.String printModel_protected()
BaseModel
printModel_protected
in class BaseModel
public java.util.List<java.lang.String> printModelDescriptionDetails(boolean htmlFormat)
BaseModel
BaseModel.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 BaseModel
htmlFormat
- Whether to use HTML format