Class MAPE
The mean absolute percentage error (MAPE), also known as mean absolute percentage deviation (MAPD), is a measure of prediction accuracy of a forecasting method in statistics, for example in trend estimation, also used as a Loss function for regression problems in Machine Learning.
Inherited Members
Namespace: SiaNet.Metrics
Assembly: SiaNet.dll
Syntax
public class MAPE : BaseMetric
Constructors
| Improve this Doc View SourceMAPE()
Initializes a new instance of the MAPE class.
Declaration
public MAPE()
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 |