çŽ æãç解ããã«ã¯ãæ©æ¢°åŠç¿ã«é¢ããç¥èãæãŸããã§ãããå¿ é ã§ã¯ãããŸããã
ç§ã«ã€ããŠ-ç§ã¯captify.co.ukã§ããŒã¿ãµã€ãšã³ãã£ã¹ã/ãœãããŠã§ã¢ãšã³ãžãã¢ãšããŠåããŠããŸãã ããã¯Kaggleã§ã®2çªç®ã®äž»èŠãªç«¶äºã§ããã以åã®çµæã¯24/2125ã§ãããããœãã§ãã ç§ã¯çŽ5幎éãããã°ã©ãã³ã°-12ã§æ©æ¢°åŠç¿ãç 究ããŠããŸããLinkedinãããã¡ã€ã« ã
æ©æ¢°åŠç¿ãšKaggleãã©ãããã©ãŒã ã«ã€ããŠ
æ©æ¢°åŠç¿ã®äž»ãªã¿ã¹ã¯ã¯ã以åã«ã¬ãã¥ãŒãããã®ãšã¯ç°ãªãå ¥åããŒã¿ã«åºã¥ããŠçµæãäºæž¬ã§ããã¢ãã«ãæ§ç¯ããããšã§ãã ããšãã°ãçŸåšã®äŸ¡å€ãåžå Žã®ãã€ããã¯ã¹ãããã³éèãã¥ãŒã¹ãèæ ®ããŠãç¹å®ã®äŒæ¥ã®ç¹å®ã®æéåŸã®æ ªåŒã®äŸ¡å€ãäºæž¬ããŸãã
ããã§ã¯ãæ ªåŒã®å°æ¥äŸ¡å€ãäºæž¬ã«ãªããçŸåšäŸ¡å€ããã€ããã¯ã¹ããã¥ãŒã¹ãå ¥åãããŸãã
Kaggleã¯ãäž»ã«ããŒã¿åæãšæ©æ¢°åŠç¿ã®ããã®ç«¶äºãã©ãããã©ãŒã ã§ãã ã¿ã¹ã¯ã®ç¯å²ã¯å®å šã«ç°ãªããŸã-çš®ã®ã¯ãžã©ã®åé¡ãçæ§è «çã®èå¥ãäžåç£ã®äŸ¡å€ã®è©äŸ¡ãªã©ã äž»å¬è ã¯åé¡ãäœæããããŒã¿ãæäŸããè³éãåŸæŽããŸãã ãã®èšäºã®å·çæç¹ã§ã¯ã3ã€ã®ã³ã³ããã£ã·ã§ã³ãã¢ã¯ãã£ãã§ãè³éç·é¡$ 1.25Mã¯ã¢ã¯ãã£ããªã³ã³ããã£ã·ã§ã³ã®ãªã¹ãã§ã ã
ç§ã®æåŸã®ç«¶äºã¯Outbrainã¯ãªãã¯äºæž¬ã§ããã¿ã¹ã¯ã¯ããŠãŒã¶ãŒã«è¡šç€ºãããåºåãããŠãŒã¶ãŒãã¯ãªãã¯ããåºåãäºæž¬ããããšã§ãã ã³ã³ãã¹ãã¹ãã³ãµãŒ-Outbrainã¯ãããã°ããã¥ãŒã¹ãªã©ã®ããŸããŸãªã³ã³ãã³ãã宣äŒããŠããŸãã åºåãŠãããã¯ãcnn.comãwashingtonpost.comãªã©ãããŸããŸãªãªãœãŒã¹ã«é 眮ãããŸãã ãŠãŒã¶ãŒã®ã¯ãªãã¯ã«å¯ŸããŠãéãåãåãäŒç€Ÿãªã®ã§ãæœåšçã«èå³æ·±ãã³ã³ãã³ãããŠãŒã¶ãŒã«èŠããããšã«èå³ããããŸãã
ã¿ã¹ã¯ã®æ£åŒãªèª¬æã¯ãåºåãã¯ãªãã¯ãã確çã®éé ã§ãã®ãããã¯ã«ãŠãŒã¶ãŒã«è¡šç€ºãããåºåãé 眮ããããšã§ãã
ããšãã°ã80GBé åã®ã¯ãªãã¯ãã°ãã¡ã€ã«ãªã©ãæäŸãããããŒã¿ã®éã¯éåžžã«å€ããªããŸãã å ¥åããŒã¿ã®æ£ç¢ºãªèª¬æã¯ãã³ã³ãã¹ãããŒãžã§å ¥æã§ããŸã ã
æäŸãããããŒã¿ã¯2ã€ã®éšåã«åããããŸã-åå è ããŠãŒã¶ãŒãã¯ãªãã¯ãããããŒãç¥ã£ãŠããéšåïŒãã¬ãŒãã³ã°ããŒã¿ïŒãšãçµæãäºæž¬ããå¿ èŠãããããŒã¿-ãã¹ãããŸãã åæã«ãKaggleã¯ãã¹ãããŒã¿ã®å®éã®çµæãææ¡ããŠããŸãã
競åä»ç€Ÿã¯ããã¬ãŒãã³ã°ããŒã¿ã䜿çšããŠããã¹ãããŒã¿ã®çµæãäºæž¬ããã¢ãã«ãæ§ç¯ããŸãã æçµçã«ããããã®äºæž¬ã¯ããŒããããå®éã®çµæãç¥ã£ãŠãããã©ââãããã©ãŒã ã¯äºæž¬ã®æ£ç¢ºãã瀺ããŸãã
競æäŒãžã®åå ã®äžè¬çãªèšç»
- ã¿ã¹ã¯ãšå©çšå¯èœãªããŒã¿ã®åæ
- å¯èœãªè§£æ±ºçã®æ€çŽ¢ãšç 究
- ããŒã«ã«ç²ŸåºŠè©äŸ¡ã¡ã«ããºã ã®éçº
- ã¢ãã«ã®æ©èœãçæãã
- å®è£
ïŒæ¢æã®ã¢ã«ãŽãªãºã ããªãå ŽåïŒ+ã¢ãã«æ§ç¯
- 粟床è©äŸ¡
- ã¢ã€ãã 4ã6ã®å埩ãæ°ããã¢ãã«ã®è¿œå ïŒã»ãšãã©ã®å ŽåïŒ
- ã¢ãã«ã®ã¢ã³ãµã³ãã«ãšã¹ã¿ãã¯ïŒãªãã·ã§ã³ïŒ
- ããŒãã³ã°ïŒãªãã·ã§ã³ïŒ
ã¯ããã«
å ¥åããŒã¿
ãŸã第äžã«ã競äºã®åå è ãå©çšã§ããããŒã¿ãæ±ãããšã¯äŸ¡å€ããããŸãã ååãšããŠã[ããŒã¿]ããŒãžã«ã¯æ§é ãšã»ãã³ãã£ã¯ã¹ã®èª¬æãããã[競äºã«ãŒã«]ããŒãžã«ã¯ãå€éšããŒã¿ãœãŒã¹ã䜿çšã§ãããã©ããã䜿çšã§ããå Žåã¯ä»ã®ãŠãŒã¶ãŒãšå ±æãã䟡å€ããããã©ããã®èª¬æããããŸãã
ç§ãæåã«è¡ãããšã¯ããã¹ãŠã®ããŒã¿ããã³ãã§åºåããæ§é ãäŸåé¢ä¿ãç解ãââãŠãåé¡ã®ã¹ããŒãã¡ã³ãã«å¯Ÿå¿ãããããšã§ãã ãããã®ç®çã®ããã«ã Jupyter + Pythonã䜿çšãããšäŸ¿å©ã§ãã ããŸããŸãªã°ã©ããçµ±èšã¡ããªãã¯ãæ§ç¯ããããŒã¿ååžã調ã¹ãŸã-ããŒã¿ãç解ããã®ã«åœ¹ç«ã€ãã¹ãŠã®ããšãè¡ããŸãã
ããšãã°ã1ã€ã®åºåãŠãããã®åºåæ°ã®ååžãäœæããŠã¿ãŸãããã
ãŸããKaggleã«ã¯ãã©ãããããã§ã³ãŒããçŽæ¥å®è¡ã§ããã«ãŒãã«ã»ã¯ã·ã§ã³ããããéåžžãå©çšå¯èœãªããŒã¿ã»ããã®ããŸããŸãªèŠèŠåãè¡ã人ãããŸã-ããããä»ã®äººã®ã¢ã€ãã¢ã䜿çšããæ¹æ³ã§ãã
æ§é ãäŸåé¢ä¿ããŸãã¯ããŒã¿å€ã«ã€ããŠè³ªåãããå Žåã¯ããã©ãŒã©ã ã§åçãæ€çŽ¢ããããèªåã§æšæž¬ããŠããŸã æšæž¬ããŠããªãïŒãŸã æšæž¬ããŠããªãïŒäººãããåªäœã«ç«ã€ããšãã§ããŸãã
ãŸããå€ãã®å ŽåãããŒã¿ã«ã¯ãªãŒã¯ããããŸããããšãã°ãäžæçãªäŸåé¢ä¿ã«ãããã¿ã¹ã¯ã®ãµãã»ããã®ã¿ãŒã²ããå€æ°ã®å€ïŒäºæž¬ïŒãç解ã§ããŸãã
ããšãã°ãOutbrainã¯ãªãã¯äºæž¬ã§ã¯ãã¯ãªãã¯ãã°ã®ããŒã¿ããããŠãŒã¶ãŒãç¹å®ã®åºåãã¯ãªãã¯ããããšãç解ã§ããŸããã ãã®ãããªãªãŒã¯ã«é¢ããæ å ±ã¯ããã©ãŒã©ã ã§å ¬éããããããŸãã¯å®£äŒãªãã«åå è ã«ãã£ãŠäœ¿çšãããå ŽåããããŸãã
åé¡è§£æ±ºãžã®ã¢ãããŒãã®åæ
åé¡ã®å£°æãšå ¥åããŒã¿å šäœã§ãã¹ãŠãæ確ã«ãªã£ãããæ å ±ã®åéãéå§ããŸããæ¬ãèªãã ããé¡äŒŒã®ç«¶äºãç 究ããããç§åŠåºçç©ã調ã¹ããããŸãã ããã¯ç«¶äºã®çŽ æŽãããæéã§ãããéåžžã«çãæéæ ã§ãã®ãããªåé¡ã解決ããããã®ç¥èãå€§å¹ ã«åºããããšãã§ããŸãã
ãã®ãããªç«¶äºãç 究ããŠããã®ã§ãç§ã¯åœŒã®ãã©ãŒã©ã ãã¬ãã¥ãŒããŸããããã§ã¯ãåè ã¯é垞圌ãã®ã¢ãããŒãã説æããå©çšå¯èœãªãœãªã¥ãŒã·ã§ã³ã®ãœãŒã¹ã³ãŒããç 究ããŸãã
åºçç©ãèªããšããããŸã§ã®æè¯ã®çµæãšã¢ãããŒãã玹ä»ãããŸãã ãŸããå ã®ãœãŒã¹ã³ãŒããŸãã¯åäœæããããœãŒã¹ã³ãŒããèŠã€ããããšãã§ããå Žåã«ãæé©ã§ãã
ããšãã°ãæåŸã®2ã€ã®Click-Predictionã³ã³ãã¹ãã¯åãããŒã ãåã¡ãŸããã 圌ãã®æ±ºå®ã®èª¬æ+ãœãŒã¹ã³ãŒã+ãããã®ã³ã³ãã¹ãã®ãã©ãŒã©ã ãèªãããšã¯ãããããããªããä»äºãå§ããããšãã§ããæ¹åã®ã¢ã€ãã¢ãäžããŸããã
æåã®ã³ãŒã
ããŒãžã§ã³ç®¡ç
ç§ã¯åžžã«ããŒãžã§ã³ç®¡çãªããžããªãåæåããããšããå§ããŸãã æåããéèŠãªã³ãŒãã倱ãå¯èœæ§ããããŸããåŸã§åŸ©å ããã®ã¯éåžžã«äžå¿«ã§ãã ç§ã¯éåžžGit + BitbucketïŒç¡æã®ãã©ã€ããŒããªããžããªïŒã䜿çšããŸã
ããŒã«ã«ïŒã¯ãã¹ïŒæ€èšŒ
æ€èšŒããŸãã¯äºæž¬ã®ãã¹ãã¯ãéžæããã¡ããªãã¯ã«åºã¥ãã粟床ã®è©äŸ¡ã§ãã
ããšãã°ãOutbrainã¯ãªãã¯äºæž¬ã§ã¯ããŠãŒã¶ãŒã衚瀺ãããåºåã®ã©ããã¯ãªãã¯ããããäºæž¬ããå¿ èŠããããŸãã æäŸãããããŒã¿ã¯2ã€ã®éšåã«åãããŠããŸãã
ããŒã¿å
| åã€ã³ãã¬ãã·ã§ã³ã®ã¯ãªãã¯ãããåºåID
|
ãã¬ãŒãã³ã°
| 誰ããç¥ã£ãŠãã
|
ãã¹ã
| 競æäŒäž»å¬è
ã®ã¿ãç¥ã£ãŠãã
|
ãã¹ãããŒã¿ã®ç²ŸåºŠãåäžããããšãæåŸ ããŠãã¢ãã«ãã¬ãŒãã³ã°ããã¬ãŒãã³ã°ããŒã¿ã§è¡ãããŸããããã¹ãããŒã¿ãšãã¬ãŒãã³ã°ããŒã¿ã¯1ã€ã®ãµã³ãã«ããååŸããããšæ³å®ãããŠããŸãã
åŠç¿ããã»ã¹ã§ã¯ãå€ãã®å Žåããã¬ãŒãã³ã°ããŒã¿ã«é¢ãã粟床ã¯åäžããŸããããã¹ãããŒã¿ã«é¢ãã粟床ã¯äœäžãå§ããŸãã ããã¯ãã¢ãã«ã®å®¹éã«ããããã¹ãã¹ã€ãŒããèšæ¶ãŸãã¯èª¿æŽã§ããããã§ãã
ãã®çŸè±¡ã¯ãªãŒããŒãã£ãããšåŒã°ããŸãã察åŠæ¹æ³ã«ã€ããŠã¯ä»¥äžã§èª¬æããŸãããä»ã®ãšãããã¢ãã«ã§ç¢ºèªãããŠããªãããŒã¿ã§ç²ŸåºŠã確èªããå¿ èŠãããããšãç解ããã®ã«ååã§ãã
Kaggleããœãªã¥ãŒã·ã§ã³ããµã€ãã«ã¢ããããŒãããããšã§ïŒãã¹ãããŒã¿ãšæ¯èŒããŠïŒãœãªã¥ãŒã·ã§ã³ã®ç²ŸåºŠãè©äŸ¡ã§ãããšããäºå®ã«ããããããããã®è©äŸ¡ã¢ãããŒãã«ã¯ããã€ãã®æ¬ ç¹ããããŸãã
- 1æ¥ãããã®ãœãªã¥ãŒã·ã§ã³ããŠã³ããŒãæ°ã®å¶éã ãã°ãã°2-5
- ãã®ã¢ãããŒãã®é
延-ãã¹ãã¹ã€ãŒãã®ãœãªã¥ãŒã·ã§ã³ã®ã«ãŠã³ãããã¡ã€ã«ãžã®æžã蟌ã¿ããã¡ã€ã«ã®ããŠã³ããŒã
- èªååã®èªææ§
- ãã¹ãããŒã¿ã«é¢ããåãã¬ãŒãã³ã°ã®ç¢ºç
次ã®ããšãå¯èœã«ããããŒã«ã«ç²ŸåºŠè©äŸ¡ã·ã¹ãã ããããšäŸ¿å©ã§ãã
- éžæããã¡ããªãã¯ã«åºã¥ããŠç²ŸåºŠããã°ããè©äŸ¡ããŸã
- ã¢ã«ãŽãªãºã ããã³/ãŸãã¯ãã€ããŒãã©ã¡ãŒã¿ãŒã®æ€çŽ¢ãèªååãã
- åŸã§åæããããã«ãè©äŸ¡çµæãä»ã®æ
å ±ãšãšãã«ä¿åããŸã
- ãã¹ããµã³ãã«ã«é¢ããåãã¬ãŒãã³ã°ãé€å€ãã
ããŒã«ã«ïŒã¯ãã¹ïŒæ€èšŒã¯ããããã®ç®çã«æé©ã§ãã èãæ¹ã¯åçŽã§ãããã¬ãŒãã³ã°ã»ããããã¬ãŒãã³ã°ãšæ€èšŒã«åå²ããæ€èšŒã䜿çšããŠç²ŸåºŠãè©äŸ¡ããã¢ã«ãŽãªãºã ãæ¯èŒããŸããããã¬ãŒãã³ã°ã¯è¡ããŸããã
ããŒã¿ãåé¢ããæ¹æ³ã ãã§ãªããå€ãã®æ€èšŒæ¹æ³ããããŸã;ããã€ãã®ç°¡åãªã«ãŒã«ã«åŸãããšãéèŠã§ãïŒ
- çµæãžã®åœ±é¿ãæé€ããããã«ãæéã®çµéãšãšãã«åé¢ãå€æŽããªãã§ãã ããã ããšãã°ãæ€èšŒã»ãããšãã¬ãŒãã³ã°ã»ãããåå¥ã«ä¿åããããè¡ã€ã³ããã¯ã¹ãä¿åããããæšæºã®random.seedã䜿çšãããã§ããŸãã
- ããŒã¿ã»ããå
šäœã«æ§ç¯ãããæ©èœïŒããšãã°ãæéã«å¿ããç¹å®ã®åºåã®ã¯ãªãã¯é »åºŠïŒãããå Žåããã®ãããªå
åã¯ãã¬ãŒãã³ã°ã»ããã䜿çšããŠã®ã¿èšç®ããå¿
èŠããããŸãããæå¹ã§ã¯ãªããããåçã«é¢ããç¥èã¯ãæµããŸããã »ã¢ãã«ãž
- ããŒã¿ãæéã«å¿ããŠé
眮ãããŠããå Žå-ããšãã°ããã¹ãã»ããã«ã¯ããã¬ãŒãã³ã°ã»ããã«é¢é£ããå°æ¥ããã®ããŒã¿ãããããããã¬ãŒãã³ã°/æ€èšŒã»ããã®éšéã§åãååžã芳å¯ããå¿
èŠããããŸã
ããŒã«ã«æ€èšŒã®åŠ¥åœæ§ã¯ãããŒã«ã«ã«è¡šç€ºãããæ¹åãšãKaggleã«ãœãªã¥ãŒã·ã§ã³ãããŠã³ããŒãããåŸã«åŸãããå®éã®æ¹åãæ¯èŒããããšã§ç¢ºèªã§ããŸãã ããŒã«ã«è©äŸ¡ã®å€æŽãå®éã®æ¹åã®ã¢ã€ãã¢ãäžããå Žåãããã¯è¯ãããšã§ãã
ã¢ãã«ã®æ§ç¯
ã¯ããã«
ã¢ãã«ã¯ããã©ãã¯ããã¯ã¹ãŸãã¯å ¥åã§ããŒã¿ãåä¿¡ããŠââçµæãè¿ãé¢æ°ãšããŠè¡šãããšãã§ããŸãã çµæã«ã¯ããŸããŸãªçš®é¡ããããæãäžè¬çã«äœ¿çšãããŸãã
ã¢ãã«ã¿ã€ã
| æ»ãã¿ã€ã
| äŸ
|
ååž°
| å®æ°
| 1åéã®äŒç€Ÿåšåº«Nã®ã³ã¹ã
|
åé¡
| ã«ããŽãªãŒ
| 溶å€/æ¯æäžèœã®åãæ
|
Outbrain競äºã§ã¯ããŠãŒã¶ãŒãåºåãã¯ãªãã¯ãã確çã«ãã£ãŠåºåãã©ã³ã¯ä»ãããå¿ èŠããããŸããã ãããéæããããã®ç°¡åã§å¹æçãªæ¹æ³ã¯ãåé¡ã¿ã¹ã¯ã䜿çšããã¯ãªãã¯ã®ç¢ºçãäºæž¬ããåé¡åã«ãã£ãŠäžãããã確çã«åŸã£ãŠãããã¯å ã®åºåããœãŒãããããšã§ãã
åé¡åäºæž¬ïŒ
Displayid
| ã¢ãã£ãã
| ã¯ãªãã¯ããã
|
5
| 55
| 0.001
|
5
| 56
| 0.03
|
5
| 57
| 0.05
|
5
| 58
| 0.002
|
決å®ãè¡ããã圢åŒïŒ
Displayid
| ã¢ãã£
|
5
| 57 56 58 55
|
è©äŸ¡ã¡ããªãã¯ã¯ãäºæž¬ãå®éã®ããŒã¿ã«ã©ãã ãæ£ç¢ºã«å¯Ÿå¿ãããã瀺ãé¢æ°ã§ãã ã¿ã¹ã¯ã®çš®é¡ããšã«ãå€ãã®ã¡ããªãã¯ããããŸããããšãã°ãååž°ã¯ãå€ãã®å Žåãäºä¹å€ã®å·®ã«åºã¥ããŠäœ¿çšãããŸãã 競äºã§ã¯ã MEAPïŒMean Average PrecisionïŒã䜿çšããŸãããããã¯ãæ£è§£ã®æ°ã ãã§ãªãã䞊ã¹æ¿ãé åºã®éããèæ ®ããææšã§ãã
å ¥åãã©ã¡ãŒã¿
ãŠãŒã¶ãŒãæã人æ°ã®ããåºåïŒã¯ãªãã¯æ°/ãã¥ãŒã®æ倧æ°ïŒã¯ãªãã¯ç-CTRïŒïŒãã¯ãªãã¯ããå¯èœæ§ãæãé«ããšèããå ŽåãæãåçŽãªã¢ã«ãŽãªãºã ãæ€èšããŠãã ããã ãã®å Žåãã¢ãã«ãžã®å ¥åãã©ã¡ãŒã¿ãŒãšããŠãåºåIDãšåºåãã¯ãªãã¯ããããã©ããã®2ã€ã®å€ããããŸãã ããã«ã¯ãéåžžã®çµ±èšã¡ããªãã¯ã§ããç¹å¥ãªæ©æ¢°åŠç¿ã¯ãããŸããã
ããããã¬ãŒãã³ã°ããŒã¿ã§ãããšä»®å®ãã1ã€ã®ãããã¯ã§1人ã®ãŠãŒã¶ãŒã«è¡šç€ºãããdisplayIdã®äžã«åºåãã°ã«ãŒãåããŸãã
displayId
| adId
| ã¯ãªãã¯ãã
|
1
| 1
| 0
|
1
| 2
| 1
|
2
| 1
| 1
|
2
| 3
| 0
|
æåã®ãµã€ã³ã圢æããã«ã¯ãåŒadClicked = max adId sumïŒadIdãclicked == 1ïŒ/ sumïŒadIdïŒã䜿çšããŸã
å ¥åå€ã¯1ã€ã®ã±ãŒã¹ã®ãã¯ãã«ïŒå€ãã®å Žåãç¹åŸŽãã¯ãã«ãšåŒã°ããŸãïŒãšããŠè¡šãããããŒã¿ã»ããå šäœã®è¡åã¯Xã§ç€ºãããŸããã¿ãŒã²ããå€æ°ïŒãã®å ŽåãClickedïŒã¯yã§ãã
displayId
| adId
| feature_1
|
1
| 1
| 0.5
|
1
| 2
| 1
|
2
| 1
| 0.5
|
2
| 3
| 0
|
次ã«ãå¿çãäœæãããšãã«ãådisplayIdã«ã€ããŠã衚瀺ãããåºåãfeature_1ã§ãœãŒããããã©ãŒã ã§åçãååŸããŸãã
display_idãad_id
1.2 1
2,1 3
æåã«è¡ãããšã¯ããã§ã«éçºããæ€èšŒã¡ã«ããºã ã䜿çšããŠã¢ãã«ã®ç²ŸåºŠã確èªããããšã§ãã å¹³æ»åã䜿çšããåšæ³¢æ°ããŒã¹ã®ã¢ãã«ã¯ãã©ã³ãã ãªäºæž¬ãããå€§å¹ ã«åªããçµæãè¿ããŸãã
ã¢ãã«å
| çµæ
|
ã©ã³ãã ãªæšæž¬
| 0.47793
|
å¹³æ»åã®é »åºŠ
| 0.63380
|
ã¢ãã«ãå±éãããŠãŒã¶ãŒã®å°åã«åºã¥ããŠCTRãèšç®ããæ€åºããããã¹ãŠã®çµã¿åããadId * country * stateã®çµ±èšãã«ãŠã³ãã§ããŸãã
adId
| åœ
| éœéåºç
| ã¯ãªãã¯ãã
|
1
| ç±³åœ
| CA
| 0
|
2
| ç±³åœ
| TX
| 1
|
1
| è±åœ
| 1
| 1
|
adClicked =æ倧adIdåèšïŒadIdãã¯ãªãã¯æžã¿== 1ãåœ== displayCountryãç¶æ == displayStateïŒ/ sumïŒadIdïŒ
æ€èšŒããã³ãã¹ãã»ãããé€ãããã¬ãŒãã³ã°ããŒã¿ã»ããããã®ã¿ãã¬ãŒãã³ã°çšã®æšèãäœæããããšãéèŠã§ããããããªããšãã¢ãã«ã®ç²ŸåºŠãé©åã«è©äŸ¡ã§ããŸããã kåå²äº€å·®æ€èšŒã䜿çšããå Žåããã®ãããªå åãkåæ§ç¯ããå¿ èŠããããŸãã
å¥ã®ã¢ãããŒãã¯ãã¢ãã«ã®åãã¬ãŒãã³ã°ãæžãããããªæ¹æ³ã§ç¹æ§ãçæããããšã§ãã ããšãã°ããã¥ãŒã®æ°ãN> 10ã§ããåºåã®ã¿ã®ã¯ãªãã¯ã®é »åºŠã«é¢ããçµ±èšãè¿œå ããŸããïŒæ€èšŒäžã«å€ãéžæãããŸãïŒã åæ©-åºåãã¥ãŒæ°== 1ã®é »åºŠãè¿œå ãããšãååãªè€éããæã€ã¢ã«ãŽãªãºã ïŒããšãã°ã決å®æšïŒã«ããããã®æ©èœãæçœã«çããäºæž¬ãããããäºæž¬ã«ã®ã¿äœ¿çšã§ããå¯èœæ§ãå€æãããŸãããã®ãœãªã¥ãŒã·ã§ã³ã¯ããªãåçŽã§ãã
å ¥åããŒã¿ãããã£ãŒãã£ãçæããããã»ã¹å šäœã¯ãå€ãã®å Žåããã£ãŒãã£ãšã³ãžãã¢ãªã³ã°ãšåŒã°ããã¢ãã«åŠç¿ã¢ã«ãŽãªãºã ãšã¡ã¿ã¢ã«ãŽãªãºã ã¯äžè¬ã«å ¬éãããŠããããã競äºã®æåã®æ±ºå®çèŠå ã§ããããšããããããŸãã
ã¢ãŠããã¬ã€ã³ã®ç«¶åæ©èœ
以äžãå®çŸ©ããäžè¬çãªãµã€ã³ã®ã°ã«ãŒããããã€ãæ€èšããŸããã
- ãŠãŒã¶ãŒ-åºåã衚瀺ããããŠãŒã¶ãŒ
- åºåäž»
- ã³ã³ããã¹ã+æé
åã°ã«ãŒããããã«è©³ããèããŠã¿ãŸãããã
ã«ã¹ã¿ã ã¿ã°
ãã¬ãŒãã³ã°ããŒã¿ã»ãããšããŒãžãã¥ãŒãã°ã䜿çšããŠããŠãŒã¶ãŒã«é¢ããå€ãã®èå³æ·±ãæ å ±ïŒãŠãŒã¶ãŒãã¯ãªãã¯ããåºå/åºåãã£ã³ããŒã³ãåžžã«ç¡èŠããåºåïŒãéžæã§ããŸãã åºåãã€ãªããããŒãžã«é¢ããã¡ã¿æ å ±ïŒã©ã³ãã£ã³ã°ããŒãžïŒãæäŸãããŠããããããŠãŒã¶ãŒãèå³ãæã£ãŠããããŒãžãŸãã¯ãããã¯/ãšã³ãã£ãã£ã®ã«ããŽãªãç¹å®ããããšãã§ããŸã-ã©ã³ãã£ã³ã°ããŒãžãsport.cnnã§ããããŠãŒã¶ãŒããã®æéãŸãã¯ææ¥ã«ã¹ããŒããã¥ãŒã¹ãé »ç¹ã«èªãå Žåããµã€ã³ãšããŠäœ¿çšããŠã¿ãããšãã§ããŸãã
ãã®ãããªé¡äŒŒã®å åã¯ãé¡äŒŒã®å奜ãæã€ãŠãŒã¶ãŒãåŸã§èŠã€ããããããä»ããŠãŠãŒã¶ãŒãåºåãã¯ãªãã¯ãããã©ãããäºæž¬ããã®ã«åœ¹ç«ã¡ãŸãã
è¿œå ã®ååŸã®è©äŸ¡ã®ç²ŸåºŠã®å€åã«åºã¥ããŠãæåã§æšèãéžæããŸããã
åºåäž»ã®ãµã€ã³
ããã§ã¯ãåºå/ã©ã³ãã£ã³ã°ããŒãžã«é¢ããã¡ã¿æ å ±ã®ç°¡åãªãªã¹ãããå§ãã䟡å€ããããŸããäœçœ®æ å ±ãæå»ãææ¥ã«åºã¥ããåºåãã£ã³ããŒã³+ CTRåæ§ã®å å-ããšãã°ãstateCTRCampïŒäžéšã®åºåãã£ã³ããŒã³ã®ã¯ãªãã¯é »åºŠïŒåºåãçµåïŒç¶æ
ã³ã³ããã¹ã
ã³ã³ããã¹ããšã¯ãåºåã衚瀺ãããããŒãžãšã衚瀺æé+ãŠãŒã¶ãŒæ å ±ïŒå°ç+ããã€ã¹ã¿ã€ãïŒã®äž¡æ¹ãæå³ããŸãã æéãç¥ã£ãŠããã°ããŠãŒã¶ãŒãæšæ¥\æšæ¥\ã¯ãªãã¯ãã\éå»1æéã«ã¢ã¯ã»ã¹ãããã¹ãŠã®åºåãšããŒãžããªã¹ãã§ããŸãã çŸåšäººæ°ã®ããã³ã³ãã³ããªã©ãå®çŸ©ã§ããŸãã
䜿çšãããæ©èœ
åœãå·ããã©ãããã©ãŒã ãé¡ãpageDocumentCategoriesãcountryCTRAdvãcampaignIdãadvertiserIdãuserDocsSeenFromLogYesterdayãuserClickedThisAdvertiserTimesãhourOfDayãuserDocsClickedTodayãlastAdvUserClicked
å±æ§ã®ç·æ°ã¯çŽ120ã§ã倧åã¯æåã§éçºãããŸããããšãã°ãuserDocsSeenFromLogYesterday-æšæ¥ãŠãŒã¶ãŒã衚瀺ããã¯ãªãã¯ãã°ã®ããã¥ã¡ã³ãïŒåºåã®ã¿ãŒã²ãã衚瀺ã«é¢é£ïŒã ã³ã³ãã¹ããã©ãŒã©ã ã®ãœãªã¥ãŒã·ã§ã³ã®æè¡çãªèª¬æã®ããæ¡åŒµãããïŒäžå®å šãªïŒãªã¹ãã
䜿çšãããæ©èœã®ã»ãšãã©ã¯åé¡ãããŠããŸã-ããšãã°ãåœãããã³ã¯ã³ããããšã³ã³ãŒãã£ã³ã°ã¯ãã€ããªæ©èœã«å€æããããã«äœ¿çšãããŸãã äžéšã®æ°å€èšå·ã¯ãæ°å€ééãåç §ããããšã«ãã£ãŠãã€ããªå€ã«å€æãããåŒlogïŒx + 1ïŒã䜿çšããŠäžéšãå¹³æ»åããŸããã
10åæªæºã®ã³ãŒãåæåã¯èæ ®ãããŸããã§ããã ãšã³ã³ãŒãããããã£ãŒãã£ã®ç·æ°ã¯5Mãè¶ ãã次å ãæžããããã«ããã·ã¥ã¯äœ¿çšãããŸããã§ããã
åçŽãªã¢ãã«ã®äŸ-ããžã¹ãã£ãã¯ååž°
ããžã¹ãã£ãã¯ååž°ã®ã¢ãã«ãäœæããŸããããã¯ãåçŽãªæ°å€èšå·ïŒåœãšå·ã§ã®ã¯ãªãã¯ã®é »åºŠïŒãåãåããŸãã
countryAdCTR = sumïŒadIdãã¯ãªãã¯ããã== 1ãcountry == displayCountryïŒ/ sumïŒadIdïŒ
stateAdCTR = sumïŒadIdãã¯ãªãã¯ããã== 1ãstate == displayStateïŒ/ sumïŒadIdïŒ
åºåãã¯ãªãã¯ãã確çã®åŒã¯æ¬¡ã®ãšããã§ãã
y * = fïŒzïŒãz = w1 * countryAdCTR + w2 * stateAdCTRãfïŒzïŒ= 1 /ïŒ1 + eïŒ-zïŒïŒ
fïŒzïŒ-ããžã¹ãã£ãã¯é¢æ° ãéé[0ïŒ1]ã®å€ãè¿ããŸãã åŠç¿ã¢ã«ãŽãªãºã ã¯ãy *ãšy-ã®å·®ãå°ãããªãããã«ä¿æ°w1ãšw2ãéžæããŸãã äºæž¬ãšå®éã®å€ã®æ倧ã®é¡äŒŒæ§ãéæããŸãã
åé¡èšå·ã®åºåäž»ãšview_page_domainãã¢ãã«ã«è¿œå ããŸããããšãã°ã次ã®ããã«ãã¯ã³ããããšã³ã³ãŒãæ¹åŒã䜿çšããŠãããããã€ããªã«å€æããŸãã
ã«ããŽãªãŒïŒ
ãµã³ãã«
| åºåäž»
|
1
| ã¢ãã£ãã¹
|
2
| ãã€ã
|
3
| BMW
|
ã¯ã³ããããšã³ã³ãŒãïŒ
ãµã³ãã«
| ã€ãµãã£ãã¹
| ã€ã¹ãã±
| IsBMW
|
1
| 1
| 0
| 0
|
2
| 0
| 1
| 0
|
3
| 0
| 0
| 1
|
åŒã¯æ¬¡ã®ãšããã§ãã
z = w1 * countryAdCTR + w2 * stateAdCTR + w3 *åºåäž»+ w4 * view_page_domain
åºåäž»ãšview_pageã¯ãã¯ã¿ãŒãªã®ã§ãw3ãšw4ã®äž¡æ¹ããã¯ã¿ãŒã«ãªããŸã
CTRäºæž¬ã§ã¯ãåºåãšåºåäž»ã衚瀺ãããããŒãžãªã©ã®æšèã®çžäºäœçšãèæ ®ããããšãéåžžã«éèŠã§ã-VogueããŒãžã§Gucciåºåãã¯ãªãã¯ãã確çã¯ãAdidasåºåãšã¯ãŸã£ããç°ãªããŸããã¢ãã«ã¯ãåºåäž»ãšview_pageã®çžäºäœçšã«ãã£ãŠè£å®ã§ããŸãã
z = w1 * countryAdCTR + w2 * stateAdCTR + w3 *åºåäž»+ w4 * view_page_domain + w5 *åºåäž»* view_page_domain
åºåäž»ãšview_pageããã¯ãã«ã§ããããšã¯ãã§ã«ããã£ãŠããŸããã€ãŸããw5ãã¯ãã«ã®æ¬¡å ã¯ãåºåäž»ãã¯ãã«ã®é·ã* view_pageãã¯ãã«ã®é·ãã«ãªããŸãã
ããã«é¢é£ããããã€ãã®åé¡ããããŸã-ãŸããéåžžã«å€§ããªãã¯ãã«ã«ãªããŸã-åºåã衚瀺ãããå¯èœæ§ã®ãããã¹ãŠã®ãã¡ã€ã³ã«ãå¯èœæ§ã®ãããã¹ãŠã®åºåäž»ã®æ°ãæããŸãã 第äºã«-ããã¯éåžžã«ãŸã°ãã§ãã»ãšãã©ã®å€ãå€1ãåãããšã¯ãããŸãã-ç§ãã¡ãå®éã«äŒãããšã®ãªãçµã¿åããã®ã»ãšãã©ã§ãã
å æ°å解ãã·ã³ïŒFMïŒ
FMã¯ãããŒã¿ã®ãŸã°ããã®åé¡ã解決ããªãããæ©èœã®çžäºäœçšãæ瀺çã«èæ ®ãããããCTRäºæž¬ã¿ã¹ã¯ã«æé©ã§ãã çŽ æŽããã説æã¯å ã®åºçç©ã«ãããŸããããã§äž»ãªã¢ã€ãã¢ã説æããŸã-åå±æ§å€ã¯é·ãkã®æŽæ°ãã¯ãã«ãåãåããç¹æ§ã®çžäºäœçšã®çµæã¯ãã¯ãã«ã®ã¹ã«ã©ãŒç©ïŒãããç©ïŒã§ã-åŒã®ã¢ãã«æ¹çšåŒã»ã¯ã·ã§ã³ã®åºçç©ã®åŒãåç §ããŠãã ããã
é è³ç«¶äºã¢ãã«
ãã£ãŒã«ã察å¿ã®å æ°å解ãã·ã³ïŒFFMïŒ
æè¯ã®ã¢ãã«ã®åæäžã«ãæè¿ã®2åã®CTRäºæž¬ã³ã³ããã£ã·ã§ã³ãField-aware Factorization MachinesïŒFFMïŒã¢ãã«ïŒã¢ã³ãµã³ãã«ïŒã®ç·ãã¡ã«åã£ãããšãããããŸããã ããã¯FMã®ç¶ãã§ãããçŸåšãèšå·ã¯nåã®ãã£ãŒã«ãã«åå²ãããŠããŸãã以åã«è¡šç€ºãããããã¥ã¡ã³ãã§æ§æãããèšå·ã®ã°ã«ãŒãããã®åºåãŠãããã®ä»ã®åºåã®ã°ã«ãŒããªã©ãèšå·ã®ã°ã«ãŒãã§ãã çŸåšãåèšå·ã¯æ¬¡å kã®nåã®ãã¯ãã«ã®åœ¢åŒã§è¡šç€ºãããŸããä»ã®èšå·ã°ã«ãŒãããšã«ç°ãªãè¡šçŸãæã£ãŠãããããèšå·ã°ã«ãŒãéã®çžäºäœçšãããæ£ç¢ºã«èæ ®ããããšãã§ããŸãã 説æããã³è©³çŽ°ã¯ã åºçç©ã«ãèšèŒãããŠããŸãã
FFMãã¬ãŒãã³ã°
FFMã¯åãã¬ãŒãã³ã°ãéåžžã«çºçãããããããã«å¯ŸåŠããããã«æ©æåæ¢ã䜿çšãããŸããã¢ãã«ã®æ¹åãç¹°ãè¿ããããã³ã«ãæ€èšŒã»ããã§ç²ŸåºŠãè©äŸ¡ãããŸãã 粟床ãäœäžãããšããã¬ãŒãã³ã°ã¯åæ¢ããŸãã æšæºã©ã€ãã©ãªã®ã³ãŒãã«ããã€ãã®å€æŽãå ããŸãããæãéèŠãªããšã¯ãæšæºãã°ãã¹ã®ä»£ããã«ãKaggleã§çµæãèšç®ããããã«äœ¿çšãããMEAPã¡ããªãã¯ã«åºã¥ãå質è©äŸ¡ãè¿œå ããããšã§ããã
äžäœ3äœã«å ¥ã£ãããŒã ã®1ã€ã¯ãFFMã§ãã¢ã¯ã€ãºæé©åã®å¯èœæ§ãè¿œå ããŸããã
ã¢ãã«å šäœãæãããšãã«æ©æã«åæ¢ã§ããããã«ããããã95/5ååžã®ãã¬ãŒãã³ã°ã»ãããã©ã³ãã ã«åå²ããæ€èšŒçšãšããŠ5ïŒ ã䜿çšããŸããã
æçµçµæã¯ããããã«ç°ãªãå±æ§ã»ãããæã€ç°ãªãã©ã³ãã ååžã§ã®5ã€ã®ã¢ãã«ã®çµæã®åçŽãªå¹³åã§ãã
ãã¬ãŒãã³ã°ã»ããã®ãµããµã³ãã«ã§çµæãæ··åãããã®æ¹æ³ã¯ããã®ã³ã°ïŒããŒãã¹ãã©ããéçŽïŒãšåŒã°ããå€ãã®å Žåãçµæãæ¹åããåæ£ãæžããããšãã§ããŸãã ãŸããéåžžãåŸé ããŒã¹ãã¢ãã«ïŒxgboost / lightGBMïŒã®çµæãæ··åããã®ã«é©ããŠããŸãã
ããŸããããªãã£ã
å®å®ããåŸé ããŒã¹ãã£ã³ã°ã«åºã¥ãã¢ãã«ã¯ãæªãçµæïŒFMã«å¹æµïŒããããããŸããããã¢ã¯ã€ãºæé©åã¯ãç»åãããŸãæ¹åããŸããã§ããã ãŸããç§ã«ãšã£ãŠã ããŒã¹ãã£ã³ã°ããã®æšã®èã«åºã¥ããFFMã®å åã®çæã¯æ©èœããŸããã§ããã FFMâFFMãŸãã¯XGBOOSTâFFMã¹ã¿ãã¯ã¯ãããŒã¿ã»ããå šäœã§äžè²«ããŠFFMãããå£ã£ãŠããŸããã
ã¢ãã«å
| çµæ
|
ç§ã®æé«ã®ã·ã³ã°ã«ã¢ãã«çµæ
| 0.69665
|
ç§ã®æé«ã®çµæïŒ5ã€ã®ã¢ãã«ã®çµã¿åããïŒ
| 0.69778
|
1äœã®æé«ã®çµæ
| 0.70145
|
æçµçµæ
ã³ãŒããã€ã³ãã©ã¹ãã©ã¯ãã£ãããã³ããŒããŠã§ã¢
ã³ãŒã
æåã®ãã¡ã€ã«ããŒãžã¯Pythonã䜿çšããŠè¡ãããéåžžã¯ããŒã¿ãã€ãã³ã°ãšåæã«Jupyterã䜿çšããŸãã ãŸãããã¬ãŒãã³ã°/ãã¹ãã»ããã§èŠã€ãã£ããŠãŒã¶ãŒã®ã¯ãªãã¯ãã°ã®ã¿ããã£ã«ã¿ãŒåŠçããããã80 GBãã10 GBã«åæžã§ããŸããã
å ã®Featureãšã³ãžãã¢ãªã³ã°ãPythonã§äœæãããŸãããã倧éã®ããŒã¿ãã€ãŸãåŠçã«ãããæéãèæ ®ããŠãããã«Scalaã«åãæ¿ããŸããã æŠç®ã«ããé床ã®å·®ã¯çŽ40åã§ããã
粟床ã®åäžããã°ããç¹°ãè¿ãè©äŸ¡ããã«ã¯ãåèšã®çŽ1/10ã®ããŒã¿ã®ãµãã»ããã䜿çšããŸããã
ããã«ãããæã¡äžã+ã¢ãã«ãã©ãããããã®ã¡ã¢ãªã«é 眮ãããŠããçŽ5ã10åã§çµæãåŸãããšãã§ããŸããã
æçµã¢ãã«ã®å ¥åãã¡ã€ã«ã®çæã«ã¯ã6ã³ã¢ãã·ã³ã§çŽ3æéããããŸãã åèšèšé²ãã¡ã€ã«> 500GBã ããããã®ãã¬ãŒãã³ã°ããã³äºæž¬æéã¯10ã12æéã§ãã¡ã¢ãªäœ¿çšéã¯çŽ120 GBã§ããã
ããã»ã¹å šäœãã¹ã¯ãªããã䜿çšããŠèªååãããŠããŸãã
é
ã»ãšãã©ã®äœæ¥ã¯ãDell Alienwareã©ãããããïŒ32GB RAMïŒã§è¡ãããŸããã éå»æ°é±éã«ããã£ãŠãã¯ãŒã¯ã¹ããŒã·ã§ã³ïŒi7-6800ã128GB RAMïŒã䜿çšããå é±ãã¡ã¢ãªæé©åãããx4largeããã³x8large AWSãã·ã³ã䞊åã§æ倧2å䜿çšããŸããã
æè¬ã®æ°æã¡
ãã®èšäºã¯ç§ã®æãã劻ã«æ§ããããŠããŸãã圌女ã¯å€«ã家ã«ãããšãã«å¿é ããã®ã¯éåžžã«é£ããã§ãããåæã«ããã§ã¯ãããŸããã
ã³ã¡ã³ããšã¬ãã¥ãŒãããŠãããArtem Zaikã«ãæè¬ããŸãã
ãããã«
ç§ã®èŠ³ç¹ãããããšãKaggleãªã©ã®ã³ã³ãã¹ãã«åå ããããšã¯ãå®éã®ããŒã¿ã䜿çšããŠå®éã®åé¡ã解決ããå®éã®ç«¶åä»ç€Ÿã«å¯Ÿãã決å®ãè©äŸ¡ããæ¹æ³ãç¥ãããã®çŽ æŽãããæ¹æ³ã§ãã ãŸããç¹ã«ãã«ã¿ã€ã ã®ä»äºã§èª°ã圌ã®å人çãªç掻ããã£ã³ã»ã«ããŠããªãå Žåãé«ãã¬ãã«ã§ã®ããã©ãŒãã³ã¹ã¯ãå€ãã®æéãšåŽåã®å²ãåœãŠãå¿ èŠãšããããšãå€ãã®ã§ããã®ãããªç«¶äºã¯èªåèªèº«ãšã®ç«¶äºãšèŠãªãããšãã§ããŸã-æåã«èªåãæã¡è² ããããã«ã