Machine Learning Overview Tamara Berg CS 590-133 Artificial Intelligence Many slides throughout the course adapted from Svetlana Lazebnik, Dan Klein, Stuart.

Slides:



Advertisements
Similar presentations
Unsupervised Learning Clustering K-Means. Recall: Key Components of Intelligent Agents Representation Language: Graph, Bayes Nets, Linear functions Inference.
Advertisements

Image classification Given the bag-of-features representations of images from different classes, how do we learn a model for distinguishing them?
Rutgers CS440, Fall 2003 Review session. Rutgers CS440, Fall 2003 Topics Final will cover the following topics (after midterm): 1.Uncertainty & introduction.
Support Vector Machines and Margins
Machine learning continued Image source:
Supervised Learning Recap
CS4670 / 5670: Computer Vision Bag-of-words models Noah Snavely Object
HMMs Tamara Berg CS Artificial Intelligence Many slides throughout the course adapted from Svetlana Lazebnik, Dan Klein, Stuart Russell, Andrew.
Discriminative and generative methods for bags of features
Bag-of-features models Many slides adapted from Fei-Fei Li, Rob Fergus, and Antonio Torralba.
Lecture 17: Supervised Learning Recap Machine Learning April 6, 2010.
Beyond bags of features: Part-based models Many slides adapted from Fei-Fei Li, Rob Fergus, and Antonio Torralba.
Recognition: A machine learning approach
Decision making in episodic environments
Lecture 28: Bag-of-words models
Bag-of-features models
Semi-Supervised Clustering Jieping Ye Department of Computer Science and Engineering Arizona State University
Advanced Multimedia Text Clustering Tamara Berg. Reminder - Classification Given some labeled training documents Determine the best label for a test (query)
Pattern Recognition. Introduction. Definitions.. Recognition process. Recognition process relates input signal to the stored concepts about the object.
Discriminative and generative methods for bags of features
Machine learning Image source:
Introduction to machine learning
Machine learning Image source:
Exercise Session 10 – Image Categorization
Classification III Tamara Berg CS Artificial Intelligence Many slides throughout the course adapted from Svetlana Lazebnik, Dan Klein, Stuart Russell,
Tamara Berg Machine Learning Recognizing People, Objects, & Actions 1.
Step 3: Classification Learn a decision rule (classifier) assigning bag-of-features representations of images to different classes Decision boundary Zebra.
CSE 185 Introduction to Computer Vision Pattern Recognition.
Machine Learning Overview Tamara Berg Language and Vision.
MACHINE LEARNING 張銘軒 譚恆力 1. OUTLINE OVERVIEW HOW DOSE THE MACHINE “ LEARN ” ? ADVANTAGE OF MACHINE LEARNING ALGORITHM TYPES  SUPERVISED.
Data mining and machine learning A brief introduction.
Classification Tamara Berg CSE 595 Words & Pictures.
Mehdi Ghayoumi Kent State University Computer Science Department Summer 2015 Exposition on Cyber Infrastructure and Big Data.
Machine Learning1 Machine Learning: Summary Greg Grudic CSCI-4830.
Computer Vision CS 776 Spring 2014 Recognition Machine Learning Prof. Alex Berg.
Recognition using Boosting Modified from various sources including
COMMON EVALUATION FINAL PROJECT Vira Oleksyuk ECE 8110: Introduction to machine Learning and Pattern Recognition.
Reinforcement Learning Tamara Berg CS Artificial Intelligence Many slides throughout the course adapted from Svetlana Lazebnik, Dan Klein, Stuart.
Introduction to machine learning and data mining 1 iCSC2014, Juan López González, University of Oviedo Introduction to machine learning Juan López González.
Bag-of-features models. Origin 1: Texture recognition Texture is characterized by the repetition of basic elements or textons For stochastic textures,
Lecture 10: 8/6/1435 Machine Learning Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
Machine Learning.
MACHINE LEARNING 8. Clustering. Motivation Based on E ALPAYDIN 2004 Introduction to Machine Learning © The MIT Press (V1.1) 2  Classification problem:
Artificial Intelligence 8. Supervised and unsupervised learning Japan Advanced Institute of Science and Technology (JAIST) Yoshimasa Tsuruoka.
CSE 5331/7331 F'07© Prentice Hall1 CSE 5331/7331 Fall 2007 Machine Learning Margaret H. Dunham Department of Computer Science and Engineering Southern.
Machine Learning Overview Tamara Berg CS 560 Artificial Intelligence Many slides throughout the course adapted from Svetlana Lazebnik, Dan Klein, Stuart.
MDPs (cont) & Reinforcement Learning
Classification II Tamara Berg CS 560 Artificial Intelligence Many slides throughout the course adapted from Svetlana Lazebnik, Dan Klein, Stuart Russell,
Lecture 2: Statistical learning primer for biologists
KNN & Naïve Bayes Hongning Wang Today’s lecture Instance-based classifiers – k nearest neighbors – Non-parametric learning algorithm Model-based.
Final Review Course web page: vision.cis.udel.edu/~cv May 21, 2003  Lecture 37.
Machine learning Image source:
Bayes Nets & HMMs Tamara Berg CS 560 Artificial Intelligence Many slides throughout the course adapted from Svetlana Lazebnik, Dan Klein, Stuart Russell,
Machine Learning Overview Tamara Berg Recognizing People, Objects, and Actions.
SUPERVISED AND UNSUPERVISED LEARNING Presentation by Ege Saygıner CENG 784.
KNN & Naïve Bayes Hongning Wang
Network Management Lecture 13. MACHINE LEARNING TECHNIQUES 2 Dr. Atiq Ahmed Université de Balouchistan.
Ch 1. Introduction Pattern Recognition and Machine Learning, C. M. Bishop, Updated by J.-H. Eom (2 nd round revision) Summarized by K.-I.
Data Mining and Text Mining. The Standard Data Mining process.
CMPS 142/242 Review Section Fall 2011 Adapted from Lecture Slides.
Unsupervised Learning Part 2. Topics How to determine the K in K-means? Hierarchical clustering Soft clustering with Gaussian mixture models Expectation-Maximization.
Brief Intro to Machine Learning CS539
Machine learning Image source:
Semi-Supervised Clustering
Constrained Clustering -Semi Supervised Clustering-
Recognition using Nearest Neighbor (or kNN)
Decision making in episodic environments
Overview of Machine Learning
Speech recognition, machine learning
Speech recognition, machine learning
Presentation transcript:

Machine Learning Overview Tamara Berg CS Artificial Intelligence Many slides throughout the course adapted from Svetlana Lazebnik, Dan Klein, Stuart Russell, Andrew Moore, Percy Liang, Luke Zettlemoyer, Rob Pless, Killian Weinberger, Deva Ramanan 1

Announcements HW4 is due April 3 Reminder: Midterm2 next Thursday –Next Tuesday’s lecture topics will not be included (but material will be on the final so attend!) Midterm review –Monday, 5pm in FB009

Midterm Topic List Be able to define the following terms and answer basic questions about them: Reinforcement learning –Passive vs Active RL –Model-based vs model-free approaches –Direct utility estimation –TD Learning and TD Q-learning –Exploration vs exploitation –Policy Search –Application to Backgammon/Aibos/helicopters (at a high level) Probability –Random variables –Axioms of probability –Joint, marginal, conditional probability distributions –Independence and conditional independence –Product rule, chain rule, Bayes rule

Midterm Topic List Bayesian Networks General –Structure and parameters –Calculating joint and conditional probabilities –Independence in Bayes Nets (Bayes Ball) Bayesian Inference –Exact Inference (Inference by Enumeration, Variable Elimination) –Approximate Inference (Forward Sampling, Rejection Sampling, Likelihood Weighting) –Networks for which efficient inference is possible Naïve Bayes –Parameter learning including Laplace smoothing –Likelihood, prior, posterior –Maximum likelihood (ML), maximum a posteriori (MAP) inference –Application to spam/ham classification –Application to image classification (at a high level)

Midterm Topic List HMMs –Markov Property –Markov Chains –Hidden Markov Model (initial distribution, transitions, emissions) –Filtering (forward algorithm) Machine Learning –Unsupervised/supervised/semi-supervised learning –K Means clustering –Training, tuning, testing, generalization

Machine learning Image source:

Machine learning Definition –Getting a computer to do well on a task without explicitly programming it –Improving performance on a task based on experience

Big Data!

What is machine learning? Computer programs that can learn from data Two key components –Representation: how should we represent the data? –Generalization: the system should generalize from its past experience (observed data items) to perform well on unseen data items.

Types of ML algorithms Unsupervised –Algorithms operate on unlabeled examples Supervised –Algorithms operate on labeled examples Semi/Partially-supervised –Algorithms combine both labeled and unlabeled examples

Clustering –The assignment of objects into groups (aka clusters) so that objects in the same cluster are more similar to each other than objects in different clusters. –Clustering is a common technique for statistical data analysis, used in many fields, including machine learning, data mining, pattern recognition, image analysis and bioinformatics.

Euclidean distance, angle between data vectors, etc

K-means clustering Want to minimize sum of squared Euclidean distances between points x i and their nearest cluster centers m k

Source: Hinrich Schutze

Hierarchical clustering strategies Agglomerative clustering Start with each data point in a separate cluster At each iteration, merge two of the “closest” clusters Divisive clustering Start with all data points grouped into a single cluster At each iteration, split the “largest” cluster

P Produces a hierarchy of clusterings P P P

P

Divisive Clustering Top-down (instead of bottom-up as in Agglomerative Clustering) Start with all data points in one big cluster Then recursively split clusters Eventually each data point forms a cluster on its own.

Flat or hierarchical clustering? For high efficiency, use flat clustering (e.g. k means) For deterministic results: hierarchical clustering When a hierarchical structure is desired: hierarchical algorithm Hierarchical clustering can also be applied if K cannot be predetermined (can start without knowing K) Source: Hinrich Schutze

Clustering in Action – example from computer vision

Recall: Bag of Words Representation  Represent document as a “bag of words”

Bag-of-features models Slides adapted from Fei-Fei Li, Rob Fergus, and Antonio Torralba

Bags of features for image classification 1.Extract features

2.Learn “visual vocabulary” Bags of features for image classification

1.Extract features 2.Learn “visual vocabulary” 3.Represent images by frequencies of “visual words” Bags of features for image classification

… 1. Feature extraction

2. Learning the visual vocabulary …

Clustering …

2. Learning the visual vocabulary Clustering … Visual vocabulary

Example visual vocabulary Fei-Fei et al. 2005

3. Image representation ….. frequency Visual words

Types of ML algorithms Unsupervised –Algorithms operate on unlabeled examples Supervised –Algorithms operate on labeled examples Semi/Partially-supervised –Algorithms combine both labeled and unlabeled examples

Example: Sentiment analysis

Example: Image classification apple pear tomato cow dog horse inputdesired output

Example: Seismic data Body wave magnitude Surface wave magnitude Nuclear explosions Earthquakes

The basic classification framework y = f(x) Learning: given a training set of labeled examples {(x 1,y 1 ), …, (x N,y N )}, estimate the parameters of the prediction function f Inference: apply f to a never before seen test example x and output the predicted value y = f(x) outputclassification function input

Naïve Bayes classifier A single dimension or attribute of x

Example: Image classification Car Input: Image Representation Classifier (e.g. Naïve Bayes, Neural Net, etc Output: Predicted label

Example: Training and testing Key challenge: generalization to unseen examples Training set (labels known)Test set (labels unknown)

Some classification methods 10 6 examples Nearest neighbor Shakhnarovich, Viola, Darrell 2003 Berg, Berg, Malik 2005 … Neural networks LeCun, Bottou, Bengio, Haffner 1998 Rowley, Baluja, Kanade 1998 … Support Vector Machines and Kernels Conditional Random Fields McCallum, Freitag, Pereira 2000 Kumar, Hebert 2003 … Guyon, Vapnik Heisele, Serre, Poggio, 2001 …

Classification … more soon

Types of ML algorithms Unsupervised –Algorithms operate on unlabeled examples Supervised –Algorithms operate on labeled examples Semi/Partially-supervised –Algorithms combine both labeled and unlabeled examples

Supervised learning has many successes recognize speech, steer a car, classify documents classify proteins recognizing faces, objects in images... Slide Credit: Avrim Blum

However, for many problems, labeled data can be rare or expensive. Unlabeled data is much cheaper. Need to pay someone to do it, requires special testing,… Slide Credit: Avrim Blum

However, for many problems, labeled data can be rare or expensive. Unlabeled data is much cheaper. Speech Images Medical outcomes Customer modeling Protein sequences Web pages Need to pay someone to do it, requires special testing,… Slide Credit: Avrim Blum

However, for many problems, labeled data can be rare or expensive. Unlabeled data is much cheaper. [From Jerry Zhu] Need to pay someone to do it, requires special testing,… Slide Credit: Avrim Blum

Need to pay someone to do it, requires special testing,… However, for many problems, labeled data can be rare or expensive. Unlabeled data is much cheaper. Can we make use of cheap unlabeled data? Slide Credit: Avrim Blum

Semi-Supervised Learning Can we use unlabeled data to augment a small labeled sample to improve learning? But unlabeled data is missing the most important info!! But maybe still has useful regularities that we can use. But… Slide Credit: Avrim Blum