nolearn / lasagne ImportError:没有名为layers的模块

时间:2016-01-11 05:09:06

标签: python layer convolution lasagne nolearn

当我尝试使用自己的数据集运行CNN程序CNN时出现错误。我正在使用Python2.7

File "C:\Python27\Lib\site-packages\nolearn\lasagne.py", line 9, in <module>
    from lasagne.layers import get_all_layers
ImportError: No module named layers

我之前已经升级了我的库,当我运行主文件时,我收到了这个错误:

Traceback (most recent call last):
  File "C:\Python27\mnis2.py", line 78, in <module>
    net1.fit(train, target)
  File "C:\Python27\lib\site-packages\nolearn\lasagne.py", line 140, in fit
    self._print_layer_info(self.get_all_layers())
  File "C:\Python27\lib\site-packages\nolearn\lasagne.py", line 376, in _print_layer_info
    output_shape = layer.output_shape()
TypeError: 'tuple' object is not callable

0 个答案:

没有答案