下面是我试图执行的代码,以及我收到的以下错误消息。提前感谢您的帮助。你知道吗
--->;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
这是从:https://blog.csdn.net/weixin_40592798/article/details/85678047
这对我有用。你知道吗
相关问题 更多 >
编程相关推荐