Module 02 / 17
Machine Learning Basics
Understand Machine Learning concepts, supervised and unsupervised learning.
01 What is Machine Learning?
Machine Learning (ML) is a branch of AI that enables computers to learn and make decisions without being explicitly programmed for each task. ML systems use algorithms to identify patterns in data and make predictions or decisions based on those patterns.
02 Supervised Learning
Supervised Learning is a method where the model is trained using labeled data. The model learns from input-output pairs to make predictions on new data.
Example Algorithms:
- Linear Regression: Predicting continuous values (house prices)
- Logistic Regression: Binary classification (spam/not spam)
- Decision Trees: Rule-based decisions
- Random Forest: Ensemble of decision trees
- Support Vector Machines (SVM): Classification with optimal margin
- Neural Networks: Brain-inspired models
03 Unsupervised Learning
Unsupervised Learning is a method where the model finds patterns in unlabeled data.
Example Algorithms:
- K-Means Clustering: Grouping data by similarity
- Hierarchical Clustering: Multi-level grouping
- Principal Component Analysis (PCA): Dimensionality reduction
- Association Rules: Finding relationships between items (market basket analysis)
- Anomaly Detection: Detecting outliers or abnormal data
04 Reinforcement Learning
Reinforcement Learning is a method where an agent learns through interaction with an environment. The agent receives rewards or punishments based on its actions and learns to maximize rewards.
Applications:
- Game AI (AlphaGo, OpenAI Five)
- Robot navigation
- Recommendation systems
- Automated trading
- Autonomous vehicle control
05 Machine Learning Process
- Data Collection: Gathering relevant data
- Preprocessing: Cleaning and preparing data
- Feature Engineering: Selecting and creating important features
- Model Selection: Choosing the appropriate algorithm
- Training: Training the model with data
- Evaluation: Testing model performance
- Tuning: Optimizing hyperparameters
- Deployment: Deploying the model to production
06 Evaluation Metrics
Classification:
- Accuracy: Percentage of correct predictions
- Precision: Correctness of positive predictions
- Recall: Ability to find all positives
- F1-Score: Harmonic mean of precision and recall
Regression:
- Mean Absolute Error (MAE)
- Mean Squared Error (MSE)
- R-squared (R²)