mean_absolute_error#
- PySeismoSoil.helper_generic.mean_absolute_error(y_true: ndarray, y_pred: ndarray) float[source]#
Calculate the mean absolute error between ground truth and prediction.
- Parameters:
y_true (np.ndarray) – Ground truth. Needs to be 1D numpy array.
y_pred (np.ndarray) – Prediction. Needs to be 1D numpy array.
- Returns:
Mean absolute error.
- Return type:
float