How ontiyonke/reinforcement-learning works
Main Components
• Learning Modules: Represent each major RL branch as separate “modules” corresponding to directories such as:
• DP (Dynamic Programming methods)
• MC (Monte Carlo methods)
• TD (Temporal Difference methods)
• FA (Function Approximation techniques)
• DQN (Deep Q-Learning variants)
• PolicyGradient (Policy gradient methods, including subcomponents like A3C)
• MDP and Introduction (Conceptual and introductory materials)
• Shared Libraries and Utilities: Illustrate the “lib” directory, which includes common helper functions for Atari environments, state processing, environment wrappers (e.g., for Blackjack, Gridworld, etc.), and plotting.
• External Dependencies & Frameworks: Indicate integration with external libraries like OpenAI Gym for environments and TensorFlow for deep learning in advanced methods.
Relationships and Interactions
• Modularity: Each algorithm category (DP, MC, TD, etc.) operates as an independent unit but generally follows a similar structure—a set of notebooks for playground and solution, often leveraging shared environment definitions.
• Notebooks as Execution Units: Highlight that many components are Jupyter notebooks, which encapsulate experiment code, solution walkthroughs, and demonstrations – they are entry points for experiment execution rather than full-blown deployment services.
Representing Architectural Patterns and Design Principles
• Educational Separation: Emphasize the educational “modularity” – each directory targets a specific RL concept from theory to practice, allowing one to navigate the learning progression.
• Hierarchical Layering: Illustrate higher-level “application logic” in the notebooks (i.e., algorithm implementations) that leverage lower-level “utility” modules from lib, mirroring a layered architecture.
Highlighting Relevant Technologies and Frameworks
• OpenAI Gym: Represent it as an external dependency that supplies environments.
• TensorFlow (in use for deep RL implementations such as DQN and some Policy Gradient methods): Include this as an external service that provides neural network functionality.