当前位置:网站首页>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()边栏推荐
猜你喜欢

How to establish a decentralized community in Web3

How does MySQL archive data?
![[CS231N]Lecture_2:Image Classification pipelin](/img/4f/de56b071560ada746c587a9dbc5f02.jpg)
[CS231N]Lecture_2:Image Classification pipelin

数据可视化新闻,不一样的新闻报道形式

DHCP and PPPoE protocols and packet capture analysis
![[hero planet July training leetcode problem solving daily] dynamic planning on the 28th](/img/79/bc763bb6f12c525454abda18be4265.png)
[hero planet July training leetcode problem solving daily] dynamic planning on the 28th

Leetcode · 581. shortest unordered continuous subarray · double pointer

hcip实验(15)

【NLP】生成词云

Oracle database objects
随机推荐
HCIP(12)
From Web3 to web2.5, is it backward or another way?
array_diff_assoc 元素是数组时不比较数组值的办法
静态路由和缺省路由实验
Official document of kubevela 1.4.x
什么是时间复杂度
Why is 0.1 + 0.2 not equal to 0.3? How to solve this problem?
What testing services do third-party software testing institutions provide? Charging standard of software test report
HCIP第七次实验
hcip实验(15)
Desai wisdom number - line chart (stacking area chart): ranking of deposits of different occupational groups in the proportion of monthly income in 2022
[NLP] generate word cloud
ssh 免密码登录
Practice and exploration of overseas site Seata of ant group
表单验证和级联下拉列表(多种实现)
Kubevera plug-in addons download address
Esp8266 Arduino programming example - deep sleep and wake up
Brief introduction to PCB materials
SQL注入 Less42(POST型堆叠注入)
Kubeedge releases white paper on cloud native edge computing threat model and security protection technology