You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* AgentManager -> ExperimentManager search and replace
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* rename file, add alias
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* rename file
* add alias
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* search and replace agent_manager -> experiment_manager
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* change test file names
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Copy file name to clipboardexpand all lines: docs/basics/multiprocess.rst
+5-5
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Parallelization in rlberry
4
4
==========================
5
5
6
6
rlberry use python's standard multiprocessing library to execute the fit of agents in parallel on cpus. The parallelization is done via
7
-
:class:`~rlberry.manager.AgentManager` and via :class:`~rlberry.manager.MultipleManagers`.
7
+
:class:`~rlberry.manager.ExperimentManager` and via :class:`~rlberry.manager.MultipleManagers`.
8
8
9
9
If a user wants to use a third-party parallelization library like joblib, the user must be aware of where the seeding is done so as not to bias the results. rlberry automatically handles seeding when the native parallelization scheme are used.
10
10
@@ -19,9 +19,9 @@ having practically no parallelization except if the code executed in each thread
19
19
Process: spawn or forkserver
20
20
----------------------------
21
21
22
-
To have an efficient parallelization, it is often better to use processes (see the doc on `python's website <https://docs.python.org/3/library/multiprocessing.html#module-multiprocessing>`_) using the parameter :code:`parallelization="process"` in :class:`~rlberry.manager.AgentManager` or :class:`~rlberry.manager.MultipleManagers`.
22
+
To have an efficient parallelization, it is often better to use processes (see the doc on `python's website <https://docs.python.org/3/library/multiprocessing.html#module-multiprocessing>`_) using the parameter :code:`parallelization="process"` in :class:`~rlberry.manager.ExperimentManager` or :class:`~rlberry.manager.MultipleManagers`.
23
23
24
-
This implies that a new process will be launched for each fit of the AgentManager.
24
+
This implies that a new process will be launched for each fit of the ExperimentManager.
25
25
26
26
The advised method of parallelization is spawn (parameter :code:`mp_context="spawn"`), however spawn method has several drawbacks:
27
27
@@ -30,14 +30,14 @@ The advised method of parallelization is spawn (parameter :code:`mp_context="spa
30
30
.. code:: python
31
31
32
32
from rlberry.agents.torch import A2CAgent
33
-
from rlberry.manager importAgentManager
33
+
from rlberry.manager importExperimentManager
34
34
from rlberry.envs.benchmarks.ball_exploration import PBall2D
0 commit comments