MultiMadnisTraining¶
-
class MultiMadnisTraining¶
Runs MadnisTraining for every subprocess of a process, with combined progress reporting.
Public Functions
- Parameters:
generator_context – Context the sampling runtimes run on.
optimizer_context – Context the trained globals and optimizers live on.
training_args – One entry per subprocess.
verbosity – Progress-reporting verbosity.
status_file – Optional status file progress is periodically written to.
seed – Top-level run seed (reusing the run card’s own seed, also used by
build_event_generator()); each subprocess’sMadnisTraininggets achannel_index_offsetslice of this seed’s stream so their derived seeds don’t collide.
-
void train()¶
Train every subprocess to completion.
-
inline nested_vector2<std::size_t> active_channels() const¶
Active channel indices of every subprocess; see MadnisTraining::active_channels.
-
struct TrainingArgs¶
One subprocess’s MadnisTraining constructor arguments, except the context, seed and channel-index offset, which
MultiMadnisTrainingassigns itself.