Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Generative AI & Machine Learning with Python, LLMs and RAG
New
Rating: 4.8 out of 5(3 ratings)
105 students

Generative AI & Machine Learning with Python, LLMs and RAG

For beginners: Python from zero, scikit-learn, PyTorch and AI agents, then build and deploy a real support assistant
Created byVinay Vernekar
Last updated 11/2026
English
English

What you'll learn

  • Write Python for data work from scratch, with NumPy, pandas and clear charts, all in Google Colab
  • Train, evaluate and tune machine learning models with scikit-learn, including a full customer-churn pipeline
  • Spot and fix what breaks ML projects: data leakage, imbalanced classes and misleading accuracy
  • Build neural networks in PyTorch and explain how transformers and large language models work
  • Write reliable prompts and call LLMs from Python through an API, including structured JSON outputs
  • Build RAG over your own documents, add tool calling, and guard an AI app against prompt injection
  • Evaluate AI apps with test cases, measure model bias, and explain predictions with SHAP
  • Build a Gradio app that combines prediction and generation, and deploy it online (Hugging Face Spaces or a free link)

Course content

10 sections • 157 lectures • 18h 35m total length
  • Welcome: What You Will Build4:35

    A support agent takes a call from an unhappy customer. Her assistant shows a churn risk score and drafts a retention offer that quotes the company's own policy. You will see that assistant first, then learn how the course builds it, so you can change it, test it and explain it.

    • Prediction and generation working together on one screen
    • The building blocks behind the assistant, and the course map
    • One company followed from start to finish
    • Who the course is for
  • How to Get the Most from This Course4:13

    Learn how to study so the skills stick. Watching alone does not build skill, while pausing, typing the code and fixing what breaks does.

    • The two kinds of lectures, and how to approach each
    • Exercises, quizzes and reference notebooks you can trust
    • What to do when you get stuck
    • What the course costs, and how to set your pace
  • What AI Actually Is4:58

    Sort out what the word AI really covers. AI is a family of techniques, and machine learning learns rules from data instead of being given them.

    • Rules written by hand, and where they break
    • How machine learning flips the idea around
    • How the main terms fit inside each other, with real examples placed on the map
    • Narrow AI versus general AI
  • How Machines Learn from Data6:13

    Watch a spam filter learn, one step at a time. A model is a function whose settings are learned from examples, and training adjusts those settings until mistakes shrink.

    • How emails become rows of features, with labels as the answers
    • Training from mistakes, then predicting and testing on emails the model never saw
    • Supervised learning for categories and for numbers
    • Two other ways to learn
  • Predictive vs Generative AI5:31

    Tell predictive and generative AI apart by the request each one answers. Predictive AI answers "which one", and generative AI answers "make me one". You see both applied to one NimbusTel customer.

    • The predictive question, and how a model learns a boundary
    • The generative question
    • How you check each kind of model
    • Where each fits, and why they work better together
  • A Short History: From Perceptrons to LLMs7:22

    Follow the ideas behind today's AI, from the 1958 perceptron to modern language models. The thread that links them is weights learned from examples, made practical by more data and faster hardware.

    • The early questions, and how the field got its name
    • One artificial neuron, two AI winters and learning through hidden layers
    • How data and compute arrived, and deep learning won on images
    • The transformer, the GPT line, and reasoning and agents
  • What LLMs Are — and Are Not5:43

    Understand what a large language model really does. It predicts plausible text, and plausible is not the same as true, which is how it can sound sure and still be wrong.

    • Predicting the next token, and where the probabilities come from
    • How a text predictor becomes an assistant
    • The knowledge cutoff, and why models hallucinate
    • Why an LLM is not a database or a search engine
  • The AI Landscape Today5:36

    Get a snapshot of today's AI models, plus a way of choosing between them that will outlast the names. Pick models by task, cost and data rules, because the names change every few months.

    • Closed models and open-weight models
    • Ladders of sizes, and chat apps versus APIs
    • Choosing by task
    • Choosing by cost and speed, and by data rules
  • Where AI Creates Value — and Where It Fails5:20

    Decide which tasks suit AI and which do not. Use AI where errors are cheap to catch or where it helps a person, and keep a human in charge where mistakes are costly.

    • Thinking in tasks, and mapping strong fits against poor fits
    • AI that helps a person do the job
    • Why you need to measure, and keeping a human in the loop
    • Failure modes to watch for
  • Your Workspace: A Google Colab Tour6:33

    Set up your free coding lab in the browser. You will create and run a Colab notebook, see why run order matters, and switch to a GPU when you need one.

    • Code cells, text cells and finding your way around
    • Recovering with Restart session and run all
    • Checking what is installed, and switching runtime type
    • Handling temporary files, Drive and Secrets safely

    The lecture notebook and its practice exercise are attached as resources. Open them in Google Colab and code along.

  • Quiz: Foundations of AI & ML

Requirements

  • A computer with an internet connection and a modern web browser. Nothing to install: everything runs in Google Colab.
  • A free Google account (for Google Colab and Google Drive).
  • No machine learning or Python experience. Python is taught from scratch in Module 2.
  • Basic computer skills, such as installing an app, downloading a file and using a web browser.
  • From Module 6: an OpenAI API account with a few US dollars of prepaid credit. Lecture 6.15 shows how to run chat calls on an open model; the search, image and capstone lectures use the OpenAI API.
  • Optional: a free Hugging Face account, to deploy your app on Hugging Face Spaces. Lectures 7.17 and 10.13 use the free ZeroGPU hardware.

Description

This course contains the use of artificial intelligence. Lectures are narrated by Katie, an AI voice, and AI tools helped produce the scripts, animations, quizzes and the promo video, where Vinay’s footage and voice are AI-generated from his own photos and recordings. The CodeSierra team curated the curriculum, and every notebook was run and tested.

This course goes past the demo. You build something complete: a retention and support assistant for NimbusTel, a fictional telecom company. A support agent types a customer ID. The assistant looks up the customer, predicts their churn risk (how likely they are to leave) with a machine learning model, searches the company's policy documents and drafts a retention offer that quotes those policies and passes the company's offer rules. The agent reviews it, then approves and saves it.

To get there, you learn both halves of modern AI and how to join them.

Predictive AI. You start with Python from scratch, then explore and clean data with pandas, train and evaluate models with scikit-learn, and handle the problems that break real projects: data leakage, imbalanced classes and accuracy scores that hide a useless model. You build a churn model on a public dataset of 7,043 telecom customers.

Deep learning and generative AI. You build neural networks in PyTorch, see how transformers and large language models work, and learn why they hallucinate. You write prompts that hold up, call models from Python through an API, and get reliable structured outputs.

AI applications. You build retrieval-augmented generation (RAG) over documents, give a model tools to call, add guardrails against prompt injection, test your app with evaluation cases, and put a Gradio interface on it.

Responsible AI. You measure bias in your own model, explain its predictions with SHAP, and learn which data should never leave your machine.

The capstone ties it all together. You design, build, test and deploy the NimbusTel assistant to Hugging Face Spaces (or a free temporary public link), and finish with a portfolio project you can explain in an interview.

How the course works. 18.6 hours of video across 10 modules. Short animated lectures explain each idea; hands-on lectures build notebooks cell by cell with real outputs. Every hands-on lecture ends with a practice exercise, and every module ends with a quiz. Everything runs in Google Colab in your browser. Modules 6–10 use the OpenAI API (a few US dollars of credit covers the whole course). Lecture 6.15 shows how to run chat calls on an open model; the search, image and capstone lectures use the OpenAI API.

Who this course is for:

  • Developers who want to add machine learning and LLM features to real applications
  • IT professionals moving towards AI engineering work
  • Data and business analysts who want to go from spreadsheets to predictive models and AI assistants
  • Students who want an end-to-end AI project for their portfolio
  • Career changers with no ML background who learn best by building
  • Anyone who uses chat assistants at work and wants to understand and build what sits behind them