951 380 5401
Bytecode - Unit of Craw Security

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

TechbridgeIntermedia Cloud CommunicationWeb GuruzKratikalOmninosLucid GrowthCybrotechTeam ComputersNetrikaQualicentricGattrix

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

  1. 01Frame a decision problem with states, actions, rewards and a policy
  2. 02Balance exploration and exploitation with epsilon-greedy and UCB strategies
  3. 03Solve small MDPs with value iteration and policy iteration
  4. 04Implement Monte Carlo, SARSA and Q-learning agents from scratch
  5. 05Train a deep Q-network with experience replay and a target network
  6. 06Explain policy gradients and actor-critic methods
  7. 07Evaluate agents fairly using reward curves and repeated runs

02Syllabus

Course modules

Get the full syllabus
  1. 01Where reinforcement learning fits
    • Supervised, unsupervised and reinforcement learning compared
    • Agents, environments and rewards
    • Real uses in games, robotics and recommendations
  2. 02Multi-armed bandits
    • The explore-exploit trade-off
    • Epsilon-greedy and optimistic starts
    • Upper confidence bound
    • Thompson sampling in outline
  3. 03Markov decision processes
    • States, actions and transition probabilities
    • Returns and discounting
    • Value functions and the Bellman equation
  4. 04Dynamic programming
    • Policy evaluation
    • Policy iteration
    • Value iteration on a grid world
  5. 05Monte Carlo methods
    • Learning from complete episodes
    • First-visit and every-visit estimates
    • Monte Carlo control
  6. 06Temporal-difference learning
    • TD(0) prediction
    • SARSA
    • Q-learning
    • On-policy vs off-policy learning
  7. 07Working with Gymnasium
    • Environment API: reset, step and spaces
    • Classic control tasks
    • Logging and plotting reward curves
  8. 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
  9. 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

Placements

Our Recent Placement Stories

Join our successful alumni network

Bytecode student placementBytecode student placementBytecode student placementBytecode student placementBytecode student placementBytecode student placementBytecode student placementBytecode student placementBytecode student placementBytecode student placementBytecode student placementBytecode student placementBytecode student placement
Bytecode student placementBytecode student placementBytecode student placementBytecode student placementBytecode student placementBytecode student placementBytecode student placementBytecode student placementBytecode student placementBytecode student placementBytecode student placementBytecode student placement
Bytecode student placementBytecode student placementBytecode student placementBytecode student placementBytecode student placementBytecode student placementBytecode student placementBytecode student placementBytecode student placementBytecode student placementBytecode student placementBytecode student placement

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

2500+ Reviews
Saket Chaudhary

Saket Chaudhary

Student

I recently completed my CEH Practical course and exam from Craw Security, and the experience was truly exceptional. The course was well-structured, covering all essential aspects with hands-on practical training. The mentors were incredibly supportive throughout the journey, especially my instructor, Mohit Kumar Sir, whose guidance and expertise played a crucial role in my learning process.

(4.0)
Philis Mutamba

Philis Mutamba

Student

Really enjoyed my CEH training with Craw Security. My trainer Robin Paul was patient, clear, and very knowledgeable. The course structure and hands-on sessions were really really helpful.

(4.0)
Kashish Jaiswal

Kashish Jaiswal

Student

I recently completed my CEH (Certified Ethical Hacker) training at Craw Security, and also took the CEH certification exam. My overall experience was highly positive. The training was well-structured and delivered by experienced instructors (Mohit Sir) who had in-depth knowledge of ethical hacking concepts.

(4.0)
Keshav Gupta

Keshav Gupta

Student

I recently took Linux classes at Craw Security Institute, and it was an excellent learning experience. The course was well-structured, and the practical knowledge I gained has been invaluable. A special thanks to Anand Sir for his dedication

(5.0)
Rishikesh Shahi

Rishikesh Shahi

Student

Such a great training center. Very supportive faculties and great environment to learn for both working professionals as well as students. Provides detailed study material which helps to memorize the concept. I had done CEH training from here and having good experience with craw security.

(4.0)
Harvinder

Harvinder

Student

I recently completed Craw Security's ethical hacking course and really appreciated their hands-on approach. The instructors are knowledgeable and the practical labs help build real-world skills overall it's a solid place to learn cybersecurity

(4.0)
Shivam Sharma

Shivam Sharma

Student

I recently completed my CEH V13 certification at Cyber Craw Institute, and it was an outstanding experience. The instructors are experts who simplify complex topics and provide real-world insights. The staff is incredibly supportive, always available to assist with questions or career advice.

(5.0)
Rahul Kumar

Rahul Kumar

Student

I recently completed my AWS cloud training under Amit Sir, and it was a great learning experience. His way of teaching is very clear, practical, and easy to understand. He always explained concepts with real-life examples and also cleared all our doubts with patience.

(5.0)
Ritik Rajput

Ritik Rajput

Student

My second webinar in this career got so much knowledge and they answered my question well all good experience thank you

(4.0)
Arjun Patel

Arjun Patel

Student

I recently passed my EC-Council CEH certification thanks to Craw Security's outstanding training! The instructors were knowledgeable, engaging, and always available, with a comprehensive curriculum and hands-on labs that made real-world application easy.

(5.0)
Tushar Meena

Tushar Meena

Student

Amit Sharma Sir is an exceptional AWS Associate teacher at Craw Saket. His deep knowledge, clear explanations, and practical teaching approach make complex topics easy to understand. He is always supportive and ready to clear doubts.

(5.0)
Vikash Yadav

Vikash Yadav

Student

The experience at Craw Security has been excellent! The learning environment is welcoming, and the staff is supportive and responsive. Even beginners feel well-guided throughout the program. It is a supportive place to build a strong foundation in cybersecurity.

(4.0)
Rohit Sharma

Rohit Sharma

Student

I recently completed CEH practical on craw security. Which was a great decision i made fr they're well organised with proper support and my mentor Robin paul who guided me throughout i personally thank him here..

(5.0)
Ankit Verma

Ankit Verma

Student

Craw Cyber Security provides excellent training with a strong focus on practical, hands-on learning. I especially appreciated their Red Hat course, which was well-structured and aligned with real exam scenarios. The instructors are highly knowledgeable, and the staff is very supportive and friendly.

(5.0)

07FAQ

Questions people ask before joining

Is this course suitable for beginners?
Not as a first AI course. You should be comfortable with Python and basic machine learning. If you are new, start with our artificial intelligence program or a machine learning course and come back to RL afterwards.
How much maths is involved?
You need basic probability and comfort reading formulas such as the Bellman equation. We always implement each formula in code right after explaining it, which makes it much easier to follow.
What is the difference between Q-learning and SARSA?
Both learn the value of taking an action in a state. Q-learning updates towards the best possible next action, so it is off-policy. SARSA updates towards the action the agent actually takes next, so it is on-policy and tends to be more cautious.
Do I need a GPU?
No. Most exercises run on an ordinary laptop. For the deep RL modules, a free cloud notebook with GPU access can speed up training.
Which deep learning framework do you use?
We use a mainstream Python framework such as PyTorch or TensorFlow. Ask your trainer which one the current batch uses if you want to prepare in advance.
Is there a project at the end?
Yes. You design, train and present an agent for an environment of your choice, which makes a strong portfolio item.

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.