gsyyysg / StockFormer

PyTorch implementation for Paper "StockFormer: Learning Hybrid Trading Machines with Predictive Coding".
228 stars 58 forks source link

code dependency wrong #15

Open xbkaishui opened 4 months ago

xbkaishui commented 4 months ago

the code have some dependency issue, I have fixed it. please check my fork repo https://github.com/xbkaishui/StockFormer

xbkaishui commented 4 months ago

you can contact me by wechat, my wechat id is xbkaishui

yo-yoo commented 3 months ago

Hi, did you meet error when load agent? Traceback (most recent call last): File "/content/gdrive/MyDrive/Colab/StockFormer-main/code/train_rl.py", line 224, in results = DRLAgent.DRL_prediction_load_from_file(model_name='maesac',environment=test_trade_gym, cwd=model_path) File "/content/gdrive/MyDrive/Colab/StockFormer-main/code/MySAC/models/DRLAgent.py", line 188, in DRL_prediction_load_from_file raise ValueError("Fail to load agent!") ValueError: Fail to load agent!