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

Introduction of Deep Learning for Rubyist

66a34ce671219be59c36704f706d5148?s=47 tanaken0515
November 30, 2019

Introduction of Deep Learning for Rubyist

66a34ce671219be59c36704f706d5148?s=128

tanaken0515

November 30, 2019
Tweet

More Decks by tanaken0515

Other Decks in Programming

Transcript

  1. ʮ3VCZJTUͷͨΊͷ%FFQ-FBSOJOHೖ໳ʯฤ ాத݈ଠ࿠(.01FQBCP *OD ࣛࣇౡ3VCZձٞ ͔ͬ͝·หͷ%FFQ-FBSOJOHΛ 3VCZͰ͖͹ͬ

  2. ࣛࣇౡ3VCZձٞӡӦҕһ (.0ϖύϘגࣜձࣾ46;63*ࣄۀ෦ΤϯδχΞ ాத݈ଠ࿠!UBOBLFO

  3. ࣛࣇౡหͷػց຋༁Λ 3VCZͰ΍Γ͍ͨ

  4. ػց຋༁ͷΞϓϩʔν ϧʔϧϕʔεػց຋༁ 3VMF#BTFE.BDIJOF5SBOTMBUJPO  ౷ܭతػց຋༁ 4UBUJTUJDBM#BTF.BDIJOF5SBOTMBUJPO  χϡʔϥϧػց຋༁ /FVSBM.BDIJOF5SBOTMBUJPO (PPHMF຋༁ʹ΋࢖ΘΕ͍ͯΔχϡʔϥϧػց຋༁Λ΍ͬͯΈ͍ͨ

    (PPHMF`T/FVSBM.BDIJOF5SBOTMBUJPO4ZTUFN#SJEHJOHUIF(BQCFUXFFO)VNBOBOE.BDIJOF5SBOTMBUJPO
  5. dࣛࣇౡห຋༁΁ͷಓd 3VCZJTUͷͨΊͷ%FFQ-FBSOJOHೖ໳ χϡʔϥϧػց຋༁ೖ໳ʙ೔ຊޠΛӳޠʹ຋༁͢Δʙ ࣛࣇౡห຋༁ʙํݴ຋༁΁ͷΞϓϩʔνʙ

  6. dࣛࣇౡห຋༁΁ͷಓd 3VCZJTUͷͨΊͷ%FFQ-FBSOJOHೖ໳ χϡʔϥϧػց຋༁ೖ໳ʙ೔ຊޠΛӳޠʹ຋༁͢Δʙ ࣛࣇౡห຋༁ʙํݴ຋༁΁ͷΞϓϩʔνʙ ࠓ೔͸ओʹ͜Εʹ͍ͭͯ࿩͠·͢

  7. dࣛࣇౡห຋༁΁ͷಓd 3VCZJTUͷͨΊͷ%FFQ-FBSOJOHೖ໳ χϡʔϥϧػց຋༁ೖ໳ʙ೔ຊޠΛӳޠʹ຋༁͢Δʙ ࣛࣇౡห຋༁ʙํݴ຋༁΁ͷΞϓϩʔνʙ ͜ΕΒʹ͍ͭͯ͸গ͚ͩ͠࿩͠·͢

  8. ࠓճͷΰʔϧ #FGPSF !ʮ%FFQ-FBSOJOH΍ͬͨ͜ͱͳ͍ͳ͊ʯ ʮ΍Δͱͯ͠΋1ZUIPO͡Όͳ͍ʁʯ "GUFS #ʮ3VCZͰ%FFQ-FBSOJOH΍Γ͍ͨʂʯ

  9. ΋͘͡ 3VCZͰ%FFQ-FBSOJOHΛ΍Δʹ͸ʁ ۩ମతʹ͸Ͳ͏࣮૷͢Δͷʁ %FFQ-FBSOJOHΛֶͿʹ͸ʁ

  10. 3VCZͰ %FFQ-FBSOJOHΛ΍Δʹ͸ʁ

  11. 1ZUIPOͷ৔߹ ϑϨʔϜϫʔΫ $IBJOFS 5FOTPS'MPX .9/FU ਺஋ܭࢉɺߦྻܭࢉ /VN1Z $V1Z IUUQTTQFBLFSEFDLDPNTPOPUTSFEDIBJOFS BOEDVNPQSBDUJDBMEFFQMFBSOJOHJOSVCZBU

    SVCZLBJHJ TMJEF
  12. 3VCZͷ৔߹ ϑϨʔϜϫʔΫ 3FE$IBJOFS 5FOTPS'MPXSC .9/FUSC NFOPISVCZ ਺஋ܭࢉɺߦྻܭࢉ /VNP/"SSBZ $VNP IUUQTTQFBLFSEFDLDPNTPOPUTSFEDIBJOFS

    BOEDVNPQSBDUJDBMEFFQMFBSOJOHJOSVCZBU SVCZLBJHJ TMJEF
  13. 3VCZͰ%FFQ-FBSOJOH 3VCZ༻ͷϑϨʔϜϫʔΫ͕͋Δʂ ͋Δ͍͸ɺ1Z$BMMͱ͍͏SVCZHFNΛ࢖ͬͯ
 3VCZ͔Β1ZUIPOͷϥΠϒϥϦΛ࢖͏͜ͱ΋Մೳ

  14. ͳΔ΄ͲͶ Ͱɺ۩ମతʹ͸Ͳ͏࣮૷͢Δͷʁ

  15. 3FE$IBJOFS 1ZUIPOͷ$IBJOFSΛ3VCZͰҠ২ͨ͠΋ͷ 3VCZ༻ͷχϡʔϥϧωοτϫʔΫͷϑϨʔϜϫʔΫ 3VCZ,BJHJͷొஃ಺༰ʹ΋  3FE$IBJOFSBOE$VNP1SBDUJDBM%FFQ-FBSOJOHJO3VCZBU3VCZ,BJHJ4QFBLFS%FDL 3VCZGPS/-13VCZ,BJHJ  %FFQ-FBSOJOH1SPHSBNNJOHPO3VCZ4QFBLFS%FDL

  16. ྫΞϠϝ *SJT ͷ඼छΛ෼ྨ͢Δ໰୊ *SJT%BUB4FUϨίʔυ ඼छYϨίʔυ ͕͘ยͷ௕͞ ͕͘ยͷ෯ ՖͼΒͷ௕͞ ՖͼΒͷ෯ ΞϠϝͷ඼छ

        *SJT4FUPTB     *SJT7FSTJDPMPVS     *SJT7JSHJOJDB σʔλΛֶशͯ͠඼छΛਪ࿦͢Δ *OQVU͕͘หͷ௕͞ɾ෯ɺՖͼΒͷ௕͞ɾ෯ 0VUQVU඼छ
  17. ਪ࿦ͱֶश

  18. ਪ࿦ͷΠϝʔδ        ԿΒ͔ͷॲཧ ೖྗ஋

    ग़ྗ஋ ֤඼छʹ ଐ͢Δ֬཰
  19. .-1.VMUJMBZFS1FSDFQUSPO       

  20. .-1.VMUJMBZFS1FSDFQUSPO        தؒ૚ ·ͨ͸ɺӅΕ૚

  21. .-1.VMUJMBZFS1FSDFQUSPO        ઢܗม׵ -

    ߦ/ྻ ઢܗม׵ - /ߦ/ྻ ઢܗม׵ - /ߦྻ ઢܗม׵Λܦͯग़ྗ͢Δ /ӅΕ૚ͷϊʔυ਺
  22. .-1.VMUJMBZFS1FSDFQUSPO        தؒ૚Ͱ͸ ඇઢܗม׵΋ߦͳ͏

    ඇઢܗม׵ 3F-V ඇઢܗม׵ 3F-V
  23. <࣮૷>3FE$IBJOFSͰ.-1 ֤૚Ͱߦ͏ม׵Λఆٛ ࠓճ͸ͭͷઢܗม׵ ೖྗY͕༩͑ΒΕͨ࣌ͷਪ࿦ॲཧ ઢܗ ඇઢܗͷม׵Λ܁Γฦ͢

  24. ਪ࿦͸͜͜·Ͱɹଓֶ͍ͯश

  25. ֶशͷΠϝʔδ     ೖྗ஋ ਪ࿦ͱਖ਼ղΛൺ΂ͯΈΔͱʜʁ   

    ग़ྗ஋
  26. ֶशͷΠϝʔδ        ೖྗ஋ ग़ྗ஋

    ਖ਼ղ    ਪ࿦ͱਖ਼ղΛൺ΂ͯΈΔͱʜʁ
  27. ֶशͷΠϝʔδ        ೖྗ஋ ग़ྗ஋

    ਖ਼ղ    ޡ͕ࠩ͋Δ ਪ࿦ͱਖ਼ղΛൺ΂ͯΈΔͱʜʁ
  28. ֶशͷΠϝʔδ     ೖྗ஋ ઢܗม׵ - ߦ/ྻ ઢܗม׵

    - /ߦ/ྻ ઢܗม׵ - /ߦྻ    ग़ྗ஋ ਖ਼ղ   
  29. ֶशͷΠϝʔδ     ೖྗ஋ ઢܗม׵ - ߦ/ྻ ઢܗม׵

    - /ߦ/ྻ ઢܗม׵ - /ߦྻ    ग़ྗ஋ ਖ਼ղ    ޡ͕ࠩখ͘͞ͳΔΑ͏ʹ ઢܗม׵ͷॏΈΛ ߋ৽͢Δ ֶश
  30. ʮޡ͕ࠩখ͘͞ͳΔΑ͏ʹʯͱ͸ʁ ޡࠩΛଛࣦؔ਺ -PTT ͱͯ͠ఆٛ͢Δ ͦΕͧΕͷॏΈύϥϝʔλ 8 ʹؔͯ͠ɺଛࣦؔ਺ͷޯ഑ΛٻΊΔ ޯ഑㲈܏͖ภඍ෼ͰٻΊΔ͜ͱ͕Ͱ͖Δ ॏΈύϥϝʔλΛޯ഑ͷٯํ޲ʹߋ৽͢Δޯ഑߱Լ๏ ྫ

    ֬཰తޯ഑߱Լ๏ 4%(4UPDIBTUJD(SBEJFOU%FTDFOU
  31. ֶशΛ3FE$IBJOFSͰ΍ͬͯΈΔ

  32. <࣮૷>σʔληοτͷ४උͱ෼ׂ ݸͷσʔλ <<Y Y Y Y> Z> <<Y Y Y

    Y> Z> ʜ ֶश༻ ݕূ༻ ςετ༻ ֶश༻ͷσʔλΛ σʔλֶͣͭश͢Δ
  33. <࣮૷>ਪ࿦ͱֶशͷϩδοΫࢦఆ ਪ࿦༻ͷωοτϫʔΫΛ࡞Δ ࠓճ͸.-1Λ࢖͏

  34. <࣮૷>ਪ࿦ͱֶशͷϩδοΫࢦఆ ෼ྨ໰୊༻ͷϥούʔ ࢦఆ͞Εͨଛࣦؔ਺Λ࢖ͬͯଛࣦΛฦ͢Α͏ʹQSFEJDUPSΛϥοϓ͢Δ ະࢦఆͷ৔߹͸ަࠩΤϯτϩϐʔޡࠩ

  35. <࣮૷>ਪ࿦ͱֶशͷϩδοΫࢦఆ ॏΈΛߋ৽ ֶश ͢ΔϩδοΫΛࢦఆ PQUJNJ[FSʹج͍ͮͯɺֶश༻σʔλ ΠςϨʔλ Ͱ ਪ࿦ଛࣦͷࢉग़ॏΈͷߋ৽Λ΍ΔPCKFDU

  36. <࣮૷>ֶशͷ࣮ߦ VQEBUFSʹΑΔֶशΛ TUPQ@USJHHFS·Ͱ܁Γฦ͢ ࠓճ͸FQPDI ੈ୅

  37. ֶशͷ༷ࢠ ଛࣦ͕ݮ͍͖ͬͯɺ ਖ਼ղ཰্͕͕͍ͬͯ͘

  38. ֶशͷ༷ࢠ ݕূ༻σʔλ  Ͱ΋ ࣅͨ݁Ռͱͳͬͨ

  39. ֶशͨ͠ޙ

  40. <࣮૷>εφοϓγϣοτΛ࢖ͬͨਪ࿦ ֶश࣌ͱಉ͡ߏ଄ͷωοτϫʔΫʹ εφοϓγϣοτΛ-PBE͢Δ ςετ༻σʔλͷਪ࿦݁ՌΛ ਖ਼ղͱൺֱ͢Δ

  41. ਪ࿦݁Ռ ਖ਼ղ཰ ෆਖ਼ղ݅

  42. Θ͔͖ͬͯͨʂ ΋ͬͱֶͿʹ͸ʁ

  43. $IBJOFS5VUPSJBM͕Φεεϝ ४උฤ ͸͡Ίʹ 1ZUIPOೖ໳ ػցֶशʹ࢖ΘΕΔ਺ֶ ඍ෼ͷجૅ ઢܗ୅਺ͷجૅ ֬཰ɾ౷ܭͷجૅ ػցֶशͱσʔλ෼ੳೖ໳ ୯ճؼ෼ੳͱॏճؼ෼ੳ

    /VN1Zೖ໳ TDJLJUMFBSOೖ໳ $V1Zೖ໳ 1BOEBTೖ໳ .BUQMPUMJCೖ໳ σΟʔϓϥʔχϯάೖ໳ χϡʔϥϧωοτϫʔΫ ͷجૅ $IBJOFSͷجૅ $IBJOFSͷԠ༻ τϨʔφͱ
 ΤΫεςϯγϣϯ ແྉͰχϡʔϥϧωοτϫʔΫ·ͰͷجૅΛຬวͳֶ͘΂Δ
  44. ·ͱΊ 3VCZͰ%FFQ-FBSOJOHΛ΍Δʹ͸ʁ
 3VCZ༻ͷϑϨʔϜϫʔΫ͔ɺ1Z$BMMΛ࢖͏ ۩ମతʹ͸Ͳ͏࣮૷͢Δͷʁ
 3FE$IBJOFSΛ࢖ͬͨ෼ྨ໰୊ͷ࣮૷ྫΛ঺հͨ͠ %FFQ-FBSOJOHΛֶͿʹ͸ʁ
 $IBJOFS5VUPSJBM͕Φεεϝ

  45. 3VCZͰ%FFQ-FBSOJOH ΍Γͨ͘ͳ͖ͬͯͨਓ#ʁ

  46. None
  47. <༧ࠂ>ʮχϡʔϥϧػց຋༁ೖ໳ʯฤ ୯ޠͷϕΫτϧԽʂʁ෼ࢄදݱʁʁ ܗଶૉղੳ.F$BCʂHFN͸/BUUPʁ ࣗવݴޠॲཧͰ༻͍ΒΕΔχϡʔϥϧωοτϫʔΫͱ͸ʜʂʁ XPSEWFD $#08 DPOUJOVPVTCBHPGXPSET Ϟσϧ 3// SFDVSSFOUOFVSBMOFUXPSL

    -45. MPOHTIPSUUFSNNFNPSZ  4FRVFODFUP4FRVFODF 3FE$IBJOFSͰͲ͜·Ͱ࣮ݱͰ͖Δͷ͔ʂʁ
  48. <༧ࠂ>ʮࣛࣇౡห຋༁ʯฤ ํݴσʔλ͸Ͳ͜ͰखʹೖΕΔʂʁ ώϯτ͸ࠃཱࠃޠݚڀॴʰํݴஊ࿩ࢿྉʱʹ͋ͬͨʂ σʔλͷෆ଍Λิ͏ʹ͸ʜʂʁ ࣅ͍ͯΔํݴʹண໨͢Δͱʂʁ ӳޠ຋༁Λͦͷ··౰ͯ͸ΊΔ͜ͱ͸Ͱ͖ͳ͍ʂʁʂʁ ํݴͷςΩετ͸ɺൃ࿩Ի੠Λ஧࣮ʹදݱ͢Δඞཁ͕͋Δ ୯ޠΑΓ΋Ի͕େࣄͻΒ͕ͳɺΧλΧφɺΞϧϑΝϕοτ

  49. 3VCZͰࣛࣇౡห຋༁ ΍Γͨ͘ͳ͖ͬͯͨਓ#ʁ

  50. None
  51. ͍͕͋ͱ͛͞΋ͨ͠ 5IBOLZPVGPSMJTUFOJOH