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
Inherited Members
Namespace: SiaNet.Metrics
Assembly: SiaNet.dll
Syntax
public class Accuracy : BaseMetric
Constructors
| Improve this Doc View SourceAccuracy()
Initializes a new instance of the Accuracy class.
Declaration
public Accuracy()
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 |