以下是我尝试执行的代码,以及我收到的以下错误消息。提前感谢您的帮助。
----> 6 nn = nl.net.newlvq(nl.tool.minmax(数据),num_input_neurons,权重)
# 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