metarl.np.algos.rl_algorithm module¶
Interface of RLAlgorithm.
-
class
RLAlgorithm[source]¶ Bases:
abc.ABCBase class for all the algorithms.
Note
If the field sampler_cls exists, it will be by LocalRunner.setup to initialize a sampler.
-
train(runner)[source]¶ Obtain samplers and start actual training for each epoch.
Parameters: runner (LocalRunner) – LocalRunner is passed to give algorithm the access to runner.step_epochs(), which provides services such as snapshotting and sampler control.
-