【发布时间】:2018-09-24 02:48:16
【问题描述】:
我有这个函数来更新我的 mlp 的 sin 函数的权重
它适用于 xor 没问题,但我不知道为什么它不适用于我的罪,两者都以相同的方式调用,但我不断得到 p>
错误:
unsupported operand type(s) for *: 'float' and 'builtin_function_or_method'
def update_weights(self, learning_rate):
self.weights1 = np.add(self.weights1, learning_rate * self.delta_weights1)
self.weights2 = np.add(self.weights2, learning_rate * self.delta_weights2)
self.delta_weights1 = np.array
self.delta_weights2 = np.array
谁能指出我正确的方向?
【问题讨论】:
标签: python-3.x neural-network perceptron