public static class EasyPredictModelWrapper.Config
extends java.lang.Object
| Constructor and Description |
|---|
Config() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getConvertInvalidNumbersToNa() |
boolean |
getConvertUnknownCategoricalLevelsToNa() |
GenModel |
getModel() |
boolean |
getUseExtendedOutput() |
EasyPredictModelWrapper.Config |
setConvertInvalidNumbersToNa(boolean value)
Specify the default action when a string value cannot be converted to
a number.
|
EasyPredictModelWrapper.Config |
setConvertUnknownCategoricalLevelsToNa(boolean value)
Specify how to handle unknown categorical levels.
|
EasyPredictModelWrapper.Config |
setModel(GenModel value)
Specify model object to wrap.
|
EasyPredictModelWrapper.Config |
setUseExtendedOutput(boolean value)
Specify whether to include additional metadata in the prediction output.
|
public EasyPredictModelWrapper.Config setModel(GenModel value)
value - modelpublic GenModel getModel()
public EasyPredictModelWrapper.Config setConvertUnknownCategoricalLevelsToNa(boolean value)
value - false: throw exception; true: convert to N/Apublic boolean getConvertUnknownCategoricalLevelsToNa()
public EasyPredictModelWrapper.Config setConvertInvalidNumbersToNa(boolean value)
value - if true, then an N/A value will be produced, if false an
exception will be thrown.public boolean getConvertInvalidNumbersToNa()
public EasyPredictModelWrapper.Config setUseExtendedOutput(boolean value)
value - if true, then the Prediction result will contain extended information
about the prediction (this will be specific to a particular model).public boolean getUseExtendedOutput()