Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Exploratory セミナー #46: 機械学習101

Kan Nishida
February 24, 2021

Exploratory セミナー #46: 機械学習101

機械学習とは何か、予測モデルとは何かといった話を簡単にします。

- AIと機械学習
- 教師あり学習 vs. 教師なし学習
- 機械学習と統計学習
- 回帰 vs. 分類

チャンネル登録はこちら↓
https://www.youtube.com/channel/UCOVfLaSQBvMRwZCyiccq4Iw

Twitter ↓
https://twitter.com/ExploratoryData

動画の中で使っているUIツール: Exploratory(https://exploratory.io/)
Exploratory オンラインセミナー: https://exploratory.io/online-seminar-jp

Kan Nishida

February 24, 2021
Tweet

More Decks by Kan Nishida

Other Decks in Technology

Transcript

  1. 2 εϐʔΧʔ ੢ా צҰ࿠ CEO EXPLORATORY ུྺ 2016೥य़ɺσʔλαΠΤϯεͷຽओԽͷͨΊɺExploratory, Inc Λཱ

    ্ͪ͛Δɻ Exploratory, Inc.ͰCEOΛ຿ΊΔ͔ͨΘΒɺσʔλαΠΤϯεɾϒʔ τΩϟϯϓɾτϨʔχϯάͳͲΛ௨ͯ͠σʔλαΠΤϯεͷٕज़ͱख ๏ͷීٴͱڭҭʹऔΓ૊Ήɻ ถΦϥΫϧຊࣾͰɺ16೥ʹΘͨΓσʔλαΠΤϯεͷ։ൃνʔϜΛ཰ ͍ɺػցֶशɺϏοάɾσʔλɺϏδωεɾΠϯςϦδΣϯεɺσʔ λϕʔεʹؔ͢Δ਺ଟ͘ͷ੡඼ΛੈʹૹΓग़ͨ͠ɻ @KanAugust
  2. 18

  3. 19

  4. 20

  5. 24

  6. 25

  7. 26

  8. 32 • ઢܗճؼ • ϩδεςΟοΫճؼɺGLM • ܾఆ໦ • ϥϯμϜϑΥϨετ •

    XGBoostɻ • LightGBMɻ • SVM ଞʹ΋ͨ͘͞Μ͋Δɻ
  9. 35 ৬ۀ ೥ྸ ඒஉ/ඒঁ ࠃ੶ ੓࣏Ո 70୅ FALSE ೔ຊ ໾ऀ

    40୅ TRUE ΞϝϦΧ ໾ऀ 50୅ TRUE ΞϝϦΧ ੓࣏Ո 70୅ FALSE ΞϝϦΧ ੓࣏Ո 60୅ FALSE υΠπ ໾ऀ 50୅ TRUE ΞϝϦΧ ༧ଌ͍ͨ͠
  10. ৬ۀ ೥ྸ ඒஉ/ඒঁ ࠃ੶ ੓࣏Ո 70୅ FALSE ೔ຊ ໾ऀ 40୅

    TRUE ΞϝϦΧ ໾ऀ 50୅ TRUE ΞϝϦΧ ੓࣏Ո 70୅ FALSE ΞϝϦΧ ੓࣏Ո 60୅ FALSE υΠπ ໾ऀ 50୅ TRUE ΞϝϦΧ 36 ଐੑ
  11. ৬ۀ ೥ྸ ඒஉ/ඒঁ ࠃ੶ ੓࣏Ո 70୅ FALSE ೔ຊ ໾ऀ 40୅

    TRUE ΞϝϦΧ ໾ऀ 50୅ TRUE ΞϝϦΧ ੓࣏Ո 70୅ FALSE ΞϝϦΧ ੓࣏Ո 60୅ FALSE υΠπ ໾ऀ 50୅ TRUE ΞϝϦΧ 37 ༧ଌม਺ɾઆ໌ม਺
  12. ৬ۀ ೥ྸ ඒஉ/ඒঁ ࠃ੶ ੓࣏Ո 70୅ FALSE ೔ຊ ໾ऀ 40୅

    TRUE ΞϝϦΧ ໾ऀ 50୅ TRUE ΞϝϦΧ ੓࣏Ո 70୅ FALSE ΞϝϦΧ ੓࣏Ո 60୅ FALSE υΠπ ໾ऀ 50୅ TRUE ΞϝϦΧ 38 ༧ଌม਺ɾઆ໌ม਺ ໨తม਺
  13. 39 ৬ۀ ೥ྸ ඒஉ/ඒঁ ࠃ੶ ֶྺ ੓࣏Ո 60୅ FALSE ೔ຊ

    Law School ໾ऀ 40୅ TRUE ΞϝϦΧ Actor’s School ໾ऀ 50୅ TRUE ΞϝϦΧ Actor’s School ੓࣏Ո 40୅ TRUE Χφμ Law School ੓࣏Ո 50୅ TRUE ΞϝϦΧ Law School ໾ऀ 50୅ TRUE ΞϝϦΧ Actor’s School ΞϧΰϦζϜ Ϟσϧ ༧ଌϞσϧΛ࡞Δ
  14. 40 ৬ۀ ೥ྸ ඒஉ/ඒঁ ࠃ੶ ֶྺ ੓࣏Ո 60୅ FALSE ೔ຊ

    Law School ໾ऀ 40୅ TRUE ΞϝϦΧ Actor’s School ໾ऀ 50୅ TRUE ΞϝϦΧ Actor’s School ੓࣏Ո 40୅ TRUE Χφμ Law School ੓࣏Ո 50୅ TRUE ΞϝϦΧ Law School ໾ऀ 50୅ TRUE ΞϝϦΧ Actor’s School ΞϧΰϦζϜ Ϟσϧ ৬ۀ ೥ྸ ඒஉ/ඒঁ ࠃ੶ ֶྺ ? 60୅ FALSE ೔ຊ Law School ? 40୅ TRUE ΞϝϦΧ Actor’s School ? 50୅ TRUE ΞϝϦΧ Actor’s School ৬ۀ ೥ྸ ඒஉ/ඒঁ ࠃ੶ ֶྺ ੓࣏Ո 60s FALSE ೔ຊ Law School ໾ऀ 40s TRUE ΞϝϦΧ Actor’s School ໾ऀ 50s TRUE ΞϝϦΧ Actor’s School ༧ଌ͢Δ
  15. 45 Կظ໨ 1 1 4 ೥ྸ 72 74 66 ੑผ

    உੑ உੑ ঁੑ ࢧ࣋཰ 33 51 79 ཭ࠗྺ Yes Yes No ཭ࠗճ਺ 2 0 1
  16. 46

  17. 51 ৬ۀ ೥ྸ ඒஉ/ඒঁ ࠃ੶ ֶྺ ੓࣏Ո 60୅ FALSE ೔ຊ

    Law School ໾ऀ 40୅ TRUE ΞϝϦΧ Actor’s School ໾ऀ 50୅ TRUE ΞϝϦΧ Actor’s School ੓࣏Ո 40୅ TRUE Χφμ Law School ੓࣏Ո 50୅ TRUE ΞϝϦΧ Law School ໾ऀ 50୅ TRUE ΞϝϦΧ Actor’s School ΞϧΰϦζϜ Ϟσϧ ಛ௃Λ΋ͱʹάϧʔϓ෼͚͢Δ ৬ۀ ೥ྸ ඒஉ/ඒঁ ࠃ੶ ֶྺ ID ੓࣏Ո 60୅ FALSE ೔ຊ Law School 1 ໾ऀ 40୅ TRUE ΞϝϦΧ Actor’s School 2 ໾ऀ 50୅ TRUE ΞϝϦΧ Actor’s School 2 ੓࣏Ո 40୅ TRUE Χφμ Law School 1 ੓࣏Ո 50୅ TRUE ΞϝϦΧ Law School 2 ໾ऀ 50୅ TRUE ΞϝϦΧ Actor’s School 1
  18. 57 ࣾһ ࢒ۀ࣌ؒ څྉ ཭৬͢Δ͔Ͳ͏͔ A 40 3500 TRUE B

    30 2700 TRUE C 20 6400 FALSE D 10 5200 FALSE E 20 5500 TRUE Z 40 4800 ? ͜ͷࣾһ͸཭৬͢ΔͩΖ͏͔ʁ
  19. ࢒ۀ࣌ؒ څྉ 10 50 20 30 40 5,000 6,000 4,000

    7,000 65 65 4 ཭৬͔ͨ͠Ͳ͏͔: Yes ཭৬ׂͨ͠߹: 100%
 શମͷׂ߹: 40% ཭৬͔ͨ͠Ͳ͏͔: No ཭৬ׂͨ͠߹: 0% શମͷׂ߹: 40% ཭৬͔ͨ͠Ͳ͏͔: No ཭৬ׂͨ͠߹: 40% શମͷׂ߹: 20% ࢒ۀ࣌ؒʼ15 څྉʼ5500
  20. 66 څྉ ʼ 5500 TRUE FALSE ࢒ۀ࣌ؒ ʼ 15 TRUE

    FALSE 0% 40% 100% ཭৬͢Δ֬཰
  21. 84 ཭৬͢Δ֬཰ = logistic( 1.1 * ࢒ۀ࣌ؒ + 1.02 *

    څྉ + 0.883 ) ϩδεςΟοΫճؼͷϞσϧʢࣜʣ
  22. 88 ৬ۀ ೥ྸ ඒஉ/ඒঁ ࠃ੶ ֶྺ ੓࣏Ո 60୅ FALSE ೔ຊ

    Law School ໾ऀ 40୅ TRUE ΞϝϦΧ Actor’s School ໾ऀ 50୅ TRUE ΞϝϦΧ Actor’s School ੓࣏Ո 40୅ TRUE Χφμ Law School ੓࣏Ո 50୅ TRUE ΞϝϦΧ Law School ໾ऀ 50୅ TRUE ΞϝϦΧ Actor’s School ΞϧΰϦζϜ Ϟσϧ ༧ଌϞσϧΛ࡞Δ
  23. 89 ৬ۀ ೥ྸ ඒஉ/ඒঁ ࠃ੶ ֶྺ ੓࣏Ո 60୅ FALSE ೔ຊ

    Law School ໾ऀ 40୅ TRUE ΞϝϦΧ Actor’s School ໾ऀ 50୅ TRUE ΞϝϦΧ Actor’s School ੓࣏Ո 40୅ TRUE Χφμ Law School ੓࣏Ո 50୅ TRUE ΞϝϦΧ Law School ໾ऀ 50୅ TRUE ΞϝϦΧ Actor’s School ΞϧΰϦζϜ Ϟσϧ ৬ۀ ೥ྸ ඒஉ/ඒঁ ࠃ੶ ֶྺ ? 60୅ FALSE ೔ຊ Law School ? 40୅ TRUE ΞϝϦΧ Actor’s School ? 50୅ TRUE ΞϝϦΧ Actor’s School ৬ۀ ೥ྸ ඒஉ/ඒঁ ࠃ੶ ֶྺ ੓࣏Ո 60s FALSE ೔ຊ Law School ໾ऀ 40s TRUE ΞϝϦΧ Actor’s School ໾ऀ 50s TRUE ΞϝϦΧ Actor’s School ༧ଌ͢Δ
  24. 91 ৬ۀ ೥ྸ ඒஉ/ඒঁ ࠃ੶ ֶྺ ੓࣏Ո 60୅ FALSE ೔ຊ

    Law School ໾ऀ 40୅ TRUE ΞϝϦΧ Actor’s School ໾ऀ 50୅ TRUE ΞϝϦΧ Actor’s School ੓࣏Ո 40୅ TRUE Χφμ Law School ੓࣏Ո 50୅ TRUE ΞϝϦΧ Law School ໾ऀ 50୅ TRUE ΞϝϦΧ Actor’s School ΞϧΰϦζϜ Ϟσϧ Ϟσϧͱ͸ΞϧΰϦζϜ͕ݕग़ͨ͠σʔλͷ தʹ͋ΔύλʔϯΛදݱͨ͠΋ͷͰ͋Δɻ
  25. 92 ΞϧΰϦζϜ Ϟσϧ Ϟσϧ͔Βɺσʔλͷதʹ͋Δύλʔϯʹؔͯ͠ ଟ͘ͷ͜ͱΛֶͿ͜ͱ͕Ͱ͖Δɻ ஌ࣝ σʔλ • ໨తม਺ͱؔ܎ͷڧ͍ม਺͸ͲΕ͔ɻ •

    ͦΕ͸Ͳ͏͍ͬͨؔ܎ͳͷ͔ɻ • ͦΕ͸༗ҙͳؔ܎ͳͷ͔ɻ • ͜ͷϞσϧͰ͸໨తม਺ͷಈ͖ͷͲΕ͘Β͍Λઆ໌Ͱ͖Δͷ͔ɻ
  26. 106 ੜ·Εͯ͘Δ੺ͪΌΜ͸ະख़ࣇ͔ʁ ճؼ ෼ྨ premature = gestation week < 37

    ճؼͷ໰୊Λ෼ྨͷ໰୊΁ ͍ͭ੺ͪΌΜ͕ੜ·Εͯ͘Δ͔ʁ