Package org.apache.solr.client.solrj.io
Class ClassificationEvaluation
- java.lang.Object
-
- org.apache.solr.client.solrj.io.ClassificationEvaluation
-
public class ClassificationEvaluation extends Object
-
-
Constructor Summary
Constructors Constructor Description ClassificationEvaluation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEvaluation(Map<String,?> map)voidcount(int actual, int predicted)static ClassificationEvaluationcreate(Map<String,?> map)doublegetAccuracy()doublegetF1()doublegetPrecision()doublegetRecall()voidputToMap(Map<? super String,? super Long> map)Map<String,Long>toMap()
-
-
-
Method Detail
-
count
public void count(int actual, int predicted)
-
create
public static ClassificationEvaluation create(Map<String,?> map)
-
getPrecision
public double getPrecision()
-
getRecall
public double getRecall()
-
getF1
public double getF1()
-
getAccuracy
public double getAccuracy()
-
-