geoprior.models.subsidence.plot#

Plotting helpers for subsidence training and diagnostics.

Functions

autoplot_geoprior_history(history, *, outdir)

gather_coords_flat(dataset, *[, coord_key, ...])

Collect flat (t, x, y) arrays from a tf.data dataset.

plot_epsilons_in(history, *[, title, ...])

plot_history_in(history[, metrics, layout, ...])

Plot Keras history (train + val) robustly.

plot_physics_losses_in(history, *[, title, ...])

plot_physics_values_in(payload, *[, keys, ...])

Plot physics arrays (residuals/fields) from a payload dict.

geoprior.models.subsidence.plot.plot_history_in(history, metrics=None, layout='subplots', title='Model Training History', figsize=None, style='default', savefig=None, max_cols='auto', show_grid=True, grid_props=None, yscale_settings=None, log_fn=None, **plot_kwargs)[source]#

Plot Keras history (train + val) robustly.

Parameters:
Return type:

None

geoprior.models.subsidence.plot.gather_coords_flat(dataset, *, coord_key='coords', log_fn=None, max_batches=None)[source]#

Collect flat (t, x, y) arrays from a tf.data dataset.

geoprior.models.subsidence.plot.plot_physics_values_in(payload, *, keys=None, dataset=None, coords=None, mode='map', title='Physics diagnostics', n_cols=2, figsize=None, savefig=None, show=True, clip_q=(0.01, 0.99), transform=None, bins=80, s=8, log_fn=None, **scatter_kwargs)[source]#

Plot physics arrays (residuals/fields) from a payload dict.

geoprior.models.subsidence.plot.plot_epsilons_in(history, *, title='Epsilons', savefig=None, style='default', log_fn=None)[source]#
Parameters:
  • history (History | dict)

  • title (str)

  • savefig (str | None)

  • style (str)

  • log_fn (Callable[[...], None] | None)

Return type:

None

geoprior.models.subsidence.plot.plot_physics_losses_in(history, *, title='Physics Loss Terms', savefig=None, style='default', log_fn=None)[source]#
Parameters:
  • history (History | dict)

  • title (str)

  • savefig (str | None)

  • style (str)

  • log_fn (Callable[[...], None] | None)

Return type:

None

geoprior.models.subsidence.plot.autoplot_geoprior_history(history, *, outdir, prefix='geoprior', style='default', log_fn=None)[source]#
Parameters:
Return type:

None