280 likes | 305 Views
Learning from observations. Inductive Learning - learning from examples Machine Learning. same. Environment. Environment. System. Action 1. Action 2. Knowledge. Knowledge. changed. What Is Machine Learning?. “Logic is not the end of wisdom, it is just the beginning” --- Spock. time.
E N D
Learning from observations Inductive Learning - learning from examples Machine Learning
same Environment Environment System Action1 Action2 Knowledge Knowledge changed What Is Machine Learning? “Logic is not the end of wisdom, it is just the beginning” --- Spock time System
Learning & Adaptation • ”Modification of a behavioral tendency by expertise.” • (Webster 1984) • ”A learning machine, broadly defined is any device whose • actions are influenced by past experiences.” (Nilsson 1965) • ”Any change in a system that allows it to perform better • the second time on repetition of the same task or on another • task drawn from the same population.” (Simon 1983) • ”An improvement in information processing ability that results • from information processing activity.” (Tanimoto 1990)
Ways humans learn things • …talking, walking, running… • Learning by mimicking, reading or being told facts • Tutoring • Being informed when one is correct • Experience • Feedback from the environment • Analogy • Comparing certain features of existing knowledge to new problems • Self-reflection • Thinking things in ones own mind, deduction, discovery
A few achievements Programs that can: • Recognize spoken words • Predict recovery rates of pneumonia patients • Detect fraudulent use of credit cards • Drive autonomous vehicles • Play games like backgammon – approaching the human champion!
Machine Learning • Machine learning involves automatic procedures that learn a task from a series of examples • Most convenient source of examples is data
Learning 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.
Machine Learning Models • Classification • Clustering • Regression • Time series analysis • Association Analysis • Sequence Discovery • ….
Text Classification Example Yes No About the Middle East conflict? Text Classification Assign items to one of a set of predefined classes of objects based on a set of observed features Text
Text Classification Example Yes No About the Middle East conflict? Text Classification Assign items to one of a set of predefined classes of objects based on a set of observed features
Clustering Seeks to place objects into meaningful groups automatically, based on their similarity. Does not require the groups to be predefined. The hope in applying clustering algorithms is that they will discover useful but unknown classes of items.
Classification example New data Train set Test set Loan Yes/No Model Learning system
Inductive learning • Simplest form: learn a function from examples f is the target function An exampleis a pair (x, f(x)) Problem: find a hypothesish such that h ≈ f given a training set of examples
Inductive learning method • Construct/adjust h to agree with f on training set • (h is consistentif it agrees with f on all examples) • E.g., curve fitting:
Inductive learning method • Construct/adjust h to agree with f on training set • (h is consistent if it agrees with f on all examples) • E.g., curve fitting:
Inductive learning method • Construct/adjust h to agree with f on training set • (h is consistent if it agrees with f on all examples) • E.g., curve fitting:
Inductive learning method • Construct/adjust h to agree with f on training set • (h is consistent if it agrees with f on all examples) • E.g., curve fitting:
Inductive learning method • Construct/adjust h to agree with f on training set • (h is consistent if it agrees with f on all examples) • E.g., curve fitting:
Inductive learning method • Construct/adjust h to agree with f on training set • (h is consistentif it agrees with f on all examples) • E.g., curve fitting: • Ockham’s razor: prefer the simplest hypothesis consistent with data
Machine Learning Methods • Instance Based Methods (CBR, k-NN) • Decision Trees • Artificial Neural Networks • Bayesian Networks • Naïve Base • Evolutionary Strategies • Support Vector Machines • ..
Classification example Features: height, weight x x o x x o x o x o o Height x o x o o x x o x x o o o x x- weight-lifters o- ballet dancers x Weight
Classification example - Simple Model Features: height, weight Decision boundary x x o x x o x o x o o Height x o x o o x x o x x o o o x x- weight-lifters o- ballet dancers x Weight
Classification example - Complex model Features: height, weight Complex Decision boundary x x o x x o x o x o o Height x o x o o x x o x x o o o x x- weight-lifters o- ballet dancers x Weight Note: A simple decision boundary is better than a complex one - It GENERALIZES better.
Learning Paradigms • Supervised learning - with teacher • inputs and correct outputs are provided by the teacher • Reinforced learning - with reward or punishment • an action is evaluated • Unsupervised learning - with no teacher • no hint about correct output is given
Nearest Neighbor • Simple effective approach for supervised learning problems • Envision each example as a point in n-dimensional space - Picture with 2 of them • Classify test point same as nearest training point (Euclidean distance)
k-Nearest Neighbor • Nearest Neighbor can be subject to noise • Incorrectly classified training points • Training anomalies • k-Nearest Neighbor • Find k nearest training points (k odd) and vote on which classification • Works on numerical data