1 / 8

Ch. 18 – Learning

Ch. 18 – Learning. Supplemental slides for CSE 327 Prof. Jeff Heflin. Decision Tree Learning.

daria
Download Presentation

Ch. 18 – Learning

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Ch. 18 – Learning Supplemental slides for CSE 327 Prof. Jeff Heflin

  2. Decision Tree Learning functionDec-Tree-Learn(examples,attribs,parent_examples) returns a decision treeif examples is empty then return Plurality-Value(parent_examples)else if all examples have the same classificationthen return the classificationelse if attribs is empty then returnPlurality-Value (examples)elseA  argmaxaattribsImportance(a, examples) tree a new decision tree with root test Afor each value vkof A doexs {e : e examples and e.A = vk}subtree Dec-Tree-Learn (exs,attribs – A, examples) add a branch to tree with label (A = vk) and subtreesubtreereturn tree From Figure 18.5, p. 702

  3. Decision Tree Data Set

  4. Decision Tree Result +: X3,X6-: X1,X2,X4,X5,X7,X8 Shape? circle square triangle +: -: X2,X7 +: X3,X6-: X5 +: -: X1,X4,X8 No No Color? green red blue yellow +: X3,X6-: +: -: X5 +: -: +:-: Yes Yes No Yes

  5. A Neuron

  6. Perceptron Learning functionPerceptron-Learning(examples,network)returns a perceptron hypothesis inputs:examples, a set of examples with input x and output y network, a perceptron with weights Wj and activation function g repeat for eachexample (x,y) inexamples doErr y – g(in) for each jin 0..nWj  Wj +   Err  g’(in)  xjuntil some stopping criteria is satisfiedreturnNeural-Net-Hypothesis(network)

  7. ALVINN Straight ahead Sharp right Sharp left 30 output units 4 hidden units 1 input pixel Input is 30x32 pixels = 960 values

  8. SVM Kernels • Non-linear separator in 2 dimensions: • Mapped to 3 dimensions

More Related