Module 1 ML
Module 1 ML
Machine Learning
Introduction to Machine Learning
Course objectives and outcomes
Syllabus: MODULE 1
● Machine Learning, Types of Machine Learning- Supervised,
unsupervised and reinforcement, Issues in Machine Learning,
Application of Machine Learning, Steps in developing a
Machine Learning Application.
Computer Vision
Machine
Learning
Robotics
Machine Learning
Two definitions of Machine Learning are offered. Arthur Samuel described it as: "the field of study that gives
computers the ability to learn without being explicitly programmed." This is an older, informal definition.
Tom Mitchell provides a more modern definition: "A computer program is said to learn from experience E
with respect to some class of tasks T and performance measure P, if its performance at tasks in T, as
measured by P, improves with experience E."
Example: playing checkers.
E = the experience of playing many games of checkers
T = the task of playing checkers.
P = the probability that the program will win the next game.
In general, any machine learning problem can be assigned to one of two broad classifications:
Supervised learning and Unsupervised learning.
A branch of artificial intelligence, concerned with the design and development of algorithms that allow
computers to evolve behaviors based on empirical data.
As intelligence requires knowledge, it is necessary for the computers to acquire knowledge.
What is Machine Learning?
A simpler way
ML in a Nutshell Evaluation
Representation • Accuracy
●Tens of thousands • Decision trees • Precision and recall
of machine • Sets of rules / Logic programs • Squared error
learning • Instances • Likelihood
algorithms • Graphical models • Posterior probability
• Cost / Utility
(Bayes/Markov nets)
●Hundreds new • Neural networks • Margin
every year • Support vector machines
• Entropy
• K-L divergence
●Every machine • Model ensembles • Etc.
learning • Etc.
algorithm has Optimization
three • Combinatorial optimization
components: • E.g.: Greedy search
○ Representation • Convex optimization
○ Evaluation • E.g.: Gradient descent
○ Optimization • Constrained optimization
• E.g.: Linear programming
Types of Machine Learning
• Supervised (inductive) learning
• Training data includes desired outputs-
• Ex. Regression, Decision Tree, Random Forest, KNN,
Logistic Regression, back propagation neural network
• Unsupervised learning
• Training data does not include desired outputs-
• Ex. clustering, dimensionality reduction and
association rule learning..
• Semi-supervised learning
• Training data includes a few desired outputs:
Speech Analysis,Internet Content Classification
• Reinforcement learning
• Rewards from sequence of actions
Input [temperature=20] -> Model -> Output = [visitors=high]
https://towardsdatascience.com/data-types-from-a-
machine-learning-perspective-with-examples-
111ac679e8bc
https://www.cogitotech.com/blog/what-are-the-various-
types-of-data-sets-used-in-machine-learning
Application of Machine Learning
• Fraud detection.
• Web search results.
• Real-time ads on web pages and mobile devices.
• Text-based sentiment analysis.
• Credit scoring and next-best offers.
• Prediction of equipment failures.
• New pricing models.
• Network intrusion detection.
• Pattern and image recognition.
● Using machine learning to detect spam emails.
To: you@gmail.com
GET YOUR DIPLOMA TODAY!
If you are looking for a fast and cheap way to
get a diploma, this is the best way out for
you. Choose the desired field and degree
and call us right now: For US:
1.845.709.8044 Outside US:
+1.845.709.8044 "Just leave your NAME &
PHONE NO. (with CountryCode)" in the
voicemail. Our staff will get back to you in
next few days!
ALGORITHM
Naïve
Bayes
Rule
mining
● Using machine learning to recommend books.
ALGORITHMS
Collaborative
Filtering
Nearest Neighbour
● Using machine learning to identify faces and
expressions.
ALGORITHMS
Decision
Trees
Adaboost
• Using machine learning to identify vocal
patterns
ALGORITHMS
Feature Extraction
Probabilistic
Classifiers
Support Vector
Machines
+ many more….
● ML for working with social network data:
detecting fraud, predicting click-thru
patterns, targeted advertising, etc etc etc .
ALGORITHMS
Support Vector
Machines
Collaborative filtering
Rule mining
algorithms
Many many more….
Driving a car
Recognising spam emails
Recommending books
Reading handwriting
Recognising speech, faces, etc
MATrix LABoratory
OVERFITTING: the machine learning model learns the details and noise in the training data such
that it negatively affects the performance of the model on test data.
Overfitting can happen due to low bias and high variance.
● Data used for training is not cleaned and contains noise (garbage values) in it
● The model has a high variance
● The size of the training dataset used is not enough
● The model is too complex
HOW TO OVERCOME
● Using K-fold cross-validation
● Using Regularization techniques such as Lasso and Ridge
● Training model with sufficient data
● Adopting ensembling techniques
Underfitting
When a model has not learned the patterns in the training data well and is unable to
generalize well on the new data and will result in unreliable predictions, it is known as
underfitting.
● Data used for training is not cleaned and contains noise (garbage values) in it
● The model has a high bias
● The size of the training dataset used is not enough
● The model is too simple
HOW TO OVERCOME
In order to achieve a good fit, you need to stop training at a point where the error starts to increase.
Validation error
Training error
Crossvalidation
How well a model trained on the Fitting a sixth-order polynomial to
training set predicts the right output noisy data sampled from a
for new generalization instances is overfitting third-order polynomial, is
called —---------------------------- called —-------------
To summarise,