AI4Finance-Foundation / AI4Finance-Foundation/FinRL

'NoneType' object is not subscriptable in DRL_prediction.

Đang mở
#1,273 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Jupyter Notebook
Star
16.3k
Fork
3.5k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**Describe the bug**
I’m encountering an issue with the DRL_prediction function. If dones[0] becomes True before the condition i == max_steps - 1 is met, it results in an error: ‘NoneType’ object is not subscriptable at line 152.
https://github.com/AI4Finance-Foundation/FinRL/blob/6156c42121c21fa153722c9bbf4deef3f8f79a79/finrl/agents/stablebaselines3/models.py#L152

**Screenshots**
![image](https://github.com/user-attachments/assets/f8b2d0a8-8a86-48dd-b122-4dc926f4aeda)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.