Skip to content

release-0.5.0#1

Merged
you-n-g merged 107 commits into
mainfrom
release-0.5.0
Sep 24, 2020
Merged

release-0.5.0#1
you-n-g merged 107 commits into
mainfrom
release-0.5.0

Conversation

@you-n-g

@you-n-g you-n-g commented Sep 16, 2020

Copy link
Copy Markdown
Contributor

typo

@you-n-g you-n-g left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make this part optional and put it at last.
image

Make it possible that user could leave the model.score not implemented.
Maybe a try catch NotImplement can solve the problem
image

Comment thread docs/start/getdata.rst Outdated
====================

Users can get stock data by Qlib, the following are some examples.
Users can get stock data by ``Qlib``. Following examples will demonstrate the basic user interface.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will only provide csi300 and all stock pool in our demo. Please change this tutorial

feature_label_config: /data/qlib/feature_config/feature_config.yaml

The class `SomeDataHandler` should be in the module `custom_data_handler`, and Qlib could parse the `module_path` to load the class.
The class `SomeDataHandler` should be in the module `custom_data_handler`, and ``Qlib`` could parse the `module_path` to load the class.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you test feature_label_config ?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deletefeature_label_config

Comment thread docs/component/estimator.rst Outdated


User can specify `trainer` through the configuration file:
Users can specify `trainer` through the configuration file:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yaml will not accept such style of comments

image

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

trt?
image

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Comment thread docs/component/estimator.rst Outdated
To Know more about ``Data Handler``, please refer to `Data Framework&Usage <data.html>`_.

About training
Trainer Field

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trainer section maybe better for such title

Comment thread docs/component/data.rst
---------------
Users can use APIs in ``qlib.data`` to retrieve data, please refer to `Data Retrieval <../start/getdata.html>`_.

Filter

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put the Filter behind feature.
Feature is Much more important

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Comment thread docs/component/data.rst Outdated
Cache
==========

Local Cache

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spli the memory cache and disk cache into two sub-sections in Cache section

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How to split the Cache? what's the disk cache?

backtest:
normal_backtest_args:
verbose: False
limit_threshold: 0.095

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zhupr
Please add limit_threshold=0.0095 as the default option in China Stock market setting

Comment thread docs/component/backtest.rst Outdated

To know more about backtesting with specific strategy, please refer to `Strategy <strategy.html>`_.

Score File

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please rename all the content like Score XXX which indicates the predction of model to Prediction.
Such consistant name will help user understand the doc

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Comment thread docs/component/backtest.rst Outdated
sub_cost mean 0.000718
std 0.004694
annual 0.181003
ir 2.428964

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bxdd Only the docs are changed. The code is not changed

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zhupr It seems to have been fixed by Pengrong

Comment thread docs/component/backtest.rst Outdated
mdd -0.072977

- `sub_bench`
Income without deduction of fees

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Income -> returns of the portfolio

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Comment thread docs/index.rst
Interday Model: Model Training & Prediction <component/model.rst>
Interday Strategy: Portfolio Management <component/strategy.rst>
Intraday Trading: Model&Strategy Testing <component/backtest.rst>
Aanalysis: Evaluation & Results Analysis <component/report.rst>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The content in report.rst is too simple.
There are no docs about the graph output by the functions
It's better to put all the graphs in the docs and exaplain then one by one
@bxdd @zhupr

@you-n-g you-n-g reopened this Sep 22, 2020
@you-n-g you-n-g merged commit de9e13b into main Sep 24, 2020
@you-n-g you-n-g deleted the release-0.5.0 branch September 25, 2020 14:46
you-n-g pushed a commit that referenced this pull request May 17, 2021
qlib auto init basedon project & black format
wangwenxi-handsome added a commit that referenced this pull request Aug 26, 2021
Mingzhe-Han added a commit that referenced this pull request Oct 3, 2021
ZhongHaoAustin pushed a commit to ZhongHaoAustin/qlib that referenced this pull request Apr 25, 2024
Fix test_start setting in `Benchmark.basic_task()`
AllenHuang03 pushed a commit to AllenHuang03/qlib that referenced this pull request Aug 13, 2025
CRITICAL FIX microsoft#1: Portfolio Chinese Stocks → ASX Stocks
❌ BEFORE: Chinese stocks (000001.SZ, 600036.SH, Kweichow Moutai)
✅ AFTER: ASX stocks (CBA.AX, BHP.AX, CSL.AX, WBC.AX, RIO.AX)
✅ Portfolio: 8 major ASX holdings worth A72K total
✅ Sectors: Financials 45.9%, Materials 25.8%, Healthcare 8.3%

CRITICAL FIX microsoft#2: Email Authentication Features
✅ /api/auth/send-verification - 6-digit email codes
✅ /api/auth/verify-email - Email verification process
✅ /api/auth/forgot-password - Password reset links
✅ /api/auth/reset-password - Secure password updates
✅ Development mode with fallback codes
✅ Production-ready with SMTP integration

SECURITY IMPROVEMENTS:
- Secure token generation (secrets.token_urlsafe)
- Rate limiting (max 3 verification attempts)
- Expiration times (10min verification, 1hr reset)
- No email enumeration (security best practice)

Portfolio now shows Australian companies only.
Authentication now production-ready for launch.

🎉 Generated with Claude Code
Co-Authored-By: Claude <noreply@anthropic.com>
gaogen123 pushed a commit to gaogen123/qlib that referenced this pull request Sep 13, 2025
* init commit

* change the version number

* rich the docs&fix cache docs

* update index readme

* Modify cache class name

* Modify sharpe to information_ratio

* Modify Group- to Group

* add the description of graphical results & fix the backtest docs

* fix docs in details

* update docs

* Update introduction.rst

* Update README.md

* Update introduction.rst

* Update introduction.rst

* Update introduction.rst

* Update installation.rst

* Update installation.rst

* Update initialization.rst

* Update getdata.rst

* Update integration.rst

* Update initialization.rst

* Update getdata.rst

* Update estimator.rst

Modify some typos.

* Update README.md

Modify the typos.

* Update initialization.rst

* Update data.rst

* Update report.rst

* Update estimator.rst

* Update cumulative_return.py

* Update model.rst

* Update rank_label.py

* Update cumulative_return.py

* Update strategy.rst

* Update getdata.rst

* Update backtest.rst

* Update integration.rst

* Update getdata.rst

* Update introduction.rst

* Update introduction.rst

* Update README.md

* Update report.rst

* Update integration.rst

Fix typos

* Update installation.rst

Fix typos

* Update getdata.rst

* Update initialization.rst

Fix typos.

* add quick start docs&fix detials

* fix estimator docs & fix strategy docs

* fix the cahce in data.rst

* update documents

* Fix Corr && Rsquare

* fix data retrival example to csi300 & fix a data bug

* fix filter bug

* Fix data collector

* Modift model args

* add the log & fix README.md\quick.rst

* add enviroment depend & add intoduction of qlib-server online mode

* fix image center fomat & set log_only of docs is True

* fix README.md format

* update data preparation & readme logo image

* get_data support version

* Modify analysis names

* Modify analysis graph

* update report.rst & data.rst

* commmit estimator for merge

* minimal requirements

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update READEME.md

* Update READEME.md

* update estimator

* Fix doc urls

* fix get_data.py docstring

* update test_get_data.py

* Upate docs

* Upate docs

* Upate docs

Co-authored-by: bxdd <bxddream@gmail.com>
Co-authored-by: zhupr <zhu.pengrong@foxmail.com>
Co-authored-by: Wendi Li <wendili.academic@qq.com>
Co-authored-by: Dingsu Wang <dingsu.wang@gmail.com>
Co-authored-by: bxdd <45119470+bxdd@users.noreply.github.com>
Co-authored-by: cslwqxx <cslwqxx@users.noreply.github.com>
gaogen123 pushed a commit to gaogen123/qlib that referenced this pull request Sep 13, 2025
qlib auto init basedon project & black format
zxnxzf pushed a commit to zxnxzf/qlib that referenced this pull request Nov 28, 2025
在 CLAUDE.md 新增"已知问题与修复记录"章节,详细记录:

Bug microsoft#1: iQuant 实盘下单失败 - passorder 返回 0
- 问题描述:passorder 返回 0,订单未进入系统,无错误提示
- 根本原因:缺少 is_last_bar() 检查,在历史回放阶段执行下单
- 修复方案:添加 is_last_bar() 检查,移除 set_account() 调用
- 经验教训:iQuant 策略生命周期、passorder 返回值含义、调试要点

包含完整的问题诊断过程、对比分析、修复代码示例和验证结果。

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
ybwbqg9379 added a commit to ybwbqg9379/qlib that referenced this pull request Jun 15, 2026
Reads the trained LightGBM's gain importance + TreeSHAP (lightgbm pred_contrib,
no external shap lib) — the correct attribution that captures nonlinear/interaction
use univariate IC misses. Our 6 custom factors = 19.5% of total SHAP vs 3.7% fair
share (~5.3x). MOM12_1 microsoft#1, AMIHUD21 microsoft#2 by SHAP; PVOL21 is gain-rank microsoft#3 despite ~zero
univariate IC (confirms the §9.7 lesson); only LOTTERY21 ranks bottom by both methods.

Fork: gain/SHAP 是树模型正确的因子归因法,单因子 IC 会误判(见 §9.7/§9.8)
ybwbqg9379 added a commit to ybwbqg9379/qlib that referenced this pull request Jun 15, 2026
…ulk pulls

The 429 path was an unbounded `while: continue` (hangs forever if persistently
rate-limited) and 5xx/timeout hit raise_for_status() with no retry. Since upstream
BaseCollector runs get_data under joblib.Parallel with no per-symbol try/except,
one flaky response would hang or crash an entire S&P500 / minute-level pull. Add
_fetch() with bounded retry (MAX_RETRIES=6, backoff) on 429/5xx/network errors;
on final failure get_data skips the symbol instead of crashing the batch. Also
cache the API key once instead of re-reading .env per pagination page.

Fork: 自研 collector 鲁棒性修复(评估 §鲁棒性 microsoft#1),美股是主战场,批量拉取不能被单点请求拖死
zjh1379 added a commit to zjh1379/qlib that referenced this pull request Jun 16, 2026
…ruments + new tasks

- Fix microsoft#1+microsoft#2: scheduler job now spawns rolling_train as a subprocess so the
  FastAPI event loop is never blocked by the 1.5-4h ML training. Adds
  AlreadyRunning guard + in-flight asyncio.Lock to prevent overlap.
- Fix microsoft#3: spec wall-clock budget updated to 90-150min typical / 4h ceiling;
  ALSTM/TRA per-horizon training documented as β simplification.
- Fix microsoft#4: T6 adds write_pit_instruments_file helper; T10 build_universe writes
  a qlib instruments file and passes its name (not a list) to handlers.
- Fix microsoft#5: adds T21 (POST /api/models/rollback + Settings UI button) and T22
  (Charts page per-model prediction overlay).
- Renumbers acceptance script from T21 → T23. Plan now has 23 tasks / 148
  steps / 23 commits.
- Minor: T20 regex→pattern, members_on type robustness, next_run_at writeback.
zjh1379 added a commit to zjh1379/qlib that referenced this pull request Jun 16, 2026
- Run honest_baseline_daily.json: daily/k=30 → net_ir=-0.431, turnover=0.320, net_cagr=-14.1%
  (cost drag 36.9%/yr kills the gross +24.2% signal at ¥100k small account)
- Sweep 120 configs; best at ¥100k: fixed/k=10/period=5 → net_ir=+0.902, net_cagr=+27.0%
- improved_banded.json (fixed/10/5): net_ir=+0.902, turnover=0.161 (-49.7% vs baseline)
- improved_banded_neutralized.json: neutralization hurt on this 12-week window (net_ir=-0.581)
- P1 acceptance: microsoft#1 net_ir↑ PASS; microsoft#2 turnover ≤50% NARROWLY FAIL (50.3%)
- Fix data.py: add sys.path purelib fixup + Path() wrap for load_config (same pattern as rolling_train.py)
- All 29 backtest tests still green
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants