{"id":1986,"date":"2025-03-22T07:39:00","date_gmt":"2025-03-21T23:39:00","guid":{"rendered":"https:\/\/blog.laoyulaoyu.top\/?p=1986"},"modified":"2025-03-05T10:19:14","modified_gmt":"2025-03-05T02:19:14","slug":"ai-qlib-%e9%a2%a0%e8%a6%86%e9%87%8f%e5%8c%96%e6%8a%95%e8%b5%84%ef%bc%9f%e6%8f%ad%e7%a7%98%e5%be%ae%e8%bd%af%e5%bc%80%e6%ba%90%e5%b9%b3%e5%8f%b0%e5%b8%a6%e6%9d%a5%e7%9a%84%e6%99%ba%e8%83%bd%e4%ba%a4","status":"publish","type":"post","link":"https:\/\/www.laoyulaoyu.com\/index.php\/2025\/03\/22\/ai-qlib-%e9%a2%a0%e8%a6%86%e9%87%8f%e5%8c%96%e6%8a%95%e8%b5%84%ef%bc%9f%e6%8f%ad%e7%a7%98%e5%be%ae%e8%bd%af%e5%bc%80%e6%ba%90%e5%b9%b3%e5%8f%b0%e5%b8%a6%e6%9d%a5%e7%9a%84%e6%99%ba%e8%83%bd%e4%ba%a4\/","title":{"rendered":"AI + Qlib \u98a0\u8986\u91cf\u5316\u6295\u8d44\uff1f\u63ed\u79d8\u5fae\u8f6f\u5f00\u6e90\u5e73\u53f0\u5e26\u6765\u7684\u667a\u80fd\u4ea4\u6613\u9769\u547d"},"content":{"rendered":"\n<p>\u4f5c\u8005\uff1a<a href=\"https:\/\/www.laoyulaoyu.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u8001\u4f59\u635e\u9c7c<\/a><\/p>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-cyan-bluish-gray-color\">\u539f\u521b\u4e0d\u6613\uff0c\u8f6c\u8f7d\u8bf7\u6807\u660e\u51fa\u5904\u53ca\u539f\u4f5c\u8005\u3002<\/mark><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"900\" height=\"383\" src=\"https:\/\/blog.laoyulaoyu.top\/wp-content\/uploads\/2025\/03\/framework-abstract-1.jpg\" alt=\"\" class=\"wp-image-1998\" srcset=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2025\/03\/framework-abstract-1.jpg 900w, https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2025\/03\/framework-abstract-1-300x128.jpg 300w, https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2025\/03\/framework-abstract-1-768x327.jpg 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<pre class=\"wp-block-verse\"><strong>\u5199\u5728\u524d\u9762\u7684\u8bdd\uff1a<\/strong>\u5728\u4eba\u5de5\u667a\u80fd\u4e0e\u6570\u5b57\u91d1\u878d\u4e0d\u65ad\u878d\u5408\u7684\u4eca\u5929\uff0c\u91cf\u5316\u4ea4\u6613\u6b63\u8fce\u6765\u4e00\u573a\u9769\u547d\u3002<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">\u5fae\u8f6f\u7684\u5f00\u6e90<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">\u91cf\u5316\u5e73\u53f0<\/mark>Qlib\uff0c\u51ed\u501f\u5168\u6d41\u7a0b\u652f\u6301\u3001\u81ea\u52a8\u5316\u5de5\u4f5c\u6d41\u548c\u591a\u79cd\u5148\u8fdb\u7b97\u6cd5\uff0c\u4e3a\u6295\u8d44\u8005\u548c\u7814\u7a76\u8005\u63d0\u4f9b\u4e86\u4e00\u4e2a\u4f4e\u95e8\u69db\u3001\u9ad8\u6548\u7387\u7684\u91cf\u5316\u6295\u8d44\u89e3\u51b3\u65b9\u6848\u3002<\/mark>\u672c\u6587\u5c06\u5e26\u4f60\u6df1\u5165\u4e86\u89e3Qlib\u7684\u8bde\u751f\u3001\u4f18\u52bf\u3001\u98a0\u8986\u6027\u5f71\u54cd\uff0c\u4ee5\u53ca\u57fa\u4e8eQlib\u6784\u5efa\u7684NVIDIA\u80a1\u7968\u4ea4\u6613\u7b56\u7565\u548c\u5168\u5de5\u4f5c\u6d41\u914d\u7f6e\u7684\u6848\u4f8b\uff0c\u6700\u540e\u63a2\u8ba8Qlib\u8fd9\u7c7b\u5f00\u6e90\u5e73\u53f0\u5e26\u6765\u7684\u672a\u6765\u673a\u9047\u3002<\/pre>\n<\/blockquote>\n\n\n\n<p>\u524d\u51e0\u5929\u6211\u5199\u4e86\u4e00\u7bc7\u9898\u4e3a\uff1a<strong><strong>\u672a\u6765\u7684\u91cf\u5316\u4ea4\u6613\u4e3b\u821e\u53f0\uff0c\u5c5e\u4e8eAI<strong>\u4e0e<\/strong>\u5f00\u6e90\u5171\u821e\uff01<\/strong><\/strong>\u7684\u6587\u7ae0\uff0c\u5f15\u8d77\u4e86\u5927\u5bb6\u5e7f\u6cdb\u7684\u5173\u6ce8\u548c\u8ba8\u8bba\u3002\u501f\u6b64\u673a\u4f1a\uff0c\u6211\u60f3\u5411\u5927\u5bb6\u4ecb\u7ecd\u8fd9\u573a&#8221;AI\u4e0e\u5f00\u6e90\u5171\u821e&#8221;\u821e\u53f0\u4e0a\u7684\u9996\u4f4d\u821e\u8005\u2014\u2014\u5fae\u8f6fQlib\u5e73\u53f0\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e00\u3001Qlib\u7684\u524d\u4e16\u4eca\u751f<\/strong><\/h2>\n\n\n\n<p>\u5fae\u8f6f\u4e9a\u6d32\u7814\u7a76\u9662\u4e8e2020\u5e749\u6708\u6b63\u5f0f\u5f00\u6e90\u4e86<strong>\u4e1a\u754c\u9996\u4e2a AI \u91cf\u5316\u6295\u8d44\u5e73\u53f0\u2014\u2014Qlib<\/strong>\uff0c\u5e76\u5728 GitHub \u4e0a\u5f00\u653e\u4e86\u5168\u90e8\u6e90\u4ee3\u7801\uff0c\u800c\u4e14\u8fd8\u5728\u6301\u7eed\u66f4\u65b0\uff08\u6700\u540e\u4e00\u6b21\u66f4\u65b0\u662f\u4eca\u5e74\u6625\u8282\u524d\uff09\u3002Qlib\u65e8\u5728\u6253\u9020\u4e00\u4e2a\u901a\u7528\u6280\u672f\u5e73\u53f0\uff0c\u5b9e\u73b0\u4ece\u6570\u636e\u5904\u7406\u3001\u6a21\u578b\u8bad\u7ec3\u3001\u7b56\u7565\u56de\u6d4b\u5230\u6295\u8d44\u7ec4\u5408\u4f18\u5316\u7684 AI \u95ed\u73af\u3002<\/p>\n\n\n\n<p>\u5b83\u7684\u63a8\u51fa\u4e0d\u4ec5\u5c55\u73b0\u4e86AI\u5728\u91d1\u878d\u79d1\u6280\u9886\u57df\u7684\u5f3a\u5927\u6f5c\u529b\uff0c\u66f4\u4f53\u73b0\u4e86\u5f00\u6e90\u7cbe\u795e\u5728\u63a8\u52a8\u884c\u4e1a\u8fdb\u6b65\u4e2d\u7684\u5173\u952e\u4f5c\u7528\u3002\u8fd9\u4e2a\u5e73\u53f0\u7684\u51fa\u73b0\uff0c\u6807\u5fd7\u7740\u91cf\u5316\u4ea4\u6613\u6b63\u8fc8\u5411\u4e00\u4e2a\u5d2d\u65b0\u7684\u65f6\u4ee3\uff0c\u5176\u4e2dAI\u4e0e\u5f00\u6e90\u6280\u672f\u7684\u534f\u540c\u521b\u65b0\u5c06\u6210\u4e3a\u9a71\u52a8\u884c\u4e1a\u53d1\u5c55\u7684\u6838\u5fc3\u52a8\u529b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"366\" src=\"https:\/\/blog.laoyulaoyu.top\/wp-content\/uploads\/2025\/03\/1740817098181-1024x366.png\" alt=\"\" class=\"wp-image-1989\" srcset=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2025\/03\/1740817098181-1024x366.png 1024w, https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2025\/03\/1740817098181-300x107.png 300w, https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2025\/03\/1740817098181-768x275.png 768w, https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2025\/03\/1740817098181.png 1258w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"898\" height=\"273\" src=\"https:\/\/blog.laoyulaoyu.top\/wp-content\/uploads\/2025\/03\/1740817237518.png\" alt=\"\" class=\"wp-image-1990\" srcset=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2025\/03\/1740817237518.png 898w, https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2025\/03\/1740817237518-300x91.png 300w, https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2025\/03\/1740817237518-768x233.png 768w\" sizes=\"(max-width: 898px) 100vw, 898px\" \/><\/figure>\n\n\n\n<p>\u5f00\u6e90\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/microsoft\/qlib\">https:\/\/github.com\/microsoft\/qlib<\/a><\/p>\n\n\n\n<p>\u5173\u4e8eQlib\u7684\u62a5\u9053\u7f51\u4e0a\u5f88\u591a\uff0c\u8fd9\u91cc\u5c31\u4e0d\u518d\u8d58\u8ff0\u4e86\u3002\u6211\u60f3\u5927\u5bb6\u66f4\u60f3\u4e86\u89e3\u7684\u662f\u8fd9\u51e0\u5e74\u6765\u5fae\u8f6f\u5f00\u6e90Qlib\u540e\u7684\u5b9e\u9645\u7528\u7684\u5982\u4f55\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1.1 \u6210\u529f\u6848\u4f8b\u4e0e\u5b9e\u8df5\u5e94\u7528<\/strong><\/h3>\n\n\n\n<p>\u8fd9\u51e0\u5e74\u6765\uff0cQlib\u5e73\u53f0\u5728\u591a\u4e2a\u573a\u666f\u4e2d\u90fd\u6709\u51fa\u8272\u8868\u73b0\uff0c\u4e0b\u9762\u5217\u4e3e\u51e0\u4e2a\u6210\u529f\u6848\u4f8b\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5f3a\u5316\u5b66\u4e60\u5728\u8ba2\u5355\u6267\u884c\u4e2d\u7684\u5e94\u7528<\/strong><br>\u5229\u7528\u591a\u667a\u80fd\u4f53\u534f\u4f5c\u5f3a\u5316\u5b66\u4e60\uff08MARL\uff09\u65b9\u6cd5\uff0cQlib\u5728\u8ba2\u5355\u6267\u884c\u4f18\u5316\u4e0a\u53d6\u5f97\u7a81\u7834\uff0c\u6709\u6548\u51cf\u5c11\u51b3\u7b56\u51b2\u7a81\u5e76\u63d0\u5347\u6574\u4f53\u5229\u6da6\u3002<\/li>\n\n\n\n<li><strong>\u9ad8\u6548\u6570\u636e\u5b58\u50a8\u4e0e\u8ba1\u7b97\u4f18\u5316<\/strong><br>\u91c7\u7528\u521b\u65b0\u6570\u636e\u5b58\u50a8\u65b9\u6848\u540e\uff0cQlib\u5728\u5b58\u50a8\u7a7a\u95f4\u5360\u7528\u548c\u56e0\u5b50\u8ba1\u7b97\u6548\u7387\u4e0a\u5747\u8d85\u8d8a\u4f20\u7edf\u6570\u636e\u5e93\uff08\u5982MySQL\u3001MongoDB\uff09\uff0c\u6781\u5927\u63d0\u9ad8\u4e86\u6570\u636e\u5904\u7406\u901f\u5ea6\u3002<\/li>\n\n\n\n<li><strong>\u534e\u6cf0\u91d1\u5de5\u56e2\u961f\u7684\u5b9e\u8df5\u7ecf\u9a8c<\/strong><br>\u534e\u6cf0\u91d1\u5de5\u7684\u6797\u6653\u660e\u56e2\u961f\u5728\u5b9e\u8df5\u4e2d\u5e94\u7528Qlib\uff0c\u8ba4\u4e3a\u5176\u6db5\u76d6\u4e86\u91cf\u5316\u6295\u8d44\u5168\u6d41\u7a0b\uff0c\u5e76\u5728\u6570\u636e\u5b58\u50a8\u548c\u8ba1\u7b97\u6548\u7387\u65b9\u9762\u8868\u73b0\u5353\u8d8a\uff0c\u4e3a\u7b56\u7565\u5f00\u53d1\u63d0\u4f9b\u4e86\u5f3a\u5927\u652f\u6301\u3002<\/li>\n\n\n\n<li><strong>\u5b66\u672f\u7814\u7a76\u4e0e\u6559\u80b2\u57f9\u8bad<\/strong><br>\u591a\u6240\u9ad8\u6821\u548c\u7814\u7a76\u673a\u6784\u5229\u7528Qlib\u8fdb\u884c\u91cf\u5316\u4ea4\u6613\u7406\u8bba\u9a8c\u8bc1\u4e0e\u6559\u5b66\u5b9e\u8df5\uff0c\u5e2e\u52a9\u5b66\u751f\u5728\u771f\u5b9e\u6570\u636e\u73af\u5883\u4e2d\u638c\u63e1\u91cf\u5316\u7b56\u7565\uff0c\u5b9e\u73b0\u7406\u8bba\u4e0e\u5b9e\u8df5\u7684\u9ad8\u6548\u5bf9\u63a5\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1.2 \u56db\u5e74\u6765\u7684\u5e94\u7528\u6548\u679c\u5982\u4f55\uff1f<\/strong><\/h3>\n\n\n\n<p>\u81eaQlib\u53d1\u5e03\u81f3\u4eca\u5df2\u8fc7\u53bb\u56db\u5e74\u591a\uff0c\u5176\u5b9e\u9645\u5e94\u7528\u6548\u679c\u4e3b\u8981\u4f53\u73b0\u5728\u4ee5\u4e0b\u65b9\u9762\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u63d0\u9ad8\u6548\u7387\u4e0e\u964d\u4f4e\u5f00\u53d1\u6210\u672c<\/strong><br>\u901a\u8fc7\u5168\u6d41\u7a0b\u652f\u6301\u548c\u9ad8\u6027\u80fd\u5e95\u5c42\u67b6\u6784\uff0c\u7528\u6237\u65e0\u9700\u9891\u7e41\u5207\u6362\u5de5\u5177\u5305\u5373\u53ef\u5b8c\u6210\u91cf\u5316\u7814\u7a76\uff0c\u663e\u8457\u964d\u4f4e\u4e86\u7b97\u6cd5\u4f7f\u7528\u95e8\u69db\u3002<\/li>\n\n\n\n<li><strong>\u521b\u65b0\u89e3\u51b3\u65b9\u6848\u843d\u5730<\/strong><br>Qlib\u5728\u6570\u636e\u5b58\u50a8\u3001\u56e0\u5b50\u8ba1\u7b97\u7b49\u65b9\u9762\u63d0\u51fa\u7684\u521b\u65b0\u89e3\u51b3\u65b9\u6848\u6709\u6548\u7f13\u89e3\u4e86\u4f20\u7edf\u91cf\u5316\u7b56\u7565\u5f00\u53d1\u4e2d\u7684\u6027\u80fd\u74f6\u9888\uff0c\u7f29\u77ed\u4e86\u7b56\u7565\u8fed\u4ee3\u5468\u671f\u3002<\/li>\n\n\n\n<li><strong>\u5b9e\u6218\u6548\u679c\u663e\u8457<\/strong><br>\u591a\u79cdAI\u6a21\u578b\uff08\u4f8b\u5982GNN\u548cLightGBM\uff09\u5728\u5b9e\u76d8\u56de\u6d4b\u4e2d\u5c55\u73b0\u4e86\u4f18\u5f02\u7684\u8d85\u989d\u6536\u76ca\uff0c\u90e8\u5206\u7b56\u7565\u5728\u6caa\u6df1300\u7b49\u4e3b\u6d41\u5e02\u573a\u4e2d\u8868\u73b0\u5c24\u4e3a\u62a2\u773c\u3002<\/li>\n\n\n\n<li><strong>\u4fc3\u8fdb\u751f\u6001\u5171\u5efa<\/strong><br>\u5f00\u6e90\u7684\u7279\u6027\u8ba9Qlib\u6210\u4e3a\u91cf\u5316\u6295\u8d44\u9886\u57df\u7684\u516c\u5171\u57fa\u7840\u8bbe\u65bd\uff0c\u63a8\u52a8\u4e86\u6280\u672f\u5171\u4eab\u4e0e\u793e\u533a\u53d1\u5c55\uff0c\u8fdb\u4e00\u6b65\u6fc0\u53d1\u4e86\u521b\u65b0\u6d3b\u529b\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u4ee5\u4e0a\u5e94\u7528\u6548\u679c\u3001\u6210\u529f\u6848\u4f8b\u548c\u5b9e\u8df5\u5e94\u7528\u4fe1\u606f\u662f\u4ece\u4ee5\u4e0b\u4e92\u8054\u7f51\u62a5\u9053\u4e2d\u6536\u96c6\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u65b0\u6d6a\u8d22\u7ecf\uff1a\u5fae\u8f6f\u4e9a\u6d32\u7814\u7a76\u9662\u5f00\u6e90Qlib<\/li>\n\n\n\n<li>\u534e\u6cf0\u7814\u7a76\u9662\u62a5\u544a\uff1aQlib\u5f00\u6e90\u5e73\u53f0\u89e3\u6790<\/li>\n\n\n\n<li>\u77e5\u4e4e\u95ee\u7b54\uff1aQlib\u7684\u5b9e\u9645\u5e94\u7528\u6548\u679c\u5982\u4f55\uff1f<\/li>\n\n\n\n<li>\u805a\u5bbdDemo\uff1aQlib\u5b9e\u6218\u5e94\u7528\u6848\u4f8b<\/li>\n\n\n\n<li>\u5934\u6761\uff1aQlib\u5e73\u53f0\u7684\u6700\u65b0\u8fdb\u5c55<\/li>\n\n\n\n<li>\u7f51\u6613\u8d22\u7ecf\uff1aQlib\u5e73\u53f0\u52a9\u529b\u91cf\u5316\u6295\u8d44<\/li>\n\n\n\n<li>CSDN\u4e13\u680f\uff1aQlib\u5e73\u53f0\u7684\u5168\u9762\u89e3\u6790<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e8c\u3001<strong>Qlib<\/strong><\/strong> <strong>\u529f\u80fd\u4ecb\u7ecd<\/strong><\/h2>\n\n\n\n<p>Qlib\u4e13\u6ce8\u4e8e\u91cf\u5316\u91d1\u878d\u9886\u57df\u3002\u5b83\u63d0\u4f9b\u4e86\u4e00\u6574\u5957\u7684\u5de5\u5177\u548c\u6846\u67b6\uff0c\u652f\u6301\u6570\u636e\u5904\u7406\u3001\u7279\u5f81\u5de5\u7a0b\u3001\u6a21\u578b\u8bad\u7ec3\u548c\u7b56\u7565\u56de\u6d4b\u7b49\u529f\u80fd\u3002Qlib\u7684\u8bbe\u8ba1\u7406\u5ff5\u662f\u5c06\u590d\u6742\u7684\u91cf\u5316\u7814\u7a76\u6d41\u7a0b\u7b80\u5316\uff0c\u4f7f\u5f97\u7528\u6237\u80fd\u591f\u66f4\u4e13\u6ce8\u4e8e\u7b56\u7565\u7684\u5f00\u53d1\u548c\u4f18\u5316\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2.1 Qlib \u6838\u5fc3\u529f\u80fd\u6982\u89c8<\/strong><\/h3>\n\n\n\n<p>Qlib\u63d0\u4f9b\u4e86\u4e00\u6574\u5957\u8986\u76d6\u91cf\u5316\u6295\u8d44\u5168\u6d41\u7a0b\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u5176\u4e3b\u8981\u529f\u80fd\u5305\u62ec\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"902\" height=\"764\" src=\"https:\/\/blog.laoyulaoyu.top\/wp-content\/uploads\/2025\/03\/image-1.png\" alt=\"\" class=\"wp-image-1995\" style=\"width:544px;height:auto\" srcset=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2025\/03\/image-1.png 902w, https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2025\/03\/image-1-300x254.png 300w, https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2025\/03\/image-1-768x651.png 768w\" sizes=\"(max-width: 902px) 100vw, 902px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6570\u636e\u5904\u7406\uff1a<\/strong><br>\u652f\u6301\u591a\u79cd\u91d1\u878d\u6570\u636e\u683c\u5f0f\u53ca\u9ad8\u9891\u6570\u636e\u5904\u7406\uff0c\u5185\u7f6e\u4e30\u5bcc\u7684\u7279\u5f81\u5de5\u7a0b\u4e0e\u6570\u636e\u6e05\u6d17\u5de5\u5177\u3002<\/li>\n\n\n\n<li><strong>\u6a21\u578b\u8bad\u7ec3\uff1a<\/strong><br>\u5185\u7f6e\u5e38\u7528AI\u6a21\u578b\uff0c\u540c\u65f6\u652f\u6301\u7528\u6237\u81ea\u5b9a\u4e49\u6a21\u578b\u7684\u7075\u6d3b\u96c6\u6210\u3002<\/li>\n\n\n\n<li><strong>\u7b56\u7565\u56de\u6d4b\uff1a<\/strong><br>\u5b8c\u5584\u7684\u56de\u6d4b\u7cfb\u7edf\u6a21\u62df\u771f\u5b9e\u5e02\u573a\u73af\u5883\uff0c\u652f\u6301\u591a\u79cd\u56de\u6d4b\u6a21\u5f0f\u548c\u7b56\u7565\u53c2\u6570\u8bbe\u7f6e\u3002<\/li>\n\n\n\n<li><strong>\u6295\u8d44\u7ec4\u5408\u4f18\u5316\u4e0e\u8ba2\u5355\u6267\u884c\uff1a<\/strong><br>\u4ece\u7b56\u7565\u751f\u6210\u5230\u98ce\u9669\u63a7\u5236\uff0c\u63d0\u4f9b\u4e00\u7ad9\u5f0f\u89e3\u51b3\u65b9\u6848\u3002<\/li>\n\n\n\n<li><strong>\u5b9e\u9a8c\u7ba1\u7406\u4e0e\u7ed3\u679c\u5206\u6790\uff1a<\/strong><br>\u901a\u8fc7Jupyter Notebook\u5c55\u793a\u8be6\u7ec6\u56fe\u5f62\u62a5\u544a\uff0c\u5305\u62ec\u56de\u6d4b\u66f2\u7ebf\u3001\u6536\u76ca\u5206\u5e03\u548c\u98ce\u9669\u6307\u6807\u7b49\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2.2 \u4e3a\u4ec0\u4e48\u9009\u62e9 Qlib\uff1f<\/strong><\/h3>\n\n\n\n<p>Qlib\u5e73\u53f0\u7684\u8bbe\u8ba1\u521d\u8877\u5c31\u662f\u4e3a\u91d1\u878d\u4ece\u4e1a\u8005\u63d0\u4f9b\u4e00\u4e2a\u5168\u6d41\u7a0b\u3001\u4e00\u7ad9\u5f0f\u7684\u91cf\u5316\u4ea4\u6613\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"996\" height=\"637\" src=\"https:\/\/blog.laoyulaoyu.top\/wp-content\/uploads\/2025\/03\/image.png\" alt=\"\" class=\"wp-image-1994\" srcset=\"https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2025\/03\/image.png 996w, https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2025\/03\/image-300x192.png 300w, https:\/\/www.laoyulaoyu.com\/wp-content\/uploads\/2025\/03\/image-768x491.png 768w\" sizes=\"(max-width: 996px) 100vw, 996px\" \/><\/figure>\n\n\n\n<p>\u4ee5\u4e0b\u51e0\u70b9\u8fdb\u4e00\u6b65\u9610\u91ca\u4e86\u5176\u6613\u7528\u6027\u4e0e\u9ad8\u6548\u6027\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5f00\u6e90\u4e0e\u6613\u7528\u6027\uff1a<\/strong> Qlib \u5b8c\u5168\u5f00\u6e90\uff0c\u57fa\u4e8e Python \u5f00\u53d1\uff0cAPI \u7b80\u6d01\u76f4\u89c2\uff0c\u65e0\u8bba\u662f\u521d\u5b66\u8005\u8fd8\u662f\u4e13\u5bb6\u90fd\u80fd\u5feb\u901f\u4e0a\u624b\u3002<\/li>\n\n\n\n<li><strong>\u5168\u6d41\u7a0b\u96c6\u6210\uff1a<\/strong> \u6570\u636e\u5904\u7406\u3001\u6a21\u578b\u8bad\u7ec3\u3001\u7b56\u7565\u56de\u6d4b\u3001\u6295\u8d44\u7ec4\u5408\u4f18\u5316\u7b49\u5168\u94fe\u8def\u529f\u80fd\u4e00\u7ad9\u5f0f\u89e3\u51b3\uff0c\u514d\u53bb\u7e41\u7410\u7684\u6570\u636e\u548c\u5de5\u5177\u5207\u6362\u3002<\/li>\n\n\n\n<li><strong>\u81ea\u52a8\u5316\u5de5\u4f5c\u6d41\uff1a<\/strong> \u5229\u7528 <code>qrun<\/code> \u5de5\u5177\uff0c\u4e00\u952e\u542f\u52a8\u6574\u4e2a\u91cf\u5316\u7814\u7a76\u6d41\u7a0b\uff0c\u6781\u5927\u63d0\u5347\u7814\u53d1\u6548\u7387\u3002<\/li>\n\n\n\n<li><strong>\u6a21\u5757\u5316\u8bbe\u8ba1\uff1a<\/strong> \u5404\u529f\u80fd\u6a21\u5757\u677e\u8026\u5408\uff0c\u7528\u6237\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u7075\u6d3b\u7ec4\u5408\u548c\u6269\u5c55\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e09\u3001Qlib\u5982\u4f55\u98a0\u8986\u4f20\u7edf\u91cf\u5316\u4ea4\u6613<\/strong><\/h2>\n\n\n\n<p>\u6b63\u5982\u5b98\u65b9\u6587\u6863\u6240\u63cf\u8ff0\uff0cQlib\u901a\u8fc7\u6a21\u5757\u5316\u8bbe\u8ba1\u548c\u81ea\u52a8\u5316\u5de5\u4f5c\u6d41\uff0c\u6539\u53d8\u4e86\u4f20\u7edf\u91cf\u5316\u4ea4\u6613\u6a21\u5f0f\u3002\u4e0b\u9762\u4ece\u4ee5\u4e0b\u4e09\u4e2a\u65b9\u9762\u7ed9\u5927\u5bb6\u8bf4\u4e0b\u6211\u7684\u7406\u89e3\uff0c\u5e76\u9644\u4e0a\u5173\u952e\u4ee3\u7801\u793a\u4f8b\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3.1  \u5168\u6d41\u7a0b\u652f\u6301<\/strong><\/h3>\n\n\n\n<p><strong>\u6570\u636e\u5904\u7406\uff1a<\/strong><br>Qlib\u5185\u7f6e\u4e30\u5bcc\u7684\u6570\u636e\u63a5\u5165\u3001\u6e05\u6d17\u548c\u9884\u5904\u7406\u5de5\u5177\uff0c\u652f\u6301\u80a1\u7968\u3001\u671f\u8d27\u7b49\u591a\u79cd\u91d1\u878d\u5de5\u5177\u7684\u5386\u53f2\u884c\u60c5\u3001\u57fa\u672c\u9762\u6570\u636e\u53ca\u9ad8\u9891\u6570\u636e\u5904\u7406\u3002<br><strong>\u793a\u4f8b\u4ee3\u7801\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>import qlib\nfrom qlib.data import D\nfrom qlib.config import C\nfrom qlib.utils import init_instance\n\n# \u8bbe\u7f6e Qlib \u6570\u636e\u5b58\u50a8\u8def\u5f84\uff0c\u5e76\u521d\u59cb\u5316\u73af\u5883\nC&#91;\"qlib_home\"] = \".\/qlib_data\"\ninit_instance()\n\n# \u52a0\u8f7dApple\u80a1\u7968\u65e5\u7ebf\u6570\u636e\uff1a\u6536\u76d8\u4ef7\u548c\u6210\u4ea4\u91cf\ndf = D.features(&#91;\"AAPL\"], fields=&#91;\"$close\", \"$volume\"], freq=\"day\")\nprint(df.head())<\/code><\/code><\/pre>\n\n\n\n<p><strong>\u6a21\u578b\u8bad\u7ec3\uff1a<\/strong><br>\u5e73\u53f0\u63d0\u4f9b\u7075\u6d3b\u7684API\u63a5\u53e3\u548c\u5185\u7f6e\u591a\u79cd\u5148\u8fdb\u6a21\u578b\uff08\u5982LightGBM\u3001LSTM\u3001Transformer\u7b49\uff09\uff0c\u652f\u6301\u7528\u6237\u81ea\u5b9a\u4e49\u6a21\u578b\u5f00\u53d1\u3002<br><strong>\u793a\u4f8b\u4ee3\u7801\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>from qlib.contrib.model.gbdt import LGBModel\nfrom qlib.workflow import R\n\n# \u5b9a\u4e49\u6a21\u578b\u53c2\u6570\nmodel = LGBModel(\n    loss=\"mse\",\n    num_leaves=64,\n    learning_rate=0.01,\n    n_estimators=100,\n)\n\n# \u6784\u5efa\u6570\u636e\u96c6\ntrain_data = D.dataset(\n    instruments=&#91;\"AAPL\"],\n    fields=&#91;\"$close\", \"$volume\"],\n    freq=\"day\",\n)\n\n# \u8bad\u7ec3\u6a21\u578b\nmodel.fit(train_data)\n\n# \u4fdd\u5b58\u8bad\u7ec3\u597d\u7684\u6a21\u578b\nR.save_object(model, \"trained_model.pkl\")<\/code><\/code><\/pre>\n\n\n\n<p><strong>\u7b56\u7565\u56de\u6d4b\uff1a<\/strong><br>\u5229\u7528\u5185\u7f6e\u56de\u6d4b\u7cfb\u7edf\u6a21\u62df\u771f\u5b9e\u5e02\u573a\u73af\u5883\u4e0b\u7684\u4ea4\u6613\u60c5\u51b5\uff0c\u5e2e\u52a9\u8bc4\u4f30\u7b56\u7565\u6709\u6548\u6027\u3002<br><strong>\u793a\u4f8b\u4ee3\u7801\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>from qlib.contrib.evaluate import backtest\n\n# \u5b9a\u4e49\u56de\u6d4b\u53c2\u6570\nbacktest_config = {\n    \"strategy\": {\"buy_threshold\": 0.01, \"sell_threshold\": -0.01},\n}\n# \u6267\u884c\u56de\u6d4b\nperformance = backtest(trained_model=model, config=backtest_config)\nprint(performance)<\/code><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3.2 AI\u6280\u672f\u96c6\u6210<\/strong><\/h3>\n\n\n\n<p><strong>\u591a\u79cd\u673a\u5668\u5b66\u4e60\u7b97\u6cd5\uff1a<\/strong><br>Qlib\u96c6\u6210\u4e86LightGBM\u3001LSTM\u7b49\u6a21\u578b\uff0c\u652f\u6301\u76d1\u7763\u5b66\u4e60\u3001\u5f3a\u5316\u5b66\u4e60\u53ca\u5143\u5b66\u4e60\u7b49\u591a\u8303\u5f0f\u5efa\u6a21\u3002<br><strong>\u81ea\u52a8\u5316\u7814\u7a76\u6d41\u7a0b\uff1a<\/strong><br>\u501f\u52a9<code>qrun<\/code>\u5de5\u5177\uff0c\u6574\u4e2a\u91cf\u5316\u7814\u7a76\u6d41\u7a0b\uff08\u6570\u636e\u52a0\u8f7d\u3001\u6a21\u578b\u8bad\u7ec3\u3001\u7b56\u7565\u56de\u6d4b\u53ca\u7ed3\u679c\u8bc4\u4f30\uff09\u5b9e\u73b0\u81ea\u52a8\u5316\u8fd0\u884c\u3002<br>\u4f8b\u5982\uff0c\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u8c03\u7528\u9884\u5148\u914d\u7f6e\u597d\u7684\u5de5\u4f5c\u6d41\u6587\u4ef6\u5373\u53ef\u542f\u52a8\u6574\u4e2a\u6d41\u7a0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>qrun workflow_config.yaml<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3. 3 \u964d\u4f4e\u4f7f\u7528\u95e8\u69db\u4e0e\u63d0\u9ad8\u6548\u7387<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5f00\u6e90\u4e0e\u6613\u7528\uff1a<\/strong><br>\u5b8c\u5168\u5f00\u6e90\u7684\u7279\u6027\u4f7f\u5f97\u521d\u5b66\u8005\u4e5f\u80fd\u5feb\u901f\u4e0a\u624b\uff0c\u57fa\u4e8ePython\u5f00\u53d1\uff0cAPI\u8bbe\u8ba1\u7b80\u6d01\u660e\u4e86\u3002<\/li>\n\n\n\n<li><strong>\u6a21\u5757\u5316\u8bbe\u8ba1\uff1a<\/strong><br>\u6bcf\u4e2a\u7ec4\u4ef6\u76f8\u5bf9\u72ec\u7acb\uff0c\u7528\u6237\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u7075\u6d3b\u7ec4\u5408\u548c\u66ff\u6362\u6a21\u5757\uff0c\u964d\u4f4e\u5f00\u53d1\u4e0e\u7ef4\u62a4\u6210\u672c\u3002<\/li>\n\n\n\n<li><strong>\u81ea\u52a8\u5316\u5de5\u4f5c\u6d41\uff1a<\/strong><br>\u4f7f\u7528<code>qrun<\/code>\u5de5\u5177\u53ef\u5b9e\u73b0\u4ece\u6570\u636e\u91c7\u96c6\u5230\u7b56\u7565\u8bc4\u4f30\u7684\u5168\u6d41\u7a0b\u81ea\u52a8\u5316\uff0c\u6781\u5927\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\u3002<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u56db\u3001\u5b9e\u8df5\u6848\u4f8b<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><br><strong>\u6848\u4f8b1\uff1a\u57fa\u4e8e Qlib \u7684 NVIDIA \u80a1\u7968\u4ea4\u6613\u7b56\u7565<\/strong><\/h3>\n\n\n\n<p>\u4ee5 NVIDIA\uff08NVDA\uff09\u4e3a\u4f8b\uff0c\u6211\u4eec\u6784\u5efa\u4e00\u4e2a\u57fa\u4e8e\u6ce2\u52a8\u7387\u4ea4\u6613\u7b56\u7565\u7684\u793a\u4f8b\uff1a\u5229\u7528 LSTM \u6a21\u578b\u5bf9\u672a\u6765\u8d8b\u52bf\u8fdb\u884c\u9884\u6d4b\uff0c\u5e76\u5728\u9884\u6d4b\u663e\u793a\u6f5c\u5728\u4e0b\u8dcc\u98ce\u9669\u65f6\u6267\u884c\u5356\u51fa\u770b\u8dcc\u671f\u6743\uff08Put Spread\uff09\u7b56\u7565\u3002\u4ee5\u4e0b\u4e3a\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>import qlib\nimport numpy as np\nfrom qlib.data import D\nfrom tensorflow.keras.models import Sequential\nfrom tensorflow.keras.layers import LSTM, Dense\n\n# \u521d\u59cb\u5316 Qlib\uff0c\u5047\u8bbe\u6570\u636e\u5b58\u50a8\u5728\u6307\u5b9a\u8def\u5f84\uff08\u4ee5\u7f8e\u80a1\u6570\u636e\u4e3a\u4f8b\uff09\nqlib.init(provider_uri='~\/.qlib\/qlib_data\/us_data')\n\n# \u52a0\u8f7d NVIDIA \u7684\u65e5\u7ebf\u6570\u636e\uff08\u6536\u76d8\u4ef7\u4e0e\u6210\u4ea4\u91cf\uff09\nnvda_df = D.features(&#91;\"NVDA\"], fields=&#91;\"$close\", \"$volume\"], freq=\"day\")\nprint(\"NVDA Data Head:\\n\", nvda_df.head())\n\n# \u63d0\u53d6\u6536\u76d8\u4ef7\u5e76\u5f52\u4e00\u5316\ndata = nvda_df&#91;\"NVDA\"]&#91;'$close'].values\ndata_norm = (data - np.min(data)) \/ (np.max(data) - np.min(data))\n\n# \u6784\u5efa LSTM \u6570\u636e\u96c6\uff1a\u4f7f\u7528\u8fc7\u53bb 10 \u5929\u6570\u636e\u9884\u6d4b\u7b2c 11 \u5929\u7684\u6536\u76d8\u4ef7\ndef create_dataset(data, window_size=10):\n    X, y = &#91;], &#91;]\n    for i in range(len(data) - window_size):\n        X.append(data&#91;i:i+window_size])\n        y.append(data&#91;i+window_size])\n    return np.array(X), np.array(y)\n\nwindow_size = 10\nX, y = create_dataset(data_norm, window_size)\nX = X.reshape((X.shape&#91;0], window_size, 1))\n\n# \u6784\u5efa LSTM \u6a21\u578b\nmodel = Sequential()\nmodel.add(LSTM(50, input_shape=(window_size, 1)))\nmodel.add(Dense(1))\nmodel.compile(optimizer='adam', loss='mse')\n\n# \u8bad\u7ec3\u6a21\u578b\uff08\u793a\u4f8b\u4e2d\u4ec5\u8bad\u7ec3 10 \u4e2a epochs\uff09\nmodel.fit(X, y, epochs=10, batch_size=16, verbose=1)\n\n# \u5bf9\u6700\u65b0\u4e00\u7ec4\u6570\u636e\u8fdb\u884c\u9884\u6d4b\nlatest_data = X&#91;-1].reshape(1, window_size, 1)\npredicted_norm = model.predict(latest_data)\nprint(\"Predicted normalized close price:\", predicted_norm)\n\n# \u5047\u8bbe\u4ea4\u6613\u903b\u8f91\uff1a\u82e5\u9884\u6d4b\u503c\u4f4e\u4e8e 0.4\uff0c\u89c6\u4e3a\u4e0b\u8dcc\u4fe1\u53f7\uff0c\u6267\u884c\u5356\u51fa\u770b\u8dcc\u671f\u6743\uff08Put Spread\uff09\u7b56\u7565\nif predicted_norm &lt; 0.4:\n    print(\"\u4fe1\u53f7\uff1a\u9884\u6d4b\u663e\u793a\u672a\u6765\u53ef\u80fd\u4e0b\u8dcc\uff0c\u5efa\u8bae\u6267\u884c\u5356\u51fa\u770b\u8dcc\u671f\u6743\uff08Put Spread\uff09\u7b56\u7565\u3002\")\nelse:\n    print(\"\u4fe1\u53f7\uff1a\u65e0\u663e\u8457\u4e0b\u8dcc\u98ce\u9669\uff0c\u5efa\u8bae\u7ef4\u6301\u73b0\u6709\u4ed3\u4f4d\u3002\")<span style=\"background-color: initial; font-family: inherit; font-size: inherit;\"><\/span><\/code><\/code><\/pre>\n\n\n\n<p><em>\u8bf4\u660e\uff1a\u4ee5\u4e0a\u4ee3\u7801\u4e3a\u793a\u4f8b\uff0c\u5b9e\u9645\u7b56\u7565\u4e2d\u53ef\u80fd\u9700\u8981\u66f4\u591a\u56e0\u5b50\u3001\u591a\u6a21\u578b\u878d\u5408\u4ee5\u53ca\u98ce\u9669\u7ba1\u7406\u6a21\u5757\u7684\u652f\u6301\u3002<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u6848\u4f8b2\uff1a\u5b8c\u6574\u5de5\u4f5c\u6d41\u914d\u7f6e\u793a\u4f8b<\/strong><\/h3>\n\n\n\n<p>\u4ee5\u4e0b\u4ee3\u7801\u793a\u4f8b\u5c55\u793a\u4e86\u5982\u4f55\u6784\u5efa\u5b8c\u6574\u7684\u5de5\u4f5c\u6d41\u914d\u7f6e\uff0c\u5e76\u901a\u8fc7<code>qrun<\/code>\u81ea\u52a8\u8fd0\u884c\u6574\u4e2a\u7b56\u7565\u6d41\u7a0b\u3002\u5de5\u4f5c\u6d41\u6587\u4ef6\u901a\u5e38\u91c7\u7528YAML\u683c\u5f0f\u4fdd\u5b58\uff0c\u5305\u542b\u6570\u636e\u96c6\u3001\u6a21\u578b\u53ca\u56de\u6d4b\u914d\u7f6e\u3002<\/p>\n\n\n\n<p><strong>\u5de5\u4f5c\u6d41\u914d\u7f6e\u793a\u4f8b\uff08workflow_config.yaml\uff09\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>qlib_init:\n  provider_uri: \"~\/.qlib\/qlib_data\/cn_data\"\n  region: cn\n  market: &amp;market csi300\n  benchmark: &amp;benchmark SH000300\n  data_handler_config: &amp;data_handler_config\n    start_time: 2008-01-01\n    end_time: 2020-08-01\n    fit_start_time: 2008-01-01\n    fit_end_time: 2014-12-31\n    instruments: *market\n  port_analysis_config: &amp;port_analysis_config\n    strategy:\n      class: TopkDropoutStrategy\n      module_path: qlib.contrib.strategy.strategy\n      kwargs:\n        topk: 50\n        n_drop: 5\n    backtest:\n      limit_threshold: 0.095\n      account: 100000000\n      benchmark: *benchmark\n      deal_price: close\n      open_cost: 0.0005\n      close_cost: 0.0015\n      min_cost: 5\n\ntask:\n  model:\n    class: LGBModel\n    module_path: qlib.contrib.model.gbdt\n    kwargs:\n      loss: mse\n      colsample_bytree: 0.8879\n      learning_rate: 0.0421\n      subsample: 0.8789\n      lambda_l1: 205.6999\n      lambda_l2: 580.9768\n      max_depth: 8\n      num_leaves: 210\n      num_threads: 20\n  dataset:\n    class: DatasetH\n    module_path: qlib.data.dataset\n    kwargs:\n      handler:\n        class: Alpha158\n        module_path: qlib.contrib.data.handler\n        kwargs: *data_handler_config\n      segments:\n        train: &#91;2008-01-01, 2014-12-31]\n        valid: &#91;2015-01-01, 2016-12-31]\n        test: &#91;2017-01-01, 2020-08-01]\n  record:\n    - class: SignalRecord\n      module_path: qlib.workflow.record_temp\n      kwargs: {}\n    - class: PortAnaRecord\n      module_path: qlib.workflow.record_temp\n      kwargs:\n        config: *port_analysis_config<span style=\"background-color: initial; font-family: inherit; font-size: inherit;\"><\/span><\/code><\/code><\/pre>\n\n\n\n<p>\u914d\u7f6e\u597d\u5de5\u4f5c\u6d41\u540e\uff0c\u53ea\u9700\u5728\u547d\u4ee4\u884c\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u5373\u53ef\u81ea\u52a8\u542f\u52a8\u6574\u4e2a\u91cf\u5316\u7814\u7a76\u6d41\u7a0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>qrun workflow_config.yaml<\/code><\/pre>\n\n\n\n<p>\u8fd0\u884c\u5b8c\u6210\u540e\uff0c\u7cfb\u7edf\u4f1a\u751f\u6210\u8be6\u7ec6\u7684\u7b56\u7565\u62a5\u544a\uff08\u5305\u62ec\u56de\u6d4b\u66f2\u7ebf\u3001\u6536\u76ca\u5206\u5e03\u3001IC\u5206\u5e03\u7b49\uff09\uff0c\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528Jupyter Notebook\u67e5\u770b\u66f4\u76f4\u89c2\u7684\u56fe\u5f62\u5316\u5206\u6790\u7ed3\u679c\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u4e94\u3001\u89c2\u70b9\u603b\u7ed3<\/strong><\/h2>\n\n\n\n<p>\u968f\u7740\u4eba\u5de5\u667a\u80fd\u548c\u5927\u6570\u636e\u6280\u672f\u7684\u4e0d\u65ad\u7a81\u7834\uff0c\u91cf\u5316\u4ea4\u6613\u5c06\u8fce\u6765\u66f4\u667a\u80fd\u3001\u66f4\u9ad8\u6548\u7684\u53d1\u5c55\u65f6\u4ee3\u3002\u901a\u8fc7Qlib\u548cNautilusTrader\u8fd9\u4e9b\u5f00\u6e90\u5e73\u53f0\u7684\u51fa\u73b0\uff0c\u6211\u4eec\u53ef\u4ee5\u6e05\u6670\u5730\u770b\u5230\uff0c\u672a\u6765\u91cf\u5316\u4ea4\u6613\u7684\u53d1\u5c55\u5c06\u4e0d\u518d\u5c40\u9650\u4e8e\u5355\u4e00\u6280\u672f\u7684\u7a81\u7834\uff0c\u800c\u662fAI\u7b97\u6cd5\u4e0e\u5f00\u6e90\u751f\u6001\u7cfb\u7edf\u7684\u6709\u673a\u7ed3\u5408\u3002\u8fd9\u79cd\u878d\u5408\u4e0d\u4ec5\u80fd\u591f\u52a0\u901f\u91d1\u878d\u79d1\u6280\u7684\u521b\u65b0\u6b65\u4f10\uff0c\u8fd8\u5c06\u4e3a\u91cf\u5316\u4ea4\u6613\u5e26\u6765\u66f4\u591a\u53ef\u80fd\u6027\uff0c\u63a8\u52a8\u6574\u4e2a\u884c\u4e1a\u5411\u7740\u66f4\u667a\u80fd\u3001\u66f4\u5f00\u653e\u7684\u65b9\u5411\u8fc8\u8fdb\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6df1\u5ea6\u878d\u5408\u66f4\u591a\u524d\u6cbf AI \u6a21\u578b\uff0c\u63d0\u5347\u7b56\u7565\u9884\u6d4b\u51c6\u786e\u7387\u3002<\/li>\n\n\n\n<li>\u6269\u5c55\u81f3\u66f4\u591a\u5e02\u573a\u548c\u8d44\u4ea7\u7c7b\u522b\uff0c\u5b9e\u73b0\u5168\u7403\u5316\u91cf\u5316\u4ea4\u6613\u3002<\/li>\n\n\n\n<li>\u52a0\u5f3a\u4e0e\u9ad8\u9891\u4ea4\u6613\u3001\u671f\u6743\u4ea4\u6613\u7b49\u9886\u57df\u7684\u7ed3\u5408\uff0c\u6784\u5efa\u66f4\u5168\u9762\u7684\u6295\u8d44\u51b3\u7b56\u4f53\u7cfb\u3002<\/li>\n\n\n\n<li>\u63a8\u52a8\u5f00\u6e90\u751f\u6001\u5efa\u8bbe\uff0c\u4fc3\u8fdb\u91cf\u5316\u6295\u8d44\u9886\u57df\u7684\u6280\u672f\u5171\u4eab\u4e0e\u534f\u540c\u521b\u65b0\u3002<\/li>\n\n\n\n<li>\u63a2\u7d22\u81ea\u52a8\u5316\u98ce\u9669\u63a7\u5236\u548c\u5b9e\u65f6\u7b56\u7565\u8c03\u6574\uff0c\u5b9e\u73b0\u771f\u6b63\u7684\u667a\u80fd\u91cf\u5316\u4ea4\u6613\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u5c55\u671b\u672a\u6765\uff0cAI\u4e0e\u91cf\u5316\u4ea4\u6613\u7684\u6df1\u5ea6\u878d\u5408\u5c06\u4e3a\u6295\u8d44\u51b3\u7b56\u5e26\u6765\u66f4\u9ad8\u7cbe\u5ea6\u3001\u66f4\u4f4e\u98ce\u9669\u7684\u5168\u65b0\u6a21\u5f0f\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><em>\u611f\u8c22\u60a8\u9605\u8bfb\u5230\u6700\u540e\uff0c\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u4e3a\u60a8\u5e26\u6765\u4e86\u65b0\u7684\u542f\u53d1\u548c\u5b9e\u7528\u7684\u77e5\u8bc6\uff01\u5982\u679c\u89c9\u5f97\u6709\u5e2e\u52a9\uff0c\u8bf7\u4e0d\u541d\u70b9\u8d5e\u548c\u5206\u4eab\uff0c\u60a8\u7684\u652f\u6301\u662f\u6211\u6301\u7eed\u521b\u4f5c\u7684\u52a8\u529b\u3002\u795d\u60a8\u6295\u8d44\u987a\u5229\uff0c\u6536\u76ca\u957f\u8679\uff01\u5982\u679c\u5bf9\u6587\u4e2d\u5185\u5bb9\u6709\u4efb\u4f55\u7591\u95ee\uff0c\u6b22\u8fce\u7559\u8a00\uff0c\u6211\u4f1a\u5c3d\u5feb\u56de\u590d\uff01<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"has-text-align-center\" id=\"a1c6\">\u672c\u6587\u5185\u5bb9\u4ec5\u9650\u6280\u672f\u63a2\u8ba8\u548c\u5b66\u4e60\uff0c\u4e0d\u6784\u6210\u4efb\u4f55\u6295\u8d44\u5efa\u8bae\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f5c\u8005\uff1a\u8001\u4f59\u635e\u9c7c \u539f\u521b\u4e0d\u6613\uff0c\u8f6c\u8f7d\u8bf7\u6807\u660e\u51fa\u5904\u53ca\u539f\u4f5c\u8005\u3002&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/www.laoyulaoyu.com\/index.php\/2025\/03\/22\/ai-qlib-%e9%a2%a0%e8%a6%86%e9%87%8f%e5%8c%96%e6%8a%95%e8%b5%84%ef%bc%9f%e6%8f%ad%e7%a7%98%e5%be%ae%e8%bd%af%e5%bc%80%e6%ba%90%e5%b9%b3%e5%8f%b0%e5%b8%a6%e6%9d%a5%e7%9a%84%e6%99%ba%e8%83%bd%e4%ba%a4\/\">Continue reading<span class=\"screen-reader-text\">AI + Qlib \u98a0\u8986\u91cf\u5316\u6295\u8d44\uff1f\u63ed\u79d8\u5fae\u8f6f\u5f00\u6e90\u5e73\u53f0\u5e26\u6765\u7684\u667a\u80fd\u4ea4\u6613\u9769\u547d<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[4,5,7],"class_list":{"0":"post-1986","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-aiinvest","7":"tag-ai","9":"tag-7","10":"entry"},"_links":{"self":[{"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts\/1986","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/comments?post=1986"}],"version-history":[{"count":6,"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts\/1986\/revisions"}],"predecessor-version":[{"id":1999,"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/posts\/1986\/revisions\/1999"}],"wp:attachment":[{"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/media?parent=1986"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/categories?post=1986"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laoyulaoyu.com\/index.php\/wp-json\/wp\/v2\/tags?post=1986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}