38
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012

CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012

Embed Size (px)

Citation preview

Page 1: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012

CS 4100 Artificial Intelligence

Prof. C. HafnerClass Notes April 3, 2012

Page 2: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012

Term Project PresentationsThursday, April 12 Groups:1.2.3.4.Tuesday, April 17 Groups:5.6.7.8.9.

Page 3: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012

Naive Bayes Classifiers: Our next example of machine learning

• A supervised learning method• Making independence assumption, we can explore a

simple subset of Bayesian nets, such that:• It is easy to estimate the CPT’s from sample data• Uses a technique called “maximum likelihood

estimation”– Given a set of correctly classified representative

examples– Q: What estimates of conditional probabilities maximize

the likelihood of the data that was observed?– A: The estimates that reflect the sample proportions

Page 4: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 5: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 6: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 7: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012

# Juniors

# Juniors

# Non-Juniors

were Juniors and

were Non-Juniors

Page 8: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 9: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 10: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 11: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 12: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 13: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 14: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 15: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 16: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 17: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012

Class Exercise: Naive Bayes Classifier with multi-valued variables

Major: Science, Arts, Social ScienceStudent characteristics: Gender (M,F), Race/Ethnicity (W, B, H, A)International (T/F)

What do the conditional probability tables look like??

Page 18: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 19: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 20: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 21: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 22: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 23: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 24: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 25: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 26: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012

Perceptron Leaning Algorithm and BackProp

Page 27: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 28: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 29: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 30: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 31: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012

Perceptron Learning (Supervised)

• Assign random weights (or set all to 0)• Cycle through input data until change < target• Let α be the “learning coefficient”• For each input:– If perceptron gives correct answer, do nothing– If perceptron says yes when answer should be no,

decrease the weights on all units that “fired” by α– If perceptron says no when answer should be yes,

increase the weights on all units that “fired” by α

Page 32: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 33: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 34: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 35: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 36: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 37: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012
Page 38: CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes April 3, 2012