introduction to machine learning - college of · pdf fileintroduction)to) machine)learning...

20
INTRODUCTION TO Machine Learning ETHEM ALPAYDIN © The MIT Press, 2010 Edited and expanded for CS 4641 by Chris Simpkins [email protected] h1p://www.cmpe.boun.edu.tr/~ethem/i2ml2e Lecture Slides for 1

Upload: lynhi

Post on 23-Mar-2018

241 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Introduction to Machine Learning - College of · PDF fileINTRODUCTION)TO) Machine)Learning ETHEMALPAYDIN ©)The)MIT)Press,)2010 Edited)and)expanded)for)CS)4641)by)Chris)Simpkins alpaydin@boun.edu.tr

INTRODUCTION  TO  Machine  Learning

ETHEM  ALPAYDIN©  The  MIT  Press,  2010

Edited  and  expanded  for  CS  4641  by  Chris  Simpkins

[email protected]://www.cmpe.boun.edu.tr/~ethem/i2ml2e

Lecture  Slides  for

1

Page 2: Introduction to Machine Learning - College of · PDF fileINTRODUCTION)TO) Machine)Learning ETHEMALPAYDIN ©)The)MIT)Press,)2010 Edited)and)expanded)for)CS)4641)by)Chris)Simpkins alpaydin@boun.edu.tr

CHAPTER  1:  IntroducOon

2

Page 3: Introduction to Machine Learning - College of · PDF fileINTRODUCTION)TO) Machine)Learning ETHEMALPAYDIN ©)The)MIT)Press,)2010 Edited)and)expanded)for)CS)4641)by)Chris)Simpkins alpaydin@boun.edu.tr

Lecture  Notes  for  E  Alpaydın  2010  IntroducOon  to  Machine  Learning  2e  ©  The  MIT  Press  (V1.0)

Why  “Learn”  ? Machine  learning  is  programming  computers  to  opOmize  a  performance  criterion  using  example  data  or  past  experience.

There  is  no  need  to  “learn”  to  calculate  payroll Learning  is  used  when:

Human  experOse  does  not  exist  (navigaOng  on  Mars), Humans  are  unable  to  explain  their  experOse  (speech  recogniOon)

SoluOon  changes  in  Ome  (rouOng  on  a  computer  network) SoluOon  needs  to  be  adapted  to  parOcular  cases  (user  biometrics)

3

3

Page 4: Introduction to Machine Learning - College of · PDF fileINTRODUCTION)TO) Machine)Learning ETHEMALPAYDIN ©)The)MIT)Press,)2010 Edited)and)expanded)for)CS)4641)by)Chris)Simpkins alpaydin@boun.edu.tr

Lecture  Notes  for  E  Alpaydın  2010  IntroducOon  to  Machine  Learning  2e  ©  The  MIT  Press  (V1.0)

What  We  Talk  About  When  We    Talk  About“Learning” Learning  general  models  from  a  data  of  parOcular  examples  

Data  is  cheap  and  abundant  (data  warehouses,  data  marts);  knowledge  is  expensive  and  scarce.  

Example  in  retail:  Customer  transacOons  to  consumer  behavior:     People  who  bought  “Blink”  also  bought  “Outliers”    (www.amazon.com)

Build  a  model  that  is  a  good  and  useful  approximaGon  to  the  data.    

4

4

Page 5: Introduction to Machine Learning - College of · PDF fileINTRODUCTION)TO) Machine)Learning ETHEMALPAYDIN ©)The)MIT)Press,)2010 Edited)and)expanded)for)CS)4641)by)Chris)Simpkins alpaydin@boun.edu.tr

Lecture  Notes  for  E  Alpaydın  2010  IntroducOon  to  Machine  Learning  2e  ©  The  MIT  Press  (V1.0)

Data  Mining Retail:  Market  basket  analysis,  Customer  relaOonship  management  (CRM)

Finance:  Credit  scoring,  fraud  detecOon Manufacturing:  Control,  roboOcs,  troubleshooOng Medicine:  Medical  diagnosis TelecommunicaOons:  Spam  filters,  intrusion  detecOon BioinformaOcs:  MoOfs,  alignment Web  mining:  Search  engines ...

5

5

Page 6: Introduction to Machine Learning - College of · PDF fileINTRODUCTION)TO) Machine)Learning ETHEMALPAYDIN ©)The)MIT)Press,)2010 Edited)and)expanded)for)CS)4641)by)Chris)Simpkins alpaydin@boun.edu.tr

Lecture  Notes  for  E  Alpaydın  2010  IntroducOon  to  Machine  Learning  2e  ©  The  MIT  Press  (V1.0)

What  is  Machine  Learning? OpOmize  a  performance  criterion  using  example  data  or  past  experience.

Role  of  StaOsOcs:  Inference  from  a  sample Role  of  Computer  science:  Efficient  algorithms  to

Solve  the  opOmizaOon  problem RepresenOng  and  evaluaOng  the  model  for  inference

6

6

Page 7: Introduction to Machine Learning - College of · PDF fileINTRODUCTION)TO) Machine)Learning ETHEMALPAYDIN ©)The)MIT)Press,)2010 Edited)and)expanded)for)CS)4641)by)Chris)Simpkins alpaydin@boun.edu.tr

Lecture  Notes  for  E  Alpaydın  2010  IntroducOon  to  Machine  Learning  2e  ©  The  MIT  Press  (V1.0)

Types  of  Machine  Learning AssociaOon Supervised  Learning

ClassificaOon Regression

Unsupervised  Learning Reinforcement  Learning

7

7

Page 8: Introduction to Machine Learning - College of · PDF fileINTRODUCTION)TO) Machine)Learning ETHEMALPAYDIN ©)The)MIT)Press,)2010 Edited)and)expanded)for)CS)4641)by)Chris)Simpkins alpaydin@boun.edu.tr

Lecture  Notes  for  E  Alpaydın  2010  IntroducOon  to  Machine  Learning  2e  ©  The  MIT  Press  (V1.0)

Learning  AssociaOons Basket  analysis:     P  (Y  |  X  )  probability  that  somebody  who  buys  X  also  buys  Y  where  X  and  Y  are  products/services.

    Example:  P  (  chips  |  beer  )  =  0.7

8

8

Page 9: Introduction to Machine Learning - College of · PDF fileINTRODUCTION)TO) Machine)Learning ETHEMALPAYDIN ©)The)MIT)Press,)2010 Edited)and)expanded)for)CS)4641)by)Chris)Simpkins alpaydin@boun.edu.tr

Lecture  Notes  for  E  Alpaydın  2010  IntroducOon  to  Machine  Learning  2e  ©  The  MIT  Press  (V1.0)

ClassificaOon Example:  Credit  scoring

DifferenOaOng  between  low-­‐risk  and  high-­‐risk  customers  from  their  income  and  savings

Discriminant:  IF  income  >  θ1  AND  savings  >  θ2           THEN  low-­‐risk  ELSE  high-­‐risk

9

9

Page 10: Introduction to Machine Learning - College of · PDF fileINTRODUCTION)TO) Machine)Learning ETHEMALPAYDIN ©)The)MIT)Press,)2010 Edited)and)expanded)for)CS)4641)by)Chris)Simpkins alpaydin@boun.edu.tr

Lecture  Notes  for  E  Alpaydın  2010  IntroducOon  to  Machine  Learning  2e  ©  The  MIT  Press  (V1.0)

ClassificaOon:  ApplicaOons Aka  Pamern  recogniOon Face  recogniOon:  Pose,  lighOng,  occlusion  (glasses,  beard),  make-­‐up,  hair  style  

Character  recogniOon:  Different  handwriOng  styles. Speech  recogniOon:  Temporal  dependency.   Medical  diagnosis:  From  symptoms  to  illnesses Biometrics:  RecogniOon/authenOcaOon  using  physical  and/or  behavioral  characterisOcs:  Face,  iris,  signature,  etc

...

10

10

Page 11: Introduction to Machine Learning - College of · PDF fileINTRODUCTION)TO) Machine)Learning ETHEMALPAYDIN ©)The)MIT)Press,)2010 Edited)and)expanded)for)CS)4641)by)Chris)Simpkins alpaydin@boun.edu.tr

Lecture  Notes  for  E  Alpaydın  2010  IntroducOon  to  Machine  Learning  2e  ©  The  MIT  Press  (V1.0)

Face  RecogniOonTraining examples of a person

Test images

ORL dataset,AT&T Laboratories, Cambridge UK

11

11

Page 12: Introduction to Machine Learning - College of · PDF fileINTRODUCTION)TO) Machine)Learning ETHEMALPAYDIN ©)The)MIT)Press,)2010 Edited)and)expanded)for)CS)4641)by)Chris)Simpkins alpaydin@boun.edu.tr

Lecture  Notes  for  E  Alpaydın  2010  IntroducOon  to  Machine  Learning  2e  ©  The  MIT  Press  (V1.0)

Regression Example:  Price  of  a  used  car

x  :  car  amributes   y  :  price     y  =  g  (x  |  θ )   g  (  )  model, θ parameters

y  =  wx+w0

12

12

Page 13: Introduction to Machine Learning - College of · PDF fileINTRODUCTION)TO) Machine)Learning ETHEMALPAYDIN ©)The)MIT)Press,)2010 Edited)and)expanded)for)CS)4641)by)Chris)Simpkins alpaydin@boun.edu.tr

Lecture  Notes  for  E  Alpaydın  2010  IntroducOon  to  Machine  Learning  2e  ©  The  MIT  Press  (V1.0)

Regression  ApplicaOons NavigaOng  a  car:  Angle  of  the  steering KinemaOcs  of  a  robot  arm

α1=  g1(x,y)α2=  g2(x,y)

α1

α2

(x,y)

n Response  surface  design

13

13

Page 14: Introduction to Machine Learning - College of · PDF fileINTRODUCTION)TO) Machine)Learning ETHEMALPAYDIN ©)The)MIT)Press,)2010 Edited)and)expanded)for)CS)4641)by)Chris)Simpkins alpaydin@boun.edu.tr

Lecture  Notes  for  E  Alpaydın  2010  IntroducOon  to  Machine  Learning  2e  ©  The  MIT  Press  (V1.0)

Supervised  Learning:  Uses PredicOon  of  future  cases:  Use  the  rule  to  predict  the  output  for  future  inputs

Knowledge  extracOon:  The  rule  is  easy  to  understand Compression:  The  rule  is  simpler  than  the  data  it  explains Outlier  detecOon:  ExcepOons  that  are  not  covered  by  the  rule,  e.g.,  fraud

14

14

Page 15: Introduction to Machine Learning - College of · PDF fileINTRODUCTION)TO) Machine)Learning ETHEMALPAYDIN ©)The)MIT)Press,)2010 Edited)and)expanded)for)CS)4641)by)Chris)Simpkins alpaydin@boun.edu.tr

Lecture  Notes  for  E  Alpaydın  2010  IntroducOon  to  Machine  Learning  2e  ©  The  MIT  Press  (V1.0)

Unsupervised  Learning Learning  “what  normally  happens” No  output Clustering:  Grouping  similar  instances Example  applicaOons

Customer  segmentaOon  in  CRM Image  compression:  Color  quanOzaOon BioinformaOcs:  Learning  moOfs

15

15

Page 16: Introduction to Machine Learning - College of · PDF fileINTRODUCTION)TO) Machine)Learning ETHEMALPAYDIN ©)The)MIT)Press,)2010 Edited)and)expanded)for)CS)4641)by)Chris)Simpkins alpaydin@boun.edu.tr

Lecture  Notes  for  E  Alpaydın  2010  IntroducOon  to  Machine  Learning  2e  ©  The  MIT  Press  (V1.0)

Reinforcement  Learning Learning  a  policy:  A  sequence  of  outputs No  supervised  output  but  delayed  reward Credit  assignment  problem Game  playing Robot  in  a  maze MulOple  agents,  parOal  observability,  ...

16

16

Page 17: Introduction to Machine Learning - College of · PDF fileINTRODUCTION)TO) Machine)Learning ETHEMALPAYDIN ©)The)MIT)Press,)2010 Edited)and)expanded)for)CS)4641)by)Chris)Simpkins alpaydin@boun.edu.tr

Lecture  Notes  for  E  Alpaydın  2010  IntroducOon  to  Machine  Learning  2e  ©  The  MIT  Press  (V1.0)

Resources:  Datasets UCI  Repository:  hmp://www.ics.uci.edu/~mlearn/MLRepository.html

UCI  KDD  Archive:  hmp://kdd.ics.uci.edu/summary.data.applicaOon.html

Statlib:  hmp://lib.stat.cmu.edu/

Delve:  hmp://www.cs.utoronto.ca/~delve/

17

17

Page 18: Introduction to Machine Learning - College of · PDF fileINTRODUCTION)TO) Machine)Learning ETHEMALPAYDIN ©)The)MIT)Press,)2010 Edited)and)expanded)for)CS)4641)by)Chris)Simpkins alpaydin@boun.edu.tr

Lecture  Notes  for  E  Alpaydın  2010  IntroducOon  to  Machine  Learning  2e  ©  The  MIT  Press  (V1.0)

Resources:  Journals Journal  of  Machine  Learning  Research  www.jmlr.org Machine  Learning   Neural  ComputaOon Neural  Networks IEEE  TransacOons  on  Neural  Networks IEEE  TransacOons  on  Pamern  Analysis  and  Machine  Intelligence

Annals  of  StaOsOcs Journal  of  the  American  StaOsOcal  AssociaOon ...

18

18

Page 19: Introduction to Machine Learning - College of · PDF fileINTRODUCTION)TO) Machine)Learning ETHEMALPAYDIN ©)The)MIT)Press,)2010 Edited)and)expanded)for)CS)4641)by)Chris)Simpkins alpaydin@boun.edu.tr

Lecture  Notes  for  E  Alpaydın  2010  IntroducOon  to  Machine  Learning  2e  ©  The  MIT  Press  (V1.0)

Resources:  Conferences InternaOonal  Conference  on  Machine  Learning  (ICML)   European  Conference  on  Machine  Learning  (ECML) Neural  InformaOon  Processing  Systems  (NIPS) Uncertainty  in  ArOficial  Intelligence  (UAI) ComputaOonal  Learning  Theory  (COLT) InternaOonal  Conference  on  ArOficial  Neural  Networks  (ICANN)   InternaOonal  Conference  on  AI  &  StaOsOcs  (AISTATS) InternaOonal  Conference  on  Pamern  RecogniOon  (ICPR) ...

19

19

Page 20: Introduction to Machine Learning - College of · PDF fileINTRODUCTION)TO) Machine)Learning ETHEMALPAYDIN ©)The)MIT)Press,)2010 Edited)and)expanded)for)CS)4641)by)Chris)Simpkins alpaydin@boun.edu.tr

Lecture  Notes  for  E  Alpaydın  2010  IntroducOon  to  Machine  Learning  2e  ©  The  MIT  Press  (V1.0)

Resources:  Georgia  Techh"p://ml.cc.gatech.edu/

Charles  Isbell  (my  advisor) Reinforcement  Learning

Andrea  Thomaz Social  Learning

Alex  Gray StaFsFcal  Learning  Theory,  ML  SoIware

Irfan  Essa AcFvity  RecogniFon

James  Rehg Graphical  Models

Maria  Balcan Machine  Learning  Theory

Frank  Dellaert Computer  Vision

20

20