{"id":27812,"date":"2018-06-30T02:33:13","date_gmt":"2018-06-29T18:33:13","guid":{"rendered":"http:\/\/www.fagao.me\/?p=27812"},"modified":"2018-06-30T02:33:13","modified_gmt":"2018-06-29T18:33:13","slug":"%e4%b8%80%e6%96%87%e8%af%bb%e6%87%82fm%e7%ae%97%e6%b3%95%e4%bc%98%e5%8a%bf%e5%b9%b6%e7%94%a8python%e5%ae%9e%e7%8e%b0%e9%99%84%e4%bb%a3%e7%a0%81","status":"publish","type":"post","link":"https:\/\/www.fagao.me\/p\/27812.htm","title":{"rendered":"\u4e00\u6587\u8bfb\u61c2FM\u7b97\u6cd5\u4f18\u52bf\u5e76\u7528python\u5b9e\u73b0\u9644\u4ee3\u7801"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.fagao.me\/images\/uploads\/2020_008.jpg\" alt=\"\"><\/p>\n<div class=\"img-container\"><\/div>\n<p><span class=\"bjh-p\">\u4f5c\u8005\uff1aANKIT CHOUDHARY<\/span><\/p>\n<p><span class=\"bjh-p\">\u7ffb\u8bd1\uff1a\u5f20\u5a9b<\/span><\/p>\n<p><span class=\"bjh-p\">\u672f\u8bed\u6821\u5bf9\uff1a\u51af\u7fbd<\/span><\/p>\n<p><span class=\"bjh-p\">\u6587\u5b57\u6821\u5bf9\uff1a\u8c2d\u4f73\u7476<\/span><\/p>\n<p><span class=\"bjh-p\">\u672c\u6587\u51713933\u5b57\uff0c\u5efa\u8bae\u9605\u8bfb9\u5206\u949f\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u672c\u6587\u5e26\u5927\u5bb6\u4e86\u89e3\u56e0\u5b50\u5206\u89e3\u673a\u7b97\u6cd5\u5e76\u89e3\u6790\u5176\u4f18\u52bf\u6240\u5728\uff0c\u6559\u4f60\u5728python\u4e2d\u5b9e\u73b0\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u4ecb\u7ecd<\/span><\/p>\n<p><span class=\"bjh-p\">\u6211\u4ecd\u7136\u8bb0\u5f97\u7b2c\u4e00\u6b21\u9047\u5230\u70b9\u51fb\u7387\u9884\u6d4b\u95ee\u9898\u65f6\u7684\u60c5\u5f62\uff0c\u5728\u90a3\u4e4b\u524d\uff0c\u6211\u4e00\u76f4\u5728\u5b66\u4e60\u6570\u636e\u79d1\u5b66\uff0c\u5bf9\u81ea\u5df1\u53d6\u5f97\u7684\u8fdb\u5c55\u5f88\u6ee1\u610f\uff0c\u5728\u673a\u5668\u5b66\u4e60\u9ed1\u5ba2\u9a6c\u62c9\u677e\u6d3b\u52a8\u4e2d\u4e5f\u5f00\u59cb\u5efa\u7acb\u4e86\u81ea\u4fe1\uff0c\u5e76\u51b3\u5b9a\u597d\u597d\u8fce\u63a5\u4e0d\u540c\u7684\u6311\u6218\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u4e3a\u4e86\u505a\u5f97\u66f4\u597d\uff0c\u6211\u8d2d\u4e70\u4e86\u4e00\u53f0\u5185\u5b5816GB\uff0ci7\u5904\u7406\u5668\u7684\u673a\u5668\uff0c\u4f46\u662f\u5f53\u6211\u770b\u5230\u6570\u636e\u96c6\u7684\u65f6\u5019\u5374\u611f\u5230\u975e\u5e38\u4e0d\u5b89\uff0c\u89e3\u538b\u7f29\u4e4b\u540e\u7684\u6570\u636e\u5927\u6982\u670950GB &#8211; \u6211\u4e0d\u77e5\u9053\u57fa\u4e8e\u8fd9\u6837\u7684\u6570\u636e\u96c6\u8981\u600e\u6837\u8fdb\u884c\u70b9\u51fb\u7387\u9884\u6d4b\u3002\u5e78\u8fd0\u5730\u662f\uff0cFactorization Machines(FM)\u7b97\u6cd5\u62ef\u6551\u4e86\u6211\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u4efb\u4f55\u4ece\u4e8b\u70b9\u51fb\u7387\u9884\u6d4b\u95ee\u9898\u6216\u8005\u63a8\u8350\u7cfb\u7edf\u76f8\u5173\u5de5\u4f5c\u7684\u4eba\u90fd\u4f1a\u9047\u5230\u7c7b\u4f3c\u7684\u60c5\u51b5\u3002\u7531\u4e8e\u6570\u636e\u91cf\u5de8\u5927\uff0c\u5229\u7528\u6709\u9650\u7684\u8ba1\u7b97\u8d44\u6e90\u5bf9\u8fd9\u4e9b\u6570\u636e\u96c6\u8fdb\u884c\u9884\u6d4b\u662f\u5f88\u6709\u6311\u6218\u6027\u7684\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u7136\u800c\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0c\u7531\u4e8e\u5f88\u591a\u7279\u5f81\u5bf9\u9884\u6d4b\u5e76\u4e0d\u91cd\u8981\uff0c\u6240\u4ee5\u8fd9\u4e9b\u6570\u636e\u96c6\u662f\u7a00\u758f\u7684\uff08\u6bcf\u4e2a\u8bad\u7ec3\u6837\u672c\u53ea\u6709\u51e0\u4e2a\u53d8\u91cf\u662f\u975e\u96f6\u7684\uff09\u3002\u5728\u6570\u636e\u7a00\u758f\u7684\u573a\u666f\u4e0b\uff0c\u56e0\u5b50\u5206\u89e3\u6709\u52a9\u4e8e\u4ece\u539f\u59cb\u6570\u636e\u4e2d\u63d0\u53d6\u5230\u91cd\u8981\u7684\u6f5c\u5f0f\u6216\u9690\u5f0f\u7684\u7279\u5f81\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u56e0\u5b50\u5206\u89e3\u6709\u52a9\u4e8e\u4f7f\u7528\u4f4e\u7ef4\u7a20\u5bc6\u77e9\u9635\u6765\u8868\u793a\u76ee\u6807\u548c\u9884\u6d4b\u53d8\u91cf\u4e4b\u95f4\u7684\u8fd1\u4f3c\u5173\u7cfb\u3002\u5728\u672c\u6587\u4e2d\u6211\u5c06\u8ba8\u8bba\u7b97\u6cd5Factorization Machines(FM) \u548cField-Aware Factorization Machines(FFM)\uff0c\u7136\u540e\u5728\u56de\u5f52\/\u5206\u7c7b\u95ee\u9898\u4e2d\u8ba8\u8bba\u56e0\u5b50\u5206\u89e3\u7684\u4f18\u52bf\uff0c\u5e76\u901a\u8fc7python\u7f16\u7a0b\u5b9e\u73b0\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u76ee\u5f55<\/span><\/p>\n<p><span class=\"bjh-p\">1. \u56e0\u5f0f\u5206\u89e3\u7684\u76f4\u89c2\u4ecb\u7ecd<\/span><\/p>\n<p><span class=\"bjh-p\">2. FM\u7b97\u6cd5\u5982\u4f55\u4f18\u4e8e\u591a\u9879\u5f0f\u548c\u7ebf\u6027\u6a21\u578b<\/span><\/p>\n<p><span class=\"bjh-p\">3. FFM\u7b97\u6cd5\u4ecb\u7ecd<\/span><\/p>\n<p><span class=\"bjh-p\">4. \u5728python\u4e2d\u4f7f\u7528xLearn\u5e93\u8fdb\u884c\u7b97\u6cd5\u5b9e\u73b0<\/span><\/p>\n<p><span class=\"bjh-p\">\u56e0\u5f0f\u5206\u89e3\u7684\u76f4\u89c2\u4ecb\u7ecd<\/span><\/p>\n<p><span class=\"bjh-p\">\u4e3a\u4e86\u76f4\u89c2\u5730\u7406\u89e3\u77e9\u9635\u5206\u89e3\uff0c\u6211\u4eec\u6765\u770b\u4e00\u4e2a\u4f8b\u5b50\uff1a\u5047\u8bbe\u6709\u4e00\u4e2a\u7528\u6237-\u7535\u5f71\u8bc4\u5206\uff081-5\uff09\u77e9\u9635\uff0c\u77e9\u9635\u4e2d\u7684\u6bcf\u4e00\u4e2a\u503c\u8868\u793a\u7528\u6237\u7ed9\u7535\u5f71\u7684\u8bc4\u5206\uff081-5\uff09\u3002<\/span><\/p>\n<div class=\"img-container\"><\/div>\n<p><span class=\"bjh-p\">\u4ece\u4e0a\u8ff0\u8868\u683c\u4e2d\u6211\u4eec\u53ef\u4ee5\u770b\u51fa\uff0c\u4e00\u4e9b\u8bc4\u5206\u662f\u7f3a\u5931\u7684\uff0c\u6211\u4eec\u60f3\u8bbe\u8ba1\u4e00\u79cd\u65b9\u6cd5\u6765\u9884\u6d4b\u8fd9\u4e9b\u7f3a\u5931\u7684\u8bc4\u5206\u3002\u76f4\u89c2\u4e0a\u6765\u8bb2\uff0c\u5229\u7528\u77e9\u9635\u5206\u89e3\u6765\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u7684\u5173\u952e\u662f\u5e94\u8be5\u6709\u4e00\u4e9b\u6f5c\u5728\u7684\u7279\u5f81\u51b3\u5b9a\u7528\u6237\u5982\u4f55\u8bc4\u4ef7\u4e00\u90e8\u7535\u5f71\u3002\u4e3e\u4f8b\u6765\u8bf4 &#8211; \u7528\u6237A\u548cB\u90fd\u662f\u6f14\u5458\u963f\u5c14\u00b7\u5e15\u897f\u8bfa\u7684\u7c89\u4e1d\uff0c\u90a3\u4e48\u4ed6\u4eec\u5c31\u4f1a\u5bf9\u963f\u5c14\u00b7\u5e15\u897f\u8bfa\u7684\u7535\u5f71\u8bc4\u5206\u8f83\u9ad8\u3002\u5728\u4e0a\u8ff0\u4f8b\u5b50\u4e2d\uff0c\u5bf9\u7279\u5b9a\u6f14\u5458\u7684\u504f\u597d\u662f\u4e00\u4e2a\u9690\u85cf\u7684\u7279\u6027\uff0c\u56e0\u4e3a\u6211\u4eec\u6ca1\u6709\u660e\u786e\u5730\u5c06\u5176\u5305\u542b\u5728\u8bc4\u5206\u77e9\u9635\u4e2d\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u5047\u8bbe\u6211\u4eec\u8981\u8ba1\u7b97K\u4e2a\u9690\u85cf\u6216\u6f5c\u5728\u7684\u7279\u5f81\uff0c\u6211\u4eec\u7684\u4efb\u52a1\u662f\u627e\u51fa\u77e9\u9635P (U x K)\u548cQ (D x K) (U \u2013 \u7528\u6237, D \u2013 \u7535\u5f71)\uff0c\u4f7f\u5f97 P x QT \u8fd1\u4f3c\u7b49\u4e8e\u8bc4\u5206\u77e9\u9635R\u3002<\/span><\/p>\n<div class=\"img-container\"><\/div>\n<p><span class=\"bjh-p\">P\u77e9\u9635\u7684\u6bcf\u4e00\u884c\u8868\u793a\u7528\u6237\u4e0e\u4e0d\u540c\u7279\u5f81\u7684\u76f8\u5173\u6027\uff0cQ\u77e9\u9635\u7684\u6bcf\u4e00\u884c\u8868\u793a\u8be5\u7279\u5f81\u4e0e\u7535\u5f71\u540c\u6837\u7684\u76f8\u5173\u6027\u3002\u4e3a\u4e86\u5f97\u5230\u7528\u6237ui\u5bf9\u7535\u5f71dj\u7684\u8bc4\u5206\uff0c\u6211\u4eec\u53ef\u4ee5\u8ba1\u7b97\u5bf9\u5e94\u4e8eui\u548cdj\u4e24\u4e2a\u5411\u91cf\u7684\u70b9\u79ef\u3002<\/span><\/p>\n<div class=\"img-container\"><\/div>\n<p><span class=\"bjh-p\">\u63a5\u4e0b\u6765\u8981\u505a\u7684\u5c31\u662f\u6c42\u51fa\u77e9\u9635P\u548c\u77e9\u9635Q\u3002\u6211\u4eec\u4f7f\u7528\u68af\u5ea6\u4e0b\u964d\u7b97\u6cd5\u6765\u8ba1\u7b97\uff0c\u76ee\u6807\u51fd\u6570\u662f\u4f7f\u7528\u6237\u7684\u5b9e\u9645\u8bc4\u5206\u4e0e\u901a\u8fc7\u77e9\u9635P\u548cQ\u4f30\u8ba1\u7684\u8bc4\u5206\u4e4b\u95f4\u7684\u5e73\u65b9\u8bef\u5dee\u6700\u5c0f\uff0c\u8fd9\u91cc\u7684\u5e73\u65b9\u8bef\u5dee\u7531\u4ee5\u4e0b\u65b9\u7a0b\u6c42\u51fa\u3002<\/span><\/p>\n<div class=\"img-container\"><\/div>\n<p><span class=\"bjh-p\">\u73b0\u5728\u6211\u4eec\u8981\u7ed9pik\u548cqkj\u5b9a\u4e49\u4e00\u4e2a\u66f4\u65b0\u89c4\u5219\uff0c\u68af\u5ea6\u4e0b\u964d\u6cd5\u4e2d\u7684\u66f4\u65b0\u89c4\u5219\u662f\u7531\u6700\u5c0f\u5316\u8bef\u5dee\u503c\u7684\u68af\u5ea6\u6765\u5b9a\u4e49\u7684\u3002<\/span><\/p>\n<div class=\"img-container\"><\/div>\n<p><span class=\"bjh-p\">\u83b7\u5f97\u68af\u5ea6\u503c\u540e\uff0c\u63a5\u4e0b\u6765\u53ef\u4ee5\u5b9a\u4e49pik\u548cqkj\u7684\u66f4\u65b0\u89c4\u5219\u3002<\/span><\/p>\n<div class=\"img-container\"><\/div>\n<p><span class=\"bjh-p\">\u8fd9\u91cc\u03b1\u662f\u63a7\u5236\u66f4\u65b0\u6b65\u957f\u7684\u5b66\u4e60\u901f\u7387\uff0c\u4f7f\u7528\u4e0a\u8ff0\u66f4\u65b0\u89c4\u5219\uff0c\u6211\u4eec\u53ef\u4ee5\u8fed\u4ee3\u5730\u6267\u884c\u64cd\u4f5c\uff0c\u76f4\u5230\u8bef\u5dee\u6536\u655b\u5230\u6700\u5c0f\uff0c\u540c\u65f6\u4f7f\u7528\u4e0b\u9762\u7684\u516c\u5f0f\u8ba1\u7b97\u603b\u7684\u8bef\u5dee\uff0c\u4ee5\u6b64\u6765\u786e\u5b9a\u4ec0\u4e48\u60c5\u51b5\u4e0b\u5e94\u8be5\u505c\u6b62\u8fed\u4ee3\u3002<\/span><\/p>\n<div class=\"img-container\"><\/div>\n<p><span class=\"bjh-p\">\u4e0a\u8ff0\u89e3\u51b3\u65b9\u6848\u5f88\u7b80\u5355\u5e76\u4e14\u7ecf\u5e38\u4f1a\u5bfc\u81f4\u8fc7\u62df\u5408\uff0c\u5373\u73b0\u6709\u7684\u8bc4\u5206\u90fd\u88ab\u51c6\u786e\u9884\u6d4b\u5230\uff0c\u4f46\u662f\u4e0d\u80fd\u5f88\u597d\u5730\u63a8\u5e7f\u5230\u672a\u77e5\u7684\u6570\u636e\u4e0a\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u6211\u4eec\u53ef\u4ee5\u5f15\u5165\u4e00\u4e2a\u6b63\u5219\u5316\u53c2\u6570 \u03b2\uff0c\u5b83\u5c06\u5206\u522b\u63a7\u5236\u77e9\u9635P\u548cQ\u4e2d\u5411\u91cf\u201c\u7528\u6237-\u7279\u5f81\u201d\u548c\u201c\u7535\u5f71-\u7279\u5f81\u201d\uff0c\u5e76\u7ed9\u51fa\u4e00\u4e2a\u66f4\u597d\u7684\u8bc4\u5206\u7684\u8fd1\u4f3c\u503c\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u5982\u679c\u5bf9\u5229\u7528python\u5b9e\u73b0\u4e0a\u8ff0\u529f\u80fd\u548c\u76f8\u5173\u7ec6\u8282\u611f\u5174\u8da3\uff0c\u3002\u4e00\u65e6\u6211\u4eec\u7528\u4e0a\u8ff0\u65b9\u6cd5\u8ba1\u7b97\u51fa\u4e86\u77e9\u9635P\u548cQ\uff0c\u5f97\u5230\u7684\u8fd1\u4f3c\u8bc4\u5206\u77e9\u9635\u5982\u4e0b\uff1a<\/span><\/p>\n<div class=\"img-container\"><\/div>\n<p><span class=\"bjh-p\">\u73b0\u5728\uff0c\u6211\u4eec\u65e2\u80fd\u591f\u91cd\u65b0\u751f\u6210\u73b0\u6709\u8bc4\u5206\uff0c\u4e5f\u80fd\u5bf9\u672a\u77e5\u7684\u8bc4\u5206\u8fdb\u884c\u4e00\u4e2a\u5408\u7406\u7684\u8fd1\u4f3c\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">FM\u7b97\u6cd5\u5982\u4f55\u4f18\u4e8e\u591a\u9879\u5f0f\u548c\u7ebf\u6027\u6a21\u578b<\/span><\/p>\n<p><span class=\"bjh-p\">\u9996\u5148\u8003\u8651\u4e00\u7ec4\u70b9\u51fb\u7387\u9884\u6d4b\u6570\u636e\u7684\u8bad\u7ec3\u793a\u4f8b\u3002\u4ee5\u4e0b\u6570\u636e\u6765\u81ea\u76f8\u5173\u4f53\u80b2\u65b0\u95fb\u7f51\u7ad9\uff08\u53d1\u5e03\u5546\uff09\u548c\u4f53\u80b2\u7528\u54c1\u516c\u53f8\uff08\u5e7f\u544a\u5546\uff09\u3002<\/span><\/p>\n<div class=\"img-container\"><\/div>\n<p><span class=\"bjh-p\">\u5f53\u6211\u4eec\u8ba8\u8bbaFM\u6216\u8005FFM\u7684\u65f6\u5019\uff0c\u6570\u636e\u96c6\u4e2d\u7684\u6bcf\u4e00\u5217\uff08\u6bd4\u5982\u4e0a\u8ff0\u8868\u683c\u4e2d\u7684\u51fa\u7248\u5546\u3001\u5e7f\u544a\u5546\u7b49\uff09\u5c06\u88ab\u79f0\u4e3a\u4e00\u4e2a\u5b57\u6bb5\uff0c\u6bcf\u4e00\u4e2a\u503c\uff08 ESPN\u3001Nike \u7b49\uff09\u90fd\u88ab\u79f0\u4e3a\u4e00\u4e2a\u7279\u5f81\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u7ebf\u6027\u6216\u903b\u8f91\u56de\u5f52\u6a21\u578b\u5728\u5f88\u591a\u95ee\u9898\u4e0a\u8868\u73b0\u5f88\u597d\uff0c\u4f46\u7f3a\u70b9\u662f\u8fd9\u79cd\u6a21\u578b\u53ea\u80fd\u5b66\u4e60\u6240\u6709\u53d8\u91cf\u6216\u8005\u7279\u5f81\u5404\u81ea\u7684\u5f71\u54cd\uff0c\u65e0\u6cd5\u5b66\u4e60\u53d8\u91cf\u4e4b\u95f4\u7684\u76f8\u4e92\u4f5c\u7528<\/span><\/p>\n<p><span class=\"bjh-p\">\u3002<\/span><\/p>\n<div class=\"img-container\"><\/div>\n<p><span class=\"bjh-p\">\u5728\u4e0a\u8ff0\u7b49\u5f0f\u4e2d\uff0cw0\u3001wESPN\u7b49\u4ee3\u8868\u53c2\u6570\uff0cxESPN\u3001xNike\u7b49\u4ee3\u8868\u6570\u636e\u96c6\u4e2d\u7684\u5404\u4e2a\u7279\u5f81\uff0c\u901a\u8fc7\u6700\u5c0f\u5316\u4e0a\u8ff0\u51fd\u6570\u7684\u5bf9\u6570\u635f\u5931\uff0c\u5f97\u5230\u903b\u8f91\u56de\u5f52\u6a21\u578b\u3002\u6355\u83b7\u7279\u5f81\u4e4b\u95f4\u76f8\u4e92\u4f5c\u7528\u7684\u4e00\u79cd\u65b9\u6cd5\u662f\u4f7f\u7528\u591a\u9879\u5f0f\u51fd\u6570\uff0c\u5c06\u6bcf\u4e2a\u7279\u5f81\u5bf9\u7684\u4e58\u79ef\u4f5c\u4e3a\u5355\u72ec\u7684\u53c2\u6570\u6765\u5b66\u4e60\uff0c\u5e76\u4e14\u628a\u6bcf\u4e00\u4e2a\u4e58\u79ef\u4f5c\u4e3a\u4e00\u4e2a\u72ec\u7acb\u7684\u53d8\u91cf\u3002<\/span><\/p>\n<div class=\"img-container\"><\/div>\n<div class=\"img-container\"><\/div>\n<p><span class=\"bjh-p\">\u8fd9\u4e5f\u53ef\u4ee5\u79f0\u4e3a Poly2\u6a21\u578b\uff0c\u56e0\u4e3a\u6bcf\u4e00\u9879\u90fd\u53ea\u8003\u8651\u4e86\u4e24\u4e2a\u7279\u5f81\u4e4b\u95f4\u7684\u76f8\u4e92\u5f71\u54cd\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u95ee\u9898\u5728\u4e8e\uff0c\u5373\u4f7f\u9762\u5bf9\u4e00\u4e2a\u4e2d\u7b49\u5927\u5c0f\u7684\u6570\u636e\u96c6\uff0c\u4e5f\u9700\u8981\u4e00\u4e2a\u5e9e\u5927\u7684\u6a21\u578b\uff0c\u8fd9\u5bf9\u5b58\u50a8\u6a21\u578b\u6240\u9700\u8981\u7684\u5185\u5b58\u7a7a\u95f4\u548c\u8bad\u7ec3\u6a21\u578b\u6240\u82b1\u8d39\u7684\u65f6\u95f4\u90fd\u6709\u5f88\u5927\u7684\u5f71\u54cd\uff1b<\/span><\/p>\n<p><span class=\"bjh-p\">\u5176\u6b21\uff0c\u5bf9\u4e8e\u4e00\u4e2a\u7a00\u758f\u6570\u636e\u96c6\uff0c\u8fd9\u79cd\u6280\u672f\u4e0d\u80fd\u5f88\u597d\u5730\u5b66\u4e60\u6240\u6709\u7684\u6743\u91cd\u6216\u53c2\u6570\uff0c\u56e0\u4e3a\u6ca1\u6709\u6709\u8db3\u591f\u7684\u8bad\u7ec3\u6837\u672c\u4f7f\u6bcf\u4e00\u4e2a\u7279\u5f81\u5bf9\u7684\u6743\u91cd\u662f\u53ef\u9760\u7684\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u6551\u661fFM<\/span><\/p>\n<p><span class=\"bjh-p\">FM\u7b97\u6cd5\u89e3\u51b3\u4e86\u6210\u5bf9\u7279\u5f81\u4ea4\u4e92\u7684\u95ee\u9898\u3002\u5b83\u4f7f\u6211\u4eec\u80fd\u591f\u6839\u636e\u6bcf\u4e00\u5bf9\u7279\u5f81\u7ec4\u5408\u4e2d\u7684\u53ef\u9760\u4fe1\u606f\uff08\u9690\u85cf\u7279\u5f81\uff09\u6765\u8bad\u7ec3\u6a21\u578b\uff0c\u540c\u65f6\u5728\u65f6\u95f4\u548c\u7a7a\u95f4\u590d\u6742\u5ea6\u4e0a\u66f4\u6709\u6548\u5730\u5b9e\u73b0\u4e0a\u8ff0\u76ee\u6807\u3002\u5177\u4f53\u6765\u8bb2\uff0c\u5b83\u5c06\u6210\u5bf9\u4ea4\u4e92\u7279\u5f81\u4f5c\u4e3a\u4f4e\u7ef4\u5411\u91cf\u7684\u70b9\u79ef\uff08\u957f\u5ea6\u4e3aK\uff09\u8fdb\u884c\u5efa\u6a21\uff0c\u4ee5\u4e0b\u5305\u542b\u4e86\u4e00\u4e2a\u4e8c\u9636\u56e0\u5b50\u5206\u89e3\u7684\u65b9\u7a0b\u3002<\/span><\/p>\n<div class=\"img-container\"><\/div>\n<p><span class=\"bjh-p\">FM\uff08K=3\uff09\u9879\u4e2d\u6bcf\u4e2a\u53c2\u6570\u7684\u8868\u793a\u65b9\u6cd5\u5982\u4e0b\uff1a<\/span><\/p>\n<div class=\"img-container\"><\/div>\n<p><span class=\"bjh-p\">\u4e0a\u8ff0\u7b49\u5f0f\u4e2d\uff0c\u6211\u4eec\u5206\u522b\u8ba1\u7b97\u4e86\u4e0e2\u4e2a\u7279\u5f81\u5bf9\u5e94\u76842\u4e2a\u957f\u5ea6\u4e3a3\u7684\u6f5c\u56e0\u5b50\u7684\u70b9\u79ef\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u4ece\u5efa\u6a21\u7684\u89d2\u5ea6\u6765\u770b\uff0c\u8fd9\u662f\u975e\u5e38\u5f3a\u5927\u7684\uff0c\u56e0\u4e3a\u6bcf\u4e00\u4e2a\u7279\u5f81\u6700\u540e\u90fd\u4f1a\u8f6c\u6362\u5230\u4e00\u4e2a\u76f8\u4f3c\u7279\u5f81\u88ab\u4e92\u76f8\u5d4c\u5957\u7684\u7a7a\u95f4\uff0c\u7b80\u800c\u8a00\u4e4b\uff0c\u70b9\u79ef\u57fa\u672c\u4e0a\u8868\u793a\u4e86\u6f5c\u5728\u7279\u5f81\u7684\u76f8\u4f3c\u7a0b\u5ea6\uff0c\u7279\u5f81\u8d8a\u76f8\u8fd1\uff0c\u70b9\u79ef\u8d8a\u5927\u3002<\/span><\/p>\n<div class=\"img-container\"><\/div>\n<p><span class=\"bjh-p\">\u5bf9\u4e8e\u4f59\u5f26\u51fd\u6570\uff0c\u5f53 \u03b8\u662f0\u65f6\uff0c\u5f97\u5230\u6700\u5927\u503c1\uff1b\u5f53 \u03b8\u662f180\u5ea6\uff0c\u5f97\u5230-1\uff0c\u6240\u4ee5\u5f53 \u03b8\u63a5\u8fd1\u4e8e0\u65f6\uff0c\u76f8\u4f3c\u6027\u6700\u5927\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">FM\u7b97\u6cd5\u7684\u53e6\u4e00\u4e2a\u5de8\u5927\u4f18\u52bf\u662f\u80fd\u591f\u5728\u7ebf\u6027\u65f6\u95f4\u590d\u6742\u5ea6\u4e0b\u4f7f\u7528\u7b80\u5355\u7684\u6570\u5b66\u65b9\u6cd5\u8ba1\u7b97\u6a21\u578b\u4e2d\u6210\u5bf9\u7279\u5f81\u7684\u76f8\u4e92\u4f5c\u7528\u3002\u5982\u679c\u4f60\u60f3\u8fdb\u4e00\u6b65\u4e86\u89e3\u5177\u4f53\u7684\u5b9e\u73b0\u6b65\u9aa4\uff0c\u8bf7\u53c2\u8003\u94fe\u63a5\u4e2d\u5173\u4e8eFM\u7b97\u6cd5\u7684\u539f\u59cb\u7814\u7a76\u8bba\u6587\u3002<\/span><\/p>\n<p><span class=\"bjh-p\"><\/span><\/p>\n<p><span class=\"bjh-p\">\u793a\u4f8b\uff1aFM\u7b97\u6cd5\u6027\u80fd\u4f18\u4e8e POLY2\u7b97\u6cd5\u7684\u6f14\u793a<\/span><\/p>\n<p><span class=\"bjh-p\">\u8003\u8651\u4ee5\u4e0b\u4e00\u7ec4\u865a\u6784\u7684\u70b9\u51fb\u7387\u6570\u636e\uff1a<\/span><\/p>\n<div class=\"img-container\"><\/div>\n<p><span class=\"bjh-p\">\u8fd9\u4e2a\u6570\u636e\u96c6\u7531\u4f5c\u4e3a\u53d1\u5e03\u8005\u7684\u4f53\u80b2\u7f51\u7ad9\u548c\u4f53\u80b2\u7528\u54c1\u5e7f\u544a\u5546\u6784\u6210\u3002\u5e7f\u544a\u662f\u4ee5\u5f39\u51fa\u7684\u65b9\u5f0f\u6765\u663e\u793a\u7684\uff0c\u7528\u6237\u53ef\u4ee5\u9009\u62e9\u70b9\u51fb\u5e7f\u544a\u6216\u8005\u5173\u95ed\u5e7f\u544a\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u7279\u5f81\u5bf9(ESPN\uff0cAdidas)\u53ea\u6709\u4e00\u4e2a\u8d1f\u7684\u8bad\u7ec3\u6570\u636e\uff0c\u90a3\u4e48\u5728Poly2\u7b97\u6cd5\u4e2d\uff0c\u8fd9\u4e2a\u7279\u5f81\u5bf9\u53ef\u80fd\u4f1a\u5b66\u5230\u4e00\u4e2a\u8d1f\u7684\u6743\u91cd\u503cwESPN\uff0cAdidas\uff1b\u800c\u5728FM\u7b97\u6cd5\u4e2d\uff0c\u7531\u4e8e\u7279\u5f81\u5bf9(ESPN\uff0cAdidas)\u662f\u7531wESPN\u00b7wAdidas\u51b3\u5b9a\u7684\uff0c\u800c\u5176\u4e2d\u7684wESPN\u548cwAdidas\u5206\u522b\u662f\u4ece\u5176\u4ed6\u7279\u5f81\u5bf9\u4e2d\u5b66\u5230\u7684\uff08\u6bd4\u5982(ESPN\uff0cNike)\uff0c(NBC\uff0cAdidas)\u7b49\uff09\uff0c\u6240\u4ee5\u9884\u6d4b\u53ef\u80fd\u66f4\u52a0\u7cbe\u786e\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u53e6\u4e00\u4e2a\u4f8b\u5b50\u662f\u7279\u5f81\u5bf9(NBC\uff0cGucci)\u6ca1\u6709\u4efb\u4f55\u8bad\u7ec3\u6570\u636e\uff0c\u5bf9\u4e8ePoly2\u7b97\u6cd5\uff0c\u8fd9\u4e2a\u7279\u5f81\u5bf9\u7684\u9884\u6d4b\u503c\u4e3a0\uff1b\u4f46\u662f\u5728FM\u7b97\u6cd5\u4e2d\uff0c\u56e0\u4e3awNBC\u548cwGucci\u53ef\u4ee5\u4ece\u5176\u4ed6\u7279\u5f81\u5bf9\u4e2d\u5b66\u5230\uff0c\u6240\u4ee5\u4ecd\u7136\u6709\u53ef\u80fd\u5f97\u5230\u6709\u610f\u4e49\u7684\u9884\u6d4b\u503c\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">FFM\u7b97\u6cd5\u4ecb\u7ecd<\/span><\/p>\n<div class=\"img-container\"><\/div>\n<p><span class=\"bjh-p\">\u4e3a\u4e86\u7406\u89e3FFM\u7b97\u6cd5\uff0c\u6211\u4eec\u9700\u8981\u8ba4\u8bc6field\u7684\u6982\u5ff5\u3002field\u901a\u5e38\u662f\u6307\u5305\u542b\u4e00\u4e2a\u7279\u5b9a\u7279\u5f81\u7684\u66f4\u5e7f\u6cdb\u7684\u7c7b\u522b\u3002\u5728\u4e0a\u8ff0\u8bad\u7ec3\u793a\u4f8b\u4e2d\uff0cfield\u5206\u522b\u6307\u53d1\u5e03\u8005\uff08P\uff09\u3001\u5e7f\u544a\u5546\uff08A\uff09\u548c\u6027\u522b\uff08G\uff09\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u5728FM\u7b97\u6cd5\u4e2d\uff0c\u6bcf\u4e00\u4e2a\u7279\u5f81\u53ea\u6709\u4e00\u4e2a\u9690\u5411\u91cfv\uff0c\u6765\u5b66\u4e60\u5176\u4ed6\u7279\u5f81\u5e26\u6765\u7684\u6f5c\u5728\u5f71\u54cd\u3002\u4ee5ESPN\u4e3a\u4f8b\uff0cwESPN\u88ab\u7528\u6765\u5b66\u4e60\u7279\u5f81Nike(wESPN\u00b7wNike)\u548cMale(wESPN.wMale)\u4e4b\u95f4\u7684\u6f5c\u5728\u4f5c\u7528\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u4f46\u662f\uff0c\u7531\u4e8eESPN\u548cMale\u5c5e\u4e8e\u4e0d\u540c\u7684field,\u6240\u4ee5\u5bf9\u7279\u5f81\u5bf9(ESPN\uff0cNike)\u548c(ESPN\uff0cMale)\u7684\u8d77\u4f5c\u7528\u7684\u6f5c\u5728\u4f5c\u7528\u53ef\u80fd\u4e0d\u540c\u3002FM\u7b97\u6cd5\u65e0\u6cd5\u6355\u6349\u8fd9\u4e2a\u5dee\u5f02\uff0c\u56e0\u4e3a\u5b83\u4e0d\u533a\u5206field\u7684\u6982\u5ff5\uff0c\u5728\u8fd9\u4e24\u79cd\u60c5\u51b5\u4e2d\uff0c\u5b83\u4f1a\u4f7f\u7528\u76f8\u540c\u53c2\u6570\u7684\u70b9\u79ef\u6765\u8ba1\u7b97\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u5728FFM\u7b97\u6cd5\u4e2d\uff0c\u6bcf\u4e2a\u7279\u5f81\u6709\u82e5\u5e72\u4e2a\u9690\u5411\u91cf\u3002\u4f8b\u5982\uff0c\u5f53\u8003\u8651\u7279\u5f81ESPN\u548cNike\u4e4b\u95f4\u7684\u4ea4\u4e92\u4f5c\u7528\u65f6\uff0c\u7528\u7b26\u53f7wESPN\uff0cA\u6765\u8868\u793aESPN\u7684\u9690\u85cf\u7279\u5f81\uff0c\u5176\u4e2dA\uff08\u5e7f\u544a\u5546\uff09\u8868\u793a\u7279\u5f81Nike\u7684field\u3002\u7c7b\u4f3c\u7684\uff0c\u5173\u4e8e\u6027\u522b\u7684field\u7684\u4e00\u4e2a\u91cd\u8981\u7684\u53c2\u6570wESPN,G\u4e5f\u4f1a\u88ab\u5b66\u4e60\u5230\u3002<\/span><\/p>\n<div class=\"img-container\"><\/div>\n<p><span class=\"bjh-p\">\u4e8b\u5b9e\u8bc1\u660e\uff0cFFM\u7b97\u6cd5\u5bf9\u83b7\u5f97\u7531 Criteo\u3001Avazu\u3001Outbrain\u4e3e\u529e\u7684\u70b9\u51fb\u7387\uff08CTR\uff09\u6bd4\u8d5b\u7b2c\u4e00\u540d\u662f\u81f3\u5173\u91cd\u8981\u7684\uff0c\u540c\u65f6\u4e5f\u5e2e\u52a9\u8d62\u5f97\u4e862015\u5e74RecSys\u6311\u6218\u8d5b\u7684\u4e09\u7b49\u5956\u3002\u5173\u4e8e\u70b9\u51fb\u7387\u6570\u636e\u96c6\u53ef\u4ee5\u4eceKaggle\u83b7\u5f97\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u5728python\u4e2d\u4f7f\u7528xLearn\u5e93\u8fdb\u884c\u7b97\u6cd5\u5b9e\u73b0<\/span><\/p>\n<p><span class=\"bjh-p\">\u4e00\u4e9b\u5728python\u4e2d\u5b9e\u73b0FM &amp; FFM\u7684\u6700\u6d41\u884c\u7684\u5e93\u5982\u4e0b\u6240\u793a\uff1a<\/span><\/p>\n<div class=\"img-container\"><\/div>\n<p><span class=\"bjh-p\">\u4e3a\u4e86\u5728\u6570\u636e\u96c6\u4e0a\u4f7f\u7528FM\u7b97\u6cd5\uff0c\u9700\u8981\u5c06\u6570\u636e\u8f6c\u6362\u4e3alibSVM\u683c\u5f0f\u3002\u4ee5\u4e0b\u4e3a\u8bad\u7ec3\u548c\u6d4b\u8bd5\u7684\u6570\u636e\u6587\u4ef6\u683c\u5f0f\uff1a<\/span><\/p>\n<p><span class=\"bjh-p\">:: \u2026<\/span><\/p>\n<div class=\"img-container\"><\/div>\n<p><span class=\"bjh-p\">\u5728\u589e\u52a0\u4e86field\u7684\u6982\u5ff5\u4e4b\u540e\uff0c\u6bcf\u4e2a\u7279\u5f81\u88ab\u552f\u4e00\u7f16\u7801\u5e76\u88ab\u8d4b\u503c\uff0c\u4e0a\u8ff0\u56fe\u4e2d\uff0c\u7279\u5f81ESPN\u75281\u8868\u793a\uff0c\u7279\u5f81Nike\u75282\u8868\u793a\uff0c\u4ee5\u6b64\u7c7b\u63a8\u3002\u6bcf\u4e00\u884c\u5305\u542b\u4e00\u4e2a\u7b49\u6548\u7684\u8bad\u7ec3\u793a\u4f8b\u5e76\u4ee5\u201c n\u201d\u6216\u6362\u884c\u7b26\u7ed3\u5c3e\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u5bf9\u4e8e\u5206\u7c7b\uff08\u4e8c\u8fdb\u5236\/\u591a\u7c7b\uff09\uff0c\u662f\u4e00\u4e2a\u6307\u793a\u7c7b\u6807\u7b7e\u7684\u6574\u6570\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u5bf9\u4e8e\u56de\u5f52\uff0c\u662f\u4efb\u4f55\u5b9e\u6570\u7684\u76ee\u6807\u503c\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u6d4b\u8bd5\u6587\u4ef6\u4e2d\u7684\u6807\u7b7e\u4ec5\u7528\u4e8e\u8ba1\u7b97\u51c6\u786e\u5ea6\u6216\u8bef\u5dee\uff0c\u672a\u77e5\u7684\u60c5\u51b5\u4e0b\u53ef\u4ee5\u7528\u4efb\u4f55\u6570\u503c\u586b\u5199\u7b2c\u4e00\u5217\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u540c\u6837\uff0c\u5bf9\u4e8eFFM\u7b97\u6cd5\uff0c\u9700\u8981\u5c06\u6570\u636e\u8f6c\u6362\u4e3alibffm\u683c\u5f0f\u3002\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u4e5f\u9700\u8981\u5bf9field\u8fdb\u884c\u7f16\u7801\uff0c\u56e0\u4e3a\u8be5\u7b97\u6cd5\u9700\u8981field\u7684\u4fe1\u606f\u6765\u5b66\u4e60\u3002\u683c\u5f0f\u5982\u4e0b\uff1a<\/span><\/p>\n<p><span class=\"bjh-p\">:::: \u2026<\/span><\/p>\n<div class=\"img-container\"><\/div>\n<p><span class=\"bjh-p\">\u6709\u5173\u6570\u503c\u7279\u5f81\u7684\u91cd\u8981\u8bf4\u660e<\/span><\/p>\n<p><span class=\"bjh-p\">\u6570\u503c\u7279\u5f81\u9700\u8981\u88ab\u79bb\u6563\u5316\uff08\u901a\u8fc7\u5c06\u7279\u5b9a\u6570\u503c\u7279\u5f81\u7684\u6574\u4e2a\u8303\u56f4\u5206\u6210\u8f83\u5c0f\u7684\u8303\u56f4\u5e76\u4e14\u5206\u522b\u5bf9\u6bcf\u4e2a\u8303\u56f4\u8fdb\u884c\u6807\u8bb0\u7f16\u7801\u800c\u8f6c\u6362\u4e3a\u5206\u7c7b\u7279\u5f81\uff09\uff0c\u7136\u540e\u5982\u4e0a\u6240\u793a\u8f6c\u6362\u4e3alibffm\u683c\u5f0f\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u53e6\u4e00\u79cd\u53ef\u80fd\u6027\u662f\u6dfb\u52a0\u4e00\u4e2a\u4e0e\u7279\u5f81\u503c\u76f8\u540c\u7684\u865a\u62dffield\u503c\uff0c\u5b83\u5c06\u662f\u8be5\u7279\u5b9a\u884c\u7684\u6570\u503c\u7279\u5f81\uff08\u4f8b\u5982\uff0c\u5177\u6709\u503c45.3\u7684\u7279\u5f81\u53ef\u4ee5\u88ab\u53d8\u6362\u4e3a1\uff1a1\uff1a45.3\uff09\u3002 \u4f46\u662f\u865a\u62dffield\u503c\u53ef\u80fd\u4e0d\u5305\u542b\u4efb\u4f55\u4fe1\u606f\uff0c\u56e0\u4e3a\u5b83\u4eec\u4ec5\u4ec5\u662f\u8fd9\u4e9b\u6570\u503c\u7279\u5f81\u7684\u590d\u5236\u54c1\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">xLearn<\/span><\/p>\n<p><span class=\"bjh-p\">\u6700\u8fd1\u63a8\u51fa\u7684xLearn\u5e93\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5728\u5404\u79cd\u6570\u636e\u96c6\u4e0a\u5b9e\u73b0FM\u548cFFM\u6a21\u578b\u7684\u5feb\u901f\u89e3\u51b3\u65b9\u6848\u3002 \u5b83\u6bd4libfm\u548clibffm\u5e93\u5feb\u5f97\u591a\uff0c\u4e3a\u6a21\u578b\u6d4b\u8bd5\u548c\u8c03\u4f18\u63d0\u4f9b\u4e86\u66f4\u597d\u7684\u529f\u80fd\u3002<\/span><\/p>\n<div class=\"img-container\"><\/div>\n<p><span class=\"bjh-p\">\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u5c06\u7528\u4e00\u4e2a\u4f8b\u5b50\u6765\u8bf4\u660eFFM\u7b97\u6cd5\uff0c\u6570\u636e\u6765\u81eaCriteo\u70b9\u51fb\u7387\u9884\u6d4b\u6311\u6218\u8d5b\u4e2dCTR\u6570\u636e\u96c6\u7684\u4e00\u4e2a\u5fae\u5c0f\uff081\uff05\uff09\u62bd\u6837\u3002 \u4f60\u53ef\u4ee5\u4ece\u8fd9\u91cc[Office1] \u4e0b\u8f7d\u8fd9\u4e2a\u6570\u636e\u96c6\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u4f46\u9996\u5148\u6211\u4eec\u9700\u8981\u5c06\u5176\u8f6c\u6362\u4e3axLearn\u6240\u9700\u7684libffm\u683c\u5f0f\u4ee5\u62df\u5408\u6a21\u578b\u3002 \u4ee5\u4e0b\u51fd\u6570\u5c06\u6807\u51c6\u6570\u636e\u5e27\u683c\u5f0f\u7684\u6570\u636e\u96c6\u8f6c\u6362\u4e3alibffm\u683c\u5f0f\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">df = Dataframe to be converted to ffm format<\/span><\/p>\n<p><span class=\"bjh-p\">Type = Train\/Test\/Val<\/span><\/p>\n<p><span class=\"bjh-p\">Numerics = list of all numeric fields<\/span><\/p>\n<p><span class=\"bjh-p\">Categories = list of all categorical fields<\/span><\/p>\n<p><span class=\"bjh-p\">Features = list of all features except the Label and Id<\/span><\/p>\n<div class=\"img-container\"><\/div>\n<div class=\"img-container\"><\/div>\n<p><span class=\"bjh-p\">xLearn\u53ef\u4ee5\u76f4\u63a5\u5904\u7406csv\u4ee5\u53calibsvm\u683c\u5f0f\u7684\u6570\u636e\u6765\u5b9e\u73b0FM\u7b97\u6cd5\uff0c\u4f46\u5bf9FFM\u7b97\u6cd5\u800c\u8a00\uff0c\u6211\u4eec\u5fc5\u987b\u5c06\u6570\u636e\u8f6c\u6362\u4e3alibffm\u683c\u5f0f\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u4e00\u65e6\u6211\u4eec\u6709\u4e86libffm\u683c\u5f0f\u7684\u6570\u636e\u96c6\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528xLearn\u5e93\u6765\u8bad\u7ec3\u6a21\u578b\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u7c7b\u4f3c\u4e8e\u4efb\u4f55\u5176\u4ed6\u673a\u5668\u5b66\u4e60\u7b97\u6cd5\uff0c\u6570\u636e\u96c6\u88ab\u5206\u6210\u4e00\u4e2a\u8bad\u7ec3\u96c6\u548c\u4e00\u4e2a\u9a8c\u8bc1\u96c6\u3002xLearn\u4f7f\u7528\u9a8c\u8bc1\/\u6d4b\u8bd5\u5bf9\u6570\u635f\u5931\u6765\u81ea\u52a8\u6267\u884c\u63d0\u524d\u505c\u6b62\u7684\u64cd\u4f5c\uff0c\u5e76\u4e14\u6211\u4eec\u8fd8\u53ef\u4ee5\u5728\u968f\u673a\u68af\u5ea6\u4e0b\u964d\u7684\u8fed\u4ee3\u4e2d\u4e3a\u9a8c\u8bc1\u96c6\u8bbe\u7f6e\u5176\u4ed6\u7684\u76d1\u63a7\u6307\u6807\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u4e0b\u9762\u7684python\u811a\u672c\u53ef\u4ee5\u7528\u4e8e\u5728ffm\u683c\u5f0f\u7684\u6570\u636e\u96c6\u4e0a\u4f7f\u7528xLearn\u6765\u8bad\u7ec3\u548c\u8c03\u6574FFM\u6a21\u578b\u7684\u8d85\u53c2\u6570\u3002<\/span><\/p>\n<div class=\"img-container\"><\/div>\n<div class=\"img-container\"><\/div>\n<p><span class=\"bjh-p\">\u8be5\u5e93\u8fd8\u5141\u8bb8\u6211\u4eec\u4f7f\u7528cv()\u51fd\u6570\u8fdb\u884c\u4ea4\u53c9\u9a8c\u8bc1\uff1a<\/span><\/p>\n<div class=\"img-container\"><\/div>\n<p><span class=\"bjh-p\">\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u7247\u6bb5\u5bf9\u6d4b\u8bd5\u96c6\u8fdb\u884c\u9884\u6d4b\uff1a<\/span><\/p>\n<div class=\"img-container\"><\/div>\n<p><span class=\"bjh-p\">\u7ed3\u8bed<\/span><\/p>\n<p><span class=\"bjh-p\">\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5df2\u7ecf\u6f14\u793a\u4e86\u5bf9\u4e00\u822c\u5206\u7c7b\/\u56de\u5f52\u95ee\u9898\u7684\u56e0\u5f0f\u5206\u89e3\u7684\u7528\u6cd5\u3002\u5982\u679c\u60a8\u5728\u6267\u884c\u8fd9\u4e2a\u7b97\u6cd5\u7684\u8fc7\u7a0b\u4e2d\u9047\u5230\u4efb\u4f55\u95ee\u9898\u8bf7\u53ca\u65f6\u544a\u77e5\u6211\u4eec\u3002\u6709\u5173xLearn\u8be6\u7ec6\u6587\u6863\u5c06\u5728\u8fd9\u4e2a\u94fe\u63a5\u4e2d\u7ed9\u51fa\uff0c\u5e76\u4f1a\u5f97\u5230\u5b9a\u671f\u66f4\u65b0\u548c\u652f\u6301\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">http:\/\/xlearn-doc.readthedocs.io\/en\/latest\/python_api.html<\/span><\/p>\n<p><span class=\"bjh-p\">\u539f\u6587\u94fe\u63a5\uff1a<\/span><\/p>\n<p><span class=\"bjh-p\"><\/span><\/p>\n<div class=\"img-container\"><\/div>\n<p><span class=\"bjh-p\">\u5f20\u5a9b\uff0c\u67d0\u4e91\u8ba1\u7b97\u516c\u53f8\u4e0d\u52a1\u6b63\u4e1a\u670d\u52a1\u5de5\u7a0b\u5e08\u4e00\u679a\u3002\u559c\u6b22\u4e0b\u96e8\u5929\uff0c\u8bfb\u95f2\u4e66\uff0c\u7f3a\u4e4f\u6280\u672f\u7ec6\u80de\uff0c\u6b23\u8d4f\u5e76\u559c\u6b22\u6709\u6001\u5ea6\u6709\u7acb\u573a\u7684\u4eba\uff0c\u7231\u6d6a\u6f2b\uff0c\u6ce8\u91cd\u4eea\u5f0f\u611f\uff0c\u559c\u6b22\u8bb0\u5f55\u3002\u6700\u8fd1\u7684\u613f\u671b\u662f\u62e5\u6709\u81ea\u5df1\u7684\u5c0f\u7a9d\uff0c\u7ed9\u60f3\u5ff5\u7684\u4eba\u5199\u4e00\u5c01\u4fe1\u3002<\/span><\/p>\n<p><span class=\"bjh-p\">\u66f4\u591a\u7cbe\u5f69\u8bf7\u5173\u6ce8\u6e05\u534e-\u9752\u5c9b\u6570\u636e\u79d1\u5b66\u7814\u7a76\u9662\u5b98\u65b9\u5fae\u4fe1\u516c\u4f17\u5e73\u53f0\u201c\u6570\u636e\u6d3eTHU\u201d<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f5c\u8005\uff1aANKIT CHOUDHARY \u7ffb\u8bd1\uff1a\u5f20\u5a9b \u672f\u8bed\u6821\u5bf9\uff1a\u51af\u7fbd \u6587\u5b57\u6821\u5bf9\uff1a\u8c2d\u4f73\u7476 \u672c\u6587\u51713933\u5b57\uff0c\u5efa\u8bae\u9605\u8bfb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[70],"class_list":["post-27812","post","type-post","status-publish","format-standard","hentry","category-news","tag-70"],"_links":{"self":[{"href":"https:\/\/www.fagao.me\/p\/wp-json\/wp\/v2\/posts\/27812","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fagao.me\/p\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fagao.me\/p\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fagao.me\/p\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fagao.me\/p\/wp-json\/wp\/v2\/comments?post=27812"}],"version-history":[{"count":0,"href":"https:\/\/www.fagao.me\/p\/wp-json\/wp\/v2\/posts\/27812\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.fagao.me\/p\/wp-json\/wp\/v2\/media?parent=27812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fagao.me\/p\/wp-json\/wp\/v2\/categories?post=27812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fagao.me\/p\/wp-json\/wp\/v2\/tags?post=27812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}