Show / Hide Table of Contents

Class Accuracy

Accuracy is suggested to use to measure how accurate is the overall performance of a model is, considering both positive and negative classes without worrying about the imbalance of a data set

Inheritance
System.Object
BaseMetric
Accuracy
Inherited Members
BaseMetric.Name
Namespace: SiaNet.Metrics
Assembly: SiaNet.dll
Syntax
public class Accuracy : BaseMetric

Constructors

| Improve this Doc View Source

Accuracy()

Initializes a new instance of the Accuracy class.

Declaration
public Accuracy()

Methods

| Improve this Doc View Source

Calc(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
Overrides
BaseMetric.Calc(Tensor, Tensor)

See Also

BaseMetric
  • Improve this Doc
  • View Source
Back to top Generated by DocFX