public class RowToRawDataConverter
extends java.lang.Object
| Constructor and Description |
|---|
RowToRawDataConverter(GenModel m,
java.util.HashMap<java.lang.String,java.lang.Integer> modelColumnNameToIndexMap,
java.util.HashMap<java.lang.Integer,java.util.HashMap<java.lang.String,java.lang.Integer>> domainMap,
EasyPredictModelWrapper.ErrorConsumer errorConsumer,
boolean convertUnknownCategoricalLevelsToNa,
boolean convertInvalidNumbersToNa) |
| Modifier and Type | Method and Description |
|---|---|
double[] |
convert(RowData data,
double[] rawData) |
public final GenModel _m
public RowToRawDataConverter(GenModel m, java.util.HashMap<java.lang.String,java.lang.Integer> modelColumnNameToIndexMap, java.util.HashMap<java.lang.Integer,java.util.HashMap<java.lang.String,java.lang.Integer>> domainMap, EasyPredictModelWrapper.ErrorConsumer errorConsumer, boolean convertUnknownCategoricalLevelsToNa, boolean convertInvalidNumbersToNa)
public double[] convert(RowData data, double[] rawData) throws PredictException
data - instance of RowData we want to get prediction forrawData - array that will be filled up from RowData instance and returnedPredictException - Note: name of the exception feels like out of scope of the class with name `RowToRawDataConverter`
but this conversion is only needed to make it possible to produce predictions so it makes sense