Enum MULTIPLE_MODEL_METHOD
- java.lang.Object
-
- java.lang.Enum<MULTIPLE_MODEL_METHOD>
-
- org.kie.pmml.models.mining.model.enums.MULTIPLE_MODEL_METHOD
-
- All Implemented Interfaces:
Serializable,Comparable<MULTIPLE_MODEL_METHOD>
public enum MULTIPLE_MODEL_METHOD extends Enum<MULTIPLE_MODEL_METHOD>
- See Also:
- MULTIPLE-MODEL-METHOD
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AVERAGEMAJORITY_VOTEMAXMEDIANMODEL_CHAINSELECT_ALLSELECT_FIRSTSUMWEIGHTED_AVERAGEWEIGHTED_MAJORITY_VOTEWEIGHTED_MEDIANWEIGHTED_SUM
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectapplyClassification(LinkedHashMap<String,org.kie.pmml.commons.model.tuples.KiePMMLNameValue> inputData)Return the classification of the input data The key of the map is the name of the (inner) model, the value is the result of the model evaluationObjectapplyPrediction(LinkedHashMap<String,org.kie.pmml.commons.model.tuples.KiePMMLNameValue> inputData)Return the prediction of the input data The key of the map is the name of the (inner) model, the value is the result of the model evaluationLinkedHashMap<String,Double>applyProbability(LinkedHashMap<String,List<org.kie.pmml.commons.model.tuples.KiePMMLNameValue>> inputData)Return the probabilities of the input data The key of the map is the name of the (inner) model, the value are the probabilities of the model evaluationstatic MULTIPLE_MODEL_METHODbyName(String name)StringgetName()static MULTIPLE_MODEL_METHODvalueOf(String name)Returns the enum constant of this type with the specified name.static MULTIPLE_MODEL_METHOD[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MAJORITY_VOTE
public static final MULTIPLE_MODEL_METHOD MAJORITY_VOTE
-
WEIGHTED_MAJORITY_VOTE
public static final MULTIPLE_MODEL_METHOD WEIGHTED_MAJORITY_VOTE
-
AVERAGE
public static final MULTIPLE_MODEL_METHOD AVERAGE
-
WEIGHTED_AVERAGE
public static final MULTIPLE_MODEL_METHOD WEIGHTED_AVERAGE
-
MEDIAN
public static final MULTIPLE_MODEL_METHOD MEDIAN
-
WEIGHTED_MEDIAN
public static final MULTIPLE_MODEL_METHOD WEIGHTED_MEDIAN
-
MAX
public static final MULTIPLE_MODEL_METHOD MAX
-
SUM
public static final MULTIPLE_MODEL_METHOD SUM
-
WEIGHTED_SUM
public static final MULTIPLE_MODEL_METHOD WEIGHTED_SUM
-
SELECT_FIRST
public static final MULTIPLE_MODEL_METHOD SELECT_FIRST
-
SELECT_ALL
public static final MULTIPLE_MODEL_METHOD SELECT_ALL
-
MODEL_CHAIN
public static final MULTIPLE_MODEL_METHOD MODEL_CHAIN
-
-
Method Detail
-
values
public static MULTIPLE_MODEL_METHOD[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MULTIPLE_MODEL_METHOD c : MULTIPLE_MODEL_METHOD.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MULTIPLE_MODEL_METHOD valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
byName
public static MULTIPLE_MODEL_METHOD byName(String name)
-
getName
public String getName()
-
applyPrediction
public Object applyPrediction(LinkedHashMap<String,org.kie.pmml.commons.model.tuples.KiePMMLNameValue> inputData)
Return the prediction of the input data The key of the map is the name of the (inner) model, the value is the result of the model evaluation- Parameters:
inputData-- Returns:
- Throws:
org.kie.pmml.api.exceptions.KieEnumException
-
applyClassification
public Object applyClassification(LinkedHashMap<String,org.kie.pmml.commons.model.tuples.KiePMMLNameValue> inputData)
Return the classification of the input data The key of the map is the name of the (inner) model, the value is the result of the model evaluation- Parameters:
inputData-- Returns:
- Throws:
org.kie.pmml.api.exceptions.KieEnumException
-
applyProbability
public LinkedHashMap<String,Double> applyProbability(LinkedHashMap<String,List<org.kie.pmml.commons.model.tuples.KiePMMLNameValue>> inputData)
Return the probabilities of the input data The key of the map is the name of the (inner) model, the value are the probabilities of the model evaluation- Parameters:
inputData-- Returns:
- Throws:
org.kie.pmml.api.exceptions.KieEnumException
-
-