based on the doc
The mean_absolute_error function computes mean absolute error, a risk metric corresponding to the expected value of the absolute error loss or L1-norm loss.
I understand the process for 2 "vectors"
>>> from sklearn.metrics import mean_absolute_error
>>> y_true = [3, -0.5, 2, 7]
>>> y_pred = [2.5, 0.0, 2, 8]
>>> mean_absolute_error(y_true, y_pred)
which is to add all the absolute difference between peer elements in each vector, and then divided by the length of the vector.
this code is exactly underlying processing of sklearn.mean_absolute_error for 2 "vectors"
res = 0
for t,p in zip(y_true, y_pred):
res = res + np.abs(t-p)
res/4
what I cannot understand is this processing
>>> mean_absolute_error(y_true, y_pred, multioutput=[0.3, 0.7])
0.85
Could someone please illustrate the underlying processing of multioutput=[0.3, 0.7] part?