Hello, AI World
Applied AI Internship · Module 1 · Class 1

Hello,AI World

Today we will learn what AI is, see where we already use it, and run our first AI program.

Ideas + hands-onBring your laptop
In [1]:print("Hello AI World!")
Out[1]:

→ / Space: next  ·  ←: back  ·  F: full screen

AI in your daily life

Did you use AI today?

Click a card to see where the AI is.

Agenda

Today's plan

By the end of today: you can explain AI, ML, DL and DS, and you have a working notebook on Colab.

Concepts · AI

AI means teaching machines to do smart things

Humans can see, hear, talk and decide. With AI, a machine can do these things too.

See

HumanYou see a friend and know who it is.

MachinePhone camera + AI = face unlock

Hear

HumanYou hear words and understand them.

MachineAlexa and Google Assistant understand your voice

Talk

HumanYou answer a question in your own words.

MachineChatGPT and Claude write answers

Decide

HumanYou choose the fastest road to college.

MachineGoogle Maps picks the best route

In one line: AI = a machine doing a task that normally needs human thinking.

Concepts · The big picture

AI, ML, DL and Data Science: how are they connected?

AI ML DL DS

Easy to remember: DL is a part of ML. ML is a part of AI.

Concepts · Machine Learning

How did you learn what a dog is?

Way 1

Give the machine a rule

Rule: IF it has 4 legs
AND a tail → it is a dog

Now we show it a cat. 4 legs ✓ Tail ✓

Machine says: DOG ✗Wrong! A cat also has 4 legs and a tail. Good rules are hard to write.

Way 2

Show the machine many examples

Street dogLabradorPug German ShepherdPuppy+ 1000s more

Now we show it a cat.

Machine says: NOT A DOG ✓It looks different from all the dogs it has seen.

Machine Learning = Way 2. We do not write the rules. We show many examples, and the machine learns by itself. Children learn the same way!

Concepts · Machine Learning

How a machine learns: the mango example

A fruit seller wants a machine that can tell if a mango is ripe.

RipeNot ripe

1. Show examples

We give the machine 12 mangoes. For each one we say: ripe or not ripe.

Examples = training data

2. Machine finds the pattern

It draws a line. Yellow and soft = ripe. Green and hard = not ripe.

Pattern = model

3. Guess a new mango

A new mango comes. The machine uses the line to guess: ripe! Click on the chart to test your own mango.

Guess = prediction
Concepts · AI vs ML

Old way vs new way: rules vs learning

Concepts · Deep Learning

Deep Learning: how face unlock works

Deep Learning uses a network with many layers, a little like our brain. Each layer finds something bigger.

What the machine sees

Your photo

1Photo becomes numbers
2Find lines
3Find eyes, nose, mouth
4Find the full face
5Give the answer

Why "deep"? Because there are many layers. Real networks can have 100+ layers.

Concepts · Data Science

Data Science: the college canteen example

The canteen owner asks: "What should I make more of, and on which day?"

1
CollectWrite down daily sales
2
CleanFix mistakes and gaps
3
ChartDraw a picture of the data
4
DecideFind the answer, take action
DaySamosaVada pavSandwich
Mon1206040
Tue900907045
Wed8565— ?45
Thu807550
Fri6011555

Problems: one typing mistake (900 should be 90) and one missing value.Cleaned: mistake fixed and missing value filled.

Answer: Samosa sells most on Monday. Vada pav sells most on Friday.
Decision: Make more samosas on Monday and more vada pav on Friday. Less waste, more profit. No AI needed. This is Data Science!
SamosaVada pavSandwich
Concepts · Summary

AI, ML or DL? Ask two questions

Start

A machine does something smart

Question 1

Does it learn from examples (data)?

No

AI (rules)

People wrote the rules. Example: old chess computer, "Press 1" phone menu.

Yes
Question 2

Does it use a deep network with many layers?

Usually for photos, voice or language

No

Machine Learning

Example: Gmail spam filter, Swiggy delivery time.

Yes

Deep Learning

Example: face unlock, ChatGPT.

And Data Science? It is about finding answers from data. It can use AI, or just tables and charts. Example: IPL team analysis, our canteen sales.

AI in companies today

Every industry uses AI today

Live demo

How a bank checks your payment

Try this: ₹80,000 at 3 AM, 1,500 km away, on a new phone.

Risk score
0Allow
0 · allow35 · ask OTP65 · block100

    This is a simple demo. A real bank's AI learns from crores of old payments.

    Closer to home

    AI being used in India today

    Using AI the right way · real cases

    When AI learns the wrong thing

    Amazon · 2018

    A hiring tool that was unfair to women

    Amazon made an AI to check job applications. It learned from 10 years of old hiring, where most people hired were men. So it gave lower marks to CVs with the word "women's". Amazon stopped using it.

    LessonAI copies what is in its data, even the unfair parts.

    MIT study · 2018

    Face AI that makes more mistakes on some faces

    Researchers tested face AI from big companies. How often it guessed gender wrong:

    Dark-skinned women
    34.7%
    Light-skinned men
    0.8%

    LessonTest AI on all kinds of people, not only some.

    Using AI the right way · real cases

    Privacy, fake videos and jobs

    Privacy · Clearview AI

    Your photos, used without asking

    A US company collected billions of photos from social media. It made a face search tool for police. Several European countries fined it.

    LessonEven public photos can be misused.

    Deepfake · Hong Kong · 2024

    The fake video call

    An employee joined a video call with his "boss" and team. All of them were fake, made by AI. He sent about US$25 million (over ₹200 crore) to scammers.

    LessonA face and a voice on screen are not proof any more.

    Jobs

    How work will change

    Simple, repeated work like data entry is now done by AI. New jobs are growing: data analyst, ML engineer, AI product manager.

    LessonPeople who know how to use AI will be in demand.

    Think about it: Should our college use face cameras to mark attendance? We will discuss this later in the course.

    About the internship

    Applied AI: 60-hour internship

    60
    Hours of learning
    3
    Modules
    3
    Big projects
    Who is it forBSc CS, BSc IT and BSc Data Science students of Sem 4, 5 or 6
    Before you startBasic Python. We will refresh the rest together.
    Every classFirst we learn the idea. Then we build it ourselves in Colab.
    Course roadmap

    Where we will go in this internship

    Module 1 · You are here

    Data & first ML models

    • Work with real data in Python
    • Turn data into charts and answers
    • Train your first ML models
    • Project 1: your first ML project
    Module 2

    Machine Learning in depth

    • More ML methods, better models
    • Your first neural networks
    • Turn a model into a web app
    • Project 2: a team app
    Module 3

    Deep Learning & Generative AI

    • AI that understands images
    • AI that understands text
    • Build with Generative AI
    • Project 3: your app, live online
    Course roadmap · Projects

    What you will build

    PROJECT 1 · MODULE 1

    Your first ML project

    Pick a real dataset, explore it, train a model, and present what you found.

    PROJECT 2 · MODULE 2

    A team AI app

    Build and compare models, then put the best one inside a simple web app.

    PROJECT 3 · MODULE 3

    Your capstone, live online

    Your own AI app with a public link. Choose images, text, Generative AI or data.

    At the end: a live app with a public link, and projects you can show in interviews.

    Course roadmap · Tools

    Tools you will learn

    All free. All used by real AI teams. We will learn them one by one.

    DataNumPyPandasMatplotlibSeaborn
    Machine Learningscikit-learnimbalanced-learn
    Deep LearningTensorFlow / KerasOpenCV
    Text & GenAINLTKGensimHugging FaceLLM APIs
    Build & shareStreamlitGit & GitHubCloud hosting
    Break

    Short break

    5:00

    When you come back: open your laptop, plug in the charger, and sign in to Google.

    Tools · Overview

    Our toolkit for this course

    You will hear these four names a lot. Here is what each one means.

    Python

    The language we use to talk to the computer.

    Jupyter Notebook

    A file where code, notes and results sit together.

    Google Colab

    A Jupyter Notebook that runs in your browser, on Google's computers.

    Kaggle

    A website with free data, free notebooks and AI contests.

    Tools · Google Colab

    What is Google Colab?

    Colab (short for Colaboratory) is a free tool from Google. You write Python in the browser, and Google's computer runs it.

    1 · Your laptop or computer
    In [1]:model.fit(X, y)✓ Model trained!

    Only a browser (Chrome) and internet are needed. Nothing to install.

    Your code goes to Google →
    2 · Google's computer (the cloud)
    • Runs your code for you
    • Has a free GPU (a fast chip for AI), with limits
    • Python and AI libraries are already installed
    ← Results come back

    So: Your laptop does almost no work. Even an old or slow laptop can train AI models with Colab!

    Tools · Google Colab

    Why do we use Colab in this class?

    Install on your laptopGoogle Colab
    Setup✗ Download and install. Takes time, errors are common.✓ Open a link. Ready in 1 minute.
    Laptop needed✗ A good laptop with enough RAM✓ Any laptop, even an old one
    GPU for AI✗ Needs a costly graphics card✓ Free GPU (with time limits)
    Libraries✗ Install each one yourself✓ Most AI libraries already installed
    Save & share✗ Files stay on your laptop✓ Saved in Google Drive. Share with a link.
    No internet?✓ Works offline✗ Needs internet

    That is why: we use Colab in class. Anaconda (offline) is optional for home.

    Tools · Google Colab

    A quick tour of the Colab screen

    colabHello_AI_World.ipynb
    + Code+ Text✓ Connected · RAM ▮▮▯ · Disk ▮▯▯

    My first AI notebook

    This is a text cell. We write notes here.

    ▶
    import seaborn as sns
    df = sns.load_dataset("iris")
    df.shape
    (150, 5)
    ▶
    print("Hello AI World!")
    Hello AI World!
    1
    File nameClick to rename. It ends with .ipynb
    2
    + Code / + TextAdd a new code cell or a notes cell
    3
    Run button ▶Runs the cell. Shortcut: Shift + Enter
    4
    OutputThe result shows just below the cell
    5
    Connected · RAMGreen tick = connected to Google's computer
    6
    Runtime menuChange runtime type → GPU. Restart if stuck.
    7
    Files panelUpload data files here. They are deleted when the session ends.
    Tools · Google Colab

    Colab: 6 things to remember

    Shortcut

    Shift + Enter

    Runs the cell and moves to the next one.

    Order

    Run from top to bottom

    If you skip a cell, the next cell may show an error.

    Install

    !pip install

    Put ! before a command to install a library. Example: !pip install seaborn

    Idle

    It disconnects if idle

    If you do nothing for a while, Colab disconnects. Reconnect and run the cells again.

    Files

    Uploaded files are temporary

    Files in the Files panel are deleted when the session ends. Keep your data in Google Drive.

    Save

    Save a copy

    File → Save a copy in Drive, so the notebook is in your own Drive.

    Hands-on

    Let's open our notebook

    1

    Open Google Colab

    Go to colab.research.google.com in Chrome

    2

    Sign in with Google

    Use the same Google account for the full course

    3

    Open the class notebook

    Click the link in the class group. Then click File → Save a copy in Drive

    4

    Run each cell

    Click ▶ or press Shift + Enter. Wait for the green tick ✓

    5

    Stuck? Raise your hand

    A helper will come to you. Do not wait quietly.

    Who uses notebooks?

    Data teams at Netflix, Google and NASA use the same kind of notebook.

    At home (optional)

    Install Anaconda to use Jupyter on your laptop without internet: anaconda.com/download

    Hands-on

    Your first AI program: 4 cells

    Hands-on · Inside the model

    What did our model learn?

    The model says:

    setosa

    Rules the model found
    if petal_length < 2.45
    → setosa
    else if petal_width < 1.75
    → versicolor
    else
    → virginica

    Nobody wrote these rules. The model found them by looking at 150 flowers. Banks use the same kind of model to decide on loans.

    Tools · Kaggle

    What is Kaggle?

    A free website for data science, owned by Google since 2017. Millions of people learn and practise here.

    Datasets

    Free, real data to practise on.

    Notebooks

    Write and run code in the browser, just like Colab.

    Competitions

    Companies share a real problem and data. People compete to build the best model.

    Learn

    Free short courses with certificates.

    Think of Kaggle as: a library (data) + a gym (practice) + a stadium (contests).

    Tools · Kaggle

    Why Kaggle, and when to use which?

    Why we use Kaggle
    ✓Real data, not textbook examples
    ✓Learn by reading other people's notebooks
    ✓Free courses and certificates
    ✓A public profile that companies can see
    Colab or Kaggle?
    ColabKaggle
    Best forClass notebooks and homeworkFinding data, practice, contests
    Saves toYour Google DriveYour Kaggle account
    Free GPUYes, with limitsYes, about 30 hours a week
    DataUpload your ownThousands of datasets ready
    Sign inGoogle accountGoogle account works

    Good news: both are free and both use notebooks. Learn one, and you can use the other.

    Kaggle tour

    Kaggle: a free website to practise data science

    1

    Make your account

    Go to kaggle.com and sign up with Google

    2

    Open Datasets

    Free real data: IPL matches, Indian census, movies, air quality, house prices

    3

    Open the Titanic competition

    Guess who survived using real passenger data. We will use this data soon in class!

    4

    Look at a Code notebook

    The same kind of notebook you used today, made by people around the world

    Why Kaggle?

    Kaggle is owned by Google. Companies look at Kaggle profiles when they hire.

    Before you go

    Find one dataset you would like to explore in this course.

    Tools · Putting it together

    How we will use both in this course

    1

    Find data

    Search Kaggle for a topic you like.

    IPL matches dataset
    2

    Open in Colab

    Download the CSV file and load it in your notebook.

    pd.read_csv("matches.csv")
    3

    Explore & build

    Clean the data, draw charts, train a model.

    pandas · charts · sklearn
    4

    Share your work

    Post your notebook on Kaggle or GitHub.

    Your project portfolio

    Goal: by the end of this course, you will have real projects on your Kaggle profile to show companies.

    Wrap-up

    Before you go

    Exit question

    In one line, tell a friend the difference between AI and ML. Use one app as an example.

    Write it on paper or post it in the class group.

    Homework: submit these Submit before the next classNext class: Python refresher: NumPy
    Thank you

    Questions?

    Today you learned what AI, ML, DL and DS mean, saw AI in apps you use every day, and made your first AI model.
    Next class: Python refresher: NumPy.

    In [∞]:class_1.status()
    Out[∞]:'complete ✓'