Skip to main content
MahiDev — Learn. Build. Become AI-ready.

Lesson 01

What Is Machine Learning — Three Types and Theory First

Understand what machine learning is, how the three types differ, and which theory lessons to finish before any algorithm.

Intermediate12 min
Arrow from raw data through ML model to prediction

What You Will Learn

  • What machine learning is
  • Three types of ML
  • Learn the theory first

What machine learning is

A normal program follows rules you write. Machine learning learns the rules from examples. You give it inputs. It returns a prediction: a number, a class, a group, or a next action.

fit is the learning step. predict is the step that uses what was learned. Predict only works after fit.

Three types of ML

Supervised learning trains on labelled examples. Each row has the correct answer. A salary is regression. Senior or not is classification.

Unsupervised learning has no correct answer on the row. It looks for groups, a shorter set of columns, items that appear together, or rows that do not match the crowd.

Reinforcement learning trains an agent with a reward. The agent tries an action, sees the next situation, and gets a score for how good that action was.

Open the algorithm catalogs only after the theory lessons below.

Supervised learning Unsupervised learning Reinforcement learning

Learn the theory first

Lessons 2–15 are the prerequisite. Finish them before any algorithm page.

  1. Bias and Variance
  2. Gradient Descent
  3. Regularization
  4. Support Vector Machines
  5. Naive Bayes
  6. Gradient Boosting
  7. Dimensionality Reduction
  8. Feature Engineering
  9. Imbalanced Data
  10. Learning Curves
  11. Ensemble Methods
  12. Model Selection
  13. ML Workflow
  14. Model Monitoring

Start lesson 2: Bias and Variance

When to use machine learning

Use it when the pattern is too messy to write by hand, or the pattern changes when the data changes. Skip it when the rule is simple and stable.

Check your understanding

What Is Machine Learning Quiz

What does supervised learning require that unsupervised learning does not?

1 / 10