distributed¶
- class DistributedExperiment(num_runs, *, random_state=None)¶
Bases:
ExperimentTo run experiments in parallel using MPI (via
mpi4py).- Parameters:
- add(data)¶
Add data of the current run to the distributed experiment. Note that this should be only used once per run.
- broadcast(data)¶
Broadcast data to all processes.
Ensures that all processes are synchronized before broadcasting, see also (
barrier()).
- collect(broadcast=True)¶
Collect data from all MPI processes and return a sorted dictionary of run data.
- property performs_run: bool¶
Property that checks if the current MPI process should perform a run when iterating over
DistributedExperiment.