public class Classification<K,V extends java.lang.Number> extends AbstractComputable implements HasPrediction
MiningFunction.CLASSIFICATION,
MiningFunction.CLUSTERING| Modifier and Type | Class and Description |
|---|---|
static class |
Classification.Type |
| Modifier | Constructor and Description |
|---|---|
protected |
Classification(Classification.Type type,
ValueMap<K,V> values) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
computeResult(org.dmg.pmml.DataType dataType) |
protected static <K,V extends java.lang.Number> |
createOrdering(Classification.Type type) |
static <K,V> java.util.List<K> |
entryKeys(java.util.List<java.util.Map.Entry<K,V>> entries) |
protected java.util.Set<java.util.Map.Entry<K,Value<V>>> |
entrySet() |
static <K,V> java.util.List<V> |
entryValues(java.util.List<java.util.Map.Entry<K,V>> entries) |
java.lang.Object |
getPrediction() |
Report |
getPredictionReport() |
java.lang.Object |
getResult() |
Classification.Type |
getType() |
java.lang.Double |
getValue(K key) |
Report |
getValueReport(K key) |
ValueMap<K,V> |
getValues() |
protected java.util.Map.Entry<K,Value<V>> |
getWinner() |
static <K,V extends java.lang.Number> |
getWinner(Classification.Type type,
java.util.Collection<java.util.Map.Entry<K,Value<V>>> entries) |
protected java.util.List<K> |
getWinnerKeys() |
static <K,V extends java.lang.Number> |
getWinnerList(Classification.Type type,
java.util.Collection<java.util.Map.Entry<K,Value<V>>> entries) |
protected java.util.List<java.util.Map.Entry<K,Value<V>>> |
getWinnerRanking() |
protected java.util.List<java.lang.Double> |
getWinnerValues() |
protected java.util.Set<K> |
keySet() |
void |
put(K key,
Value<V> value) |
protected void |
setResult(java.lang.Object result) |
protected org.jpmml.model.ToStringHelper |
toStringHelper() |
toStringprotected Classification(Classification.Type type, ValueMap<K,V> values)
public java.lang.Object getResult()
getResult in interface Computableprotected void setResult(java.lang.Object result)
protected void computeResult(org.dmg.pmml.DataType dataType)
public java.lang.Object getPrediction()
getPrediction in interface HasPredictionpublic Report getPredictionReport()
getPredictionReport in interface HasPredictionprotected org.jpmml.model.ToStringHelper toStringHelper()
toStringHelper in class AbstractComputablepublic java.lang.Double getValue(K key)
protected java.util.List<K> getWinnerKeys()
protected java.util.List<java.lang.Double> getWinnerValues()
protected java.util.Set<K> keySet()
public Classification.Type getType()
public static <K,V extends java.lang.Number> java.util.Map.Entry<K,Value<V>> getWinner(Classification.Type type, java.util.Collection<java.util.Map.Entry<K,Value<V>>> entries)
public static <K,V extends java.lang.Number> java.util.List<java.util.Map.Entry<K,Value<V>>> getWinnerList(Classification.Type type, java.util.Collection<java.util.Map.Entry<K,Value<V>>> entries)
protected static <K,V extends java.lang.Number> com.google.common.collect.Ordering<java.util.Map.Entry<K,Value<V>>> createOrdering(Classification.Type type)
public static <K,V> java.util.List<K> entryKeys(java.util.List<java.util.Map.Entry<K,V>> entries)
public static <K,V> java.util.List<V> entryValues(java.util.List<java.util.Map.Entry<K,V>> entries)
Copyright © 2024. All Rights Reserved.