How machines learn from examples, how to solve neural network numericals, and how AI creates new things.
Tap Next, swipe, or press the arrow keys. Every slide with buttons is meant to be tapped on the board.
The first time you tasted Hyderabadi biryani, your brain noted the smell, spice and colour. Nobody gave you a rule book. A neural network learns the same way: from many examples.
| In your brain | In an artificial neuron |
|---|---|
| Dendrites receive signals | Inputs (x₁, x₂, x₃) |
| Some connections are stronger | Weights (w): importance of each input |
| Cell body adds up the signals | Weighted sum + bias |
| Neuron fires only if strong enough | Activation function / threshold |
| Axon passes the signal on | Output to the next layer |
★★ Board definition
A neural network is a machine learning model that makes decisions in a manner similar to the human brain, by using processes that mimic the way biological neurons work together to identify phenomena, weigh options and arrive at conclusions.
Main advantage: it extracts features from data automatically, without the programmer telling it what to look for.
Seen daily in: Gmail spam filter, suggested replies, photo tagging, shopping suggestions, Google Search.
Think of a food delivery app. Tap each layer.
Every neural network has an input layer, one or more hidden layers and an output layer. Each line is a connection with its own weight.
Choosing a college: placement record matters a lot, hostel food a little. Tap each card to reveal its meaning.
★★ Board Q: Explain the key components of a neural network. Write the meaning; the example helps you remember it.
Read the question first. Is a bias given, a threshold, or both?
z = w₁x₁ + w₂x₂ + w₃x₃ + b
Compare z with the threshold T.
z ≥ T → output 1 (fires)
z < T → output 0
Handbook Case I: bias 0.1, threshold 3.0.
b = −T, z = Σwx − T
Now compare z with 0.
z ≥ 0 → output 1 (fires)
z < 0 → output 0
Handbook surfing example: threshold 3 means bias −3.
Suppose Σwx = 5 and threshold T = 3. In Style B, z = 5 − 3 = 2.
Correct: 2 ≥ 0, so output = 1. (Same as checking 5 ≥ 3.)
Wrong: 2 < 3, so output = 0. This subtracts the threshold twice.
Rule: subtract the threshold once, or compare with it once. Never both. If z equals the threshold exactly, the neuron fires (≥).
Use + and − to change inputs, weights, bias and threshold. Load an example to start.
Tap "Next step" and ask the class to say the answer before it appears.
A new question every time. Work it out in your notebook, then check.
1. Your value of z:
2. Output of the neuron:
Like throwing a paper ball into the dustbin: miss, adjust your aim, throw again. A caterer bills 4 plates at ₹1000. The network must learn the price per plate (the weight).
Weight now: ₹100 per plate
Prediction ŷ: ₹400
Error: ₹600
★★ Backpropagation fine-tunes the weights using the error (loss) of the previous epoch. One epoch = one full pass through the training data.
| Epoch | Weight w | Prediction ŷ | Error |
|---|
Tap a type to see how it is built and where it is used.
Case-based questions ask exactly this. Pictures, sequences, tables or creating new data?
Score 0 / 0
Choose an answer.
Both models were trained on thousands of cat and dog photos. Ask each one something.
Tap a button above.
| Basis | Generative | Discriminative |
|---|---|---|
| Purpose | Creates new content similar to training data | Decides which class something belongs to |
| Learns | The underlying data distribution | The boundary between classes |
| Examples | GAN, VAE, LLM, Naive Bayes | Logistic Regression, Decision Tree, SVM, Random Forest |
| Daily life | Caricature artist at Shilparamam | Metro ticket checker: valid or not |
★★ Board Q: Differentiate between generative and discriminative models.
The generator forges a signature. The discriminator compares it with the real one. Every time the fake is caught, the generator gets better.
Real signature (training data)
Generator’s fake, round 1 of 6
Chance it calls the fake “real”
★★ GAN = Generator (creates fake samples) + Discriminator (judges real vs fake), trained against each other. Used for image generation, style transfer and data augmentation.
Like turning a long trip into a short voice note (encoder) that a friend can picture again (decoder). The short version is the latent space.
Input
Latent space: just 3 numbers
Encode first, then sample a new point to create an image the model never saw.
Output
★ GANs are best for visually realistic outputs; VAEs suit structured data generation, anomaly detection and filling in missing data.
Your phone keyboard guesses the next word. A Large Language Model does this after reading trillions of words. Tap a word to continue the sentence.
★★ A Large Language Model is a deep learning algorithm that performs NLP tasks such as generating and classifying text, answering questions conversationally and translating languages. It is “large” because it is trained on massive datasets of text and code.
Limitations: needs huge computing power; can state wrong facts confidently; may memorise instead of generalise.
Probabilities shown here are illustrative, for class discussion.
Top row: applications. Bottom row: ethical issues. Tap each card.
Ask the question aloud, let students answer, then tap to check.