The Basics of Machine Learning
The Basics of Machine Learning
The Basics of Machine Learning
CIS 9793
Deep Learning
Agenda
Today’s Session – Week 3: Basics of Machine Learning
1. AI Current Events
2. The Basics of Machine Learning
1. ML Operations
2. Supervised
3. Unsupervised
4. Reinforcement
5. Human Equivalent
3
AI Current Events
The Basics of Machine Learning
Machine Learning Operations
Understand the
Evaluate the
business problem & Prepare the Data Choose a Model Train the Model
Collect Data Model
• Data Quality!! • Data Cleansing • Supervised • Feed Training Set • Feed Testing Set
• Data Wrangling • Unsupervised • Do not feed it the
• Data Transformation • Reinforcement training set!!
6
Machine Learning vs Coding
Machine Learning vs. Traditional Coding (aka Programming, Modeling, etc.)
• Traditional Programming involves writing explicit instructions for a computer to execute specific tasks.
• Machine Learning, on the other hand, allows systems to learn and improve from data without explicit programming.
• In ML, algorithms are trained on data to make predictions or decisions.
https://sravya-tech-usage.medium.com/traditional-programming-vs-machine-
learning-e9bbed5e491c
https://www.slideteam.net/machine-learning-vs-traditional-programming-ppt-powerpoint-presentation-
icons.html#images-1
7
Supervised Learning
• Linear Regression
• Logistic Regression
• Decision Tree
• Support Vector Machines
• Neural Networks
What is it?
8
Unsupervised Learning
• K-Means Clustering
• Association Rules
What is it?
9
Reinforcement Learning
Reinforcement Learning List of Common Algorithms
• Q-Learning
• Temporal Difference
• Deep Adversarial Networks
What is it?
Supervised Learning:
Human Equivalent: It's like teaching a student by providing answers and questions in advance. The student learns to predict the right answers based
on the questions and answers provided.
Unsupervised Learning:
Human Equivalent: Imagine sorting a pile of various fruits without knowing their names. You start noticing patterns and group similar fruits
together, even though you don't know what each fruit is called.
Reinforcement Learning:
Human Equivalent: Think of a dog being trained with treats. When it performs a desired action (good action), it receives a treat (reward). If it
misbehaves (bad action), it gets a scolding or no treat (penalty). Over time, the dog learns to perform more good actions.
11
Common ML Algorithms
Common Machine Learning Algorithms
• Decision Trees: Hierarchical tree-like models used for classification and regression.
• Support Vector Machines (SVM): Classify data by finding a hyperplane that best separates classes.
• K-Means Clustering: Unsupervised algorithm for clustering data points into groups.
• Convolutional Neural Networks (CNNs): Specialized for image processing tasks, using convolutional layers to detect features.
• Recurrent Neural Networks (RNNs): Suitable for sequential data, using recurrent connections to maintain information about previous inputs.
• Image Recognition: CNNs are used in image classification, object detection, and facial recognition.
• Natural Language Processing (NLP): RNNs and LSTM networks power chatbots, language translation, and sentiment analysis.
• Autonomous Vehicles: Deep learning is crucial for self-driving cars to perceive their environment.
• Recommendation Systems: RNNs and CNNs can personalize recommendations for users.
12
Human Equivalents
Common Machine Learning Algorithm Human Equivalent
Linear Regression:
Human Equivalent: Predicting a student's final grade based on their study hours. You notice a pattern: as study hours increase, grades tend to
improve.
Decision Trees:
Human Equivalent: Creating a flowchart to help you decide what to do on a rainy day. You start with a question like "Is it raining?" and then follow
branches to decide whether to stay in or go out.
Random Forest:
Human Equivalent: When making a tough decision, you consult multiple friends with different expertise. You gather their opinions and make your
decision based on their collective advice.
Human Equivalent: Finding the best way to separate a group of people into two teams based on their interests and skills. You look for the most
effective line that keeps the teams as different as possible.
K-Means Clustering:
Human Equivalent: When organizing a library, you group similar books together without knowing their titles or content. You use common
characteristics like size, cover color, or topic.
13
Q&A
End
CIS 9793