atomistics.workflows.evcurve.fit.get_error#
- atomistics.workflows.evcurve.fit.get_error(x_lst: ndarray, y_lst: ndarray, p_fit) float[source]#
Calculate the mean squared error between the observed and predicted values.
- Parameters:
x_lst (np.ndarray) – Array of x values
y_lst (np.ndarray) – Array of observed y values
p_fit (np.poly1d) – Polynomial fit function
- Returns:
Mean squared error
- Return type:
float