ggt.metrics.elementwise_mae =========================== .. py:module:: ggt.metrics.elementwise_mae Classes ------- .. autoapisummary:: ggt.metrics.elementwise_mae.ElementwiseMae Module Contents --------------- .. py:class:: ElementwiseMae(output_transform: Callable = lambda x: x, device: Union[str, torch.device] = torch.device('cpu'), skip_unrolling: bool = False) Bases: :py:obj:`ignite.metrics.Metric` Calculates the element-wise mean absolute error. .. py:method:: reset() -> None Resets the metric to its initial state. By default, this is called at the start of each epoch. .. py:method:: update(output: Sequence[torch.Tensor]) -> None Updates the metric's state using the passed batch output. By default, this is called once for each batch. Args: output: the is the output from the engine's process function. .. py:method:: compute() -> Union[float, torch.Tensor] Computes the metric based on its accumulated state. By default, this is called at the end of each epoch. Returns: Any: | the actual quantity of interest. However, if a :class:`~collections.abc.Mapping` is returned, it will be (shallow) flattened into `engine.state.metrics` when :func:`~ignite.metrics.metric.Metric.completed` is called. Raises: NotComputableError: raised when the metric cannot be computed.