Академический Документы
Профессиональный Документы
Культура Документы
COMP3220
Search vs Discovery
Definition- Machine Learning
“A computer program is said to learn from experience E with respect
to some task T and some performance measure P, if its performance
on T, as measured by P, improves with experience E.” -- Tom Mitchell,
Carnegie Mellon University
Machine Learning
Type of artificial intelligence (AI) that provides computers with the ability to
learn without being explicitly programmed.
Machine learning focuses on the development of computer programs that can
teach themselves to grow and change when exposed to new data.
The process of Machine Learning is similar to that of Data Mining. Both systems
search through data to look for patterns.
◦ Data Mining - extract data for human comprehension
◦ Machine learning - uses that data to detect patterns in data and adjust program actions
accordingly.
Machine Learning approach
Instead of writing a program by hand for each specific task, we collect lots of
examples that specify the correct output for a given input.
A machine learning algorithm then takes these examples and produces a
program that does the job.
• The program produced by the learning algorithm may look very different from a typical
hand-written program. It may contain millions of numbers.
• If we do it right, the program works for new cases as well as the ones we trained it on.
• If the data changes the program can change too by training on the new data.
Unsupervised learning
◦ Let the computer learn how to do something, and use this to determine structure and
patterns in data
Recommender systems
◦ Estimate a utility function that automatically predicts how a user will like an item
Reinforcement learning
◦ the problem of getting an agent to act in the world so as to maximize its rewards.
Learning algorithms contd.
Supervised learning - Supervised algorithms can apply what has been
learned in the past to new data
Prediction – e.g. regression
Classification – e.g. neural networks
Unsupervised learning - Unsupervised algorithms can draw
inferences from datasets. Given a dataset it is tasked with finding
patterns and correlations therein.
Clustering
Social network Analysis – e.g. identifying close knit group of friends
How supervised learning works…
Each training case consists of an input vector x and a target output
t.
We start by choosing a model-class: – A model-class, f, is a way of
using some numerical parameters, β to map each input vector, x,
into a predicted output y.
Learning usually means adjusting the parameters to reduce the
discrepancy between the target output, t, on each training case
and the actual output, y, produced by the model.
•
Supervised machine learning framework
y = f(x)
output prediction Image
function feature
f( ) = “apple”
f( ) = “tomato”
f( ) = “cow”
Slide credit: L. Lazebnik
Steps
Training Training
Labels
Training
Images
Image Learned
Training
Features model
Testing
Test Image
Image Learned
Prediction
Features model
Slide credit: D. Hoiem and L. Lazebnik
Types of Supervised Learning
Regression: The target output is a real number or a whole vector of
real numbers.
The price of a stock in 6 months time.
The temperature at noon tomorrow.
• Classification: The target output is a class label.
The simplest case is a choice between 1 and 0.
Will a person default on a loan.
We can also have multiple alternative labels.
Typical Machine Learning Problems
Regression
A regression model is a model of the relationships between some covariates (predictors) and an outcome.
Regression is a model of the average outcome given the covariates.
Input data x about a certain domain
◦ e.g. square footage of a house
Predict a value f(x)
◦ e.g. market price for said house
f(sq footage)=β0 + β1 𝑆𝑞. 𝐹𝑜𝑜𝑡𝑎𝑔𝑒 + ε
Other input variables - no of bedrooms, no of bathroom, no of floors, year built , Zip code)
https://www.toptal.com/machine-learning/machine-learning-theory-an-introductory-primer
Predictors on training set
f f
https://www.toptal.com/machine-learning/machine-learning-theory-an-introductory-primer
Predictors on training set
f
https://www.toptal.com/machine-learning/machine-learning-theory-an-introductory-primer
Typical Machine Learning Problems
Classification
Examples
• Artificial Neural Networks
• Decision Trees
Artificial Neural Network
Output is a ‘squashed’ linear function of the inputs
Neural Network - ML
Neural Network as classifier
Binary classification
◦ Single output (0 or 1)
◦ So single output node - value is going to be a real number
◦ k=1
◦ NB k is number of units in output layer
Multi-class classification
◦ k distinct classifications
◦ Typically k is greater than or equal to three
◦ Y is k-dimentional vector of real numbers
Feed forward Neural Network
A parametrized value of non linear functions
Neural Networks
What is the learning process in ANN?
Updating network architecture and connection weights so that network can efficiently perform a task