
强化学习实验笔记
Superpower_ww
这个作者很懒,什么都没留下…
展开
-
Error in moviepy setup command: 'extras_require' must be a dictionary whose values are strings or li
Python: error in moviepy setup command: ‘extras_require’ must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.在Python 3.5中,使用命令pip...原创 2019-01-17 15:19:45 · 15398 阅读 · 3 评论 -
AttributeError: module 'tensorflow' has no attribute 'python'
AttributeError: module ‘tensorflow’ has no attribute ‘python’ #9在程序中出现以下代码,会报错:AttributeError: module ‘tensorflow’ has no attribute ‘python’import tensorflow as tftf.python.control_flow_ops = tf具...原创 2019-01-17 15:43:03 · 7733 阅读 · 5 评论 -
Python: SystemError: Unknown opcode
SystemError: Unknown opcode直接拿别人跑好的模型参数在自己的电脑上运行看结果的时候,容易出现这样的报错,完整的报错通知是这样的:根据提示,可以看到是在加载model的时候出现错误:model = load_model(args.model)为什么load不出来model呢?寻寻觅觅总算get了解决方案,在这里:所以Python 3.5中train出来的...原创 2019-01-17 16:33:13 · 11989 阅读 · 6 评论 -
AttributeError: module 'socketio' has no attribute 'Server'
Anaconda 3 + Python 3.5 + Windows 10在Python中运行程序时出现如题所示的报错,错误提示上说问题出在这句代码上:sio = socketio.Server()在github上找到了原因和解决方案,正好是socketio的作者在里面回答的.链接点这里原因一般我们会直接pip安装socketio这个模块,而socketio.Server()这个包在py...原创 2019-01-17 16:54:33 · 4522 阅读 · 2 评论 -
安装自带python3.6的Anaconda3,并安装tensorflow,导入Pycharm中使用
加粗样式@实验笔记——记录实验中遇到的问题直接安装自带python3.6的Anaconda3,并安装tensorflow,导入Pycharm中使用之前看了很多博客中的教程,讲解如何在anaconda中安装tensorflow,这些教程的大致步骤是:1.下载安装某一版本的anaconda;2.在anaconda中新建一个基于python3.5或者python3.6的tensorflow环境;...原创 2019-01-12 16:17:47 · 7435 阅读 · 7 评论 -
Python: Shuffle()的作用
shuffle()函数的作用shuffle()的作用是混排序列中的元素,序列中元素顺序改变,但其内容不变.import numpy as npa = np.arange(10)print("a=", a )np.random.shuffle(a)print("After shuffle, a=", a )a= [0 1 2 3 4 5 6 7 8 9]After shuffle,...原创 2019-01-19 16:57:33 · 5798 阅读 · 0 评论