In this article
A saved Sacred configuration does not replace inspection of explicit arguments at a captured function call; those arguments can override injected values.
Find the value consumed by the captured function
An experiment records a configured evaluation batch size, but an internal helper always calls the evaluator with a different explicit value. The researcher changes the configuration and observes no corresponding behavior change. The Sacred configuration guide defines parameter precedence for captured functions. Explicit positional or keyword arguments take priority, configuration fills missing arguments, and function defaults come afterward. This order explains why a valid recorded configuration may not determine every invocation’s effective arguments.
Separate function defaults from experiment defaults
A Python default on a captured function is not necessarily the experiment’s default when configuration supplies that parameter. Reading the signature alone can therefore suggest the wrong baseline. Inspect the composed configuration and the actual call together. If the function is also used outside the experiment, describe which path the comparison concerns. A standalone unit call and a captured invocation can legitimately receive different values without either execution being broken.
Make namespaces part of the explanation
Captured functions can use prefixes to access a configuration subtree. Similar keys in a dataset section and an evaluator section are not interchangeable merely because their final names match. Trace the selected namespace before changing a parameter that appears relevant in a large configuration. A refactor that moves a helper into another prefix can alter the source of its injected arguments. Preserve that binding change when interpreting differences between experiment revisions.
Record effective exceptions to the configuration
The experiment overview explains captured functions and the run object, while collected information describes the final configuration sent to observers. A deliberate explicit override can be useful for a diagnostic slice. Record its purpose and effective value with the result instead of assuming the configuration file alone fully describes that special call. This keeps an exceptional evaluation from being mistaken for the normal configured path.
Test precedence with distinguishable values
Use different recognizable values for the explicit argument, configuration entry and Python default. Observe which value reaches the helper under each intended call path, then repeat after a namespace change. Related material explains controlled experimental inputs and explicit schema contracts. The test establishes argument provenance. It does not establish that the chosen batch policy or evaluation procedure is scientifically appropriate; those remain separate design decisions once the effective value is known.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.