<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>量化投資套件 &#8211; FinLab</title>
	<atom:link href="https://www.finlab.tw/tag/%E9%87%8F%E5%8C%96%E6%8A%95%E8%B3%87%E5%A5%97%E4%BB%B6/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.finlab.tw</link>
	<description>深入淺出的量化投資，讓你在在茫茫股海中，找到專屬於自己的投資方法</description>
	<lastBuildDate>Sat, 11 Jun 2022 17:01:50 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.0.9</generator>

<image>
	<url>https://www.finlab.tw/wp-content/uploads/2020/07/favicon.png</url>
	<title>量化投資套件 &#8211; FinLab</title>
	<link>https://www.finlab.tw</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">179699571</site>	<item>
		<title>Qlib-巨人級的AI量化投資平台</title>
		<link>https://www.finlab.tw/qlib-intro/</link>
					<comments>https://www.finlab.tw/qlib-intro/#respond</comments>
		
		<dc:creator><![CDATA[Ben]]></dc:creator>
		<pubDate>Fri, 10 Jun 2022 05:15:44 +0000</pubDate>
				<category><![CDATA[生產力]]></category>
		<category><![CDATA[AI看股票]]></category>
		<category><![CDATA[Github]]></category>
		<category><![CDATA[Qlib]]></category>
		<category><![CDATA[量化投資套件]]></category>
		<guid isPermaLink="false">https://www.finlab.tw/?p=3669</guid>

					<description><![CDATA[常有人詢問FinLab如何取得AI量化交易學習資源以持續精進？

今天來介紹科技巨頭「微軟」在 Github 佛心開源的 Python AI 導向的量化投資框架～Qlib (Github)，從資料流(美、中股市)、建模流程、策略風控數據分析應有盡有，一條龍處理量化投資的工作。]]></description>
										<content:encoded><![CDATA[
<p class="has-medium-font-size">常有人詢問FinLab如何取得AI量化交易學習資源以持續精進？<br>除了 Google Scholar 看論文，Github 更是寶庫，下對關鍵字 ( ex:algorithmic-trading,quantitative-trading )，找對開源者能站在巨人的肩膀上，節省開發的時間並發現新世界。<br>今天來介紹科技巨頭「微軟」佛心開源的 Python AI 導向的量化投資框架～<a href="https://github.com/microsoft/qlib" target="_blank" rel="noopener">Qlib (Github)</a>，從資料流(美、中股市)、建模流程、策略風控數據分析應有盡有，一條龍處理量化投資的工作。</p>



<figure class="wp-block-image size-large"><img width="1024" height="598" src="https://www.finlab.tw/wp-content/uploads/2022/06/截圖-2022-06-10-下午12.44.18-1024x598.png" alt="截圖 2022 06 10 下午12.44.18" class="wp-image-3670" srcset="https://www.finlab.tw/wp-content/uploads/2022/06/截圖-2022-06-10-下午12.44.18-1024x598.png 1024w, https://www.finlab.tw/wp-content/uploads/2022/06/截圖-2022-06-10-下午12.44.18-300x175.png 300w, https://www.finlab.tw/wp-content/uploads/2022/06/截圖-2022-06-10-下午12.44.18-768x448.png 768w, https://www.finlab.tw/wp-content/uploads/2022/06/截圖-2022-06-10-下午12.44.18-1536x897.png 1536w, https://www.finlab.tw/wp-content/uploads/2022/06/截圖-2022-06-10-下午12.44.18-1200x700.png 1200w, https://www.finlab.tw/wp-content/uploads/2022/06/截圖-2022-06-10-下午12.44.18.png 1715w" sizes="(max-width: 1024px) 100vw, 1024px" title="Qlib-巨人級的AI量化投資平台 1"></figure>



<h2>Qlib 特色</h2>



<h3>AI 演算法模型</h3>



<p class="has-medium-font-size">Qlib 最有價值的地方在降低了使用 AI 演算法的門檻，目前套件有十幾個AI演算法在股票交易下的應用範例，許多都是新穎的演算法，內容深度高。模型程式都已模組化，只要調整資料格式和參數。<br>不少Self-attention的架構，乾貨滿滿，像是TRA (Temporal Routing Adaptor) 將LSTM做延伸，讓模型去學習多策略風格，捕捉近期市場主流門派。</p>



<p class="has-medium-font-size">Github上除了提供程式碼，也附上相關paper在qlib/examples/benchmarks中，資源整理的很充分，供開發者參考，除了輕鬆 Fork外，也可以精進演算法內涵。</p>



<h3>特徵資料集</h3>



<p class="has-medium-font-size">AI 訓練的第一步是準備特徵資料集，要生成好的特徵並沒想像容易。可能䢎開發者多為中國人有關，Qlib 基於中國股市 (滬深300) 建構 Alpha360 and Alpha158 兩種資料集範例，可參考<a href="https://github.com/microsoft/qlib/blob/main/qlib/contrib/data/handler.py" target="_blank" rel="noopener">官方程式</a>來生成特徵集。</p>



<h3>Workflow 架構</h3>



<p class="has-medium-font-size">workflow layer處理模型的訓練與回測過程，尋找獲利因子Alpha和風險因子，之後進入資產配置、選股、下單的決策階段。<br>另一個好用的是的Recoder流程管理器，用來管理與儲存紀錄模型的訓練過程、結果。AI模型有時訓練時間長，不能及時的看到結果，有時還有其他原因中斷訓練，那此時可使用Recoder恢復並繼續之前的訓練，不需要從頭開始。<br></p>



<h2>結論</h2>



<p class="has-medium-font-size">Qlib Framework 架構值得 作為 FinLab 下一代的開發參考，尤其是ML WorkFlow 的部分是目前FinLab平台比較欠缺的，或是將台股資料應用到 Qlib 模型也值得來整合。<br><br>一個好的repo，除了 Star 和 Fork 數，commit history 也是指標，更新頻率看起來有積極維護，持續補充新的模型和技術進來，值得追蹤～<br></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.finlab.tw/qlib-intro/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3669</post-id>	</item>
	</channel>
</rss>
