Introduction To Machine Learning
Introduction To Machine Learning
Learning
UNIT - I
2
How you learn to -
3
4
How to
pass
experience
to
machines…?
5
Machine Learning: Definition
6
Types of ML
Machine Learning
7
Supervised Learning
8
How Supervised Learning Works ?
Training Prediction
Output
WhatsApp Model “Facebook”
9
Regression
10
Classification
11
Unsupervised Learning
12
How Unsupervised Learning Works ?
Process
A
Interprete
Model
B
13
Clustering
14
15
Association: e.g Shopping basket analysis
+ +?
16
17
ML System Architecture
Refers to the high-level design of the entire machine learning system, including data pipelines, data
storage, model training, model deployment, and inference
Encompasses the end-to-end flow of data and how machine learning components interact with other
parts of the system
18
ML Model Architecture
- SVM
- Decision Tree
The model architecture is crucial as it determines the model's capacity to learn and its ability to
generalize to new data
19
ML Model Architectures : Neural Networks
20
X1
X2
y Output
X3
X4
21
22
ML Model Architectures : Decision Tree
23
Architectural Patterns in Machine Learning
Refer to the common design principles used to structure and organize the components of the system.
Some common architectural patterns in machine learning systems include:
● Pipeline
● Microservices
● Model-View-Controller (MVC)
● Event-Driven
● Serving
24
Pipeline Architecture Pattern
Collect
Store
Enrich
Train
Visualize
25
Microservices Architecture Pattern
26
MVC Architecture Pattern DB
Model
Controller
View
Presentation
27
Event Driven Architecture Pattern
28
Serving Architecture
29
Machine Learning Process
30
1. Define the Problem
Task(T): —---------
Experience(E): —----------
31
2. Collect the Data
● Different ways to collect the data - (Review, Ratings, Surveys, Scraping the website, use of
provided APIs)
● BIG data
32
3. Prepare the Data (Feature Processing)
I. Selection / Filtering
II. Cleaning
III. Formatting
IV. Sampling
V. Decomposition
VI. Scaling
33
4. Split Data: Training and Testing
OR
34
5. Algorithm Selection based on Categories
1. Regression
2. Classification
3. Clustering
4. Dimensionality Reduction
5. Anomaly Detection
6. Recommendation System
7. NLP
8. Transfer Learning
35
6. Train and Tune the Model
Compare
Adjust Cost
Weight
Function
36
7. Use Trained Model
Performance…?
Trained
Input Model Output
37
Performance Measures
8. RMSE = √MSE 38
Tools & Frameworks
● Scikit-learn
● TensorFlow
● Keras
● PyTorch
● Caffe
● MXNet
● Microsoft Cognitive Toolkit (CNTK)
● Microsoft Azure ML
● H2O.ai
● RapidMiner
39
40
41
42
43
The Kernel Trick
LD
Kernel
HD
44
Data Visualization
Data visualization is a graphical representation of data