public final class VoidErrorConsumer extends EasyPredictModelWrapper.ErrorConsumer
EasyPredictModelWrapper.ErrorConsumer
.
It's purpose is to avoid forcing developers do to null checks in code before each and every call.Constructor and Description |
---|
VoidErrorConsumer() |
Modifier and Type | Method and Description |
---|---|
void |
dataTransformError(java.lang.String columnName,
java.lang.Object value,
java.lang.String message)
Observe transformation error for data from the predicted dataset.
|
void |
unseenCategorical(java.lang.String columnName,
java.lang.Object value,
java.lang.String message)
Previously unseen categorical level has been detected
|
public final void dataTransformError(java.lang.String columnName, java.lang.Object value, java.lang.String message)
EasyPredictModelWrapper.ErrorConsumer
dataTransformError
in class EasyPredictModelWrapper.ErrorConsumer
columnName
- Name of the column for which the error is raisedvalue
- Original value that could not be transformed properlymessage
- Transformation error messagepublic final void unseenCategorical(java.lang.String columnName, java.lang.Object value, java.lang.String message)
EasyPredictModelWrapper.ErrorConsumer
unseenCategorical
in class EasyPredictModelWrapper.ErrorConsumer
columnName
- Name of the column to which the categorical value belongsvalue
- Original valuemessage
- Reason and/or actions taken