ð§ å調ãã£ã«ã¿ãªã³ã°ãšã¯ã©ã¹ã¿ãªã³ã°ã¯å¥ç©
å調ãã£ã«ã¿ãªã³ã°ãšã¯ã©ã¹ã¿ãªã³ã°ã¯ãæŠå¿µãšããŠã¯ç°ãªãææ³ã§ãã
å調ãã£ã«ã¿ãªã³ã°ïŒããã¯æšèŠã·ã¹ãã ã®äžã€ã®ææ³ã§ããŠãŒã¶ãŒéãã¢ã€ãã éã®è©äŸ¡ã®é¡äŒŒæ§ãããšã«ãæ°ããã¢ã€ãã ã®æšèŠãè¡ããŸããäŸãã°ããŠãŒã¶ãŒAãšãŠãŒã¶ãŒBãåãæ ç»ãé«ãè©äŸ¡ããŠããå ŽåããŠãŒã¶ãŒAãè©äŸ¡ããïŒããããŠãŒã¶ãŒBããŸã è©äŸ¡ããŠããªãïŒä»ã®æ ç»ãããŠãŒã¶ãŒBã«æšèŠãããšããèãæ¹ã§ãã
ã¯ã©ã¹ã¿ãªã³ã°ïŒããã¯ããŒã¿ã®éåãã䌌ãŠããããŒã¿å士ãã°ã«ãŒãåããææ³ã§ããã¯ã©ã¹ã¿ãªã³ã°ã¯æ©æ¢°åŠç¿ã®æåž«ãªãåŠç¿ã®äžéšéãšããŠäœçœ®ã¥ããããŸããã¯ã©ã¹ã¿ãªã³ã°ã®ç®çã¯ã䌌ãç¹æ§ãæã€ããŒã¿ãã€ã³ããåãã¯ã©ã¹ã¿ã«åé¡ããããšã§ãã
æšèŠã·ã¹ãã ã®åéã§äœ¿çšãããææ³
ã³ã³ãã³ãããŒã¹ã®ãã£ã«ã¿ãªã³ã°ïŒãã®ææ³ã¯ãã¢ã€ãã ã®ç¹åŸŽïŒãŸãã¯ã³ã³ãã³ãïŒãåºã«æšèŠãè¡ããŸããäŸãã°ãããæ ç»ã®ãžã£ã³ã«ããã£ã¹ããç£ç£ãªã©ã®æ å ±ãåºã«ããŠãŒã¶ãŒã®éå»ã®è©äŸ¡ã奜ã¿ã«åºã¥ããŠä»ã®æ ç»ãæšèŠãããšããæ¹æ³ã§ãã
è¡åå解ïŒå調ãã£ã«ã¿ãªã³ã°ã®åé¡ãè¡åå解ã®æè¡ã䜿ã£ãŠè§£ãææ³ã§ããç¹ã«ãç¹å®ã®ãŠãŒã¶ãŒãšã¢ã€ãã éã®è©äŸ¡ã®æ¬ æãèæ ®ããŠãæ¢ç¥ã®è©äŸ¡ããŒã¿ããæ¬ æããŒã¿ãæšæž¬ããããã«äœ¿ãããŸããäžè¬çãªææ³ãšããŠã¯ãç¹ç°å€å解ïŒSVDïŒãªã©ããããŸãã
ãã£ãŒãã©ãŒãã³ã°ã掻çšããæšèŠã·ã¹ãã ïŒãã¥ãŒã©ã«ãããã¯ãŒã¯ãå©çšããŠãå調ãã£ã«ã¿ãªã³ã°ãã³ã³ãã³ãããŒã¹ã®ãã£ã«ã¿ãªã³ã°ã®æ å ±ãçµã¿åãããŠæšèŠãè¡ãã¢ãããŒãããããŸãã
ãã€ããªããæ¹æ³ïŒå調ãã£ã«ã¿ãªã³ã°ãšã³ã³ãã³ãããŒã¹ã®ãã£ã«ã¿ãªã³ã°ãçµã¿åãããŠæšèŠãè¡ãæ¹æ³ã§ããããã«ãããå調ãã£ã«ã¿ãªã³ã°ã®ãå·éæã®åé¡ãã解決ããããã³ã³ãã³ãããŒã¹ã®æšèŠã®éçãè¶ ãããããããšãæåŸ ãããŸãã
å調ãã£ã«ã¿ãªã³ã°ãæ軜ã«å®è£ ã§ããPythonã©ã€ãã©ãª
Surprise:
Surprise (Simple Python RecommendatIon System Engine) ã¯ãæšèŠã·ã¹ãã ã®éçºã®ããã®Pythonã©ã€ãã©ãªã§ãã
å調ãã£ã«ã¿ãªã³ã°ã®ã¢ã«ãŽãªãºã ïŒãŠãŒã¶ãŒããŒã¹ãã¢ã€ãã ããŒã¹ïŒãè¡åå解ã®ææ³ïŒSVDãªã©ïŒããµããŒãããŠããŸãã
ã€ã³ã¹ããŒã«ã¯ `pip install scikit-surprise` ã§è¡ããŸãã
LightFM:
LightFMã¯ããã€ããªããã®æšèŠã·ã¹ãã ãæ軜ã«å®è£ ã§ããã©ã€ãã©ãªã§ãå調ãã£ã«ã¿ãªã³ã°ãšã³ã³ãã³ãããŒã¹ã®ææ³ã®çµã¿åããããµããŒãããŠããŸãã
ã€ã³ã¹ããŒã«ã¯ `pip install lightfm` ã§è¡ããŸãã
Implicit:
Implicitã¯ãäž»ã«ã¢ã€ãã ããŒã¹ã®å調ãã£ã«ã¿ãªã³ã°ãè¡åå解ãäžå¿ãšããæšèŠã¢ã«ãŽãªãºã ãæäŸããŠããŸãã
ã€ã³ã¹ããŒã«ã¯ `pip install implicit` ã§è¡ããŸãã
åææ³ã§ãè¿ãããšå€æãããåºæºã«ã€ããŠ
ãŠãŒã¯ãªããè·é¢:
ãŠãŒã¯ãªããè·é¢ã¯çŽæçãªè·é¢ã®æŠå¿µã«è¿ããäºã€ã®ç¹ã®ãéã®çŽç·ã®è·é¢ããšããŠèããããšãã§ããŸããè·é¢ãçããã°çãã»ã©ãäºã€ã®ç¹ïŒãŸãã¯ãã¯ãã«ïŒã¯ãè¿ãããšå€æãããŸãã
ã³ãµã€ã³é¡äŒŒåºŠ:
ã³ãµã€ã³é¡äŒŒåºŠã¯-1ãã1ã®å€ããšããŸãã1ã«è¿ã¥ãã»ã©äŒŒãŠããïŒã€ãŸããè¿ããïŒã-1ã«è¿ã¥ãã»ã©ç°ãªããšå€æãããŸãã0ã®å Žåãäºã€ã®ãã¯ãã«ã¯ç¡é¢ä¿ã§ãããšå€æãããŸãããã®ææ³ã¯ããã¯ãã«ã®å€§ãããããæ¹åã«éãã眮ããŠé¡äŒŒæ§ãè©äŸ¡ããŸãã
ãã¢ãœã³çžé¢ä¿æ°:
ãã¢ãœã³çžé¢ä¿æ°ã-1ãã1ã®å€ããšããŸãã1ã¯å®å šã«æ£ã®çžé¢ã-1ã¯å®å šã«è² ã®çžé¢ã瀺ããŸãã0ã¯çžé¢ããªããšããæå³ã§ããå調ãã£ã«ã¿ãªã³ã°ã®æèã§ã¯ãæ£ã®å€ïŒç¹ã«1ã«è¿ãå€ïŒã¯äŒŒããããªåŸåãæã€ãŠãŒã¶ãŒãŸãã¯ã¢ã€ãã ã瀺ãããè¿ãããšå€æãããŸãã
ãããã®ææ³ã¯ãåå±æ§ã®å°ºåºŠãååžãæšèŠã·ã¹ãã ã®ç®çã«ãã£ãŠé©åã«éžæããå¿ èŠããããŸããäŸãã°ããŠãŒã¶ãŒã®è©äŸ¡ãã¿ãŒã³ãå šäœçã«é«ããäœããã®ãã€ã¢ã¹ãèæ ®ãããå Žåã¯ããã¢ãœã³çžé¢ä¿æ°ãé©ããŠãããããããŸãããäžæ¹ãåçŽã«å±æ§ãã¯ãã«ã®æ¹åæ§ãèæ ®ãããå Žåã¯ãã³ãµã€ã³é¡äŒŒåºŠãé©ããŠããã§ãããã
SQLã®æ¡åŒµãDSLïŒDomain Specific LanguageïŒãšããŠå調ãã£ã«ã¿ãªã³ã°ãä»ã®æ©æ¢°åŠç¿ææ³ãå®è£ ããäŸ
Apache MADlib:
PostgreSQLããã³Greenplum Databaseã«å¯ŸãããªãŒãã³ãœãŒã¹ã®æ©æ¢°åŠç¿ã©ã€ãã©ãªã§ãSQLã®æ¡åŒµãšããŠæäŸãããŠããŸãã
MADlibã¯ãåé¡ãååž°ãã¯ã©ã¹ã¿ãªã³ã°ãªã©ã®åºæ¬çãªæ©æ¢°åŠç¿ææ³ã ãã§ãªããå調ãã£ã«ã¿ãªã³ã°ã«ã察å¿ããŠããŸãã
BigQuery ML:
Google Cloudã®BigQueryã¯ãæšæºçãªSQLã¯ãšãªã®äžã§æ©æ¢°åŠç¿ã¢ãã«ãèšç·Žã»äºæž¬ããæ©èœãæã€BigQuery MLãæäŸããŠããŸãã
ããã«ãããSQLã®æ¡åŒµãšããŠæ©æ¢°åŠç¿ã®æ©èœãå©çšããããšãã§ããŸãããå調ãã£ã«ã¿ãªã³ã°èªäœã¯çŽæ¥ãµããŒããããŠããããã§ã¯ãããŸããã
Graph Extensions:
äžéšã®ããŒã¿ããŒã¹ã·ã¹ãã ïŒäŸïŒNeo4j, TigerGraphïŒã¯ãã°ã©ãããŒã¿ããŒã¹ãšããŠã®æ©èœãæäŸãããšãšãã«ãã°ã©ãäžã§ã®æšèŠã¢ã«ãŽãªãºã ãæ©æ¢°åŠç¿ææ³ãDSLãæ¡åŒµãšããŠæäŸããŠããŸãã
ãã¹ã¿ãŒãšãã©ã³ã¶ã¯ã·ã§ã³ãšåŒ·èª¿ãã£ã«ã¿ãªã³ã°
ãªã¬ãŒã·ã§ãã«ããŒã¿ããŒã¹ã®ãã¹ã¿ãŒãšãã©ã³ã¶ã¯ã·ã§ã³ã®é¢ä¿æ§ãçšããŠãã¢ã€ãã ããŒã¹ãšãŠãŒã¶ãŒããŒã¹ã®å調ãã£ã«ã¿ãªã³ã°ã®ã³ã³ã»ãããèããããšã¯å¯èœã§ãã以äžã«ãã®é¢é£æ§ãç°¡ç¥çã«ç€ºããŸãã
ãã¹ã¿ãŒããŒãã«:
ãŠãŒã¶ãŒãã¹ã¿: ãŠãŒã¶ãŒã®åºæ¬æ å ±ïŒãŠãŒã¶ãŒID, åå, äœæãªã©ïŒãä¿æã
ã¢ã€ãã ãã¹ã¿: ã¢ã€ãã ã®åºæ¬æ å ±ïŒã¢ã€ãã ID, ã¢ã€ãã å, ã«ããŽãªãªã©ïŒãä¿æã
ãã©ã³ã¶ã¯ã·ã§ã³ããŒãã«:
è©äŸ¡ããŒãã«: ãŠãŒã¶ãŒãã¢ã€ãã ã«äžããè©äŸ¡ãèšé²ããŠãŒã¶ãŒID, ã¢ã€ãã ID, è©äŸ¡å€ãªã©ã®ã«ã©ã ãæã€ã
ãã®ããŒãã«æ§é ãåºã«ãå調ãã£ã«ã¿ãªã³ã°ãèãããš:
ãŠãŒã¶ãŒããŒã¹ã®å調ãã£ã«ã¿ãªã³ã°:
ãããŠãŒã¶ãŒãšè©äŸ¡åŸåã䌌ãŠããä»ã®ãŠãŒã¶ãŒããè©äŸ¡ããŒãã«ãããæ¢ãããã®ä»ã®ãŠãŒã¶ãŒãè©äŸ¡ããã¢ã€ãã ãæšèŠããã
ã¢ã€ãã ããŒã¹ã®å調ãã£ã«ã¿ãªã³ã°:
ããã¢ã€ãã ãšäŒŒãè©äŸ¡åŸåãæã€ä»ã®ã¢ã€ãã ããè©äŸ¡ããŒãã«ãããæ¢ãããã®ä»ã®ã¢ã€ãã ãæšèŠããã