Lesson3-IntroML
Lesson3-IntroML
■ Outline:
1. What is machine learning?
2. Types of machine learning
3. Data for machine learning
4. Machine learning for classification
Introduction to machine learning
■ Outline:
1. What is machine learning?
2. Types of machine learning
3. Data for machine learning
4. Machine learning for classification
What is machine learning?
Speech signal
Speech signal
Speech signal
Three forces brought AI to life
Speech signal
What is machine learning
ECG
Speech signal
Machine learning algorithm
Speech signal
Traditional programming vs. ML
ECG
Speech signal
Example of Fizzbuzz game solving
ECG
Example of Fizzbuzz game solving
ECG
Speech signal
Bài tập nhóm
■ Hãy lập trình giải phương trình trên theo phương pháp
truyền thống
■ Tìm hiểu về phương pháp giải phương trình trên dùng ML
■ Given 𝑎 ≠ 0, 𝑏, 𝑐
ECG
■
■ Find x?
■ Solving:
Example of quadratic equation solving
■ Given y = ax ! + bx + c
ECG
■ Solve for x = 𝟖?
■ x = 8 −→ y =?
When ML is used?
ECG
Speech signal
Introduction to machine learning
■ Outline:
1. What is machine learning?
2. Types of machine learning
3. Data for machine learning
4. Teachable machine
Types of ML
■ Speechrewards
Reinforcement: signal from a sequence of actions
Supervised learning
n Speechdetection,
Ex: Covid-19 signal traffic light classification
Regression
Feature vector
[height weight gender age]
■ Goal: to produce a model that takes a feature vector as input and
transforms it to another vector or to a value used to solve a practical
Speech signal
problem.
Speech signal
An example of clustering
ECG
Speech signal
Reinforcement
■ Outline:
1. What is machine learning?
2. Types of machine learning
3. Data for machine learning
4. Machine learning for classification
Importance of data
Data Practical
acquisition usage
Universal set
(unobserved)
Train
Training set Testing set
(observed) (unobserved)
Evaluate/test
What factors make a good dataset?
https://www.promptcloud.com/blog/what-to-look-for-in-training-dataset/
Dataset structure
§ Label types:
Ø Integer numbers
§ Format data
§ Clean data
§ Segmentation
§ Inputs: sepal length in cm, sepal width in cm, petal length in cm,
petal width in cm
■ Outline:
1. What is machine learning?
2. Types of machine learning
3. Data for machine learning
4. Machine learning for classification
Basic terms of classification
ECG
Speech signal
Types of classification
ECG
Speech signal
Implementation of classification
Speech signal
Implementation of classification
ECG
Speech signal
Implementation of classification
ECG
Speech signal
Bài tập
n Cho biết vector đặc trưng rút trích từ một bức ảnh chụp quả cam là
ECG
{2.7887, 6.5063, 9.4425, 9.8402, -19.5930} và ảnh chụp quả táo là:
{2.6743, 5.7745, 9.9031, 11.0016, -21.4722}.
n Dùng phương pháp so khớp mẫu, với hai kiểu tính khoảng cách là
norm1 và norm2, em hãy phân loại bức ảnh chụp trái cây có vector
đặc trưng là {2.6588, 5.7358, 9.6682, 10.7427, -20.9914} là ảnh
Speech signal
chụp loại quả nào? Giả sử bức ảnh này chỉ chụp một loại quả cam
hoặc táo.
Bài tập mở rộng
n Đề: Phân loại rượu vang Ý bằng phương pháp template matching
n
ECG https://github.com/MukeshTirupathi/Wine-
Cơ sở dữ liệu:
Classifier-Italy?tab=readme-ov-file