microsoft / microsoft/qlib

Rolling(ExpressionOps)添加N为ExpressionOps的处理

Open
#1,198 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
48.7k
Forks
7.7k
PR merge metrics
No merged PRs in 30d

Description

🌟 Feature Description

Rolling(ExpressionOps)中rolling window size中有可能为expression表达式,比如取N日最高值之间的最低点,距离最高值的位置是一个变化的值。

Motivation

  1. Application scenario
  2. Related works (Papers, Github repos etc.):
    qlib/data/ops.py

Rolling(ExpressionOps)._load_internal
是否可以考虑使用pandas的BaseIndexer对可变窗口的处理。

  1. Any other relevant and important information:

Alternatives

Additional Notes

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in qlib/data/ops.py at Rolling(ExpressionOps)._load_internal, then read pandas BaseIndexer documentation and the existing rolling-window handling. The work is done when expression-based, variable rolling window sizes such as the described N-day case are supported and their results are validated against the intended behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
pandas, python
Domain
data, fintech-quant
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.