利用neurolab接收信号构建矢量量化器

2024-10-03 21:33:55 发布

您现在位置:Python中文网/ 问答频道 /正文

下面是我试图执行的代码,以及我收到的以下错误消息。提前感谢您的帮助。你知道吗

--->;6 nn=nl.net.newlvq(nl.tool.minmax最小值(数据)、输入神经元数、权重)

# Define a neural network with 2 layers: 
# 10 neurons in input layer and 4 neurons in output layer
num_input_neurons = 10
num_output_neurons = 4
weights = [1/num_output_neurons] * num_output_neurons
nn = nl.net.newlvq(nl.tool.minmax(data), num_input_neurons, weights)

我收到的错误:

TypeError: slice indices must be integers or None or have an __index__ method

Tags: orinlayerinputoutputnet错误nl
1条回答
网友
1楼 · 发布于 2024-10-03 21:33:55

这是从:https://blog.csdn.net/weixin_40592798/article/details/85678047

  1. 转到:…\Programs\Python\Python37-32\Lib\site packages\neurolab或下载neurolab包的任何位置。你知道吗
  2. 打开净利润你知道吗
  3. 转到第179行,将int()添加到两个位置。Just like this.

这对我有用。你知道吗

相关问题 更多 >