invert4geom.Inversion.gravity_score

invert4geom.Inversion.gravity_score#

Inversion.gravity_score(results_fname=None, rmse_as_median=False, plot=False)[source]#

Find the score, represented by the root mean (or median) squared error (RMSE), between the testing gravity data, and the predict gravity data after an inversion. Follows methods of Uieda and Barbosa[1]. Used in optimize_inversion_damping.

Parameters:
  • rmse_as_median (bool) – calculate the RMSE as the median as opposed to the mean, by default False

  • plot (bool) – choose to plot the observed and predicted data grids, and their difference, located at the testing points, by default False

Returns:

inv_copy – a copy of the Inversion object after running the inversion on the training

Return type:

Inversion

References

Uieda and Barbosa[1]

Parameters:

results_fname (str | None)