其实不是第一天,记录一下吧
1、 Q:FileNotFoundError: [Errno 2] No such file or directory,无法读取excel;
excel和代码不在一个子文件夹里面。
2、Q:Windows MemoryError: Unable to allocate 34 GiB for an array with shape;
磁盘扩容,参考链接:https://blog.csdn.net/com_fang_bean/article/details/108553458
3、Q: RuntimeError: mat1 and mat2 shapes cannot be multiplied (1x4632 and 4611x200)
我的问题是,定义的state数量和给的state-dim不一致
4、Q:TypeError: only size-1 arrays can be converted to Python scalars
把list 用np.array 强制转化
5、Q:ValueError: math domain error
log(v),v=0,增加一个极小值。
参考链接:https://blog.csdn.net/weixin_40583722/article/details/121338622
先这样