public static class EasyPredictModelWrapper.Config
extends java.lang.Object
Constructor and Description |
---|
EasyPredictModelWrapper.Config() |
Modifier and Type | Method and Description |
---|---|
boolean |
getConvertInvalidNumbersToNa() |
boolean |
getConvertUnknownCategoricalLevelsToNa() |
GenModel |
getModel() |
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.
|
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()