public class GamRowToRawDataConverter extends RowToRawDataConverter
| Constructor and Description |
|---|
GamRowToRawDataConverter(GenModel m,
java.util.Map<java.lang.String,java.lang.Integer> modelColumnNameToIndexMap,
java.util.Map<java.lang.Integer,CategoricalEncoder> domainMap,
EasyPredictModelWrapper.ErrorConsumer errorConsumer,
EasyPredictModelWrapper.Config config) |
| Modifier and Type | Method and Description |
|---|---|
double[] |
convert(RowData data,
double[] rawData) |
convertValuepublic GamRowToRawDataConverter(GenModel m, java.util.Map<java.lang.String,java.lang.Integer> modelColumnNameToIndexMap, java.util.Map<java.lang.Integer,CategoricalEncoder> domainMap, EasyPredictModelWrapper.ErrorConsumer errorConsumer, EasyPredictModelWrapper.Config config)
public double[] convert(RowData data, double[] rawData) throws PredictException
convert in class RowToRawDataConverterdata - 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