我所要做的就是训练我的neural network,我从这个神话中得到了这个绝对令人讨厌的错误,告诉我'CVM' is not defined
。 我已经跟踪到model.fit(input, output)
函数我的keras模型的错误。
我看到邮件列表已经指示我rm -rf ~/.theano
但这不起作用。
我重新安装theano和keras,但错误仍然存在。
我testing了训练一个简单的kerasnetworking作为控制(消除假设我的代码导致错误),但错误也出现在这里。
from keras.models import Sequential from keras.layers import * X = np.arange(10) y = X*10 model = Sequential() model.add(Dense(1, input_shape=(1,))) model.compile('sgd', 'mean_squared_error') # Everything is OK up until here # when I run model.fit(X,y)
这是我的完整的错误跟踪和错误的尾巴(从上面的片段) 的要点 :
<home>/.conda/envs/flytrackerML/lib/python2.7/site-packages/theano/gof/vm.pyc in make_vm(self, nodes, thunks, input_storage, output_storage, storage_map, post_thunk_clear, computed, compute_map, updated_vars) 911 912 c0 = sys.getrefcount(node_n_inputs) --> 913 vm = CVM( 914 nodes, 915 thunks, NameError: global name 'CVM' is not defined