ãã®èšäºã§ã¯ãæ©æ¢°åŠç¿ã®åºæ¬çãªæŠå¿µã玹ä»ããŸããå ·äœçã«ã¯ãä»æ¥æãéèŠãª9ã€ã®MLã¢ã«ãŽãªãºã ã®åºæ¬æŠå¿µã«ã€ããŠèª¬æããŸãã
æšèŠå¶åºŠ
0ããå®å šãªã¬ã³ã¡ã³ããŒã·ã§ã³ã·ã¹ãã ãæ§ç¯ããã«ã¯ãç·åœ¢ä»£æ°ã®æ·±ãç¥èãå¿ èŠã§ãããã®ããããã®åéãåŠç¿ããããšããªãå Žåã¯ããã®ã»ã¯ã·ã§ã³ã®æŠå¿µã®äžéšãç解ããã®ãé£ããå ŽåããããŸãã
ãã ããå¿é ããªãã§ãã ãããscikit-learnPythonã©ã€ãã©ãªã䜿çšãããšãCPãç°¡åã«æ§ç¯ã§ããŸãããããã£ãŠãæ©èœããCPãæ§ç¯ããããã«ãç·åœ¢ä»£æ°ã«é¢ããæ·±ãç¥èã¯å¿ èŠãããŸããã
CPã¯ã©ã®ããã«æ©èœããŸããïŒ
æšå¥šã·ã¹ãã ã«ã¯ãäž»ã«2ã€ã®ã¿ã€ãããããŸãã
- ã³ã³ãã³ãããŒã¹
- å調ãã£ã«ã¿ãªã³ã°
ã³ã³ãã³ãããŒã¹ã®ã·ã¹ãã ã¯ããã§ã«äœ¿çšããèŠçŽ ã®é¡äŒŒæ§ã«åºã¥ããŠæšå¥šãè¡ããŸãããããã®ã·ã¹ãã ã¯ãCPã®åäœãšãŸã£ããåãããã«åäœããŸãã
å調åCPãã£ã«ã¿ãªã³ã°ã¯ããŠãŒã¶ãŒãèŠçŽ ãšã©ã®ããã«çžäºäœçšãããã«é¢ããç¥èã«åºã¥ããŠæšå¥šäºé ãæäŸããŸãïŒ*泚ïŒãŠãŒã¶ãŒãšåäœãé¡äŒŒããŠããä»ã®ãŠãŒã¶ãŒã®èŠçŽ ãšã®çžäºäœçšãåºæ¬ãšããŠäœ¿çšãããŸãïŒãèšãæãããšã圌ãã¯ã矀è¡ã®ç¥æµãïŒãããã£ãŠãã¡ãœããã®ååã®ãå ±åãïŒã䜿çšããŸãã
çŸå®ã®äžçã§ã¯ãå調åCPãã£ã«ã¿ãªã³ã°ã¯ãã³ã³ãã³ãããŒã¹ã®ã·ã¹ãã ãããã¯ããã«äžè¬çã§ããããã¯äž»ã«åœŒããéåžžããè¯ãçµæãäžãããšããäºå®ã«ãããã®ã§ããäžéšã®å°é家ã¯ãŸããã³ã©ãã¬ãŒã·ã§ã³ã·ã¹ãã ãç解ãããããšæããŠããŸãã
CPå調ãã£ã«ã¿ãªã³ã°ã«ã¯ãã³ã³ãã³ãããŒã¹ã®ã·ã¹ãã ã«ã¯ãªãç¬èªã®æ©èœããããŸããã€ãŸãã圌ãã¯èªåã§æ©èœãåŠã¶èœåãæã£ãŠããŸãã
ããã¯ããã®ã·ã¹ãã ãæ©èœããããã«æäŸããŠããªãããããã£ãç¹æ§ã«åºã¥ããŠãèŠçŽ ã®é¡äŒŒæ§ãå®çŸ©ãå§ããå¯èœæ§ããããããšãæå³ããŸãã
å調ãã£ã«ã¿ãªã³ã°ã«ã¯2ã€ã®ãµãã«ããŽãªããããŸãã
- ã¢ãã«ããŒã¹
- è¿é£å°åããŒã¹
è¯ããã¥ãŒã¹ã¯ãMLã§æåããããã«ããã2ã€ã®ã¿ã€ãã®å調CPãã£ã«ã¿ãªã³ã°ã®éããç¥ãå¿ èŠããªãããšã§ããããã€ãã®çš®é¡ãããããšãç¥ãã ãã§ååã§ãã
ãŸãšãã
ããã§ã¯ããã®èšäºã®æšå¥šã·ã¹ãã ã«ã€ããŠåŠãã ããšãç°¡åã«ãŸãšããŸãã
- å®éã®æšå¥šã·ã¹ãã ã®äŸ
- ããŸããŸãªã¿ã€ãã®ã¬ã³ã¡ã³ããŒã·ã§ã³ã·ã¹ãã ãããã³ã³ã³ãã³ãããŒã¹ã®ã·ã¹ãã ãããå調ãã£ã«ã¿ãªã³ã°ãããé »ç¹ã«äœ¿çšãããçç±
- æšå¥šã·ã¹ãã ãšç·åœ¢ä»£æ°ã®é¢ä¿
ç·åœ¢ååž°
ç·åœ¢ååž°ã¯ãäžé£ã®xå€ã«åºã¥ããŠäžéšã®yå€ãäºæž¬ããããã«äœ¿çšãããŸãã
ç·åœ¢ååž°ã®æŽå²
ç·åœ¢ååž°ïŒLRïŒã¯ã1800幎ã«Francis Galtonã«ãã£ãŠçºæãããŸãããã¬ã«ãã³ã¯ã芪åã®çµãç 究ããç§åŠè ã§ãããããå ·äœçã«ã¯ãGaltonã¯ç¶èŠªã®æé·ãšæ¯åã®æé·ã®é¢ä¿ã調æ»ããŸããããŽãŒã«ãã³ã®æåã®çºèŠã¯ãæ¯åã®æé·ã¯ãååãšããŠã圌ãã®ç¶èŠªã®æé·ãšã»ãŒåãã§ãã£ããšããäºå®ã§ãããããã¯é©ãã¹ãããšã§ã¯ãããŸããã
åŸã«ããŽãŒã«ãã³ã¯ãã£ãšé¢çœããã®ãçºèŠããŸãããæ¯åã®æé·ã¯ãååãšããŠãèªåã®ç¶èŠªã®æé·ããããã¹ãŠã®äººã ã®å¹³åã®èº«é·ã«è¿ãã£ãã
ãŽãŒã«ãã³ã¯ãã®çŸè±¡ãååž°ãšåŒãã ãå ·äœçã«ã¯ããæ¯åã®èº«é·ã¯å¹³å身é·ã«åŸéïŒãŸãã¯ã·ããïŒããåŸåãããããšè¿°ã¹ãã
ããã¯ãååž°ãšåŒã°ããçµ±èšãšæ©æ¢°åŠç¿ã®åéå šäœã«ã€ãªãããŸããã
ç·åœ¢ååž°æ°åŠ
ååž°ã¢ãã«ãäœæããããã»ã¹ã§ã¯ãããŒã¿ã»ããã®åãã€ã³ãã®ã§ããã ãè¿ãã«ç·ãåŒãã ãã§ãã
ãã®ã¢ãããŒãã®å žåçãªäŸã¯ããæå°äºä¹ãç·åœ¢ååž°ã¢ãããŒãã§ããããã¯ãäžäžæ¹åã®çŽç·ã®è¿ããèšç®ããŸãã
説æã®äŸïŒ
ååž°ã¢ãã«ãäœæããå Žåãæçµçæç©ã¯ãäºåã«yå€ãç¥ããªããŠãxå€ã®yå€ãäºæž¬ããããã«äœ¿çšã§ããæ¹çšåŒã§ãã
ããžã¹ãã£ãã¯ååž°
ããžã¹ãã£ãã¯ååž°ã¯ç·åœ¢ååž°ã«äŒŒãŠããŸãããyã®å€ãèšç®ãã代ããã«ãç¹å®ã®ããŒã¿ãã€ã³ããã©ã®ã«ããŽãªã«å±ããââããè©äŸ¡ããŸãã
ããžã¹ãã£ãã¯ååž°ãšã¯äœã§ããïŒ
ããžã¹ãã£ãã¯ååž°ã¯ãåé¡ã®åé¡ã解決ããããã«äœ¿çšãããæ©æ¢°åŠç¿ã¢ãã«ã§ãã
以äžã¯ãMOã®åé¡ã¿ã¹ã¯ã®äŸã§ãã
- ã¡ãŒã«ã¹ãã ïŒã¹ãã ãã©ããïŒ
- èªåè»ä¿éºéè«æ±ïŒè£åãŸãã¯ä¿®çïŒïŒ
- ç æ°ã®èšºæ
ãããã®åã¿ã¹ã¯ã«ã¯æããã«2ã€ã®ã«ããŽãªãããããã€ããªåé¡ã¿ã¹ã¯ã®äŸãšãªã£ãŠããŸãã
ããžã¹ãã£ãã¯ååž°ã¯ããã€ããªåé¡ã®åé¡ã«å¯ŸããŠé©åã«æ©èœããŸããåçŽã«ãç°ãªãã«ããŽãªããããã0ãš1ã«å²ãåœãŠãŸãã
ãªãããžã¹ãã£ãã¯ååž°ããã€ããªåé¡äºæž¬ã«ç·åœ¢ååž°ã䜿çšã§ããªãããã§ãã 2ã€ã®å¯èœãªå€ãæã€ããŒã¿ã»ãããéãçŽç·ãæç»ããããšããŠãããããåçŽã«æ©èœããŸããã
ãã®ç»åã¯ãç·åœ¢ååž°ããã€ããªåé¡ã«é©ããªãçç±ãç解ããã®ã«åœ¹ç«ã¡ãŸãã
ãã®ç»åã§ã¯ãy軞ã¯è «çãæªæ§ã§ãã確çãè¡šããŸãã1-yã®å€ã¯ãè «çãè¯æ§ã§ãã確çãè¡šããŸããã芧ã®ãšãããããŒã¿ã»ããå ã®ã»ãšãã©ã®èŠ³æž¬å€ã®å°€åºŠãäºæž¬ããããã®ç·åœ¢ååž°ã¢ãã«ã®ããã©ãŒãã³ã¹ã¯éåžžã«äœããªã£ãŠããŸãã
ããããããžã¹ãã£ãã¯ååž°ã¢ãã«ã圹ç«ã€çç±ã§ããããã¯æé©ç·ã«åãã£ãŠæ²ãã£ãŠãããããå®æ§çïŒã«ããŽãªïŒããŒã¿ã®äºæž¬ã«ã¯ããã«é©ããŠããŸãã
åãããŒã¿ã§ç·åœ¢ååž°ã¢ãã«ãšããžã¹ãã£ãã¯ååž°ã¢ãã«ãæ¯èŒããäŸã次ã«ç€ºããŸãã
ã·ã°ã¢ã€ãïŒã·ã°ã¢ã€ãé¢æ°ïŒ
ããžã¹ãã£ãã¯ååž°ãããããŠããçç±ã¯ãç·åœ¢æ¹çšåŒã䜿çšããŠèšç®ããªãããã§ãã代ããã«ãããžã¹ãã£ãã¯ååž°ã¢ãã«ã¯ã·ã°ã¢ã€ãïŒããžã¹ãã£ãã¯ååž°ã§äœ¿çšããããããããžã¹ãã£ãã¯é¢æ°ãšãåŒã°ããŸãïŒã䜿çšããŠæ§ç¯ãããŸãã
MLã§æåããããã«ã·ã°ã¢ã€ããå®å šã«èšæ¶ããå¿ èŠã¯ãããŸãããããã§ãããã®æ©èœã«ã€ããŠäœãèãããããšåœ¹ã«ç«ã¡ãŸãã
ã·ã°ã¢ã€ãåŒïŒã·ã°ã¢ã€ãã®
äž»ãªç¹æ§ã§ããã察åŠãã䟡å€ããããŸãããã®é¢æ°ã«æž¡ãå€ã«é¢ä¿ãªããåžžã«0ã1ã®å€ãè¿ãããŸãã
äºæž¬ã«ããžã¹ãã£ãã¯ååž°ã¢ãã«ã䜿çšãã
äºæž¬ã«ããžã¹ãã£ãã¯ååž°ã䜿çšããã«ã¯ãéåžžãã«ãããªããã€ã³ããæ£ç¢ºã«å®çŸ©ããå¿ èŠããããŸãããã®ã«ãããªããã€ã³ãã¯éåžž0.5ã§ãã
åã®ã°ã©ãã®ãã蚺æã®äŸã䜿çšããŠããã®åçãå®éã«èŠãŠã¿ãŸããããããžã¹ãã£ãã¯ååž°ã¢ãã«ã0.5æªæºã®å€ãè¿ãå Žåããã®ããŒã¿ãã€ã³ãã¯è¯æ§ãšããŠåé¡ãããŸããåæ§ã«ãã·ã°ã¢ã€ãã®å€ã0.5ãè¶ ããå Žåãè «çã¯æªæ§ãšåé¡ãããŸãã
ãšã©ãŒãããªãã¯ã¹ã䜿çšããããžã¹ãã£ãã¯ååž°ã®å¹æã®æž¬å®
ãšã©ãŒãããªãã¯ã¹ã¯ãMOã§çéœæ§ãçé°æ§ãåœéœæ§ãããã³åœé°æ§ã®ã¹ã³ã¢ãæ¯èŒããããŒã«ãšããŠäœ¿çšã§ããŸãã
ãšã©ãŒãããªãã¯ã¹ã¯ãããžã¹ãã£ãã¯ååž°ã¢ãã«ã®ããã©ãŒãã³ã¹ã枬å®ããããã«äœ¿çšããå Žåã«ç¹ã«åœ¹ç«ã¡ãŸãã以äžã¯ããšã©ãŒãããªãã¯ã¹ã®äœ¿çšäŸã§ã
ããã®è¡šã§ã¯ãTNã¯çé°æ§ãFNã¯åœé°æ§ãFPã¯åœéœæ§ãTPã¯çéœæ§ãè¡šããŸãã
ãšã©ãŒãããªãã¯ã¹ã«ã匱ãã象éãããå Žåããšã©ãŒãããªãã¯ã¹ã¯ã¢ãã«ãè©äŸ¡ããã®ã«åœ¹ç«ã¡ãŸããäŸãšããŠã圌女ã¯ç°åžžã«å€ãã®åœéœæ§ãæã£ãŠãããããããŸããã
ãŸãããšã©ãŒãããªãã¯ã¹ã®ç¹ã«å±éºãªé åã§ã¢ãã«ãæ£ããæ©èœããŠããããšã確èªããããšãéåžžã«åœ¹ç«ã¡ãŸãã
ããšãã°ããã®ãã蚺æã®äŸã§ã¯ãã¢ãã«ã«åœéœæ§ãå€ãããªãããšã確èªããŸããããã¯ã誰ãã®æªæ§è «çãè¯æ§ãšèšºæããããšãæå³ããŸãã
ãŸãšãã
ãã®ã»ã¯ã·ã§ã³ã§ã¯ãMLã¢ãã«-ããžã¹ãã£ãã¯ååž°ã«ã€ããŠåããŠç¥ããŸããã
以äžã¯ãããžã¹ãã£ãã¯ååž°ã«ã€ããŠåŠãã ããšã®ç°¡åãªèŠçŽã§ãã
- ããžã¹ãã£ãã¯ååž°ã§è§£ãã®ã«é©ããåé¡åé¡ã®ã¿ã€ã
- ããžã¹ãã£ãã¯é¢æ°ïŒã·ã°ã¢ã€ãïŒã¯åžžã«0ãš1ã®éã®å€ãäžããŸã
- ã«ãããªããã€ã³ãã䜿çšããŠããžã¹ãã£ãã¯ååž°ã¢ãã«ã§äºæž¬ããæ¹æ³
- ãšã©ãŒãããªãã¯ã¹ãããžã¹ãã£ãã¯ååž°ã¢ãã«ã®ããã©ãŒãã³ã¹ã枬å®ããã®ã«åœ¹ç«ã€ã®ã¯ãªãã§ãã
Kæè¿åã¢ã«ãŽãªãºã
kæè¿åã¢ã«ãŽãªãºã ã¯ã2ã€ãè¶ ããã«ããŽãªãããå Žåã®åé¡åé¡ã®è§£æ±ºã«åœ¹ç«ã¡ãŸãã
kæè¿åã¢ã«ãŽãªãºã ãšã¯äœã§ããïŒ
ããã¯ãåçŽãªåçã«åºã¥ãåé¡ã¢ã«ãŽãªãºã ã§ããå®éãååã¯éåžžã«åçŽãªã®ã§ãäŸãæããŠèª¬æããã®ãæåã§ãã
ãµãã«ãŒéžæãšãã¹ã±ããããŒã«éžæã®èº«é·ãšäœéã®ããŒã¿ããããšããŸãã kæè¿åã¢ã«ãŽãªãºã ã䜿çšããŠãæ°ãããã¬ãŒã€ãŒããµãã«ãŒéžæããã¹ã±ããããŒã«éžæããäºæž¬ã§ããŸãããããè¡ãããã«ãã¢ã«ãŽãªãºã ã¯ã¹ã¿ãã£ãªããžã§ã¯ãã«æãè¿ãKããŒã¿ãã€ã³ãã決å®ããŸãã
ãã®ç»åã¯ããã©ã¡ãŒã¿K = 3ã§ãã®åçã瀺ããŠããŸãã
ãã®ç»åã§ã¯ããµãã«ãŒéžæã¯éããã¹ã±ããããŒã«éžæã¯ãªã¬ã³ãžã§ããåé¡ããããšããŠããç¹ã¯ç·è²ã§ããç·ã®ãã€ã³ãã«æãè¿ãããŒã¯ïŒ2/3ïŒã®ããŒã¯ã¯éïŒãµãã«ãŒéžæïŒã«ãªã£ãŠããã®ã§ãKæè¿åã¢ã«ãŽãªãºã ã¯ãæ°ãããã¬ãŒã€ãŒããµãã«ãŒéžæã«ãªããšäºæž¬ããŸãã
Kæè¿åã¢ã«ãŽãªãºã ãæ§ç¯ããæ¹æ³
ãã®ã¢ã«ãŽãªãºã ãæ§ç¯ããããã®äž»ãªæé ïŒ
- ãã¹ãŠã®ããŒã¿ãåéãã
- æ°ããããŒã¿ãã€ã³ãxããããŒã¿ã»ããå ã®ä»ã®ãã¹ãŠã®ãã€ã³ããŸã§ã®ãŠãŒã¯ãªããè·é¢ãèšç®ããŸã
- ããŒã¿ã»ãããããã€ã³ããxãŸã§ã®è·é¢ã®æé ã§äžŠã¹æ¿ã
- xã«æãè¿ãKããŒã¿ã®ã»ãšãã©ãšåãã«ããŽãªã䜿çšããŠåçãäºæž¬ããŸã
Kæè¿åã¢ã«ãŽãªãºã ã«ãããKå€æ°ã®éèŠæ§
ããã¯æåããæããã§ã¯ãªããããããŸãããããã®ã¢ã«ãŽãªãºã ã§Kå€ãå€æŽãããšãæ°ããããŒã¿ãã€ã³ãã該åœããã«ããŽãªãå€æŽãããŸãã
å ·äœçã«ã¯ãKå€ãå°ãããããšãã¢ãã«ã¯ãã¬ãŒãã³ã°ããŒã¿ã»ãããæ£ç¢ºã«äºæž¬ããŸããããã¹ãããŒã¿ã«ã¯éåžžã«å¹æããããŸããããŸããKãé«ããããšãã¢ãã«ãäžå¿ èŠã«è€éã«ãªããŸãã
次ã®å³ã¯ããã®å¹æãå®å šã«ç€ºããŠããŸãã
Kæè¿åã¢ã«ãŽãªãºã ã®é·æãšçæ
ãã®ã¢ã«ãŽãªãºã ã®æŠèŠãèŠçŽããããã«ããã®ã¢ã«ãŽãªãºã ã®äœ¿çšã®é·æãšçæã«ã€ããŠç°¡åã«èª¬æããŸãã
é·æïŒ
- ã¢ã«ãŽãªãºã ã¯ã·ã³ãã«ã§ç解ãããã
- æ°ãããã¬ãŒãã³ã°ããŒã¿ã®ç°¡åãªã¢ãã«ãã¬ãŒãã³ã°
- åé¡ã¿ã¹ã¯ã®ä»»æã®æ°ã®ã«ããŽãªã§æ©èœããŸã
- å€ãã®ããŒã¿ã«ç°¡åã«ããŒã¿ãè¿œå ãã
- ã¢ãã«ã¯2ã€ã®ãã©ã¡ãŒã¿ãŒã®ã¿ã䜿çšããŸããKãšäœ¿çšããè·é¢ã¡ããªãã¯ïŒéåžžã¯ãŠãŒã¯ãªããè·é¢ïŒ
ãã€ãã¹ïŒ
- èšç®ã³ã¹ããé«ã ããŒã¿å šäœãåŠçããå¿ èŠããã
- ã«ããŽãªãã©ã¡ãŒã¿ã§ã¯ããŸãæ©èœããŸãã
ãŸãšãã
Kæè¿åã¢ã«ãŽãªãºã ã«ã€ããŠåŠç¿ããå 容ã®èŠçŽïŒ
- ã¢ã«ãŽãªãºã ã解決ã§ããåé¡åé¡ïŒãµãã«ãŒéžæãŸãã¯ãã¹ã±ããããŒã«éžæïŒã®äŸ
- ã¢ã«ãŽãªãºã ãé£æ¥ããç¹ãŸã§ã®ãŠãŒã¯ãªããè·é¢ã䜿çšããŠãæ°ããããŒã¿ãã€ã³ããå±ããã«ããŽãªãäºæž¬ããæ¹æ³
- Kå€ãäºæž¬ã«éèŠãªçç±
- Kæè¿åã¢ã«ãŽãªãºã ã®äœ¿çšã®é·æãšçæ
決å®æšãšã©ã³ãã ãã©ã¬ã¹ã
決å®æšãšã©ã³ãã ãã©ã¬ã¹ãã¯ãããªãŒæ³ã®2ã€ã®äŸã§ããããæ£ç¢ºã«ã¯ããã·ãžã§ã³ããªãŒã¯ãããŒã¿ã»ããå ã®åé¢æ°ã1ã€ãã€ã«ãŒãããŠäºæž¬ããããã«äœ¿çšãããMLã¢ãã«ã§ããã©ã³ãã ãã©ã¬ã¹ãã¯ãããŒã¿ã»ããå ã®ãªããžã§ã¯ãã®ã©ã³ãã ãªé åºã䜿çšãã決å®æšã®éå£ïŒå§å¡äŒïŒã§ãã
ããªãŒã¡ãœãããšã¯äœã§ããïŒ
MLã§ã®ããªãŒããŒã¹ã®ã¡ãœããã®çè«çåºç€ã«å ¥ãåã«ãäŸããå§ãããšåœ¹ç«ã¡ãŸãã
ããªããæ¯é±æææ¥ã«ãã¹ã±ããããŒã«ãããŠãããšæ³åããŠãã ãããããã«ãããªãã¯ãã€ãåãåéãæåŸ ããŠäžç·ã«éã³ã«æ¥ãŠããããŸããåéãæ¥ãããšãããã°ãæ¥ãªãããšããããŸããæ¥ããã©ããã®æ±ºå®ã¯å€ãã®èŠå ã«äŸåããŸãïŒã©ããªçš®é¡ã®å€©åãæ°æž©ã颚ãç²åŽãããªãã¯ãããã®æ©èœã«æ°ã¥ãå§ããåéããã¬ã€ãããããªããã®æ±ºå®ãšãšãã«ãããã远跡ããŸãã
ãã®ããŒã¿ã䜿çšããŠãåéãä»æ¥æ¥ããã©ãããäºæž¬ã§ããŸãã䜿çšã§ããææ³ã®1ã€ã¯ã決å®æšã§ããããã¯ã©ã®ããã«èŠãããã§ãã
å決å®æšã«ã¯2çš®é¡ã®èŠçŽ ããããŸãã
- ããŒãïŒç¹å®ã®ãã©ã¡ãŒã¿ãŒã®å€ã«åºã¥ããŠããªãŒãåå²ãããå Žæ
- ãšããžïŒæ¬¡ã®ããŒãã«ã€ãªããåå²ã®çµæ
ãã®å³ã«ã¯ãèŠéãã湿床ã
颚ã®ããŒãããããŸãããŸãããããã®åãã©ã¡ãŒã¿ãŒã®åæœåšçãªå€ã®ãã¡ã»ããã
éå§ããåã«ç解ããŠããã¹ãå®çŸ©ãããã€ããããŸãã
- ã«ãŒã-ããªãŒã®åå²ãå§ãŸãããŒã
- è-æçµçµæãäºæž¬ããæçµããŒã
ããã§ã決å®æšãšã¯äœãã«ã€ããŠã®åºæ¬çãªç解ãåŸãããŸããããã®ãããªããªãŒããŒãããæ§ç¯ããæ¹æ³ã«ã€ããŠã¯ã次ã®ã»ã¯ã·ã§ã³ã§èª¬æããŸãã
ãŒããã決å®æšãæ§ç¯ããæ¹æ³
ææ決å®ããªãŒã®æ§ç¯ã¯ãæã£ãããé£ããã§ããããã¯ãããŒã¿ãã©ã®åœ±é¿ïŒç¹æ§ïŒã«åå²ãããïŒãšã³ããããŒãšããŒã¿ååŸã®ãããã¯ïŒã決å®ããããšãæ°åŠçã«å°é£ãªã¿ã¹ã¯ã§ããããã§ãã
ãã®åé¡ã解決ããããã«ãMLã¹ãã·ã£ãªã¹ãã¯éåžžââãå€ãã®æ±ºå®æšã䜿çšããã©ã³ãã ã«éžæãããç¹æ§ã®ã»ãããé©çšããŠãæšããããã«åå²ããŸããèšãæãããšãæ°ããã©ã³ãã ãªç¹æ§ã®ã»ããããååå¥ã®ããŒãã£ã·ã§ã³ã§ãåå¥ã®ããªãŒããšã«éžæãããŸãããã®ææ³ã¯ã©ã³ãã ãã©ã¬ã¹ããšåŒã°ããŸãã
äžè¬ã«ãå°é家ã¯éåžžãã©ã³ãã ãªãã£ãŒãã£ã»ããïŒmã§ç€ºãããïŒã®ãµã€ãºãéžæããŸããããã«ãããããŒã¿ã»ããå ã®ãã£ãŒãã£ã®ç·æ°ïŒpã§ç€ºãããïŒã®å¹³æ¹æ ¹ã«ãªããŸããã€ãŸããmã¯pã®å¹³æ¹æ ¹ã§ãããç¹å®ã®ç¹æ§ã¯mããã©ã³ãã ã«éžæãããŸãã
ã©ã³ãã ãã©ã¬ã¹ãã䜿çšããå©ç¹
1ã€ã®ã匷ããç¹æ§ãæã€å€ãã®ããŒã¿ãæ±ã£ãŠãããšæ³åããŠãã ãããã€ãŸãããã®ããŒã¿ã»ããã«ã¯ããã®ããŒã¿ã»ããã®ä»ã®ç¹æ§ãããæçµçµæã®ç¹ã§ã¯ããã«äºæž¬å¯èœãªç¹æ§ããããŸãã
ææ決å®ããªãŒãæåã§æ§ç¯ããŠããå ŽåãããªãŒã®ãããããããŒãã£ã·ã§ã³ã«ãã®ç¹æ§ã䜿çšããããšã¯çã«ããªã£ãŠããŸããããã¯ãäºæž¬ãéåžžã«çžé¢ããŠããããã€ãã®ããªãŒãããããšãæå³ããŸãã
ãããé¿ãããã®ã¯ çžé¢ã®é«ãå€æ°ã®å¹³åã䜿çšããŠããåæ£ã¯å€§å¹ ã«ã¯æžå°ããŸãããã©ã³ãã ãã©ã¬ã¹ãå ã®åããªãŒã«ã©ã³ãã ãªç¹æ§ã®ã»ããã䜿çšããããšã«ãããããªãŒãéçžé¢åããçµæã®ã¢ãã«ã®åæ£ãæžãããŸãããã®éçžé¢ã¯ãæäœæ¥ã§äœæãã決å®æšãããã©ã³ãã ãã©ã¬ã¹ãã䜿çšããå Žåã®å€§ããªå©ç¹ã§ãã
ãŸãšãã
ãããã決å®æšãšã©ã³ãã ãã©ã¬ã¹ãã«ã€ããŠåŠãã ããšã®ç°¡åãªèŠçŽã§ãã
- 決å®æšã䜿çšããŠè§£æ±ºçãäºæž¬ã§ããåé¡ã®äŸ
- ãã£ã·ãžã§ã³ããªãŒã®èŠçŽ ïŒããŒããé¢ãæ ¹ãè
- ã©ã³ãã ãªç¹æ§ã»ããã䜿çšããŠãã©ã³ãã ãªãã©ã¬ã¹ããæ§ç¯ããæ¹æ³
- å€æ°ã®éçžé¢ã«ã©ã³ãã ãã©ã¬ã¹ãã䜿çšãããšãçµæã®ã¢ãã«ã®åæ£ãæžããã®ã«åœ¹ç«ã€ã®ã¯ãªãã§ãã
ãµããŒããã¯ã¿ãŒãã·ã³
ãµããŒããã¯ã¿ãŒãã·ã³ã¯åé¡ã¢ã«ãŽãªãºã ã§ããïŒæè¡çã«ã¯ååž°åé¡ã®è§£æ±ºã«ã䜿çšã§ããŸãïŒãããŒã¿ã®ã»ãããã«ããŽãªãŒéã®æ倧ã®ãã®ã£ãããã§ã«ããŽãªãŒã«åå²ããŸãããã®æŠå¿µã¯ã次ã®äŸãèŠããšããæ確ã«ãªããŸãã
ãµããŒããã¯ã¿ãŒãã·ã³ãšã¯
ãµããŒããã¯ã¿ãŒãã·ã³ïŒSVMïŒã¯ãããŒã¿ãåæããŠãã¿ãŒã³ãèªèããé©åãªåŠç¿ã¢ã«ãŽãªãºã ãåããæåž«ããMLã¢ãã«ã§ããSVMã¯ãåé¡ã¿ã¹ã¯ãšååž°åæã®äž¡æ¹ã«äœ¿çšã§ããŸãããã®èšäºã§ã¯ããµããŒããã¯ã¿ãŒãã·ã³ã䜿çšããŠåé¡ã®åé¡ã解決ããæ¹æ³ã«ã€ããŠå ·äœçã«èª¬æããŸãã
MOUã¯ã©ã®ããã«æ©èœããŸããïŒ
MOUãå®éã«ã©ã®ããã«æ©èœãããã詳ããèŠãŠã¿ãŸãããã
ãã¬ãŒãã³ã°äŸã®ã»ãããäžããããããããã2ã€ã®ã«ããŽãªãŒã®1ã€ã«å±ãããã®ãšããŠããŒã¯ãããŠããŸãããã®SVMã®ã»ããã䜿çšããŠãã¢ãã«ãäœæããŸãããã®ã¢ãã«ã¯ãæ°ããäŸã2ã€ã®ã«ããŽãªã®ããããã«åé¡ããŸããããã«ãããSVMã¯ããããããªããã€ããªç·åœ¢åé¡åšã«ãªããŸãã
MOUã¯ãžãªã¡ããªã䜿çšããŠãã«ããŽãªããšã«äºæž¬ãè¡ããŸããããå ·äœçã«ã¯ããµããŒããã¯ã¿ãŒãã·ã³ã¯ãããŒã¿ãã€ã³ãã空éå ã®ãã€ã³ããšããŠãããããããããã§ããéãåºãã®ã£ããã§åé¢ããããã«åé¡ããŸããæ°ããããŒã¿ãã€ã³ããç¹å®ã®ã«ããŽãªã«å±ããââãšããäºæž¬ã¯ããã¬ãŒã¯ãã€ã³ãã®ã©ã¡ãåŽã«åºã¥ããã«åºã¥ããŠããŸãã
以äžã¯ãMOUã®çŽæãç解ããã®ã«åœ¹ç«ã€èŠèŠåã®äŸã§ããã芧ã®ãšãã
ãæ°ããããŒã¿ãã€ã³ããç·ã®ç·ã®å·ŠåŽã«ããå Žåã¯ãèµ€ããšåŒã°ããå³åŽã®å Žåã¯ãéããšåŒã°ããŸãããã®ç·è²ã®ç·ã¯è¶ å¹³é¢ãšåŒã°ããMOUãæäœããããã®éèŠãªçšèªã§ãã
次ã®SVMã®èŠèŠçè¡šçŸãèŠãŠã¿ãŸããã
ããã®å³ã§ã¯ãè¶ å¹³é¢ã¯ãæé©ãªè¶ å¹³é¢ããšããŠã©ãã«ä»ããããŠããŸãããµããŒããã¯ã¿ãŒãã·ã³çè«ã§ã¯ãæé©ãªè¶ å¹³é¢ããç°ãªãã«ããŽãªã®2ã€ã®æãè¿ãããŒã¿ãã€ã³ãéã®ãã£ãŒã«ããæ倧åããè¶ å¹³é¢ãšããŠå®çŸ©ããŠããŸãã
ã芧ã®ãšããããã£ãŒã«ãå¢çã¯å®éã«3ã€ã®ããŒã¿ãã€ã³ãã«åœ±é¿ããŸãã2ã€ã¯èµ€ã®ã«ããŽãªããã1ã€ã¯éã®ã«ããŽãªããã§ãããã£ãŒã«ãã®å¢çã«æ¥ãããããã®ãã€ã³ãã¯ããµããŒããã¯ã¿ãŒãšåŒã°ãããããååãä»ããããŸãã
ãŸãšãã
ããã§ã¯ããµããŒããã¯ã¿ãŒãã·ã³ã«ã€ããŠåŠç¿ããå 容ã®ç°¡åãªã¹ãããã·ã§ããã瀺ããŸãã
- MOUã¯ãç£èŠä»ãMLã¢ã«ãŽãªãºã ã®äŸã§ã
- ãµããŒããã¯ã¿ãŒã¯ãåé¡åé¡ã®è§£æ±ºãšååž°åæã®äž¡æ¹ã«äœ¿çšã§ããŸãã
- MOUãããŒã¿ã»ããã®ã«ããŽãªéã®ããŒãžã³ãæ倧åããè¶ å¹³é¢ã䜿çšããŠããŒã¿ãåé¡ããæ¹æ³
- åå²ãã£ãŒã«ãã®å¢çã«æ¥ããããŒã¿ãã€ã³ãã¯ããµããŒããã¯ã¿ãŒãšåŒã°ããŸãããããã¡ãœããã®ååã®ç±æ¥ã§ãã
Kå¹³åã¯ã©ã¹ã¿ãªã³ã°
K-Meansã¡ãœããã¯ãæåž«ãªãæ©æ¢°åŠç¿ã¢ã«ãŽãªãºã ã§ããããã¯ãã¿ã°ãªãã®ããŒã¿ãåãå ¥ããããŒã¿å ã®åæ§ã®èŠ³æž¬ã®ã¯ã©ã¹ã¿ãŒãã¯ã©ã¹ã¿ãŒåããããšããããšãæå³ããŸããKå¹³åæ³ã¯ãå®éã®ã¢ããªã±ãŒã·ã§ã³ã解ãããã«éåžžã«åœ¹ç«ã¡ãŸãããã®ã¢ãã«ã«é©åããããã€ãã®ã¿ã¹ã¯ã®äŸã次ã«ç€ºããŸãã
- ããŒã±ãã£ã³ã°ããŒã ã®é¡§å®¢ã»ã°ã¡ã³ããŒã·ã§ã³
- ææžã®åé¡
- AmazonãUPSãFedExãªã©ã®äŒæ¥ã®é éã«ãŒããæé©åãã
- åžå ã®ç¯çœªå Žæã®ç¹å®ãšå¯Ÿå¿
- ããã¹ããŒãåæ
- ãµã€ããŒç¯çœªã®äºæž¬ãšé²æ¢
Kå¹³åæ³ã®äž»ãªç®çã¯ãããŒã¿ã»ãããåºå¥å¯èœãªã°ã«ãŒãã«åå²ããŠãåã°ã«ãŒãå ã®èŠçŽ ãäºãã«é¡äŒŒããããã«ããããšã§ãã
ãããå®éã«ã©ã®ããã«èŠããããèŠèŠçã«è¡šãããã®
ã§ãããã®èšäºã®æ¬¡ã®ã»ã¯ã·ã§ã³ã§ã¯ãKå¹³åæ³ã®èåŸã«ããæ°åŠã«ã€ããŠèª¬æããŸãã
Kå¹³åæ³ã¯ã©ã®ããã«æ©èœããŸããïŒ
Kå¹³åæ³ã䜿çšããæåã®ã¹ãããã¯ãããŒã¿ãåå²ããã°ã«ãŒãã®æ°ãéžæããããšã§ãããã®éã¯Kã®å€ã§ãããã¢ã«ãŽãªãºã ã®ååã«åæ ãããŸããKå¹³åæ³ã§ã®Kå€ã®éžæã¯éåžžã«éèŠã§ããåŸã§æ£ããKå€ãéžæããæ¹æ³ã«ã€ããŠèª¬æããŸã
次ã«ãããŒã¿ã»ããå ã®ãã€ã³ããã©ã³ãã ã«éžæããã©ã³ãã ãªã¯ã©ã¹ã¿ãŒã«å²ãåœãŠãå¿ èŠããããŸããããã«ãããã¯ã©ã¹ã¿ãŒã®å€æŽãåæ¢ãããŸã§æ¬¡ã®å埩ãå®è¡ããéå§ããŒã¿äœçœ®ãåŸãããŸãã
- ãã®ã¯ã©ã¹ã¿ãŒå ã®ãã€ã³ãã®å¹³åãã¯ãã«ãåãããšã«ãã£ãŠåã¯ã©ã¹ã¿ãŒã®éå¿ïŒéå¿ïŒãèšç®ãã
- åããŒã¿ãã€ã³ãããéå¿ããã€ã³ãã«æãè¿ãã¯ã©ã¹ã¿ãŒã«åå²ãåœãŠããŸãã
Kå¹³åæ³ã§ã®é©åãªKå€ã®éžæ
å³å¯ã«èšãã°ãé©åãªKå€ãéžæããããšã¯éåžžã«å°é£ã§ãã ãæé©ãªãKå€ãéžæããã®ã«ãæ£ãããçãã¯ãããŸãããMLã®å°é家ããã䜿çšããæ¹æ³ã®1ã€ã¯ãããšã«ããŒæ³ããšåŒã°ããŸãã
ãã®æ¹æ³ã䜿çšããã«ã¯ããŸã2ä¹èª€å·®ã®åèšãèšç®ããå¿ èŠããããŸããããã¯ãKå€ã®ã°ã«ãŒãã«å¯Ÿããã¢ã«ãŽãªãºã ã®æšæºåå·®ã§ããKå¹³åæ³ã®æšæºåå·®ã¯ãã¯ã©ã¹ã¿ãŒå ã®åããŒã¿ãã€ã³ãéã®è·é¢ã®2ä¹ã®åèšãšããŠå®çŸ©ãããŸãããããŠãã®ã¯ã©ã¹ã¿ãŒã®éå¿ã
ãã®ã¹ãããã®äŸãšããŠã2ã4ã6ã8ãããã³10ã®Kå€ã®æšæºåå·®ãèšç®ã§ããŸãã次ã«ãæšæºåå·®ãšãããã®Kå€ã®ã°ã©ããçæããŸããKå€ãå¢å ãããšãåå·®ãæžå°ããããšãããããŸãã
ãããŠãããã¯çã«ããªã£ãŠããŸãïŒããŒã¿ã®ã»ããããäœæããã«ããŽãªãå€ãã»ã©ãåããŒã¿ãã€ã³ãããã®ãã€ã³ãã®ã¯ã©ã¹ã¿ãŒã®äžå¿ã«è¿ãå¯èœæ§ãé«ããªããŸãã
ããã¯èšã£ãŠãããšã«ããŒæ³ã®èåŸã«ããäž»ãªã¢ã€ãã¢ã¯ãRMSãäœäžçãåçã«äœäžãããKå€ãéžæããããšã§ãããã®æ¥æ¿ãªæžå°ã¯ããã£ãŒãã®ãã²ããã圢æããŸãã
äŸãšããŠãããã«Kã«å¯ŸããRMSã®ããããã瀺ããŸãããã®å Žåããšã«ããŒæ³ã¯çŽ6ã®Kå€ã䜿çšããããšãææ¡ããŸã
ãK= 6ã¯åã«èš±å®¹å¯èœãªKå€ã®æšå®å€ã§ããããšãéèŠã§ããKå¹³åæ³ã«ã¯ãæè¯ã®ãKå€ã¯ãããŸãããMLã®å€ãã®ããšãšåæ§ã«ãããã¯éåžžã«ç¶æ³ã«å¿ãã決å®ã§ãã
ãŸãšãã
ããã§ã¯ããã®ã»ã¯ã·ã§ã³ã§åŠç¿ããå 容ã®ç°¡åãªã¹ã±ããã瀺ããŸãã
- Kå¹³åæ³ã§è§£ãããšãã§ããæåž«ãªãã®MLã¿ã¹ã¯ã®äŸ
- Kå¹³åæ³ã®åºæ¬åç
- K-Meansã®ä»çµã¿
- ãšã«ãæ³ã䜿çšããŠããã®ã¢ã«ãŽãªãºã ã®Kãã©ã¡ãŒã¿ã«é©åãªå€ãéžæããæ¹æ³
äž»æååæ
äž»æååæã¯ãå€ãã®ãã©ã¡ãŒã¿ãŒãæã€ããŒã¿ã»ããããããå°ãªããã©ã¡ãŒã¿ãŒãæã€æ°ããããŒã¿ã»ããã«å€æããããã«äœ¿çšãããŸãããã®ããŒã¿ã»ããã®æ°ããåãã©ã¡ãŒã¿ãŒã¯ãæ¢åã®ãã©ã¡ãŒã¿ãŒã®ç·åœ¢çµåã§ãããã®å€æãããããŒã¿ã¯ãå ã®ããŒã¿ã»ããã®åæ£ã®å€ããããç°¡åã«æ£åœåããåŸåããããŸãã
äž»æååææ³ãšã¯ïŒ
äž»æååæïŒPCAïŒã¯ãå€æ°ã®ã»ããéã®é¢ä¿ãç 究ããããã«äœ¿çšãããMLææ³ã§ããã€ãŸããPCAã¯å€æ°ã®ã»ããã調ã¹ãŠããããã®å€æ°ã®åºæ¬æ§é ã決å®ããŸããPCAã¯ãå ååæãšãåŒã°ããŸãã
ãã®èª¬æã«åºã¥ããŠãPCAã¯ç·åœ¢ååž°ã«éåžžã«äŒŒãŠãããšèãããããããŸãããããããããã¯ããã§ã¯ãããŸãããå®éãããã2ã€ã®ææ³ã«ã¯ããã€ãã®éèŠãªéãããããŸãã
ç·åœ¢ååž°ãšPCAã®éã
ç·åœ¢ååž°ã¯ãããŒã¿ã»ããå šäœã§æãé©åããç·ã決å®ããŸããäž»æååæã¯ãããŒã¿ã»ããã®è€æ°ã®çŽäº€ããæé©ãã£ããç·ãèå¥ããŸãã
çŽäº€ãšããçšèªã«æ £ããŠããªãå Žåãããã¯åã«ãç·ãå°å³äžã§åãæ±ãåã西ã®ããã«äºãã«çŽè§ã§ããããšãæå³ããŸãã
ãããç解ããã®ã«åœ¹ç«ã€äŸãèŠãŠã¿ãŸãããã
ãã®ç»åã®è»žã©ãã«ãèŠãŠãã ãããx軞ã®äž»æåã¯ããã®ããŒã¿ã»ããã®åæ£ã®73ïŒ ã説æããŠããŸããy軞ã®äž»æåã¯ãããŒã¿ã»ããã®åæ£ã®çŽ23ïŒ ã説æããŠããŸãã
ããã¯ãåæ£ã®4ïŒ ãåå äžæã®ãŸãŸã§ããããšãæå³ããŸããåæã«äž»æåãè¿œå ããããšã§ããã®æ°ãæžããããšãã§ããŸãã
ãŸãšãã
äž»æååæã«ã€ããŠåŠãã ããšã®èŠçŽïŒ
- PCAã¯ãããŒã¿ã»ããã®å€åæ§ã決å®ããçŽäº€å åãèŠã€ããããšããŸã
- ç·åœ¢ååž°ãšPCAã®éã
- ããŒã¿ã»ããã«ã¬ã³ããªã³ã°ããããšãã«çŽäº€äž»æåãã©ã®ããã«èŠããã
- è¿œå ã®äž»æåãè¿œå ãããšãããŒã¿ã»ããå ã®åæ£ãããæ£ç¢ºã«èª¬æããã®ã«åœ¹ç«ã¡ãŸã