invert4geom.Inversion.constraints_score

invert4geom.Inversion.constraints_score#

Inversion.constraints_score(constraints_df, results_fname=None, rmse_as_median=False)[source]#

Find the score, represented by the root mean squared error (RMSE), between the constraint point elevation, and the inverted topography at the constraint points. Follows methods of Uieda and Barbosa[1]. Used in optimize_inversion_zref_density_contrast.

Parameters:
  • constraints_df (DataFrame) – a dataframe with columns “easting”, “northing”, and “upward” for coordinates and elevation of the constraint points.

  • results_fname (str | None) – file name to save results to as pickle file, by default fname is None

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

Returns:

inv_copy – a copy of the Inversion object after running the inversion on the training data and sampling the inverted topography at the constraint points

Return type:

Inversion

References