Docsity

Machine Learning and Classification: An Overview, Slides of Computer Fundamentals

Partial preview of the text

Download Machine Learning and Classification: An Overview and more Slides Computer Fundamentals in PDF only on Docsity!

Machine Learning:

finding patterns

Docsity.com

Outline

 Machine learning and

Classification

Examples

*Learning as Search

Bias

Weka

Docsity.com

Machine learning techniques

 Algorithms for acquiring structural descriptions from examples

 Structural descriptions represent patterns explicitly

 Can be used to predict outcome in new situation
 Can be used to understand and explain how prediction is
derived

(may be even more important)

 Methods originate from artificial intelligence,

statistics, and research on databases

witten&eibe Docsity.com

Can machines really learn?

 Definitions of “learning” from dictionary:

To get knowledge of by study, experience, or being taught To become aware by information or from observation To commit to memory To be informed of, ascertain; to receive instruction

Difficult to measure

Trivial for computers

Things learn when they change their behavior in a way that makes them perform better in the future.

 Operational definition:

Does a slipper learn?

 Does learning imply intention?

witten&eibe Docsity.com

Classification: Linear Regression

 Linear Regression

w 0 + w 1 x + w 2 y >= 0

 Regression computes

w i from data to

minimize squared

error to ‘fit’ the data

 Not flexible enough

Docsity.com

Classification: Decision Trees

X

Y

if X > 5 then blue

else if Y > 3 then blue

else if X > 2 then green

else blue

Docsity.com

Outline

Machine learning and Classification

 Examples

*Learning as Search

Bias

Weka

Docsity.com

The weather problem

Outlook Temperature Humidity Windy Play sunny hot high false no sunny hot high true no overcast hot high false yes rainy mild high false yes rainy mild normal false yes rainy mild normal true no overcast mild normal true yes sunny mild high false no sunny mild normal false yes rainy mild normal false yes sunny mild normal true yes overcast mild high true yes overcast hot normal false yes rainy mild high true no

Given past data,

Can you come up

with the rules for

Play/Not Play?

What is the game?

Docsity.com

The weather problem

 Conditions for playing Outlook Temperature Humidity Windy Play Sunny Hot High False No Sunny Hot High True No Overcast Hot High False Yes Rainy Mild Normal False Yes … … … … … If outlook = sunny and humidity = high then play = no If outlook = rainy and windy = true then play = no If outlook = overcast then play = yes If humidity = normal then play = yes If none of the above then play = yes witten&eibe Docsity.com

Weather data with mixed attributes

Outlook Temperature Humidity Windy Play sunny 85 85 false no sunny 80 90 true no overcast 83 86 false yes rainy 70 96 false yes rainy 68 80 false yes rainy 65 70 true no overcast 64 65 true yes sunny 72 95 false no sunny 69 70 false yes rainy 75 80 false yes sunny 75 70 true yes overcast 72 90 true yes overcast 81 75 false yes rainy 71 91 true no Docsity.com

Weather data with mixed attributes

 Rules with mixed attributes Outlook Temperature Humidity Windy Play Sunny 85 85 False No Sunny 80 90 True No Overcast 83 86 False Yes Rainy 75 80 False Yes … … … … … If outlook = sunny and humidity > 83 then play = no If outlook = rainy and windy = true then play = no If outlook = overcast then play = yes If humidity < 85 then play = yes If none of the above then play = yes witten&eibe Docsity.com

The contact lenses data

Age Spectacle prescription Astigmatism Tear production rate Recommended lenses Young Myope No Reduced None Young Myope No Normal Soft Young Myope Yes Reduced None Young Myope Yes Normal Hard Young Hypermetrope No Reduced None Young Hypermetrope No Normal Soft Young Hypermetrope Yes Reduced None Young Hypermetrope Yes Normal hard Pre-presbyopic Myope No Reduced None Pre-presbyopic Myope No Normal Soft Pre-presbyopic Myope Yes Reduced None Pre-presbyopic Myope Yes Normal Hard Pre-presbyopic Hypermetrope No Reduced None Pre-presbyopic Hypermetrope No Normal Soft Pre-presbyopic Hypermetrope Yes Reduced None Pre-presbyopic Hypermetrope Yes Normal None Presbyopic Myope No Reduced None Presbyopic Myope No Normal None Presbyopic Myope Yes Reduced None Presbyopic Myope Yes Normal Hard Presbyopic Hypermetrope No Reduced None Presbyopic Hypermetrope No Normal Soft Presbyopic Hypermetrope Yes Reduced None Presbyopic Hypermetrope Yes Normal None witten&eibe Docsity.com

A decision tree for this problem

witten&eibe Docsity.com

Classifying iris flowers

Sepal length Sepal width Petal length Petal width Type 1 5.1 3.5 1.4 0.2 Iris setosa 2 4.9 3.0 1.4 0.2 Iris setosa … 51 7.0 3.2 4.7 1.4 Iris versicolor 52 6.4 3.2 4.5 1.5 Iris versicolor … 101 6.3 3.3 6.0 2.5 Iris virginica 102 5.8 2.7 5.1 1.9 Iris virginica … If petal length < 2.45 then Iris setosa If sepal width < 2.10 then Iris versicolor ... witten&eibe Docsity.com