Class Precision
java.lang.Object
smile.deep.metric.Precision
- All Implemented Interfaces:
Metric
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecompute()Computes the metric value from the metric state, which are updated by previous update() calls.name()Returns the name of metric.voidreset()Resets the metric state variables to their default value.toString()voidUpdates the metric states with input data.
-
Constructor Details
-
Precision
public Precision()Constructor. -
Precision
public Precision(double threshold) Constructor.- Parameters:
threshold- The threshold for converting input into binary labels.
-
Precision
Constructor.- Parameters:
strategy- The aggregating strategy for multi-classes.
-
-
Method Details
-
toString
-
name
-
update
Description copied from interface:MetricUpdates the metric states with input data. This is often used when new data needs to be added for metric computation. -
compute
-
reset
-