Advanced AI specialisation
Reinforcement Learning in Python: Build Agents That Learn From Reward
Reinforcement learning is the branch of AI behind game-playing programs, robot control and many recommendation and pricing systems. Instead of learning from labelled examples, an agent tries actions, receives rewards and slowly works out a strategy. In this course you write those agents yourself, from a simple bandit to a deep Q-network.
- Every algorithm coded from scratch first
- Experiments in standard Gymnasium environments
- Deep RL with neural networks in the final modules
- A capstone agent you can show in your portfolio
- Level
- Intermediate
- Language
- Python
- Format
- Classroom or live online
- Prerequisite
- Python and basic ML
2008
Training since
25,000+
Students & corporates trained
100%
Job assistance
3
Ways to learn: classroom, live online, recorded
Companies that hire our learners
01Overview
Learning by doing, for machines
Supervised learning needs someone to tell the model the right answer. Reinforcement learning does not. The agent only gets a score for what it did, often much later, and must discover which earlier choices earned it. That makes RL harder to learn, but it opens problems where correct answers are not known in advance.
This course builds the subject in a careful sequence. You begin with the explore-or-exploit dilemma in multi-armed bandits, then formalise problems as Markov decision processes. From there you implement dynamic programming, Monte Carlo methods and temporal-difference learning, including Q-learning and SARSA, on small grid worlds where you can watch the agent improve.
The final part brings in neural networks. You will train a deep Q-network on a classic control task, meet policy-gradient and actor-critic methods, and discuss where RL is used in practice and where it struggles, such as with sparse rewards and safety.
What you will be able to do
- 01Frame a decision problem with states, actions, rewards and a policy
- 02Balance exploration and exploitation with epsilon-greedy and UCB strategies
- 03Solve small MDPs with value iteration and policy iteration
- 04Implement Monte Carlo, SARSA and Q-learning agents from scratch
- 05Train a deep Q-network with experience replay and a target network
- 06Explain policy gradients and actor-critic methods
- 07Evaluate agents fairly using reward curves and repeated runs
02Syllabus
Course modules
01Where reinforcement learning fits
- Supervised, unsupervised and reinforcement learning compared
- Agents, environments and rewards
- Real uses in games, robotics and recommendations
02Multi-armed bandits
- The explore-exploit trade-off
- Epsilon-greedy and optimistic starts
- Upper confidence bound
- Thompson sampling in outline
03Markov decision processes
- States, actions and transition probabilities
- Returns and discounting
- Value functions and the Bellman equation
04Dynamic programming
- Policy evaluation
- Policy iteration
- Value iteration on a grid world
05Monte Carlo methods
- Learning from complete episodes
- First-visit and every-visit estimates
- Monte Carlo control
06Temporal-difference learning
- TD(0) prediction
- SARSA
- Q-learning
- On-policy vs off-policy learning
07Working with Gymnasium
- Environment API: reset, step and spaces
- Classic control tasks
- Logging and plotting reward curves
08Deep reinforcement learning
- Approximating values with neural networks
- Deep Q-networks, experience replay and target networks
- Policy gradients and REINFORCE
- Actor-critic methods in outline
09Capstone and practical limits
- Designing reward functions
- Sparse rewards and instability
- Safety and testing of learned behaviour
- Presenting your agent and results
Tools and libraries
- Python
- NumPy
- Matplotlib
- Jupyter Notebook
- Gymnasium
- PyTorch or TensorFlow
03Keep going
Programs that pair well with this one
AI & Data
Python First, Then Machine Learning: One Path, Two Stages
Learn Python first, then build and evaluate machine learning models with scikit-learn, in one program for career switchers. Classroom or live online in Delhi.
View programAI & Data
Machine Learning with Python: From Raw Data to Models You Can Defend
Learn machine learning with Python in classroom batches near Laxmi Nagar: data preparation, classification, regression, clustering and tuned pipelines.
View programAI & Data
Diploma in AI and Machine Learning: Choose the Track That Fits Your Plans
Compare Bytecode's AI and machine learning diplomas: Python, SQL, ML, deep learning and LLM skills taught through projects. Pick the track that suits your goal.
View programPlacements
Our Recent Placement Stories
Join our successful alumni network





































04How you learn
Pick the format that fits your week

Classroom Training
We deliver Virtual Instructor-Led Training sessions, scheduled around the learners' convenience for smooth training.

Online Classes
Learners can study through prerecorded video sessions, available at any time that suits them.

Corporate Training
Hire a genuine trainer for your organisation in a preferred time slot to train your employees in an energetic environment.
05Careers
Where RL skills are useful
Machine learning engineer
Add sequential decision-making to your toolkit for recommendation, pricing or control problems.
Robotics and automation developer
Use simulation and RL to train control policies before testing on hardware.
AI research assistant
Support academic or industry labs running RL experiments and benchmarks.
06Is it for you?
Who joins, and what to bring
Who this course is for
- Learners who have finished an introductory machine learning course
- Engineering and computer science students planning AI projects
- Developers curious about game AI or robotics
- Data scientists who want to go beyond prediction
Prerequisites
- Working knowledge of Python, including functions, classes and NumPy
- Basic probability: averages, expectations and random sampling
- Familiarity with how a neural network is trained
- A laptop able to run Python; GPU access is helpful but not required
Student reviews
What Our Students Say
07FAQ
Questions people ask before joining
Is this course suitable for beginners?
How much maths is involved?
What is the difference between Q-learning and SARSA?
Do I need a GPU?
Which deep learning framework do you use?
Is there a project at the end?
Ready to train your first agent?
Talk to a counsellor about the next batch. We can also check whether your current skills match the prerequisites.