machines the sorting hat is sick today
play

Machines! The Sorting Hat is sick today We need to help it sort - PowerPoint PPT Presentation

Support Vector Machines! The Sorting Hat is sick today We need to help it sort the students! But all we know is: House Intelligence Bravery (Gryffindor or Ravenclaw) 5.5 10.5 ? 8 16 ? 12.5 4.5 ? 4 12 ? 10.5 6 ? 15 7 ?


  1. Support Vector Machines!

  2. The Sorting Hat is sick today We need to help it sort the students!

  3. But all we know is: House Intelligence Bravery (Gryffindor or Ravenclaw) 5.5 10.5 ? 8 16 ? 12.5 4.5 ? 4 12 ? 10.5 6 ? 15 7 ? 10.5 13 ? 10 3 ?

  4. Let’s look at what the Sorting Hat did before...

  5. Instructions for how to plot data You have a list of people, each with an intelligence and bravery value, and house. For each person, write their intelligence and bravery value on a sticky note (use a pink sticky if they’re from Gryffindor and a blue sticky if they’re from Ravenclaw) Plot each sticky note on your paper

  6. Previous students

  7. Add new students to your plot (yellow stickies) House Intelligence Bravery (Gryffindor or Ravenclaw) 5.5 10.5 ? 8 16 ? 12.5 4.5 ? 4 12 ? 10.5 6 ? 15 7 ? 10.5 13 ? 10 3 ?

  8. New students this year

  9. Here are their houses Now, use a yardstick to “auto - sort” new students! Replace the yellow stickies Students on one side will be with the correct color sticky. sorted into Gryffindor. Students on the other side will be sorted into Ravenclaw.

  10. Don’t move your yardstick!

  11. What does your yardstick tell you about these students? Intelligence: 16 Bravery: 15 Intelligence: 1 Bravery: 5.5

  12. What does your yardstick tell you about these students?

  13. What does your yardstick tell you about these students?

  14. What does your yardstick tell you about these students?

  15. This year’s new students! Harry Potter Parvati Patil Hermione Granger Ron Weasley Dean Thomas Neville Longbottom Luna Lovegood Padma Patil Terry Boot Michael Corner

  16. So what makes a good line?

  17. So what makes a good line? Bad!

  18. So what makes a good line? Bad!

  19. So what makes a good line? Good? Why?

  20. Maximum-margins!

  21. Next year!

  22. Welcome to another year at Hogwarts! After being sick last year, the sorting hat is starting to think that it might be time to retire... We are the new Sorting Hat “in - training”! We choose the house, then the Sorting hat will tell us if we got it right

  23. Set up your yardstick, then don’t move it...

  24. House Intelligence Bravery (Gryffindor or Ravenclaw) 6 8 ? Time to sort 8 4 ? some students! 3 11 ? (yellow stickies) 12 14 ? 7 4 ? 6 2 ? 12.5 9 ? 11 9 ? 9 1 ? 12 1 ?

  25. Which houses do you think these students should be sorted into?

  26. Here are the answers. How did you do?

  27. So what makes a good line? (What should we do for next year?)

  28. Last year of Sorting-Hat-apprenticeship

  29. Set up your yardstick, then don’t move it...

  30. House Intelligence Bravery (Gryffindor or Ravenclaw) 6 5 ? Time to sort 4 2.5 ? some students! 10 10 ? (yellow stickies) 15 12 ? 14 9 ? 16 3 ? 14 12 ? 2 9 ? 5 1 ? 5 13 ?

  31. Which houses do you think these students should be sorted into?

  32. Here are the answers! How did you do?

  33. So what makes a good line? (Which line was better?)

  34. What if we had one more attribute (feature) of people that we were measuring? (How would we incorporate this data into our “auto - sorter”?) Intelligence Bravery Quidditch ability House 4 12 12 Gryffindor (Ron Weasley) 16 15 4 Gryffindor (Hermione Granger) 8 16 18 Gryffindor (Harry Potter)

  35. What if we had two more attributes (features) of people that we were measuring? (How would we incorporate this data into our “auto - sorter”?) Quidditch Intelligence Bravery ability Kindness House 4 12 12 10 Gryffindor (Ron Weasley) 16 15 4 16 Gryffindor (Hermione Granger) 8 16 18 10 Gryffindor (Harry Potter)

  36. Now that we have the power to learn patterns from data and apply that knowledge...

  37. Let’s sort beings into human versus non -human! You have a list of beings, their height, and whether they are human or non- human Put a piece of masking tape on your string for each being, and mark whether it is human or non-human Can you get 100% classification accuracy using your yardstick?

  38. We can do this from 2D to 3D too! (...or 3D to 4D! ...or 4D to 9D! …)

  39. Machine learning! Model patterns in data (using math!) Use models to infer information from new data

  40. Support Vector Machines! (The math!) Support BIG = + Small Vector errors margin Machine = Balance between reducing errors versus making a bigger margin

  41. Support Vector Machines! (The math!) Big C: Small C: Errors are REALLY Errors are ok, as long as BAD! we make the margin BIG

  42. Support Vector Machines are powerful! Handwriting recognition! (Automated mail sorting) Image classification! (Cat or not?) Text document classification! (Automated spam filtering)

  43. Machine learning is powerful!

  44. Thanks for helping with sorting!

  45. The sorting hat - Welcome to Hogwarts! - Every year the sorting hat sorts students into houses (e.g. Gryffindor and Ravenclaw). - But the sorting hat is sick today :(. - Your job is to help the sorting hat sort students. - How can we do this? - Lets look at how previous students were sorted.

  46. How can we sort new students? - How can we use the data we plotted to sort this year’s students? - We will now try and sort a few students!

  47. How can we sort new students? Intelligence Bravery House XX XX ?

  48. How can we sort new students? Sorting-hat solution: Intelligence Bravery House XX XX Gryffindor (Harry Potter)

  49. How can we sort new students? Sorting-hat solutions: Intelligence Bravery House XX XX Gryffindor (Ron Weasley) XX XX Ravenclaw (Luna Lovegood) XX XX Ravenclaw (Terry Boot) XX XX Ravenclaw (Padma Patil) XX XX Gryffindor (Parvati Patil) XX XX Gryffindor (Dean Thomas) XX XX Ravenclaw (Michael Corner)

  50. Maximum margins! Here are two more students: Intelligence Bravery House XX XX ? XX XX ? - Does your “classifier” correctly sort these students? - How can we describe a “best” line using only the original students?

  51. Maximum margins! Sorting-hat solutions: Intelligence Bravery House XX XX Gryffindor (Hermione Granger) XX XX Gryffindor (Neville Longbottom)

  52. Sorting hat answers show some outliers (but still barely linearly separable) (i.e. Hermione and Neville) Make a new line We can choose to either try really hard to do what the sorting hat, or do a better job of following the sorting hat’s overall pattern

  53. Last round of 2-D classification

  54. Humans versus non-humans

  55. Some description of how non-linear SVM works?

  56. How can we sort new students? Intelligence Bravery House XX XX ? XX XX ? XX XX ? XX XX ? XX XX ? XX XX ? XX XX ?

Recommend


More recommend