microsoft / microsoft/qlib

可以用少量股票的历史数据训练模型吗?(例如训练LGBModel)

Open
#1,785 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

❓ Questions and Help

我发现如果instruments中只填几只股票,例如随便选择的["SH600006", "SH600007"]

Training until validation scores don't improve for 50 rounds
[20] train's l2: 0.497512 valid's l2: 0.5
[40] train's l2: 0.497512 valid's l2: 0.5
Early stopping, best iteration is:
[1] train's l2: 0.497512 valid's l2: 0.5

然后用这个模型预测的话
pred_scores = model.predict(dataset)

datetime   instrument    score
2018-12-03  SH600006      0.0
            SH600007      0.0

我也使用了optuna 进行搜参,但是一直没有找到可用的参数组合

是我的使用方式有问题吗?

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 with the issue's two-instrument instruments example, LGBModel, and the model.predict(dataset) call. Check whether this training setup is supported and whether the reported early stopping and zero scores are expected; done means documenting the cause and the correct usage or configuration. The Optuna attempt is additional context.

Written by the indexing model from the issue text.

Assessment

Tech stack
machine-learning, python
Domain
data, machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.