Learn AI Math

Topic 1 of 20 · 49 words

AI & Machine Learning Fundamentals

The core building blocks of artificial intelligence: how models learn patterns from examples, optimize weights, and get tested for accuracy.

✎ Napkin Diagram · Topic 01Training vs. Inference: Studying Flashcards vs. Taking the Test
PNG ↗
Training vs. Inference: Studying Flashcards vs. Taking the Test Simple cartoon diagram comparing AI Training (studying 1,000 flashcards and fixing mistakes until the brain learns the pattern) with AI Inference (answering a brand-new question in 1 second on test day). 1. TRAINING = STUDYING AT HOME1,000 Flashcards"Cat" vs. "Dog"with right answers AI BrainMakes a guessOops!ChecksscorecardFixes its mistakes & tries again (costs millions of dollars!)2. INFERENCE = TEST DAY (LIVE)You ask a brand-new questionTrained Brain (Done studying!)Uses what it already knowsInstant Answer! ✓ getaimath.com
Training is the long study session where the AI learns from examples; inference is test day when you actually use it.

The 49 words, in learning order

Start at 1. Each word builds on the ones before it.

  1. Artificial Intelligence (AI)Artificial Intelligence is when computers do things that usually need a human brain, like understanding words, spotting faces or making choices.
  2. Machine Learning (ML)Machine Learning is a way of building AI where the computer learns from examples instead of being told every rule.
  3. Deep Learning (DL)Deep Learning is a kind of machine learning that uses big neural networks with many layers stacked on top of each other.
  4. Neural NetworkA neural network is a computer system made of many tiny math units connected together, loosely inspired by how brain cells connect.
  5. Artificial NeuronAn artificial neuron is the smallest building block of a neural network: it takes in numbers, mixes them, and passes one number on.
  6. PerceptronA perceptron is one of the first and simplest artificial neurons, invented in 1958, that makes a yes-or-no decision.
  7. TrainingTraining is the learning phase, when an AI model studies lots of examples and slowly gets better at its task.
  8. InferenceInference is when a trained AI model is actually used to give answers, instead of still learning.
  9. Supervised LearningSupervised learning is training an AI with examples that already have the right answers attached.
  10. Unsupervised LearningUnsupervised learning is when an AI looks for patterns in data that has no labels or right answers.
  11. Semi-supervised LearningSemi-supervised learning trains an AI with a small amount of labeled data and a large amount of unlabeled data.
  12. Self-supervised LearningSelf-supervised learning is when an AI makes its own practice questions from raw data, so no human labels are needed.
  13. Reinforcement Learning (RL)Reinforcement Learning is a way for AI to learn by trying things and getting rewards for good choices and penalties for bad ones.
  14. Reinforcement Learning from Human Feedback (RLHF)RLHF is a way to improve a chatbot by having people rate its answers and then training it to give the kinds of answers people prefer.
  15. Fine-tuningFine-tuning is giving an already-trained AI model extra training on a smaller, focused set of examples so it gets good at a specific job.
  16. Pre-trainingPre-training is the first, giant training stage where a model learns general knowledge from enormous amounts of data.
  17. Transfer LearningTransfer learning means taking what a model learned on one task and reusing it to learn a new, related task faster.
  18. GeneralizationGeneralization is how well an AI model handles new examples it never saw during training.
  19. OverfittingOverfitting is when a model learns its training examples too closely, including the noise, so it does badly on new data.
  20. UnderfittingUnderfitting is when a model is too simple or not trained enough, so it fails to learn the pattern even on its training data.
  21. ModelIn AI, a model is the trained program that takes an input and produces an output, like an answer, a label or a picture.
  22. AlgorithmAn algorithm is a step-by-step set of instructions for solving a problem or doing a task.
  23. DatasetA dataset is a collection of examples, like texts, pictures or numbers, used to train or test an AI model.
  24. Training DataTraining data is the set of examples a model actually learns from.
  25. Validation DataValidation data is a separate set of examples used during training to check how well the model is learning.
  26. Test DataTest data is a set of examples kept hidden until the very end, used to measure how good the finished model really is.
  27. Ground TruthGround truth is the real, correct answer that a model's guesses are compared against.
  28. FeatureA feature is one piece of information about an example that a model uses to make a decision.
  29. LabelA label is the correct answer attached to an example in a training dataset.
  30. Loss FunctionA loss function is a formula that measures how wrong a model's answer is, giving one number to make smaller.
  31. OptimizationOptimization is the process of adjusting a model's numbers step by step to make its mistakes as small as possible.
  32. Gradient DescentGradient descent is a method for training models by repeatedly taking small steps in the direction that reduces mistakes the most.
  33. BackpropagationBackpropagation is the method a neural network uses to figure out which of its numbers caused a mistake, so it can fix them.
  34. WeightsWeights are the numbers inside a neural network that decide how much each input matters.
  35. Bias"Bias" has two meanings in AI: a small extra number inside each neuron, and unfair patterns a model picks up from its data.
  36. ParametersParameters are all the numbers a model learns during training, mainly its weights and biases.
  37. HyperparametersHyperparameters are the settings people choose before training starts, which control how the model learns.
  38. EpochAn epoch is one full pass through the entire training dataset.
  39. BatchA batch is a small group of training examples that the model looks at together before updating its numbers.
  40. Batch SizeBatch size is how many examples go into each batch during training.
  41. Learning RateThe learning rate controls how big each step is when a model updates its numbers during training.
  42. AccuracyAccuracy is the share of answers a model gets right, out of all the answers it gives.
  43. PrecisionPrecision tells you, of all the times the model said "yes," how often it was actually right.
  44. RecallRecall tells you, of all the real "yes" cases, how many the model managed to find.
  45. F1 ScoreThe F1 score combines precision and recall into one number, rewarding models that are good at both.
  46. BenchmarkA benchmark is a standard test used to measure and compare how well different AI models perform.
  47. EvaluationEvaluation is the process of testing an AI model to see how well it works, how safe it is, and where it fails.
  48. HallucinationA hallucination is when an AI confidently makes up something that is false, like a fake fact, quote or source.
  49. Emergent AbilitiesEmergent abilities are skills that show up in large AI models but were not clearly present in smaller ones.

How AI & Machine Learning Fundamentals fits together

Every modern AI system rests on one shift: instead of humans writing explicit if-then rules, a computer studies examples and adjusts millions or billions of internal numbers (weights) until its guesses match reality. That learning phase is training; using the finished model to answer new questions is inference.

As you read down this list, notice the three-part loop behind all machine learning: data goes in (features, labels, datasets), a loss function measures how wrong the guess was, and gradient descent nudges the parameters so the next guess improves—while validation tests guard against overfitting.