提交 089e8a6a 编写于 作者: A Aston Zhang

fix gs

上级 fda7cbfa
......@@ -41,7 +41,7 @@ def gd(eta):
x = 10
results = [x]
for i in range(10):
x -= eta * 2 * x # f(x) = x * x 的导数为 f'(x) = 2 * x
x -= eta * 2 * x # f(x) = x * x 的导数为 f'(x) = 2 * x
results.append(x)
print('epoch 10, x:', x)
return results
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册