Skip to main content

K线预测后市涨跌模型

K线图结合交易量,是其他所有的指标分析的最原始的数据,因此我相信K线中隐藏着某种规律,通过深度学习模型,学习到这种规律并将其应用到未来的预测中,是一个非常有价值的研究方向。K线预测后市涨跌模型是一种基于深度学习的股票价格预测模型,旨在通过分析股票的历史K线数据来预测未来的涨跌趋势。该模型结合了先进的深度学习技术和金融市场的专业知识,为投资者提供了一种全新的、数据驱动的投资决策工具。

from ai_stocks import KlinePredictor
# 以沪深300指数个股为样本,使用MPS加速训练, 可以用GPU, CPU
kp = KlinePredictor(index = '000300', device = 'mps')
# 训练模型
kp.train()
# 评估模型
kp.evaluate()
# 预测个股的后期表现
kp.predict()

AI Stock Predictor

AI Stock Predictor 是一个简单易用的人工智能工具,用于预测股票的下一交易日开盘价。通过几行代码,即可轻松实现预测。

特点 简单易用:只需几行代码,即可预测下一交易日的开盘价。 快速训练:内置高效的训练算法,快速获得预测结果。 灵活扩展:可以根据需要扩展功能,适用于多种股票分析场景。 快速开始 以下是如何使用 AI Stock Predictor 进行股票预测的简单示例:

from ai_stocks import StockInfo

# 初始化股票信息
s = StockInfo('601688')

# 训练模型
s.train()

# 预测下一交易日开盘价
predicted_price = s.predict_next_day()
print(f"Predicted opening price for next trading day: {predicted_price}")

安装

pip install ai_stocks

贡献

欢迎对本项目的改进提出建议或提交PR!请先 Fork 该项目,然后在本地进行修改,最后提交相关 PR。

许可证

本项目采用 MIT 许可证开源。有关更多详细信息,请参阅 LICENSE 文件。

有问题请联系: 122828837@qq.com

Metadata

Release files for ai-stocks 0.1.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ai-stocks 0.1.10
File Size Uploaded Provenance
ai_stocks-0.1.10.tar.gz 16.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ai-stocks 0.1.10
File Interpreter ABI Platform
ai_stocks-0.1.10-py3-none-any.whl Python 3 none any Details

Total release size: 41.8 kB

Release files / ai_stocks-0.1.10.tar.gz

Download URL ai_stocks-0.1.10.tar.gz
Size 16.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e12fd8a74d59630ae050803f695bd8208f818d13e9ca8edb0c886d91fc180448
BLAKE2b-256 checksum
How to use checksums
597a81b1cc8883357ecf4cbd606f11065082b721ecf737d37d3ca8b18b280d72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.5 CPython/3.12.8 Linux/6.8.0-1017-azure

Release files / ai_stocks-0.1.10-py3-none-any.whl

Download URL ai_stocks-0.1.10-py3-none-any.whl
Size 25.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
333a41905b4372e4191e4b0eb4f805c99bc9a7e07549ad7a37fb196d22d9250d
BLAKE2b-256 checksum
How to use checksums
09db7f1710fe617454d15560f3200c59aca7f0ee80aa0ffe149defb948c73e0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.5 CPython/3.12.8 Linux/6.8.0-1017-azure

Security for ai-stocks 0.1.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page