CAP 5610: Introduction to Machine Learning Spring 2011 Dr

Slides:



Advertisements
Similar presentations
1 Machine Learning: Lecture 1 Overview of Machine Learning (Based on Chapter 1 of Mitchell T.., Machine Learning, 1997)
Advertisements

Introduction to Machine Learning BITS C464/BITS F464
CPSC 502, Lecture 15Slide 1 Introduction to Artificial Intelligence (AI) Computer Science cpsc502, Lecture 15 Nov, 1, 2011 Slide credit: C. Conati, S.
CS 484 – Artificial Intelligence1 Announcements Project 1 is due Tuesday, October 16 Send me the name of your konane bot Midterm is Thursday, October 18.
CS Machine Learning.
1er. Escuela Red ProTIC - Tandil, de Abril, Introduction How to program computers to learn? Learning: Improving automatically with experience.
ETHEM ALPAYDIN © The MIT Press, Lecture Slides for.
Data Mining with Decision Trees Lutz Hamel Dept. of Computer Science and Statistics University of Rhode Island.
Machine Learning CSE 473. © Daniel S. Weld Topics Agency Problem Spaces Search Knowledge Representation Reinforcement Learning InferencePlanning.
1 Some rules  No make-up exams ! If you miss with an official excuse, you get average of your scores in the other exams – at most once.  WP only-if you.
Introduction to Machine Learning course fall 2007 Lecturer: Amnon Shashua Teaching Assistant: Yevgeny Seldin School of Computer Science and Engineering.
CS 391L: Machine Learning Introduction
CS Machine Learning. What is Machine Learning? Adapt to / learn from data  To optimize a performance function Can be used to:  Extract knowledge.
CS Reinforcement Learning1 Reinforcement Learning Variation on Supervised Learning Exact target outputs are not given Some variation of reward is.
CSC 4510 – Machine Learning Dr. Mary-Angela Papalaskari Department of Computing Sciences Villanova University Course website:
1 What is learning? “Learning denotes changes in a system that... enable a system to do the same task more efficiently the next time.” –Herbert Simon “Learning.
Copyright R. Weber Machine Learning, Data Mining ISYS370 Dr. R. Weber.
For Friday Read chapter 18, sections 3-4 Homework: –Chapter 14, exercise 12 a, b, d.
General Information Course Id: COSC6342 Machine Learning Time: TU/TH 10a-11:30a Instructor: Christoph F. Eick Classroom:AH123
CpSc 810: Machine Learning Design a learning system.
1 CS 512 Machine Learning Berrin Yanikoglu Slides are expanded from the Machine Learning-Mitchell book slides Some of the extra slides thanks to T. Jaakkola,
Machine Learning An Introduction. What is Learning?  Herbert Simon: “Learning is any process by which a system improves performance from experience.”
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.
For Friday Finish Chapter 18 Homework: –Chapter 18, exercises 1-2.
1 Mining in geographic data Original slides:Raymond J. Mooney University of Texas at Austin.
Lecture 10: 8/6/1435 Machine Learning Lecturer/ Kawther Abas 363CS – Artificial Intelligence.
CS 445/545 Machine Learning Winter, 2012 Course overview: –Instructor Melanie Mitchell –Textbook Machine Learning: An Algorithmic Approach by Stephen Marsland.
1 Machine Learning (Extended) Dr. Ata Kaban Algorithms to enable computers to learn –Learning = ability to improve performance automatically through experience.
Well Posed Learning Problems Must identify the following 3 features –Learning Task: the thing you want to learn. –Performance measure: must know when you.
1 Machine Learning 1.Where does machine learning fit in computer science? 2.What is machine learning? 3.Where can machine learning be applied? 4.Should.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 9 of 42 Wednesday, 14.
Chapter 1: Introduction. 2 목 차목 차 t Definition and Applications of Machine t Designing a Learning System  Choosing the Training Experience  Choosing.
Machine Learning Introduction. Class Info Office Hours –Monday:11:30 – 1:00 –Wednesday:10:00 – 1:00 –Thursday:11:30 – 1:00 Course Text –Tom Mitchell:
Data Mining and Decision Support
1 Introduction to Machine Learning Chapter 1. cont.
Introduction Machine Learning: Chapter 1. Contents Types of learning Applications of machine learning Disciplines related with machine learning Well-posed.
Well Posed Learning Problems Must identify the following 3 features –Learning Task: the thing you want to learn. –Performance measure: must know when you.
Machine Learning Lecture 1: Intro + Decision Trees Moshe Koppel Slides adapted from Tom Mitchell and from Dan Roth.
General Information Course Id: COSC6342 Machine Learning Time: TU/TH 1-2:30p Instructor: Christoph F. Eick Classroom:AH301
Network Management Lecture 13. MACHINE LEARNING TECHNIQUES 2 Dr. Atiq Ahmed Université de Balouchistan.
1 Machine Learning Patricia J Riddle Computer Science 367 6/26/2016Machine Learning.
Machine Learning. Definition: The ability of a machine to improve its performance based on previous results.
Supervise Learning Introduction. What is Learning Problem Learning = Improving with experience at some task – Improve over task T, – With respect to performance.
Usman Roshan Dept. of Computer Science NJIT
Brief Intro to Machine Learning CS539
Machine Learning: Ensemble Methods
Machine Learning Supervised Learning Classification and Regression
Data Mining Lecture 3.
Introduction to Machine Learning
Chapter 7. Classification and Prediction
Intro to Machine Learning
School of Computer Science & Engineering

Spring 2003 Dr. Susan Bridges
Introductory Seminar on Research: Fall 2017
Classification with Perceptrons Reading:
CH. 1: Introduction 1.1 What is Machine Learning Example:
Data Mining Lecture 11.
The Pennsylvania State University
Data Mining Practical Machine Learning Tools and Techniques
Introduction Artificial Intelligent.
Overview of Machine Learning
3.1.1 Introduction to Machine Learning
Artificial Intelligence Lecture No. 28
Why Machine Learning Flood of data
The loss function, the normal equation,
Mathematical Foundations of BME Reza Shadmehr
INTRODUCTION TO Machine Learning 3rd Edition
Machine Learning (ML) and Knowledge Discovery in Databases (KDD)
Unit II Game Playing.
Presentation transcript:

CAP 5610: Introduction to Machine Learning Spring 2011 Dr CAP 5610: Introduction to Machine Learning Spring 2011 Dr. Tao Li Florida International University

CAP 5610: Machine Learning: Today Who are you? What is Learning? What is CAP5610 about? CAP 5610

Student Self-Introduction Name I will try to remember your names. But if you have a Long name, please let me know how should I call you  Major and Academic status Mathematics Skills Linear Algebra Probability Theory Vector Calculus Programming Skills Matlab CAP 5610

What is Learning? Herbert Simon: “Learning is any process by which a system improves performance from experience.” Learning denotes changes in the system that are adaptive in the sense that they enable the system to do the task or tasks drawn from the same population more efficiently and more effectively the next time.” Learning = Generalization The ability to perform a task in a situation which has never been encountered before CAP 5610

The Role of Learning Learning is at the core of Understanding High Level Cognition Performing knowledge intensive inferences Building adaptive, intelligent systems Learning has multiple purposes Knowledge Acquisition Integration of various knowledge sources to ensure robust behavior Adaptation (human, systems) CAP 5610

Learning = Generalization Classification medical diagnosis; credit-card applications, handwritten letters; Planning and Acting Navigation, Game playing, (chess, backgammon), driving a car Skills balancing a pole, playing tennis Common Sense Reasoning natural language interactions, visual interpretation, jokes CAP 5610

Classification Assign object/event to one of a given finite set of categories. Medical diagnosis Credit card applications or transactions Fraud detection in e-commerce Worm detection in network packets Spam filtering in email Recommended articles in a newspaper Recommended books, movies, music, or jokes Financial investments DNA sequences Spoken words Handwritten letters Astronomical images CAP 5610

Problem Solving / Planning / Control Performing actions in an environment in order to achieve a goal. Solving calculus problems Playing checkers, chess, or backgammon Balancing a pole Driving a car or a jeep Flying a plane, helicopter, or rocket Controlling an elevator Controlling a character in a video game Controlling a mobile robot CAP 5610

Measuring Performance Classification Accuracy Solution correctness Solution quality (length, efficiency) Speed of performance CAP 5610

Why Study Machine Learning? Engineering Better Computing Systems Develop systems that are too difficult/expensive to construct manually because they require specific detailed skills or knowledge tuned to a specific task (knowledge engineering bottleneck). Develop systems that can automatically adapt and customize themselves to individual users. Personalized news or mail filter Personalized tutoring Discover new knowledge from large databases (data mining). Market basket analysis (e.g. diapers and beer) Medical text mining (e.g. migraines to calcium channel blockers to magnesium) CAP 5610

CAP 5610

CAP 5610

CAP 5610

CAP 5610

CAP 5610

Where Is this Headed Today: tip of the iceberg First-generation algorithms: neural nets, decision trees, regression, … Applied to well-formated database Budding industry Opportunity for tomorrow: enormous impact Learn across full mixed-media data Learn across multiple internal databases, plus the web and newsfeeds, twitters, and social media Learn by active experimentation Learn decisions rather than predictions Cumulative, lifelong learning Programming languages with learning embedded CAP 5610

Why Study Machine Learning? Cognitive Science Computational studies of learning may help us understand learning in humans and other biological organisms. Hebbian neural learning “Neurons that fire together, wire together.” Human’s relative difficulty of learning disjunctive concepts vs. conjunctive ones. Power law of practice log(perf. time) log(# training trials) CAP 5610

Why Study Machine Learning? The Time is Ripe Many basic effective and efficient algorithms available. Large amounts of on-line data available. Large amounts of computational resources available. CAP 5610

Related Disciplines Artificial Intelligence Data Mining Probability and Statistics Information theory Numerical optimization Computational complexity theory Control theory (adaptive) Psychology (developmental, cognitive) Neurobiology Linguistics Philosophy CAP 5610

Learning is the future Learning techniques will be a basis for every application that involves a connection to a real world Basic learning algorithms are ready for use in limited applications today Prospects for broader future application make for exciting fundamental research and development opportunities Many unresolved issues – Theory and Systems CAP 5610

Work in Machine Learning Artificial Intelligence; Theory; Experimental CS Makes Use of: Probability and Statistics; Linear Algebra; Statistics; Theory of Computation; Related to: Philosophy, Psychology (cognitive, developmental), Neurobiology, Linguistics Has applications in: AI (natural Language; Vision; Planning; HCI) Engineering (Agriculture; Civil; …) Computer Science (Compilers; Architecture; Systems; data bases) CAP 5610

Machine Learning Theory of Computation What do you need to know: Probability Theory Linear Algebra Programming (your favorite language; some Matlab) Who is the class for? Future Data Mining and Machine Learning researchers/Advanced users CAP 5610

Course Overview Meeting time Office hours: Course Webpage: T/Th 12:30pm – 1:45pm Office hours: Tuesday 2:30pm – 4:30pm or by appointment Course Webpage: http://www.cs.fiu.edu/~taoli/class/CAP5610-S11/index.html Lecture Notes and Assignments CAP 5610

Assignments and Grading Reading/Written Assignments Midterm/Final Exams Programming projects Class attendance is mandatory. Evaluation will be a subjective process Effort is very important component Quizzes and Class Participation: 15% Exams: 50% Assignments and Projects: 35% CAP 5610

Text and References You will not be able to find all the course material in the textbook nor do we plan to go through the chapters in order or in full. You are responsible for the material covered in lectures as well as in the chapters/sections of the text specifically indicated. The following books are useful for the class. Textbook Tom Mitchell. Machine Learning. McGraw Hill, 1997. Alternative Textbooks Christopher M. Bishop. Pattern Recognition and Machine Learning, Springer, 2006 Ethem Alpaydin. Introduction to Machine Learning, MIT press, 2004. CAP 5610

Course Policies No!! Homework: Cheating Late Policy: Questions? Collaboration is encouraged; But, have to write you own solution/program. Late Policy: NO Questions? CAP 5610

Acknowledgements Many of the slides in my class borrowed from materials from the following: Dr. Raymond J. Mooney’s lecture (CS391) at UT Austin Prof Tommi Jaakkola’s lecture (6.867) at MIT Prof. Tom Mitchell’s lecture at CMU Prof. Dan Roth’s lecture at UIUC CAP 5610

Defining the Learning Task Improve on task, T, with respect to performance metric, P, based on experience, E. T: Playing checkers P: Percentage of games won against an arbitrary opponent E: Playing practice games against itself T: Recognizing hand-written words P: Percentage of words correctly classified E: Database of human-labeled images of handwritten words T: Driving on four-lane highways using vision sensors P: Average distance traveled before a human-judged error E: A sequence of images and steering commands recorded while observing a human driver. T: Categorize email messages as spam or legitimate. P: Percentage of email messages correctly classified. E: Database of emails, some with human-given labels CAP 5610

Designing a Learning System Choose the training experience Choose exactly what is too be learned, i.e. the target function. Choose how to represent the target function. Choose a learning algorithm to infer the target function from the experience. Learner Environment/ Experience Knowledge Performance Element CAP 5610

Sample Learning Problem Learn to play checkers from self-play We will develop an approach analogous to that used in the first machine learning system developed by Arthur Samuels at IBM in 1959. CAP 5610

Training Experience Direct experience: Given sample input and output pairs for a useful target function. Checker boards labeled with the correct move, e.g. extracted from record of expert play Indirect experience: Given feedback which is not direct I/O pairs for a useful target function. Potentially arbitrary sequences of game moves and their final game results. Credit/Blame Assignment Problem: How to assign credit blame to individual moves given only indirect feedback? CAP 5610

Source of Training Data Provided random examples outside of the learner’s control. Negative examples available or only positive? Good training examples selected by a “benevolent teacher.” “Near miss” examples Learner can query an oracle about class of an unlabeled example in the environment. Learner can construct an arbitrary example and query an oracle for its label. Learner can design and run experiments directly in the environment without any human guidance. CAP 5610

Training vs. Test Distribution Generally assume that the training and test examples are independently drawn from the same overall distribution of data. IID: Independently and identically distributed If examples are not independent, requires collective classification. If test distribution is different, requires transfer learning. CAP 5610

Choosing a Target Function What function is to be learned and how will it be used by the performance system? For checkers, assume we are given a function for generating the legal moves for a given board position and want to decide the best move. Could learn a function: ChooseMove(board, legal-moves) → best-move Or could learn an evaluation function, V(board) → R, that gives each board position a score for how favorable it is. V can be used to pick a move by applying each legal move, scoring the resulting board position, and choosing the move that results in the highest scoring board position. CAP 5610

Ideal Definition of V(b) If b is a final winning board, then V(b) = 100 If b is a final losing board, then V(b) = –100 If b is a final draw board, then V(b) = 0 Otherwise, then V(b) = V(b´), where b´ is the highest scoring final board position that is achieved starting from b and playing optimally until the end of the game (assuming the opponent plays optimally as well). Can be computed using complete mini-max search of the finite game tree. CAP 5610

Approximating V(b) Computing V(b) is intractable since it involves searching the complete exponential game tree. Therefore, this definition is said to be non-operational. An operational definition can be computed in reasonable (polynomial) time. Need to learn an operational approximation to the ideal evaluation function. CAP 5610

Representing the Target Function Target function can be represented in many ways: lookup table, symbolic rules, numerical function, neural network. There is a trade-off between the expressiveness of a representation and the ease of learning. The more expressive a representation, the better it will be at approximating an arbitrary function; however, the more examples will be needed to learn an accurate function. CAP 5610

Linear Function for Representing V(b) In checkers, use a linear approximation of the evaluation function. bp(b): number of black pieces on board b rp(b): number of red pieces on board b bk(b): number of black kings on board b rk(b): number of red kings on board b bt(b): number of black pieces threatened (i.e. which can be immediately taken by red on its next turn) rt(b): number of red pieces threatened CAP 5610

Obtaining Training Values Direct supervision may be available for the target function. < <bp=3,rp=0,bk=1,rk=0,bt=0,rt=0>, 100> (win for black) With indirect feedback, training values can be estimated using temporal difference learning (used in reinforcement learning where supervision is delayed reward). CAP 5610

Temporal Difference Learning Estimate training values for intermediate (non-terminal) board positions by the estimated value of their successor in an actual game trace. where successor(b) is the next board position where it is the program’s move in actual play. Values towards the end of the game are initially more accurate and continued training slowly “backs up” accurate values to earlier board positions. CAP 5610

Learning Algorithm Uses training values for the target function to induce a hypothesized definition that fits these examples and hopefully generalizes to unseen examples. In statistics, learning to approximate a continuous function is called regression. Attempts to minimize some measure of error (loss function) such as mean squared error: CAP 5610

Least Mean Squares (LMS) Algorithm A gradient descent algorithm that incrementally updates the weights of a linear function in an attempt to minimize the mean squared error Until weights converge : For each training example b do : 1) Compute the absolute error : 2) For each board feature, fi, update its weight, wi : for some small constant (learning rate) c CAP 5610

LMS Discussion Intuitively, LMS executes the following rules: If the output for an example is correct, make no change. If the output is too high, lower the weights proportional to the values of their corresponding features, so the overall output decreases If the output is too low, increase the weights proportional to the values of their corresponding features, so the overall output increases. Under the proper weak assumptions, LMS can be proven to eventually converge to a set of weights that minimizes the mean squared error. CAP 5610

CAP 5610

Some Issues in Machine Learning What algorithms can approximate functions well (and when)? How does the number of training examples influence accuracy? How does complexity of hypothesis representation impact it? How does noisy data influence accuracy? What are the theoretical limits of learnability? How can prior knowledge of learner help? What clues can we get from biological learning systems? How can systems alter their own representations? CAP 5610