[calibration.protocol]#
What a file may say about the protocol beyond naming it.
calibration.protocol[table] · optional · 19 user keys
Connections found in the code (2)
- The code says
calibration.outputs:[calibration.outputs] declares several network outputs (...); name the one the protocol is scored on in [calibration.protocol].network_output.
- The code says
simulation.time:a steady phase averages the record over one steady period and reads its span from [simulation.time], which declares no start_datetime/end_datetime here. Write them, or name the span in the phase's steady_window ([calibration.protocol].steady_window when a protocol writes the phase).
name = "matching_hydrographic_network"Name of the protocol to run. required experimental example value
- Path
calibration.protocol.name- More
'matching_hydrographic_network' is the only one: a steady stage fits K on the stream network, then a transient stage fits the storage on a gauge.
- Values
"matching_hydrographic_network"
- Accepted
- "matching_hydrographic_network"
- Example
"matching_hydrographic_network"
# version = ‹string›Recipe version this file was written against. experimental
- Path
calibration.protocol.version- More
Unset runs the version this installation carries. Pinned, the file runs what that version writes for every key of the network output it leaves empty, so a result that informed a decision stays replayable. A version the installation no longer carries is refused rather than approximated.
- Accepted
- string
# conductivity = "K"Name of the calibration parameter stage one moves, as the file declares it under [calibration.parameters]. experimental
- Path
calibration.protocol.conductivity- See
- calibration.parameters
- Accepted
- string
# storage = "Sy"Name of the calibration parameter stage two moves. false runs the network stage alone, which is a method in its own right: it identifies the conductivity without any discharge record. experimental
- Path
calibration.protocol.storage- Values
falseno explanation
- Accepted
- string or false
# network_output = ‹string›Name of the network output stage one is scored on. experimental
- Path
calibration.protocol.network_output- More
Unset picks the single output declared with support='network'.
- Accepted
- string
# steady_metric = "distance_gap"Criterion of stage one. experimental
- Path
calibration.protocol.steady_metric- More
'distance_gap' is the signed difference of Eq. 1, whose zero is the balance the paper solves for. 'distance_mean' is the mean offset: a diagnostic, and the estimator of the reference script, whose interior minimum sits nowhere in particular.
- Values
"distance_gap""distance_mean"
- Accepted
- "distance_gap" | "distance_mean"
# steady_method = "bisection"Engine of stage one. experimental
- Path
calibration.protocol.steady_method- More
The signed criterion crosses zero once over several decades, which is what a root search wants; any registered engine is accepted. An unknown name is refused when the file is read, with the names this installation serves.
- Accepted
- string
# steady_max_trials = "auto"Evaluation budget of stage one. > 0 experimental
- Path
calibration.protocol.steady_max_trials- More
'auto' lets an engine that counts its evaluations size it: the bisection budgets its worst case, S + 2E + ceil(log2(1 / t)) for a root found after its E bracket expansions, 23 on [1e-7, 1e-3] m/s with seven sweep points and one per cent; any other engine gets 100. A number below the bisection's nominal count, S + ceil(log2(s / t)) for a root inside the bounds (15 there), is refused before the first solve.
- Values
"auto"
- Accepted
- integer or "auto"
- Valid range
- > 0 (refused outside)
- Was
calibration.protocol.steady_max_iter
# steady_precision = ‹number›How precisely stage one has to pin the conductivity before it stops, as a relative precision on the conductivity: 0.01 is the paper's one per cent. - > 0 experimental
- Path
calibration.protocol.steady_precision- More
Unset takes the engine's default, which for the bisection is that same one per cent.
- Accepted
- number
- Valid range
- > 0 (refused outside)
- Unit
- -
- Was
calibration.protocol.steady_tolerance
# steady_method_options = {}Options of the stage-one method, named as that method names them: for the bisection, sweep_points, bracket_expand, rel_tol and signed_component. experimental
- Path
calibration.protocol.steady_method_options- More
Which ones exist depends on steady_method; a key the method does not know is refused when the file loads. Used to reproduce a published call; a precision is said once, in steady_precision.
- Accepted
- table { key = any value }
- Was
calibration.protocol.steady_engine_options
# steady_window = ‹table { key = string }›Dates the steady stage averages, as {start, end}, both ISO 8601 and both required. experimental
- Path
calibration.protocol.steady_window- More
A date that does not parse is refused when the file is read. Unset takes the whole [simulation.time] window.
- Accepted
- table { key = string }
# transient_metric = "nse_log"Criterion of stage two. experimental
- Path
calibration.protocol.transient_metric- More
The default weights recessions as heavily as peaks, which is where storage shows.
- Values
"rmse": Root-mean-square error, in the observed unit; penalizes large misfits most."nse": Nash-Sutcliffe efficiency against the observed mean; the standard choice for a level or discharge series."kge": Kling-Gupta efficiency, 2009 form (bias as the ratio of sums, variability as the ratio of standard deviations); separates correlation, variability and bias when NSE alone is ambiguous."mae": Mean absolute error, in the observed unit; less sensitive to outliers than RMSE."nse_log": NSE on log-transformed series; weights low flows as heavily as peaks, good for recessions."nse_delta": NSE on the increments of the series rather than its level; a level is an integral and can hide flux errors that compensate, which only its increments show."nse_seasonal": NSE against the seasonal cycle rather than the overall mean; asks whether the model beats climatology."reservoir": Half nse_seasonal plus half nse_delta, built for an impounded level: a plain NSE there is beaten by the seasonal cycle, and the increments are what carry the flux errors."distance_gap": Balances the simulated stream network against the mapped one; zero marks the crossing."distance_mean": Mean spatial offset between simulated and mapped streams; a diagnostic, not a substitute for distance_gap."bfi_error": Distance between the simulated and observed baseflow indices (Wallingford, daily discharge only); asks whether the stream is fed by its aquifer in the right share. Blind to volume and timing, so it goes beside a fit, never alone.
- Accepted
- "rmse" | "nse" | "kge" | "mae" | "nse_log" | "nse_delta" | "nse_seasonal" | "reservoir" | "distance_gap" | "distance_mean" | "bfi_error"
# transient_method = "scipy_nelder_mead"Search method of stage two, named as calibration.method names one, such as 'scipy_nelder_mead'. experimental
- Path
calibration.protocol.transient_method- More
An unknown name is refused when the file is read, with the names this installation serves.
- See
- calibration.method
- Accepted
- string
# transient_max_trials = 120Evaluation budget of stage two. - >= 1 experimental
- Path
calibration.protocol.transient_max_trials- More
The simplex cannot count what it needs, so it gets no extension: a stage two that spends this before it reaches its precision is reported as not converged, and a re-run with a larger budget replays the trials already solved from the cache.
- Accepted
- integer
- Valid range
- >= 1 (refused outside)
- Unit
- -
- Was
calibration.protocol.transient_max_iter
# transient_precision = ‹number›How precisely stage two has to pin the storage before it stops, as a relative precision on the storage coefficient. - > 0 experimental
- Path
calibration.protocol.transient_precision- Accepted
- number
- Valid range
- > 0 (refused outside)
- Unit
- -
- Was
calibration.protocol.transient_tolerance
# transient_method_options = {}Options of the stage-two method, named as that method names them, and refused when the file loads if it does not know them. experimental
- Path
calibration.protocol.transient_method_options- More
Which ones exist depends on transient_method.
- Accepted
- table { key = any value }
- Was
calibration.protocol.transient_engine_options
# discharge_variable = "discharge"Observed variable stage two is scored on. experimental
- Path
calibration.protocol.discharge_variable- Accepted
- string
[calibration.protocol]
name = "matching_hydrographic_network"
# version = <string>
# conductivity = "K"
# storage = "Sy"
# network_output = <string>
# steady_metric = "distance_gap"
# steady_method = "bisection"
# steady_max_trials = "auto"
# steady_precision = <number>
# steady_method_options = {}
# steady_window = <table { key = string }>
# transient_metric = "nse_log"
# transient_method = "scipy_nelder_mead"
# transient_max_trials = 120
# transient_precision = <number>
# transient_method_options = {}
# discharge_variable = "discharge"calibration.protocol.name name matching_hydrographic_network “matching_hydrographic_network” Name of the protocol to run. ‘matching_hydrographic_network’ is the only one: a steady stage fits K on the stream network, then a transient stage fits the storage on a gauge. calibration.protocol.version version not set Recipe version this file was written against. Unset runs the version this installation carries. Pinned, the file runs what that version writes for every key of the network output it leaves empty, so a result that informed a decision stays replayable. A version the installation no longer carries is refused rather than approximated. calibration.protocol.conductivity conductivity “K” Name of the calibration parameter stage one moves, as the file declares it under [calibration.parameters]. calibration.protocol.storage storage “Sy” False Name of the calibration parameter stage two moves. false runs the network stage alone, which is a method in its own right: it identifies the conductivity without any discharge record. calibration.protocol.network_output network_output not set Name of the network output stage one is scored on. Unset picks the single output declared with support=’network’. calibration.protocol.steady_metric steady_metric “distance_gap” distance_gap distance_mean Criterion of stage one. ‘distance_gap’ is the signed difference of Eq. 1, whose zero is the balance the paper solves for. ‘distance_mean’ is the mean offset: a diagnostic, and the estimator of the reference script, whose interior minimum sits nowhere in particular. calibration.protocol.steady_method steady_method “bisection” Engine of stage one. The signed criterion crosses zero once over several decades, which is what a root search wants; any registered engine is accepted. An unknown name is refused when the file is read, with the names this installation serves. calibration.protocol.steady_max_trials steady_max_trials “auto” auto - Evaluation budget of stage one. ‘auto’ lets an engine that counts its evaluations size it: the bisection budgets its worst case, S + 2E + ceil(log2(1 / t)) for a root found after its E bracket expansions, 23 on [1e-7, 1e-3] m/s with seven sweep points and one per cent; any other engine gets 100. A number below the bisection’s nominal count, S + ceil(log2(s / t)) for a root inside the bounds (15 there), is refused before the first solve. calibration.protocol.steady_precision steady_precision not set - How precisely stage one has to pin the conductivity before it stops, as a relative precision on the conductivity: 0.01 is the paper’s one per cent. Unset takes the engine’s default, which for the bisection is that same one per cent. calibration.protocol.steady_method_options steady_method_options {} Options of the stage-one method, named as that method names them: for the bisection, sweep_points, bracket_expand, rel_tol and signed_component. Which ones exist depends on steady_method; a key the method does not know is refused when the file loads. Used to reproduce a published call; a precision is said once, in steady_precision. calibration.protocol.steady_window steady_window not set Dates the steady stage averages, as {start, end}, both ISO 8601 and both required. A date that does not parse is refused when the file is read. Unset takes the whole [simulation.time] window. calibration.protocol.transient_metric transient_metric “nse_log” rmse nse kge mae nse_log nse_delta nse_seasonal reservoir distance_gap distance_mean bfi_error rmse Root-mean-square error, in the observed unit; penalizes large misfits most. nse Nash-Sutcliffe efficiency against the observed mean; the standard choice for a level or discharge series. kge Kling-Gupta efficiency, 2009 form (bias as the ratio of sums, variability as the ratio of standard deviations); separates correlation, variability and bias when NSE alone is ambiguous. mae Mean absolute error, in the observed unit; less sensitive to outliers than RMSE. nse_log NSE on log-transformed series; weights low flows as heavily as peaks, good for recessions. nse_delta NSE on the increments of the series rather than its level; a level is an integral and can hide flux errors that compensate, which only its increments show. nse_seasonal NSE against the seasonal cycle rather than the overall mean; asks whether the model beats climatology. reservoir Half nse_seasonal plus half nse_delta, built for an impounded level: a plain NSE there is beaten by the seasonal cycle, and the increments are what carry the flux errors. distance_gap Balances the simulated stream network against the mapped one; zero marks the crossing. distance_mean Mean spatial offset between simulated and mapped streams; a diagnostic, not a substitute for distance_gap. bfi_error Distance between the simulated and observed baseflow indices (Wallingford, daily discharge only); asks whether the stream is fed by its aquifer in the right share. Blind to volume and timing, so it goes beside a fit, never alone. Criterion of stage two. The default weights recessions as heavily as peaks, which is where storage shows. calibration.protocol.transient_method transient_method “scipy_nelder_mead” Search method of stage two, named as calibration.method names one, such as ‘scipy_nelder_mead’. An unknown name is refused when the file is read, with the names this installation serves. calibration.protocol.transient_max_trials transient_max_trials 120 - Evaluation budget of stage two. The simplex cannot count what it needs, so it gets no extension: a stage two that spends this before it reaches its precision is reported as not converged, and a re-run with a larger budget replays the trials already solved from the cache. calibration.protocol.transient_precision transient_precision not set - How precisely stage two has to pin the storage before it stops, as a relative precision on the storage coefficient. calibration.protocol.transient_method_options transient_method_options {} Options of the stage-two method, named as that method names them, and refused when the file loads if it does not know them. Which ones exist depends on transient_method. calibration.protocol.discharge_variable discharge_variable “discharge” Observed variable stage two is scored on.
[calibration.protocol.window]#
Dates bounding the samples a metric is computed on.
# start = ‹string›First date scored, ISO 8601. experimental
- Path
calibration.protocol.window.start- More
Unset means from the first sample.
- Accepted
- string
# end = ‹string›Last date scored, ISO 8601. experimental
- Path
calibration.protocol.window.end- More
Unset means up to the last sample.
- Accepted
- string
[calibration.protocol.window] # start = <string> # end = <string>
calibration.protocol.window.start start not set First date scored, ISO 8601. Unset means from the first sample. calibration.protocol.window.end end not set Last date scored, ISO 8601. Unset means up to the last sample.