Kaggle ã§ãã¥ã¼ããªã¢ã«ã¨ãã¦éå¬ããã¦ãããTitanic å·ã®çåè
ã®äºæ¸¬ (以ä¸ãåã« Titanic ã¨è¨è¿°ãã¾ã) ã«ææ¦ãã¾ãããå®è£
ããã³ã¼ããå
¬éãã¾ããKaggle ã®ãµã¤ãä¸ã§ç»é²ãããã®ã§ã*1ããã®å®è£
ã§ãã¹ããã¼ã¿ã«å¯¾ããå¤å¥ç²¾åº¦ã¯ 80.8% ã§ãããã¾ããå¤ãå
ã®ç¤¾å
åå¼·ä¼ã§ãç´¹ä»ãã¾ããã®ã§ããã®éã®ã¹ã©ã¤ããå
¬éãã¾ãã
Prediction by SVM | Kaggle (å®è£
ããã³ã¼ã)
Kaggle の Titanic チュートリアルに挑戦した話 (社å
åå¼·ä¼ã§ã®çºè¡¨ã¹ã©ã¤ã)
Kaggle ã® Titanic ãã¥ã¼ããªã¢ã«ã«ã¤ãã¦
Kaggle ã¯ãã¼ã¿ãµã¤ã¨ã³ãã£ã¹ãåãã® Topcoder ã¨ãã£ãæãã®ã¦ã§ããµã¤ãã§ããæ©æ¢°å¦ç¿ã®ææ³ãªã©ãé©ç¨ãã¦åé¡ã解ãããã®æ績ã競ãå½¢å¼ã§ããä¼æ¥ãåºé¡ãã大è¦æ¨¡ãªåé¡ãªã©ã«ã¯ãé«é¡ãªè³éãããããã¦ãããã®ãããã¾ãããã®ä¸æ¹ã§ãæ©æ¢°å¦ç¿ã®åå¿è
åãã«ãã¥ã¼ããªã¢ã«çãªåé¡ãåºé¡ããã¦ãã¾ããä»åç§ãææ¦ãã Titanic ã¯ããã®ãããªåé¡ã®ä¸ã¤ã§ãã
Titanic: Machine Learning from Disaster | Kaggle
Titanic ã¯ãæ©æ¢°å¦ç¿ã®ã«ãã´ãªã¨ãã¦ã¯ãæ師ããåé¡åé¡ãã«å±ãã¾ããTitanic å·ã®ä¹å®¢ã«ã¤ãã¦ãæ°åãå¹´é½¢ãæ§å¥ã客室çç´ã¨ãã£ãå±æ§ãä¸ãããããããã®æ å ±ãå ã«ãåä¹å®¢ã®çæ»ãäºæ¸¬ãã¾ããæ師ããå¦ç¿ã§ãã®ã§ãå¦ç¿ãã¼ã¿ã«å«ã¾ããä¹å®¢ã«ã¤ãã¦ã¯çæ»ã®æ å ±ãä¸ãããã¾ãããããã®ãã¼ã¿ã¯ train.csv, test.csv ã¨ãã csv å½¢å¼ã®ãã¡ã¤ã«ã§æä¾ããã¾ã*2ãäºæ¸¬çµæã®ç»é²ã csv å½¢å¼ã®ãã¡ã¤ã«ãã¢ãããã¼ãããæ¹å¼ã§ã*3ã
å®è£ ææ³ã®æ¦è¦
ä»åç§ãå®è£ ããæ¹æ³ã§ã¯ã以ä¸ã®ç¹å¾´éãå©ç¨ãã¾ããããªãã称å·ãåä¹è æ°ãåä¹è ã®çåçã¨ãã£ãç¹å¾´éã追å ããã¢ã¤ãã¢ã¯ç§ãç¬èªã«èãããã®ã§ã¯ããã¾ãããTitanic ã§å ¬éããã¦ããã³ã¼ããè°è«ãå¤é¨ã®ã¦ã§ããµã¤ãçã§ãæ°å¤ãè¨åããã¦ãã¾ãã称å·ãå©ç¨ãããã¨ã«ããã®ã§ãå¹´é½¢ã¨æ§å¥ã¯å©ç¨ãã¾ããã§ããã
- 客室çç´ (pclass)
- ä¹è¹å° (embarked)
- æ¬ç§° (ä¹å®¢ã®æ°åãã Mr, Mrs, Miss, Master ã®æ¬ç§°ãæ½åºãã¾ããããã以å¤ã®æ¬ç§°ã¯ã«ã¼ã«ãã¼ã¹ã§å·¦è¨ã®ããããã«å¤æãã¾ãã)
- åä¹è æ° (ãã±ããçªå·ãåãä¹å®¢ãåä¹è ã¨ãã¦æ½åºãã¾ãã)
- åä¹è ã®çåç (å¦ç¿ãã¼ã¿ã®ä¸ã§ãã±ããçªå·ãåãä¹å®¢ã®çåçãè¨ç®ãã¾ãã)
ãããã®ç¹å¾´éãå©ç¨ãã¦ããµãã¼ããã¯ãã«ãã·ã³ã«ããåé¡ãè¡ãã¾ãããã«ã¼ãã«ã¯ RBF ã«ã¼ãã«ã¨ãã¦ãè¶ ãã©ã¡ã¼ã¿ã¯ã°ãªãããµã¼ãã§æ±ºå®ãã¾ããã
ãã®ä»ãããã
åé ã«è¨è¼ããã³ã¼ãã¨ã¯å¥ã«ãå®éã«ã¯ãããããªç¹å¾´éãæ©æ¢°å¦ç¿ã®ã¢ã«ã´ãªãºã ã試ãã¾ãããç¹å¾´éã«ã¤ãã¦ã¯ãå¹´é½¢ã®æ¬ æå¤ã®è£å®ã試ã¿ãã»ããåä¹è ã®ãã¡åä¾ã®æ°ãä¹å®¢ä¸äººãããã®ä¹è¹æãªã©æ§ã ãªç¹å¾´éã試ãã¾ãããã¢ã«ã´ãªãºã ã§ã¯ã©ã³ãã ãã©ã¬ã¹ãã xgboost, 深層å¦ç¿ (keras) ã使ã£ã¦ã¿ã¾ãã*4ããããããç§ã試ããç¯å²ã§ã¯ä»åã®ç²¾åº¦ãè¶ ãããã¾ããã§ããã
ã¾ããæ©æ¢°å¦ç¿ã使ããªãæ¹æ³ã¨ãã¦æ¬¡ã®åç´ãªã«ã¼ã«ã§åé¡ã試ãã¦ã¿ãã¨ããã79.4% ã®ç²¾åº¦ãå¾ãããæ©æ¢°å¦ç¿ãé©ç¨ããçµæã¨ãã¾ãå¤ãããªãã¨ããçµæã«ãªãã¾ãã*5ã
- 客室çç´ã 1st ã¾ã㯠2nd ã®å¥³æ§ (Mrs, Miss) ã¨åä¾ (Master) ã¯çåã¨äºæ¸¬ãã
- 客室çç´ã 3rd ã®å¥³æ§ã¨åä¾ã¯ãåä¹è æ°ã 4 以ä¸ãªãçåã5 以ä¸ãªãæ»äº¡ã¨äºæ¸¬ãã
- ããä»¥å¤ (大人ã®ç·æ§) ã¯æ»äº¡ã¨äºæ¸¬ãã
*1:ã°ãªãããµã¼ãã®å®è¡ã«å¤§ããªæéãããããããKaggle ä¸ã§ã¯å®è¡ã§ããªãããã§ãã
*2:ãã¼ã¿ãã¡ã¤ã«ãå ¥æããã«ã¯ Kaggle ã®ã¢ã«ã¦ã³ããä½æãã¦ãã°ã¤ã³ããå¿ è¦ãããã¾ããã©ã®ãããªå±æ§ãä¸ããããããè¦ãã ãã§ããã°ãã°ã¤ã³ã¯ä¸è¦ã§ãã
*3:ãããã£ã¦ãæ©æ¢°å¦ç¿ãããã°ã©ãã³ã°ã¯å¿ é ã§ã¯ããã¾ãããæä¾ããããã¼ã¿ããåä¹å®¢ã®çæ»ããã£ããæ¨çãã¦ãå®å ¨ã«äººåã§äºæ¸¬ããçµæãç»é²ãããã¨ãã§ãã¾ãã
*4:ãããã®ã¢ã«ã´ãªãºã ã«ã¤ãã¦ã¯ä¸æ £ããªãããç°¡åã«è©¦ãã¦ã¿ãã¨ããç¨åº¦ã§ããååãªãã©ã¡ã¼ã¿ãã¥ã¼ãã³ã°ãåºæ¥ã¦ããªãã£ãå¯è½æ§ãããã¾ãã
*5:ãã¡ãããç§ã試ããç¯å²ã§ã¯ãã¨ãããã¨ã§ããããããææ³ãç¹å¾´é¸æçã«ãã£ã¦ãé«ã精度ãå¾ãããå¯è½æ§ãããã¾ãã