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

画像解析(MNIST)

asagiman
September 28, 2019

 画像解析(MNIST)

第9回もくもく会資料

asagiman

September 28, 2019
Tweet

More Decks by asagiman

Other Decks in Programming

Transcript

  1. Έ΍͜
    ΋͘΋͘ձ
    ./*45
    ϓϨθϯλʔɹTomohiro Iida

    View full-size slide

  2. ΞδΣϯμ
    ࣗݾ঺հˍຊ೔ͷΰʔϧઆ໌ʢ෼ʣ
    ࢀՃऀͦΕͧΕͷࣗݾ঺հʢ෼ʣ
    ./*45ϋϯζΦϯʢ෼ʣ

    View full-size slide

  3. ΞδΣϯμ
    ࣗݾ঺հˍຊ೔ͷΰʔϧઆ໌ʢ෼ʣ
    ࢀՃऀͦΕͧΕͷࣗݾ঺հʢ෼ʣ
    ./*45ϋϯζΦϯʢ෼ʣ

    View full-size slide

  4. ຊ೔ͷΰʔϧ
    ࣗ෼ͷखॻ͖਺ࣈΛ
    ൑ผ͢ΔϞσϧΛ࡞Δ

    View full-size slide

  5. ࢯ໊ʢϋϯυϧωʔϜՄʣ
    झຯ
    ʮ͜ΜͳJQIPOF͸ݏͩʂʯΛڭ͍͑ͯͩ͘͞
    ࢀՃऀࣗݾ঺հ

    View full-size slide

  6. ࣗݾ঺հˍຊ೔ͷΰʔϧઆ໌ʢ෼ʣ
    ࢀՃऀͦΕͧΕͷࣗݾ঺հʢ෼ʣ
    ./*45ϋϯζΦϯʢ෼ʣ

    View full-size slide

  7. ./*45ͱ͸
    ./*45ͱ͸ɺը૾σʔληοτͷ͜ͱɻ

    ʢखॻ͖਺ࣈը૾ ຕͱɺςετը૾ ຕΛूΊͨ΋ͷʣ

    ҎԼ͕ϖΞʹͳ͍ͬͯΔɻ

    खॻ͖ͷʙͷ਺ࣈ͕ॻ͔Εͨը૾σʔλͱɺ

    ͦͷը૾ʹॻ͔Ε࣮ͨࡍͷ਺ࣈσʔλ

    View full-size slide

  8. ը૾ೝࣝͱ͸
    IUUQTTVQFSTNBTICSPTGBOEPNDPNKBXJLJ&""&#&"'
    ը૾ೝࣝͱ͸
    ը૾σʔλ͔Βɺਓؒʹͱͬͯҙຯͷ͋Δ৘ใΛ
    நग़͢ΔλεΫͷ͜ͱΛ͍͏ɻ
    ୯ͳΔ਺ࣈʹ͗͢ͳ͍

    View full-size slide

  9. ./*45ͱ͸
    IUUQTXFCMBCPPTDBTJFSSBOFUQZUIPOLFSBTNOJTUTBNQMFIUNM
    σʔλͷ༷ࢠ

    View full-size slide

  10. ./*45ͱ͸
    IUUQTXFCMBCPPTDBTJFSSBOFUQZUIPOLFSBTNOJTUTBNQMFIUNM
    ग़ྗ͸͜Μͳײ͡
    ਺ࣈ ֬཰
    0 0.014
    1 0.001
    2 0.013
    3 0.719
    4 0.034
    5 0.016
    6 0.023
    7 0.065
    8 0.086
    9 0.029

    View full-size slide

  11. Ͱ͸ɺ΍ͬͯΈ·͠ΐ͏
    ࣮૷

    View full-size slide

  12. 4FRVFOUJBMϞσϧ
    IUUQNBSVQFLFDPN*,%"%7@%-@/P@,FSBTIUNM
    %FOTF

    View full-size slide

  13. 3FMVؔ਺
    ೖྗ͕ҎԼͳΒɺҎ্ͳΒͦͷ··ग़ྗ͢Δؔ਺ͷ͜ͱɻ
    ҎԼͷ਺ࣜͰදͤΔɻ
    I Y
    \Y Y
    Y
    ^
    IUUQTUFDICMPHHNPBQKQ&"'&"#&"%"&#'&&"&#$&&"&#$&#&#&#&"&#%#'&'&$&#&'#"&$"$&"&""

    View full-size slide

  14. %SPQPVU
    σʔλ͕มʹͳͬͯ͠·͏͜ͱΛ๷͙ɻ
    IUUQTRJJUBDPNNJOFJUFNTECBCCFGD

    View full-size slide

  15. 3.4QSPQ
    lޯ഑߱Լ๏zΛ
    ࠷దԽ͢ΔΞϧΰϦζϜͷͻͱͭ
    దԠతֶश཰ͷํࣜͷ࣮ݱ

    View full-size slide

  16. ޯ഑߱Լ๏
    ޯ഑߱Լ๏ͷߟ͑ํ˰্͔ΒϘʔϧΛམͱ͠Ұ൪௿͍ͱ͜Ζ΁୧Γண͘·Ͱ଴ͭ
    IUUQXXXQMBODWUJUFDIBDKQGVLVEBMBCCBDCEEBCDCBGDDGDQEG

    View full-size slide

  17. ޯ഑߱Լ๏
    ࣌ࠁͰ
    ʹ͋ͬͨϘʔϧΛޯ഑ͷٯํ޲΁ಈ͔͢ࡍͷϧʔϧ
    (+1) = () + ∆() , ∆() = − (4.9)
    lͱॱ࣍܁Γฦ͢͜ͱͰɼޡࠩؔ਺άϥϑͷఈ΁߱Γ͍ͯ͘
    ˎ̍εςοϓͷҠಈڑ཭∆
    ͸lֶश཰zͰܾఆ͞ΕΔ
    IUUQXXXQMBODWUJUFDIBDKQGVLVEBMBCCBDCEEBCDCBGDDGDQEG

    View full-size slide

  18. ޯ഑߱Լ๏
    ֶश཰ͷऔΓํ͸τϥΠΞϯυΤϥʔʹجͮ͘
    w ֶश཰͕େ͖͍

    ˰ࠁΈ͕ߥ͗ͯ͢ޡࠩؔ਺ͷܗঢ়Λଊ͑ΒΕͣɼऩଋ͠ͳ͍

    w ֶश཰͕খ͍͞

    ˰ֶश͕Ұ޲ʹਐߦ͠ͳ͍
    IUUQXXXQMBODWUJUFDIBDKQGVLVEBMBCCBDCEEBCDCBGDDGDQEG

    View full-size slide

  19. $//ͱ͸
    ը૾σʔλʹదͨ͠ܗͷ

    χϡʔϥϧωοτϫʔΫ
    ը૾Λͦͷ··ͷܗʹ̎࣍ݩͰ

    ѻ͏͜ͱ͕Ͱ͖Δ
    $POWPMVUJPOBM/FVSBM/FUXPSL

    View full-size slide

  20. $//ͷશମ૾
    $//͸ɺ৞ΈࠐΈ΍ϓʔϦϯάʹΑͬͯಘΒΕͨಛ௃Ϛοϓͷ֤ϐΫηϧσʔλΛɺ

    χϡʔϥϧωοτϫʔΫͷೖྗ஋ͱͯ͠ར༻͢Δɻ
    IUUQTXXXBUNBSLJUDPKQBJUBSUJDMFTOFXTIUNM

    View full-size slide

  21. $// ৞ΈࠐΈ

    IUUQTULFOHPHJUIVCJPCMPHVOEFSTUBOEJOHDPOWPMVUJPOBMOFVSBMOFUXPSLTGPSOMQ



    Χʔωϧ

    ʢϑΟϧλʔʣ

    View full-size slide

  22. $// ϓʔϦϯά

    IUUQTULFOHPHJUIVCJPCMPHVOEFSTUBOEJOHDPOWPMVUJPOBMOFVSBMOFUXPSLTGPSOMQ
    ը૾αΠζΛܾΊΒΕͨϧʔϧʹैͬͯখ͘͢͞Δ
    NBYϓʔϦϯά

    View full-size slide

  23. $// શ݁߹૚

    ग़ྗͷܗΛ̍࣍ݩʹมܗ͢Δ
    ௨ৗͷχϡʔϥϧωοτϫʔΫͱಉ͡

    ʮӅΕ૚ʯʮग़ྗ૚ʯʹ઀ଓ͠ɺ

    View full-size slide