def median_absolute_error(y_true, y_pred):
 (y_type, y_true, y_pred, _) = _check_reg_targets(y_true, y_pred, 'uniform_average')
 if (y_type == 'continuous-multioutput'):
  raise ValueError('Multioutput not supported in median_absolute_error')
 return np.median(np.abs((y_pred - y_true)))

def median_absolute_error ( y_true , y_pred ) : ( y_type , y_true , y_pred , _ ) = _check_reg_targets ( y_true , y_pred , 'uniform_average' ) if ( y_type == 'continuous-multioutput' ) : raise ValueError ( 'Multioutput not supported in median_absolute_error' ) return np . median ( np . abs ( ( y_pred - y_true ) ) )
median absolute error regression loss read more in the :ref:user guide <median_absolute_error> .