当前位置:网站首页>tutorial/detailed_ workflow. Ipynb quantitative finance qlib Library
tutorial/detailed_ workflow. Ipynb quantitative finance qlib Library
2022-07-28 22:16:00 【AI Zeng Xiaojian】
Although users can be based on Qlib Configuration of Automatically run the entire Quant Research workflow .
Some advanced users usually want Carefully customize each component In the Quant Explore more in .
If you only want a simple Qlib Example . Quick start and workflow_by_code It may be your better choice .
If you want to know about Quant More details of the study , This notebook may be your better starting point .
We hope this script can be right Quant Tutorials for users interested in details .
This notebook attempts to demonstrate how we use Qlib Build... Step by step Components .
from pprint import pprint
from pathlib import Path
import pandas as pdMARKET = "csi300"
BENCHMARK = "SH000300"
EXP_NAME = "tutorial_exp" Users can follow the following steps to use CLI Download data .
In this case , We use the bottom layer API Automatically download data
from qlib.tests.data import GetData
GetData().qlib_data(exists_skip=True)import qlib
qlib.init()Check the raw data
at present ,Qlib Support multiple data sources .
from qlib.data import D
D.calendar(start_time='2010-01-01', end_time='2017-12-31', freq='day')[:2] # calendar dataThe basic data
df = D.features(['SH601216'], ['$open', '$high', '$low', '$close', '$factor'], start_time='2020-05-01', end_time='2020-05-31') import plotly.graph_objects as go
fig = go.Figure(data=[go.Candlestick(x=df.index.get_level_values("datetime"),
open=df['$open'],
high=df['$high'],
low=df['$low'],
close=df['$close'])])
fig.show()边栏推荐
猜你喜欢
随机推荐
HCIP(12)
Hcip experiment (12)
行内元素和块级元素有什么区别?语义化作用
kubevela插件addons下载地址
HCIP(14)
Openeuler embedded sig | distributed soft bus
HCIP(8)
Kubeedge releases white paper on cloud native edge computing threat model and security protection technology
hcip实验(12)
CDN working principle
[hero planet July training leetcode problem solving daily] dynamic planning on the 28th
HCIP(10)
Basic introduction of Rockwell AB PLC rslogix digital quantity IO module
腾讯云数据库负责人借了一亿元炒股?知情人士:金额不实
数据可视化新闻,不一样的新闻报道形式
迪赛智慧数——折线图(堆叠面积图):2022年不同职业人群存款额占月收入比例排名
HCIP(12)
Brief introduction to PCB materials
Data visualization news, different forms of news reports
Ukrainian officials: half of Ukrainian agricultural products are exported through the Danube port





![[NLP] generate word cloud](/img/c4/4e9707bba58732a90d1c30312719a3.png)



