public static class EasyPredictModelWrapper.Config
extends java.lang.Object
| Constructor and Description |
|---|
Config() |
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()
public EasyPredictModelWrapper.ErrorConsumer getErrorConsumer()
EasyPredictModelWrapper. Null if there is no instance.public EasyPredictModelWrapper.Config setErrorConsumer(EasyPredictModelWrapper.ErrorConsumer errorConsumer)
EasyPredictModelWrapper.ErrorConsumer the EasyPredictModelWrapper is going to call
whenever an error defined by the EasyPredictModelWrapper.ErrorConsumer instance occurs.errorConsumer - An instance of EasyPredictModelWrapper.ErrorConsumerEasyPredictModelWrapper.Config object