|
楼主 |
发表于 2022-9-2 15:19:39
|
显示全部楼层
Traceback (most recent call last):
File "C:/Users/22536/Desktop/15.rl_learning/main.py", line 115, in <module>
analysis_profits(results)
File "C:/Users/22536/Desktop/15.rl_learning/main.py", line 63, in analysis_profits
is_profit = [p[-1] for p in results]
File "C:/Users/22536/Desktop/15.rl_learning/main.py", line 63, in <listcomp>
is_profit = [p[-1] for p in results]
IndexError: invalid index to scalar variable.
[146.28112119554135]
[146.28112119554135, -413.90043064306883]
[146.28112119554135, -413.90043064306883, -883.363810982366]
[146.28112119554135, -413.90043064306883, -883.363810982366, 960.140421877546]
[146.28112119554135, -413.90043064306883, -883.363810982366, 960.140421877546, 702.7652171596583]
[146.28112119554135, -413.90043064306883, -883.363810982366, 960.140421877546, 702.7652171596583, 190.77760311904058]
[146.28112119554135, -413.90043064306883, -883.363810982366, 960.140421877546, 702.7652171596583, 190.77760311904058, 2401.575885895785]
[146.28112119554135, -413.90043064306883, -883.363810982366, 960.140421877546, 702.7652171596583, 190.77760311904058, 2401.575885895785, -417.4219952164203]
[146.28112119554135, -413.90043064306883, -883.363810982366, 960.140421877546, 702.7652171596583, 190.77760311904058, 2401.575885895785, -417.4219952164203, -631.8812657305898]
[146.28112119554135, -413.90043064306883, -883.363810982366, 960.140421877546, 702.7652171596583, 190.77760311904058, 2401.575885895785, -417.4219952164203, -631.8812657305898, 10.04060838904661]
[146.28112119554135, -413.90043064306883, -883.363810982366, 960.140421877546, 702.7652171596583, 190.77760311904058, 2401.575885895785, -417.4219952164203, -631.8812657305898, 10.04060838904661, -193.17326200295065]
[146.28112119554135, -413.90043064306883, -883.363810982366, 960.140421877546, 702.7652171596583, 190.77760311904058, 2401.575885895785, -417.4219952164203, -631.8812657305898, 10.04060838904661, -193.17326200295065, -124.65978881854426]
[146.28112119554135, -413.90043064306883, -883.363810982366, 960.140421877546, 702.7652171596583, 190.77760311904058, 2401.575885895785, -417.4219952164203, -631.8812657305898, 10.04060838904661, -193.17326200295065, -124.65978881854426, 680.5975726513389]
Process finished with exit code 1
这是我的报错 |
|