geoprior.cli.build_external_validation_fullcity#
CLI for building full-city external validation artifacts.
Functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- geoprior.cli.build_external_validation_fullcity.resolve_stage1_artifact(stage1_manifest_path, recorded_path, explicit=None)[source]#
- geoprior.cli.build_external_validation_fullcity.resolve_stage1_inputs_paths(stage1_manifest_path, train_inputs, val_inputs, test_inputs, coord_scaler)[source]#
- geoprior.cli.build_external_validation_fullcity.resolve_run_dir(stage2_run_dir, stage2_manifest_path)[source]#
- geoprior.cli.build_external_validation_fullcity.resolve_stage2_bundle(model_path, stage2_manifest_path, stage2_run_dir, stage1_dir=None)[source]#
- geoprior.cli.build_external_validation_fullcity.load_inference_bundle(bundle, build_inputs)[source]#
- geoprior.cli.build_external_validation_fullcity.get_forecast_horizon(stage1_manifest, fallback_h)[source]#
- geoprior.cli.build_external_validation_fullcity.export_fullcity_payload(stage1_manifest, full_inputs_npz, bundle, out_payload, batch_size, metadata=None)[source]#
- geoprior.cli.build_external_validation_fullcity.build_pixel_table(inputs_npz, payload_npz, coord_scaler_path, horizon_reducer, site_reducer)[source]#
- geoprior.cli.build_external_validation_fullcity.nearest_match(pixels, sx, sy, allow_swapped_xy=True)[source]#
- geoprior.cli.build_external_validation_fullcity.validate_site_matches(site_df, max_distance_m, min_unique_pixels)[source]#
- geoprior.cli.build_external_validation_fullcity.compute_external_metrics(validation_csv, full_inputs_npz, full_payload_npz, coord_scaler_path, outdir, x_col, y_col, productivity_col, thickness_col, horizon_reducer, site_reducer, max_match_distance_m, min_unique_pixels, allow_swapped_xy)[source]#
- Parameters:
- Return type:
- geoprior.cli.build_external_validation_fullcity.build_external_validation_fullcity(*, stage1_manifest, validation_csv, outdir, train_inputs=None, val_inputs=None, test_inputs=None, coord_scaler=None, model_path=None, stage2_manifest=None, stage2_run_dir=None, full_inputs_npz=None, full_payload_npz=None, batch_size=256, x_col='x', y_col='y', productivity_col='step3_specific_capacity_Lps_per_m', thickness_col='approx_compressible_thickness_m', horizon_reducer='mean', site_reducer='median', max_match_distance_m=50000.0, min_unique_pixels=3, allow_swapped_xy=True, skip_export=False)[source]#
- Parameters:
stage1_manifest (str)
validation_csv (str)
outdir (str)
train_inputs (str | None)
val_inputs (str | None)
test_inputs (str | None)
coord_scaler (str | None)
model_path (str | None)
stage2_manifest (str | None)
stage2_run_dir (str | None)
full_inputs_npz (str | None)
full_payload_npz (str | None)
batch_size (int)
x_col (str)
y_col (str)
productivity_col (str)
thickness_col (str)
horizon_reducer (str)
site_reducer (str)
max_match_distance_m (float)
min_unique_pixels (int)
allow_swapped_xy (bool)
skip_export (bool)
- Return type: