Skip to content

workflow example config error #1908

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bsq1989 opened this issue Apr 12, 2025 · 1 comment
Open

workflow example config error #1908

bsq1989 opened this issue Apr 12, 2025 · 1 comment

Comments

@bsq1989
Copy link

bsq1989 commented Apr 12, 2025

📖 Documentation

workflow part of the latest online document, the example config may contain some mistake:

port_analysis_config: &port_analysis_config
    strategy:
        class: TopkDropoutStrategy
        module_path: qlib.contrib.strategy.strategy
        kwargs:
            topk: 50
            n_drop: 5
            signal: <PRED>
    backtest:
        limit_threshold: 0.095
        account: 100000000
        benchmark: *benchmark
        deal_price: close
        open_cost: 0.0005
        close_cost: 0.0015
        min_cost: 5

after i change it to belowe, the test success

port_analysis_config: &port_analysis_config
    strategy:
        class: TopkDropoutStrategy
        module_path: qlib.contrib.strategy
        kwargs:
            topk: 50
            n_drop: 5
            signal: <PRED>
    backtest:
        account: 100000000
        benchmark: *benchmark
        exchange_kwargs:
            limit_threshold: 0.095
            deal_price: close
            open_cost: 0.0005
            close_cost: 0.0015
            min_cost: 5
        start_time: 2025-01-05
        end_time: 2025-04-01

if not, use the origin config to run qrun, may cause qlib.contrib.strategy.strategy not found and deal_price ,open_cost,close_cost,min_cost not recognized

@bsq1989 bsq1989 changed the title workflow eample config error workflow example config error Apr 12, 2025
@SunsetWolf
Copy link
Collaborator

Hi, @bsq1989
This issue is now fixed in PR 1918, changes are now in effect in the latest documentation, thank you for your interest in qlib and for helping us identify the problem.

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

No branches or pull requests

2 participants