NBeatsMAPE

class NBeatsMAPE[source]

Bases: torch.nn.modules.module.Module

MAPE with mask.

Initializes internal Module state, shared by both nn.Module and ScriptModule.

Methods

forward(y_true, y_pred, mask)

Compute metric.

Attributes

forward(y_true: torch.Tensor, y_pred: torch.Tensor, mask: torch.Tensor) torch.Tensor[source]

Compute metric.

Parameters
Returns

Metric value.

Return type

torch.Tensor