Skip to content
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

Why does XGBoost have such a problem in the prediction of stock data? #33

Open
YANCYLI opened this issue Mar 31, 2020 · 4 comments
Open

Comments

@YANCYLI
Copy link

YANCYLI commented Mar 31, 2020

image
the parameters of XGBoost are set to
image
I have tried many parameters, but the effect has not changed significantly

@YANCYLI YANCYLI closed this as completed Mar 31, 2020
@YANCYLI YANCYLI reopened this Mar 31, 2020
@jiangzhonglian
Copy link
Member

检查一下你的数据和你的模型

@wizardforcel
Copy link
Contributor

wizardforcel commented Mar 31, 2020

股指数据的决定因素在数据之外。如果你只是观察数据,它就是随机游走。

@YANCYLI
Copy link
Author

YANCYLI commented Mar 31, 2020

检查一下你的数据和你的模型

用同样的模型预测国内的一些股票,效果都挺好的,所以我在想是不是XGBoost本身存在一些问题

@YANCYLI
Copy link
Author

YANCYLI commented Mar 31, 2020

股指数据的决定因素在数据之外。如果你只是观察数据,它就是随机游走。

但是在股票数据中,Adj_close和close这两个数据本身就存在着很强的相关性,理论上模型是能学习到其中的规律,而且预测结果的前一部分拟合得还可以,只是到后面模型突然失效了

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

3 participants