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.
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.
- Bias and Variance
- Gradient Descent
- Regularization
- Support Vector Machines
- Naive Bayes
- Gradient Boosting
- Dimensionality Reduction
- Feature Engineering
- Imbalanced Data
- Learning Curves
- Ensemble Methods
- Model Selection
- ML Workflow
- 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