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 EasyPredictModelWrapper.Config setEnableLeafAssignment(boolean val) throws java.io.IOException
java.io.IOException
public EasyPredictModelWrapper.Config setEnableGLRMReconstrut(boolean value) throws java.io.IOException
java.io.IOException
public EasyPredictModelWrapper.Config setGLRMIterNumber(int value) throws java.io.IOException
java.io.IOException
public EasyPredictModelWrapper.Config setEnableStagedProbabilities(boolean val) throws java.io.IOException
java.io.IOException
public boolean getEnableGLRMReconstrut()
public EasyPredictModelWrapper.Config setEnableContributions(boolean val) throws java.io.IOException
java.io.IOException
public boolean getEnableContributions()
public EasyPredictModelWrapper.Config setUseExternalEncoding(boolean val)
val
- if true, user needs to provide already encoded input in the RowData structurepublic boolean getUseExternalEncoding()
public boolean getConvertUnknownCategoricalLevelsToNa()
public int getGLRMIterNumber()
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 boolean getEnableLeafAssignment()
public boolean getEnableStagedProbabilities()
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.ErrorConsumer
EasyPredictModelWrapper.Config
object