Class KiePMMLRegressionClassificationTable
- java.lang.Object
-
- org.kie.pmml.models.regression.model.KiePMMLRegressionTable
-
- org.kie.pmml.models.regression.model.KiePMMLRegressionClassificationTable
-
- All Implemented Interfaces:
Serializable
public abstract class KiePMMLRegressionClassificationTable extends KiePMMLRegressionTable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,KiePMMLRegressionTable>categoryTableMapprotected org.kie.pmml.api.enums.OP_TYPEopTypeprotected LinkedHashMap<String,Double>probabilityResultMapprotected REGRESSION_NORMALIZATION_METHODregressionNormalizationMethod-
Fields inherited from class org.kie.pmml.models.regression.model.KiePMMLRegressionTable
categoricalFunctionMap, intercept, numericFunctionMap, outputFieldsMap, predictorTermsFunctionMap, targetField
-
-
Constructor Summary
Constructors Constructor Description KiePMMLRegressionClassificationTable()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ObjectevaluateRegression(Map<String,Object> input)Map<String,KiePMMLRegressionTable>getCategoryTableMap()org.kie.pmml.api.enums.OP_TYPEgetOpType()protected abstract LinkedHashMap<String,Double>getProbabilityMap(LinkedHashMap<String,Double> resultMap)protected LinkedHashMap<String,Double>getProbabilityMap(LinkedHashMap<String,Double> resultMap, DoubleUnaryOperator firstItemOperator, DoubleUnaryOperator secondItemOperator)LinkedHashMap<String,Double>getProbabilityResultMap()REGRESSION_NORMALIZATION_METHODgetRegressionNormalizationMethod()abstract booleanisBinary()A Classification is considered binary if it is of CATEGORICAL type and contains exactly two Regression tablesprotected voidupdateResult(AtomicReference<Double> toUpdate)-
Methods inherited from class org.kie.pmml.models.regression.model.KiePMMLRegressionTable
getCategoricalFunctionMap, getIntercept, getNumericFunctionMap, getOutputFieldsMap, getPredictorTermsFunctionMap, getTargetCategory, getTargetField
-
-
-
-
Field Detail
-
regressionNormalizationMethod
protected REGRESSION_NORMALIZATION_METHOD regressionNormalizationMethod
-
opType
protected org.kie.pmml.api.enums.OP_TYPE opType
-
categoryTableMap
protected Map<String,KiePMMLRegressionTable> categoryTableMap
-
probabilityResultMap
protected LinkedHashMap<String,Double> probabilityResultMap
-
-
Method Detail
-
evaluateRegression
public Object evaluateRegression(Map<String,Object> input)
- Overrides:
evaluateRegressionin classKiePMMLRegressionTable
-
isBinary
public abstract boolean isBinary()
A Classification is considered binary if it is of CATEGORICAL type and contains exactly two Regression tables- Returns:
-
getProbabilityMap
protected abstract LinkedHashMap<String,Double> getProbabilityMap(LinkedHashMap<String,Double> resultMap)
-
getProbabilityResultMap
public LinkedHashMap<String,Double> getProbabilityResultMap()
- Overrides:
getProbabilityResultMapin classKiePMMLRegressionTable
-
updateResult
protected void updateResult(AtomicReference<Double> toUpdate)
- Specified by:
updateResultin classKiePMMLRegressionTable
-
getRegressionNormalizationMethod
public REGRESSION_NORMALIZATION_METHOD getRegressionNormalizationMethod()
-
getOpType
public org.kie.pmml.api.enums.OP_TYPE getOpType()
-
getCategoryTableMap
public Map<String,KiePMMLRegressionTable> getCategoryTableMap()
-
getProbabilityMap
protected LinkedHashMap<String,Double> getProbabilityMap(LinkedHashMap<String,Double> resultMap, DoubleUnaryOperator firstItemOperator, DoubleUnaryOperator secondItemOperator)
-
-