Closed Rubbin1926 closed 4 months ago
You will notice that in rl4co.envs.common there is a file called __init__.py
. The files you mention are imported here, which allows us to directly do from rl4co.envs.common import RL4COEnvBase, Generator, get_sampler
.
In the "NEW ENVIRONMENT: CREATING AND MODELING" - "Imports" chapter: https://rl4co.readthedocs.io/en/latest/_collections/3-creating-new-env-model.html
But RL4COEnvBase is actually in rl4co.envs.common.base _Generator, getsampler are in rl4co.envs.common.utils
So maybe the correct one is: