mean_absolute_error#
- PySeismoSoil.helper_generic.mean_absolute_error(y_true: ndarray, y_pred: ndarray) float [source]#
Calculate the mean squared 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:
mse – Mean squared error.
- Return type:
float