Package org.jpmml.evaluator
Class Classification<K,V extends Number>
- java.lang.Object
-
- org.jpmml.evaluator.AbstractComputable
-
- org.jpmml.evaluator.Classification<K,V>
-
- All Implemented Interfaces:
Computable,HasPrediction,ResultFeature
- Direct Known Subclasses:
AffinityDistribution,AggregateVoteDistribution,ConfidenceDistribution,DistanceDistribution,EntityClassification,NodeScoreDistribution,ProbabilityDistribution,VoteDistribution
public class Classification<K,V extends Number> extends AbstractComputable implements HasPrediction
- See Also:
MiningFunction.CLASSIFICATION,MiningFunction.CLUSTERING
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClassification.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <K,V>
List<K>entryKeys(List<Map.Entry<K,V>> entries)static <K,V>
List<V>entryValues(List<Map.Entry<K,V>> entries)ObjectgetPrediction()ReportgetPredictionReport()ObjectgetResult()Classification.TypegetType()DoublegetValue(K key)ReportgetValueReport(K key)ValueMap<K,V>getValues()static <K,V extends Number>
Map.Entry<K,Value<V>>getWinner(Classification.Type type, Collection<Map.Entry<K,Value<V>>> entries)static <K,V extends Number>
List<Map.Entry<K,Value<V>>>getWinnerList(Classification.Type type, Collection<Map.Entry<K,Value<V>>> entries)voidput(K key, Value<V> value)-
Methods inherited from class org.jpmml.evaluator.AbstractComputable
toString
-
-
-
-
Method Detail
-
getResult
public Object getResult()
- Specified by:
getResultin interfaceComputable
-
getPrediction
public Object getPrediction()
- Specified by:
getPredictionin interfaceHasPrediction
-
getPredictionReport
public Report getPredictionReport()
- Specified by:
getPredictionReportin interfaceHasPrediction
-
getType
public Classification.Type getType()
-
getWinner
public static <K,V extends Number> Map.Entry<K,Value<V>> getWinner(Classification.Type type, Collection<Map.Entry<K,Value<V>>> entries)
-
getWinnerList
public static <K,V extends Number> List<Map.Entry<K,Value<V>>> getWinnerList(Classification.Type type, Collection<Map.Entry<K,Value<V>>> entries)
-
-