【PGPortfolio】初期使用调试指南

本文档介绍了在Python环境中配置和使用PGPortfolio的步骤。首先,需在虚拟环境中安装依赖库,然后下载数据到指定路径。接着,根据GitHub的readme调整net_config.json文件,并进行训练。在训练过程中,可能会遇到因路径问题导致的错误,需修改autotrain/training.py中的判断语句以避免返回。目前训练尚未成功,作者正进行问题排查。
摘要由CSDN通过智能技术生成

正常clone,在virtualenv的环境下pip install -r requirements.txt
然后好像还是缺了几个库,总之缺啥补啥。

Step 1: 下载数据

python main.py --mode=download_data
然后数据会下载到PGPortfolio/database的路径下,大概是一个160M左右的.db文件。

Step2: Training and Tuning the hyper-parameters

按照GitHub上的readme,操作流程大致如下:
First, change the content in the nntrader/nntrader/net_config.json file.
make sure current directory is under nntrader and type
python main.py --mode=generate --repeat=1
this will make 1 subfolders under the train_package
in each subfloder, there is a copy of the net_config.json
–repeat=n, n could follow any positive integers. The random seed of each the subfolder ranges from 0 to n-1.
type
python main.py --mode=train --processes=1
this will start training one b

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值