Class BinaryAccuracy
Positive and negative predictive values. In addition to sensitivity and specificity, the performance of a binary classification test can be measured with positive predictive value (PPV), also known as precision, and negative predictive value (NPV)
Inherited Members
Namespace: SiaNet.Metrics
Assembly: SiaNet.dll
Syntax
public class BinaryAccuracy : BaseMetric
Constructors
| Improve this Doc View SourceBinaryAccuracy()
Initializes a new instance of the BinaryAccuracy class.
Declaration
public BinaryAccuracy()
Methods
| Improve this Doc View SourceCalc(Tensor, Tensor)
Calculates the metric with predicted and true values.
Declaration
public override Tensor Calc(Tensor preds, Tensor labels)
Parameters
Type | Name | Description |
---|---|---|
Tensor | preds | The predicted value. |
Tensor | labels | The true value. |
Returns
Type | Description |
---|---|
Tensor |