$30 off During Our Annual Pro Sale. View Details »

teratail_study

tkow
December 19, 2016

 teratail_study

first step of understanding machine_learning

tkow

December 19, 2016
Tweet

More Decks by tkow

Other Decks in Technology

Transcript

  1. ػցֶशʹຊ֨తೖ໳͢Δ࣌ ʹ࠷ॳʹԡ͓͖͍͑ͯͨ͜͞ͱ !ULPX

  2. ࣗݾ঺հ ૣҴాେֶઌਐཧ޻ֶݚڀՊम࢜೥ ΍͖ͬͯͨ͜ͱ ࣗવݴޠॲཧɾ҉߸ཧ࿦ͳͲ ϨόϨδʔζʹདྷ೥݄̐ೖࣾ༧ఆ

  3. ϑϧεΫϥονͰΞϧΰϦζϜΛ࣮૷͍ͯ͠·͢

  4. ػցֶशͰ Կ͕Ͱ͖Δ͔Λ஌Δ

  5. ҟৗݕ஌ ௒ղ૾ ࠷దઓུ ࣝผ ෺ମೝࣝ ༧ଌ ΫϥελϦϯά ͳͲͳͲʜ

  6. ͦ΋ͦ΋ԿΛػցʹ೚͍ͤͯΔͷ͔ ୡ੒ͯ͠ཉ͍͠໨తΛϓϩάϥϛϯά͢Δɻ ίϯϐϡʔλ͸໨తΛઃఆ͢Δ͜ͱ͕ۤखͳͷͰ ਓ͕ؒ਺ࣜͱͯ͠ઃܭͯ͋͛͠Δɻ ਓ͕ؒڭ͑ͳͯ͘΋ֶͿڧԽֶश΋༗Γ·͕͢  ༩͑Δ໰୊͸ਓ͕ؒղ͚ͳͯ͘΋ྑ͍ɻ ݟ͚͍ͭͨؔ܎ੑʹ͍ͭͯίϯϐϡʔλ͕উखʹ ղ͍ͯ͘ΕΔɻ ղ͚ͳ͍͜ͱ΋͋Δ͚Ͳ

  7. ԿΛษڧ͢Ε͹ྑ͍ͷ͔  ϕΠζͷఆཧ  ઢܗճؼϞσϧ  ֬཰෼෍ ڞ໾ࣄલ෼෍ ࢦ਺෼෍ ΧςΰϦΧϧ෼෍

      χϡʔϥϧωοτ ͜ΕΒΛ͔ͬ͠Γԡ͑͞Δ͚ͩͰݟ௨͕͠ྑ͘ͳΓ·͢ɻ ػցֶशͰ࠷ॳʹԡ͓͑ͯ͘͞΂͖஌ࣝ
  8.  ϕΠζͷఆཧ جຊతͳ࿮૊Έ p ( x | ✓ ) ԾఆВͷݩͰY͕ى͜Δ֬཰

  9.  ϕΠζͷఆཧ p(✓| x ) = p( x |✓)p(✓) R

    p( x |✓)p(✓)d✓ ԾఆВ ͋ΔԾఆͷ ݩͰಘΒΕͨ σʔλY ಘΒΕͨσʔλ9͔ΒഎޙͷԾఆВΛ ਪఆ͢Δ جຊతͳ࿮૊Έ
  10.  ϕΠζͷఆཧ جຊతͳ࿮૊Έ ಘΒΕͨσʔλू߹ͷ෼෍͔Β࠷దͳ෼෍Λਪఆ͢Δ ࠷ ໬ਪఆ  ࣄલ෼෍ΛԾఆͯ͠ಘΒΕͨσʔλू߹͔Βࣄલ෼෍ͷ࠷ దͳύϥϝʔλΛਪఆ͢Δ ."1ਪఆ

     ಘΒΕͨσʔλू߹͔ΒύϥϝʔλΛपลԽ ϕΠζਪఆ  p(✓| x ) = p( x |✓)p(✓) R p( x |✓)p(✓)d✓
  11. ͳͥେࣄ͔ͲΜͳؔ਺Ͱ΋ύϥϝʔλΛ૿΍ͤ͹ۙࣅՄ ೳɻҰԠղੳղ͕ग़ͤΔࣄ͕ଟ͍ ݱ࣮࣌ؒͰղ͚Δͱ͸ ݴ͍ͬͯͳ͍ ɻ ඇઢܗͷϞσϧΛද͢ͷʹઢܗϞσϧ͕࢖ΘΕΔ χϡʔϥ ϧωοτͰ͸ɺγάϞΠυؔ਺ͳͲͷύϥϝʔλΛઢܗϞ σϧʹಥͬࠐΜͰ͍Δ ɻ

     ઢܗϞσϧ y = w0 + w1 1( x ) + · · · + wn n( x )
  12. ϦϯΫؔ਺  ઢܗϞσϧ f (x) = w0 + w1 1(x)

    + . . . + wn n(x) f (x) ϦϯΫؔ਺ͱɺઢܗճؼϞσϧΛ૊Έ߹ΘͤΔͱɺϕΠζ ͷఆཧʹ౰ͯ͸Ίͯɺ࠷໬ਪఆ΍."1ਪఆ͕Ͱ͖Δɻ ྫ  ɹϦϯΫؔ਺ʹMPHJUؔ਺Λ౰ͯ͸Ίͯ࠷໬ਪఆΛղ͘ͱϩ δεςΟοΫճؼʹͳΔͳͲ
  13. ෼෍ͷಛ௃Λԡ͑͞Δͱ͍ΖΜͳσʔλʹର͢Δ༧ଌ΍ਪ ఆʹ໾ʹཱͪ·͢  ֬཰෼෍ ϕϧψʔΠ෼෍ίΠϯͷදཪͷग़Δ֬཰ ϕʔλ෼෍ίΠϯͷදཪͷग़Δ֬཰͕ͲΕ͘Β͍ʹ ͳΔ͔ͷ֬཰ ΨϯϚ෼෍ਖ਼ͷ਺ͷग़΍͢͞ΛௐઅͰ͖Δ෼෍ ଟ߲෼෍αΠίϩͷ໨ͷͲΕ͕ͰΔ͔ͷ෼෍ σΟϦΫϨ෼෍αΠίϩͷ໨ͷ֬཰͕ͲΕ͘Β͍ʹ

    ͳΔ͔ͷ֬཰
  14. ෼෍ͷಛ௃Λԡ͑͞Δͱ͍ΖΜͳσʔλʹର͢Δ༧ଌ΍ਪ ఆʹ໾ʹཱͪ·͢  ֬཰෼෍ ϕʔλ෼෍͸֬཰ͷग़΍͢͞Λௐઅ͢Δ֬཰෼෍

  15. ڞ໾ࣄલ෼෍ಛఆͷ໬౓ؔ਺ͷੵʹରͯ͠ɺࣄޙ෼෍ͷࣜ ͷܗ͕ಉ͡ࣄલ෼෍ͷ͜ͱɻ ڞ໾ࣄલ෼෍º໬౓͕ɺࣄޙ෼෍ͷܗͱಉ͡ʹͳΔ͜ͱΛ ར༻͢Δ͜ͱͰɺࣄޙฏۉͷެࣜΛద༻ͨ͠ΓɺϥϯμϜ αϯϓϦϯάͱݺ͹ΕΔख๏Λద༻͠΍͘͢Δ͜ͱ͕Ͱ͖ Δ σʔλ఺Λਫ૿ͯ͠͠શମͷ෼෍Λਪఆ͢Δํ๏ ɻ  ֬཰෼෍

    p ( ✓ | x ) / p ( x | ✓ ) p ( ✓ ) ࣄલ෼෍ ࣄޙ෼෍ ໬౓ ϕʔλ෼෍㲌ϕϧψʔΠ෼෍ºϕʔλ෼෍ͳͲ
  16. جຊతͳ࿮૊Έ ͋Δϊʔυʹ͓͚Δೖྗͷ࿨Λ׆ੑԽؔ਺ͱݺ͹ΕΔ೚ҙ ͷؔ਺ʹΑͬͯɺม׵͠ɺ࣍ͷೖྗ ग़ྗ ͱ͢Δ ͋ΔϊʔυʹมԽ͕ى͖ͨ࣌ʹશͯͷύϥϝʔλʹٴ΅͢ ӨڹΛࠩ෼ͷ࿈࠯཰Ͱද͢ɻ  χϡʔϥϧωοτ x1

    x2 x3 f (x)=w1x1+w2x2+w3x3 y= ( f ( x )) y w1 w2 w3  
  17. None
  18. None
  19. None
  20. None
  21. ༗໊ͳຊ

  22. ࣗવݴޠॲཧ͓͢͢Ίຊ

  23. ࣮૷͓͢͢Ίຊ