rl_modules.rst 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. .. _rlmodule-reference-docs:
  2. RLModule API
  3. ============
  4. RL Module specifications and configuraitons
  5. -------------------------------------------
  6. Single Agent
  7. ++++++++++++
  8. .. currentmodule:: ray.rllib.core.rl_module.rl_module
  9. .. autosummary::
  10. :toctree: doc/
  11. SingleAgentRLModuleSpec
  12. SingleAgentRLModuleSpec.build
  13. SingleAgentRLModuleSpec.get_rl_module_config
  14. RLModule Configuration
  15. +++++++++++++++++++++++
  16. .. autosummary::
  17. :toctree: doc/
  18. RLModuleConfig
  19. RLModuleConfig.to_dict
  20. RLModuleConfig.from_dict
  21. RLModuleConfig.get_catalog
  22. Multi Agent
  23. ++++++++++++
  24. .. currentmodule:: ray.rllib.core.rl_module.marl_module
  25. .. autosummary::
  26. :toctree: doc/
  27. MultiAgentRLModuleSpec
  28. MultiAgentRLModuleSpec.build
  29. MultiAgentRLModuleSpec.get_marl_config
  30. RL Module API
  31. -------------
  32. .. currentmodule:: ray.rllib.core.rl_module.rl_module
  33. Constructor
  34. +++++++++++
  35. .. autosummary::
  36. :toctree: doc/
  37. RLModule
  38. RLModule.as_multi_agent
  39. Forward methods
  40. +++++++++++++++
  41. .. autosummary::
  42. :toctree: doc/
  43. ~RLModule.forward_train
  44. ~RLModule.forward_exploration
  45. ~RLModule.forward_inference
  46. IO specifications
  47. +++++++++++++++++
  48. .. autosummary::
  49. :toctree: doc/
  50. ~RLModule.input_specs_inference
  51. ~RLModule.input_specs_exploration
  52. ~RLModule.input_specs_train
  53. ~RLModule.output_specs_inference
  54. ~RLModule.output_specs_exploration
  55. ~RLModule.output_specs_train
  56. Saving and Loading
  57. ++++++++++++++++++++++
  58. .. autosummary::
  59. :toctree: doc/
  60. ~RLModule.get_state
  61. ~RLModule.set_state
  62. ~RLModule.save_state
  63. ~RLModule.load_state
  64. ~RLModule.save_to_checkpoint
  65. ~RLModule.from_checkpoint
  66. Multi Agent RL Module API
  67. -------------------------
  68. .. currentmodule:: ray.rllib.core.rl_module.marl_module
  69. Constructor
  70. +++++++++++
  71. .. autosummary::
  72. :toctree: doc/
  73. MultiAgentRLModule
  74. MultiAgentRLModule.setup
  75. MultiAgentRLModule.as_multi_agent
  76. Modifying the underlying RL modules
  77. ++++++++++++++++++++++++++++++++++++
  78. .. autosummary::
  79. :toctree: doc/
  80. ~MultiAgentRLModule.add_module
  81. ~MultiAgentRLModule.remove_module
  82. Saving and Loading
  83. ++++++++++++++++++++++
  84. .. autosummary::
  85. :toctree: doc/
  86. ~MultiAgentRLModule.save_state
  87. ~MultiAgentRLModule.load_state