geoprior.scripts.plot_transfer#

Plot cross-city transferability of GeoPriorSubsNet.

Uses xfer_results.csv produced by nat.com/xfer_matrix.py to show:

  • cross-city performance versus calibration mode, including overall MAE (mm) and overall R²

  • the 80% interval coverage-sharpness tradeoff by direction, with sharpness80 (mm) on the x-axis and coverage80 (fraction) on the y-axis

Panels summarise: - Nansha → Zhongshan (A_to_B) - Zhongshan → Nansha (B_to_A)

Example

python -m scripts.plot_transfer      --src results/xfer/nansha__zhongshan      --split val

Functions

figSx_xfer_transferability_main([argv, prog])

main([argv, prog])

parse_args([argv, prog])

render(df, *, split, strategies, ...[, ...])

Classes

TextFlags(show_legend, show_labels, ...)

class geoprior.scripts.plot_transfer.TextFlags(show_legend: 'bool', show_labels: 'bool', show_ticklabels: 'bool', show_title: 'bool', show_panel_titles: 'bool', title: 'str | None')[source]#

Bases: object

Parameters:
  • show_legend (bool)

  • show_labels (bool)

  • show_ticklabels (bool)

  • show_title (bool)

  • show_panel_titles (bool)

  • title (str | None)

show_legend: bool#
show_labels: bool#
show_ticklabels: bool#
show_title: bool#
show_panel_titles: bool#
title: str | None#
__init__(show_legend, show_labels, show_ticklabels, show_title, show_panel_titles, title)#
Parameters:
  • show_legend (bool)

  • show_labels (bool)

  • show_ticklabels (bool)

  • show_title (bool)

  • show_panel_titles (bool)

  • title (str | None)

Return type:

None

geoprior.scripts.plot_transfer.render(df, *, split, strategies, calib_modes, rescale_mode, baseline_rescale, reduce, cov_target, out, text, metric_top='mae', metric_bottom='rmse')[source]#
Parameters:
Return type:

tuple[Path, Path]

geoprior.scripts.plot_transfer.parse_args(argv=None, *, prog=None)[source]#
Parameters:
Return type:

Any

geoprior.scripts.plot_transfer.figSx_xfer_transferability_main(argv=None, *, prog=None)[source]#
Parameters:
Return type:

None

geoprior.scripts.plot_transfer.main(argv=None, *, prog=None)[source]#
Parameters:
Return type:

None