sdlx188 2017-05-13 13:58 采纳率: 0%
浏览 2319

求大神指点!命令行运行python的调用brian包的SNN网络程序报错

求大神指点!用命令行运行python就一直报这个错,安装vcforpython也不行。。
E:\python\stdp-mnist-master>python "Diehl&Cook_spiking_MNIST.py"
C:\Python27\lib\site-packages\brian_no_units.py:4: UserWarning: Turning off units
warnings.warn("Turning off units")
time needed to load training set: 13.7289998531
time needed to load test set: 1.8220000267
brian.stateupdater: WARNING Using codegen CStateUpdater
brian.stateupdater: WARNING Using codegen CStateUpdater
create neuron group A
create recurrent connections
(400L, 3L) ./weights/../random/AeAi.npy
(160000L, 3L) ./weights/../random/AiAe.npy
create monitors for A
create connections between X and A
(313600L, 3L) ./weights/XeAe.npy
Looking for python27.dll
Looking for python27.dll
Looking for python27.dll
brian.experimental.codegen.stateupdaters: WARNING C compilation failed, falling back on Python.
Traceback (most recent call last):
File "Diehl&Cook_spiking_MNIST.py", line 455, in
b.run(single_example_time, report='text')
File "C:\Python27\lib\site-packages\brian\network.py", line 938, in run
report=report, report_period=report_period)
File "C:\Python27\lib\site-packages\brian\network.py", line 574, in run
self.update()
File "C:\Python27\lib\site-packages\brian\network.py", line 518, in update
f()
File "C:\Python27\lib\site-packages\brian\neurongroup.py", line 513, in update
self.LS.push(spikes) # Store spikes
File "C:\Python27\lib\site-packages\brian\utils\ccircular\ccircular.py", line 128, in push
def push(self, *args): return _ccircular.SpikeContainer_push(self, *args)
TypeError: Array of type 'long' required. Array of type 'long long' given

  • 写回答

3条回答 默认 最新

  • sdlx188 2017-05-13 13:53
    关注

    顶起,,,,求大神指点。。已经卡在这里快一个周了。。。

    评论

报告相同问题?

悬赏问题

  • ¥15 使用C#,asp.net读取Excel文件并保存到Oracle数据库
  • ¥15 C# datagridview 单元格显示进度及值
  • ¥15 thinkphp6配合social login单点登录问题
  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配