Class AbstractKiePMMLTable
- java.lang.Object
-
- org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent
-
- org.kie.pmml.models.regression.model.AbstractKiePMMLTable
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
KiePMMLClassificationTable,KiePMMLRegressionTable
public abstract class AbstractKiePMMLTable extends org.kie.pmml.commons.model.abstracts.AbstractKiePMMLComponent- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractKiePMMLTable.Builder<T extends AbstractKiePMMLTable>
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,org.kie.pmml.api.iinterfaces.SerializableFunction<String,Double>>categoricalFunctionMapprotected doubleinterceptprotected Map<String,org.kie.pmml.api.iinterfaces.SerializableFunction<Double,Double>>numericFunctionMapprotected Map<String,org.kie.pmml.api.iinterfaces.SerializableFunction<Map<String,Object>,Double>>predictorTermsFunctionMapprotected org.kie.pmml.api.iinterfaces.SerializableFunction<Double,Double>resultUpdaterprotected ObjecttargetCategoryprotected StringtargetField
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractKiePMMLTable(String name, List<org.kie.pmml.commons.model.KiePMMLExtension> extensions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static doubleevaluateCategoricalPredictor(Object input, Map<String,Double> valuesMap)static doubleevaluateNumericWithExponent(double input, double coefficient, double exponent)static doubleevaluateNumericWithoutExponent(double input, double coefficient)ObjectevaluateRegression(Map<String,Object> input, org.kie.pmml.api.runtime.PMMLContext context)Map<String,org.kie.pmml.api.iinterfaces.SerializableFunction<String,Double>>getCategoricalFunctionMap()doublegetIntercept()Map<String,org.kie.pmml.api.iinterfaces.SerializableFunction<Double,Double>>getNumericFunctionMap()Map<String,org.kie.pmml.api.iinterfaces.SerializableFunction<Map<String,Object>,Double>>getPredictorTermsFunctionMap()ObjectgetTargetCategory()StringgetTargetField()static doubleupdateCAUCHITResult(Double y)static doubleupdateCLOGLOGResult(Double y)static doubleupdateEXPResult(Double y)static doubleupdateLOGITResult(Double y)static doubleupdateNONEResult(Double y)static doubleupdatePROBITResult(Double y)static doubleupdateSOFTMAXResult(Double y)
-
-
-
Field Detail
-
numericFunctionMap
protected Map<String,org.kie.pmml.api.iinterfaces.SerializableFunction<Double,Double>> numericFunctionMap
-
categoricalFunctionMap
protected Map<String,org.kie.pmml.api.iinterfaces.SerializableFunction<String,Double>> categoricalFunctionMap
-
predictorTermsFunctionMap
protected Map<String,org.kie.pmml.api.iinterfaces.SerializableFunction<Map<String,Object>,Double>> predictorTermsFunctionMap
-
resultUpdater
protected org.kie.pmml.api.iinterfaces.SerializableFunction<Double,Double> resultUpdater
-
intercept
protected double intercept
-
targetField
protected String targetField
-
targetCategory
protected Object targetCategory
-
-
Method Detail
-
getTargetCategory
public Object getTargetCategory()
-
evaluateRegression
public Object evaluateRegression(Map<String,Object> input, org.kie.pmml.api.runtime.PMMLContext context)
-
getTargetField
public String getTargetField()
-
getNumericFunctionMap
public Map<String,org.kie.pmml.api.iinterfaces.SerializableFunction<Double,Double>> getNumericFunctionMap()
-
getCategoricalFunctionMap
public Map<String,org.kie.pmml.api.iinterfaces.SerializableFunction<String,Double>> getCategoricalFunctionMap()
-
getPredictorTermsFunctionMap
public Map<String,org.kie.pmml.api.iinterfaces.SerializableFunction<Map<String,Object>,Double>> getPredictorTermsFunctionMap()
-
getIntercept
public double getIntercept()
-
evaluateNumericWithExponent
public static double evaluateNumericWithExponent(double input, double coefficient, double exponent)
-
evaluateNumericWithoutExponent
public static double evaluateNumericWithoutExponent(double input, double coefficient)
-
evaluateCategoricalPredictor
public static double evaluateCategoricalPredictor(Object input, Map<String,Double> valuesMap)
-
updateSOFTMAXResult
public static double updateSOFTMAXResult(Double y)
-
updateLOGITResult
public static double updateLOGITResult(Double y)
-
updateEXPResult
public static double updateEXPResult(Double y)
-
updatePROBITResult
public static double updatePROBITResult(Double y)
-
updateCLOGLOGResult
public static double updateCLOGLOGResult(Double y)
-
updateCAUCHITResult
public static double updateCAUCHITResult(Double y)
-
updateNONEResult
public static double updateNONEResult(Double y)
-
-