Named Tuples¶
Named tuples used throughout the package to make code clearer.
- class IterationResult(opt_id, x, fx, extras)[source]¶
Return type of each optimizer iteration.
Create new instance of IterationResult(opt_id, x, fx, extras)
- extras¶
Possible returns if
detailed_call()
is used.- Type:
Sequence[Any]
- class OptimizerCheckpoint(opt_type, slots)[source]¶
Information needed in the manager about initialized optimizers for checkpoint loading.
Create new instance of OptimizerCheckpoint(opt_type, slots)
- opt_type¶
Class of optimizer to be restarted.
- Type:
Type[
BaseOptimizer
]
- class OptimizerPackage(opt_id, optimizer, signal_pipe, allow_run_event, slots)[source]¶
Package of an initialized optimizer, its unique identifier and multiprocessing variables.
Create new instance of OptimizerPackage(opt_id, optimizer, signal_pipe, allow_run_event, slots)
- allow_run_event¶
Used by the manager to pause the optimizer.
- Type:
- optimizer¶
Instance of
BaseOptimizer
- Type:
Callable
- signal_pipe¶
Used to send messages between the optimizer and manager.
- Type:
- class ProcessPackage(process, signal_pipe, allow_run_event, slots)[source]¶
Package of a running process and its communication channels.
Create new instance of ProcessPackage(process, signal_pipe, allow_run_event, slots)
- allow_run_event¶
Used by the manager to pause the optimizer.
- Type:
- signal_pipe¶
Used to send messages between the optimizer and manager.
- Type:
- class Result(x, fx, stats, origin)[source]¶
Final result delivered by
GloMPOManager
.Create new instance of Result(x, fx, stats, origin)