chainer_chemistry.functions.mean_absolute_error¶
-
chainer_chemistry.functions.
mean_absolute_error
(x0, x1, ignore_nan=False)[source]¶ Mean absolute error function.
This function computes mean absolute error between two variables. The mean is taken over the minibatch.
Parameters: - x0 (
Variable
ornumpy.ndarray
orcupy.ndarray
) – Input variable. - x1 (
Variable
ornumpy.ndarray
orcupy.ndarray
) – Input variable. - ignore_nan (bool) – If True, this function compute mean absolute error ignoring NaNs. The arithmetic mean is the sum of the non-NaN elements along the axis divided by the number of whole elements.
Returns: A variable holding an array representing the mean absolute error of two inputs.
Return type: Variable
- x0 (