æ©æ¢°å¦ç¿ããã«ã½ã³ã«è¡ã£ã¦ãã¾ããã
æ©æ¢°å¦ç¿ããã«ã½ã³ã«è¡ã£ã¦ãã¾ããã
ä¼å ´ã¯ãç§èåã¢ã³ãã¼ã°ã©ã¦ã³ããã¢ããã«ã¯å¦ã«è¦ªè¿æãè¦ãã¾ãã
ãã¼ãã¯ãæ©æ¢°å¦ç¿ã使ã£ã¦ãªã«ãããããã¨ãããã¨ã§ã使ããã¼ã¿ã¯èªç±ãææ³ãèªç±ãR使ã£ã¦ãããããsklearn使ã£ã¦ãããããèªåã§ã¢ã«ã´ãªãºã æ¸ãã¦ãOKã
åå ããæ¹éã¯ãã¬ããªãã¼ã¿ãµã¤ã¨ã³ãã£ã¹ãã£ã¦æãã®äººã¯ãã¾ãããªãã¦ãã¨ã³ã¸ãã¢ããã¼ã±ã¿ã¼ãå¤ãã£ãå°è±¡ã
åçã¯ç§èåã¢ã³ãã¼ã°ã©ã¦ã³ãããã®Facebookãã¼ã¸ããæåã
ããã«ã½ã³
ããã«ã½ã³éå§å¾ã¯ãã©ããªãã¼ã¿ä½¿ããã話ããããæ £ãã¦ãã²ã¨ãã©ã¤ãã©ãªã®ã¤ã³ã¹ãã¼ã«ã®ä»æ¹ãæãããã ãã¨ãããã«ã½ã³ä¸ã¯ã³ã¼ãæ¸ãã®ãã¡ã¤ã³ã¨ãã訳ã§ã¯ãªãã¦ãææ³ã«ã¤ãã¦è°è«ãçãä¸ãã£ã¦æ¥½ããã£ãã§ããããã¥ã¼ã©ã«ãããã¯ã¼ã¯ã§ãªã«ãã§ããªãããªã¼ãâããã£ã¼ãã©ã¼ãã³ã°ãã£ã¦ã¿ããããï¼ãâããããã¾ãRBMä½ã£ã¦ããã¼ãã¨ãããããããåé¡åé¡ã§ä½ä½¿ãããï¼ãâãSVM??ãâãããSCWã£ã¦ãããªã³ã©ã¤ã³å¦ç¿ã®è«æããã£ã¦ã¼ãã¨ããå²ã¨ããã«ã½ã³ã§å®ç¾ã§ãããã©ããã¨ãé¢ä¿ãªãããããããã£ã¦ã¾ããã
èªåã¯ã¨ããã¨ãæé ãªãã¼ã¿ãç¨æãã¦ããªãã£ãã®ã§ãkaggleãããã¼ã¿ããã¦ã³ãã¼ããã¦ã©ã«ãã¼ãã®å£²ãä¸ãäºæ¸¬ããã£ãã®ã§ãããã«ææ¦ãã¾ããã
詳ãã説æã¯ãããããã
ãã£ããè¨ãã¨ãã¾ãæç³»ååæããã¦ãã¬ã³ããé¤ãã¦ãããè²ããªæ©æ¢°å¦ç¿ã®ææ³ãã¨ã®ãã³ããã¼ã¯ãã¨ããããªã¼ã¨æã£ã¦ã¾ãããã¾ããçµè«ããè¨ãã¨
ã¨ããæãã§ãkaggleã«ã¢ãããã¼ããã§ããªãã£ãã®ã§ã¹ã³ã¢ãåºãã¨ããã¾ã§ã¯å®è£ ã§ãã¾ããã§ããorz
ãã¬ã¼ã³ã§ã¯ãååã«åæã®éåçã説æ(移åå¹³åã¨ã£ã¦ã¼ãæ©æ¢°å¦ç¿ã¯sklearn使ã£ã¦ã¼ã¨ã)ãã¦ãå¾åã¯ãsklearnã®ä½¿ãæ¹(SVMã¨ãã¯ãã¹ããªãã¼ã·ã§ã³ã¨ã)ã®è©±ããã¾ããã çºè¡¨ããªããããã®ææ³ã©ãã§ãããã¼ï¼ã£ã¦æãã§è²ã èããã®ããå°ãªã人æ°ãªãã§ã¯ã£ã¦æãã§è¯ãã£ãã§ããã¡ãªã¿ã«åªåã¯ãµã¶ã¨ããã®ã¸ã£ã³ã±ã³äºæ¸¬ã§ããã
ã¾ã¨ãã¨ãã¶ä¼
å ¨ä½çã«ã¢ã¦ããããã¾ã§ããã¨ä¸æ©ã¨ããæ¹ãå¤ãã¦*1ã6æéã¨ããæéã®ä¸ã§ãã¼ã¿ãæ¢ãã¦ãåææ¹æ³ãèãã¦ãå®è£ ãã¦ãã¬ã¼ã³ãä½ãã¨ããã®ã¯çµæ§çãã ãããã§ããããæ©æ¢°å¦ç¿ããã«ã½ã³ãã¨ããã¤ãã³ãã¯ããã¾ãéå¬ããã¦ããªãã£ãã¨æãã®ã§ã主å¬è ã®@chiralãããåå ããã¿ãªãããæ¢ãæ¢ãã§åãçµãã§ããã¨ããå°è±¡ã§ããã
ããã¦ãã¶ä¼(æ親ä¼)ã§ã¯ãæ©æ¢°å¦ç¿ããã¸ãã¹ã«ã©ã使ããã¦ãããã¨ããä»å¾ã®ããã«ã½ã³ã®é²ãæ¹ã¨ãã®è©±ããã¾ããã
æ©æ¢°å¦ç¿ã®ææ³ã¯ã©ãã©ãéçºãé²ãã§ãã¦ã注ç®åº¦ãé«ã¾ã£ã¦ããã®ã ããã©ãããããªåæææ³ãä¸äººæ©ããã¦ãæ*2ãããã¼ã«ãã³ã¢ãã£ãã£åããã¦ãçµæãåºåãã人ã¯å¢ãããã©ãããã解éã説æãã¦ãã¸ãã¹ã«æ´»ããã人ã¯ããã«ã¯åºã¦ããªããã*3ã¨ãã
ä»å¾ã®ããã«ã½ã³ã§ã¯ããããããåæãããã¼ã¿ã¨ç®çã¯å ±æãã¦ãå¿ è¦ãªãã¼ã«ã¨ãã¯ãªãã¹ãç¨æ(ããã¹ããéçºç°å¢ãªã©ãªã©)ããã»ããããã§ãããã¨ãã話ãããã®ã§ã次åã¯ãã£ã¨ãã¼ããçµã£ãããã«ã½ã³ã«ãªãã®ã§ã¯ã¨æãã¾ãã
ãã¨ãããã«ã½ã³ä¸ã«æå¤ã¨ã¢ã«ã´ãªãºã ã«ã¤ãã¦ã®è°è«ãçãä¸ãã£ãã®ã§ãããã®ç解ããªããã£ã¦ããåé¡æèã¯ã¿ããªæã£ã¦ããã ãªã¨æãã¾ããããã£ã±ãã©ã¤ãã©ãªä½¿ãã ããããªãã¦ãèªåã§å®è£ ã§ããªãããã£ã¦ããã¡ããå®è£ ããã³ã¼ããä»äºã«ä½¿ãã£ã¦ããããã§ã¯ãªããã ãã©ãã©ã¤ãã©ãªã«ãã¼ã¿ãé£ãããã ãã ã¨ããã©ãã¯ããã¯ã¹æãã³ããªãããã£ã¦æãã§ã
ã¢ã«ã´ãªãºã å®è£ ä¼??
ããã«ã½ã³ã¨ã¯å¥æ ã§ã¢ã«ã´ãªãºã å®è£ ä¼ã£ã¦ãã話ãåºãã®ã§ããã²åå ãããã§ãã æ©æ¢°å¦ç¿ã£ã¦ç°¡åãªææ³ã§ããæåã®ã¨ã£ãããããããé£ãããã¨ãããã®ã§ãåå¦è ã«ã¨ã£ã¦ã¯å©ãã«ãªãã¨æãã ãã¡ããã¢ã«ã´ãªãºã ã«è©³ãã人ããåããããã説æãããã¨ã§ãããã«ç解ã§ããããã«ãªãã¯ãã ãããã¾ã説æã§ããªãã¨ããã¯ãç解ãæµ ãé¨åã¦ãã¨ã§å®¿é¡ã«ããã¨*4ã
æ1, 2åãããã§éã¾ã£ã¦ãå®è£ ããææ³ã«ã¤ãã¦è©±ãã¦ãã³ã¼ãã¯Githubã«ããã¦ã次åã®éã¾ãã¾ã§ã«åã ãé ãæ±ããªããå®è£ é²ãã¦(ã¨ãã©ãissueãé£ã°ããã)ã å®è£ ã¾ã§æãåããªã人ã¯ãä»ã®äººã®ã³ã¼ããèªãã ãã§ãåå¼·ã«ãªãã(ãã«ãªã¯éãã ãã§ããk)ãããã°ã©ãã³ã°è¦æãªäººã¯ãäºç¿ãã¨ãã¦åå¼·ä¼ã«åå ãã¦è°è«ããã ãã§ããããã
ç¿ç度ã«åããã¦ããæ¸ããããèªããããèããã¨è²ããªæ®µéã®äººãåå ã§ãããã§ããããã¨å人çã«ã¯20人ãããã®äººæ°ãã¡ããã©ããæ°ããã¾ããããããããã£ã¹ã«ãã·ã§ã³ãããããã®ã§ã
以ä¸ãæ©æ¢°å¦ç¿ããã«ã½ã³ã«è¡ã£ã¦ãã¾ããã¨ããã話ã§ããã
*1:ãã£ã¼ãã©ã¼ãã³ã°ã®è©±ã§çãä¸ãã£ã¦ããã¨ãã«èã æãã¦ã¯ããã®ã§ããw
*2:æ©æ¢°å¦ç¿ã ã¨ããããã¨ã§ãããã§ãã!?ã¿ãããªæ¼ ç¶ã¨ããå°è±¡
*3:ã¢ã«ã´ãªãºã ãç解ã§ãã人ã¨ãã¸ãã¹ã«æ´»ãã人ã®è§£é¢ã大ãã by @chiralãã
*4:k-meansã£ã¦ä½ï¼ã£ã¦èããã¦ãã¯ã©ã¹ã¿ãªã³ã°ã ãã£ã¦è¨ãã®ã¯ãå ¨ã説æã«ãªã£ã¦ãªãæ°ãããã®ã¯åã ãã§ãããã