Package me.yixqiao.jlearn.metrics
Class Accuracy
- java.lang.Object
-
- me.yixqiao.jlearn.metrics.Metric
-
- me.yixqiao.jlearn.metrics.Accuracy
-
- All Implemented Interfaces:
java.io.Serializable
public class Accuracy extends Metric
Accuracy metric.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFormatString()
Get the string to format the metric.double
getMetric(java.util.ArrayList<Matrix> output, java.util.ArrayList<Matrix> expected)
Get the value of the metric.
-
-
-
Method Detail
-
getMetric
public double getMetric(java.util.ArrayList<Matrix> output, java.util.ArrayList<Matrix> expected)
Description copied from class:Metric
Get the value of the metric.
-
getFormatString
public java.lang.String getFormatString()
Description copied from class:Metric
Get the string to format the metric.Return a string that can be used with printf in conjunction with the metric.
Example:"M: %.2f"
- Specified by:
getFormatString
in classMetric
- Returns:
- the string
-
-