Data & AI · Free course
Machine Learning for Everybody: A Comprehensive Guide
An accessible, hands-on course designed for beginners to learn the core concepts of supervised and unsupervised machine learning. You will build models from scratch using Python, Google Colab, and popular libraries like TensorFlow and Scikit-Learn.
by freeCodeCamp.org · Watch the original on YouTube
- beginner
- 29 lessons
- 3.9 hours of video
- 9 days at 30 min/day
Loading course start…
What you’ll learn
- Understand the differences between supervised, unsupervised, and reinforcement learning.
- Implement classification models including KNN, Naive Bayes, Logistic Regression, and SVM.
- Build and tune neural networks using TensorFlow.
- Apply linear regression techniques to predict continuous values.
- Perform unsupervised learning tasks like K-Means clustering and PCA.
Your daily curriculum
A plan for about 30 minutes a day, including time for notes and questions. Adjust your pace in your own copy.
Day 1 · about 34 min · 0:00 – 27:34
1. Introduction to Machine Learning and Data Loading
0:00 – 8:35Learn the basics of the machine learning workflow, including how to import datasets and prepare data frames using Pandas.
- Machine learning is a subdomain of computer science focusing on algorithms that learn from data without explicit programming. 0:00
- Pandas read_csv is used to turn comma-separated files into data frame objects. 3:55
- Data cleaning often involves converting categorical labels (like G/H) into numerical values (0/1). 6:17
2. Machine Learning Fundamentals
8:35 – 12:29Understand the core differences between AI, machine learning, and data science, and define the three main types of learning.
- AI enables machines to simulate human behavior, while ML is a subset focused on making predictions from data. 9:08
- Supervised learning uses labeled inputs to train models to predict outputs. 9:39
- Unsupervised learning uses unlabeled data to find patterns or clusters. 10:47
- Reinforcement learning involves an agent learning through rewards and penalties. 11:19
3. Feature Engineering and Data Types
12:29 – 17:29Learn how to prepare different types of features, including one-hot encoding for categorical data and handling numerical data.
- Qualitative (categorical) data with no inherent order is called nominal data. 13:33
- One-hot encoding converts categorical variables into binary vectors. 14:06
- Ordinal data has an inherent order, allowing for numerical ranking. 15:15
- Quantitative data can be discrete (integers) or continuous (real numbers). 16:22
4. Classification Tasks: Binary vs. Multi-class
17:29 – 20:10Explore the differences between binary and multi-class classification tasks in supervised learning.
5. Model Evaluation and Training
20:10 – 27:34Learn how to split data into training, validation, and testing sets to ensure model generalizability.
- The feature matrix (X) contains input features, while the target vector (y) contains labels. 21:19
- Training involves adjusting model parameters to minimize the difference between predictions and actual values. 22:21
- Data is split into training (for learning), validation (for tuning), and testing (for final assessment). 24:02
Day 2 · about 32 min · 27:34 – 52:45
6. Understanding Loss Functions
27:34 – 30:25Deep dive into loss functions and how they quantify model performance.
7. Data Visualization and Splitting
30:25 – 36:20Learn how to visualize feature distributions and split datasets programmatically.
8. Scaling and Resampling Data
36:20 – 44:49Master data preprocessing techniques like feature scaling and oversampling to handle imbalanced datasets.
9. K-Nearest Neighbors (KNN) Theory
44:49 – 52:45Understand the logic behind the K-Nearest Neighbors algorithm and Euclidean distance.
Day 3 · about 31 min · 52:45 – 1:17:31
10. Implementing K-Nearest Neighbors
52:45 – 58:42Apply the KNN algorithm using Scikit-Learn and interpret classification reports.
11. Naive Bayes Theory (part 1 of 2)
58:42 – 1:08:07Learn the probability foundations of Naive Bayes, including Bayes' Rule and conditional probability.
- Bayes' Rule allows calculating the probability of an event based on prior knowledge of conditions. 1:02:18
12. Naive Bayes Theory (part 2 of 2)
1:08:07 – 1:17:31Learn the probability foundations of Naive Bayes, including Bayes' Rule and conditional probability.
Day 4 · about 39 min · 1:17:31 – 1:47:55
13. Naive Bayes Implementation and Logistic Regression Theory
1:17:31 – 1:27:06Implement Gaussian Naive Bayes and explore the mathematical foundations of Logistic Regression.
14. Implementing Logistic Regression
1:27:06 – 1:29:20Apply Logistic Regression to classification tasks using Scikit-Learn.
15. Support Vector Machines (SVM) Theory
1:29:20 – 1:37:13Understand the concept of hyperplanes, margins, and the kernel trick in SVMs.
- The kernel trick allows SVMs to handle non-linearly separable data by projecting it into higher dimensions. 1:29:20
- SVMs aim to find the hyperplane that best separates classes with the largest possible margin. 1:33:22
- Support vectors are the data points that lie on the margin lines and define the boundary. 1:33:57
16. Implementing Support Vector Machines
1:37:13 – 1:39:31Apply the SVC (Support Vector Classifier) to classification problems.
17. Neural Networks Theory
1:39:31 – 1:47:55Learn the architecture of neural networks, including neurons, activation functions, and gradient descent.
- Neural networks consist of input, hidden, and output layers of interconnected neurons. 1:40:03
- Activation functions (like ReLU or Sigmoid) introduce non-linearity, preventing the model from collapsing into a linear model. 1:42:52
- Gradient descent is an optimization algorithm used to minimize the loss function by updating weights. 1:44:30
- The learning rate controls the size of steps taken during gradient descent. 1:46:45
Day 5 · about 28 min · 1:47:55 – 2:10:11
18. Implementing Neural Networks
1:47:55 – 1:56:40Build and train a neural network using TensorFlow and Keras.
19. Hyperparameter Tuning
1:56:40 – 2:10:11Learn how to optimize neural network performance through grid search and dropout layers.
Day 6 · about 30 min · 2:10:11 – 2:34:11
20. Linear Regression Theory
2:10:11 – 2:22:43Understand the mechanics of linear regression, residuals, and the assumptions required for the model.
- Linear regression models the relationship between variables by fitting a line of best fit. 2:11:21
- Residuals are the differences between the actual data points and the predicted values on the regression line. 2:12:55
- Key assumptions include linearity, independence of errors, normality, and homoscedasticity. 2:17:23
21. Regression Evaluation Metrics
2:22:43 – 2:34:11Learn how to evaluate regression models using MAE, MSE, RMSE, and R-squared.
- Mean Absolute Error (MAE) provides the average distance between predictions and actual values. 2:22:43
- Mean Squared Error (MSE) penalizes larger errors more heavily than MAE. 2:26:06
- Root Mean Squared Error (RMSE) brings the error back to the original units of the target variable. 2:27:53
- R-squared measures how well the regression model explains the variance in the data. 2:28:30
Day 7 · about 38 min · 2:34:11 – 3:04:09
22. Bike Sharing Regression Project (part 1 of 2)
2:34:11 – 2:44:21Apply regression techniques to a real-world dataset to predict bike rental counts.
- Data preprocessing for regression often involves dropping irrelevant columns and handling categorical data. 2:38:44
23. Bike Sharing Regression Project (part 2 of 2)
2:44:21 – 2:54:30Apply regression techniques to a real-world dataset to predict bike rental counts.
24. Neural Net Regression (part 1 of 2)
2:54:30 – 3:04:09Implement neural networks for regression tasks and compare them with linear regression models.
Day 8 · about 36 min · 3:04:09 – 3:33:50
25. Neural Net Regression (part 2 of 2)
3:04:09 – 3:12:29Implement neural networks for regression tasks and compare them with linear regression models.
- Neural networks can model non-linear relationships that simple linear regression cannot. 3:04:09
26. Unsupervised Learning Theory: K-Means and PCA (part 1 of 2)
3:12:29 – 3:23:57Explore unsupervised learning techniques for clustering and dimensionality reduction.
27. Unsupervised Learning Theory: K-Means and PCA (part 2 of 2)
3:23:57 – 3:33:50Explore unsupervised learning techniques for clustering and dimensionality reduction.
- Principal Component Analysis (PCA) reduces dimensionality by finding directions with the largest variance. 3:23:57
Day 9 · about 26 min · 3:33:50 – 3:53:53
28. Unsupervised Learning Project (part 1 of 2)
3:33:50 – 3:40:40Implement K-Means clustering and PCA on a wheat seed dataset to identify patterns without labels.
29. Unsupervised Learning Project (part 2 of 2)
3:40:40 – 3:53:53Implement K-Means clustering and PCA on a wheat seed dataset to identify patterns without labels.
This course is built from a free YouTube video by freeCodeCamp.org. The videos play on YouTube, and the lessons, summaries and quizzes are Notelify’s own study notes. Notelify isn’t affiliated with YouTube or the creator. Creators can ask us to remove a course at support@notelifyapp.com.


