Skip to content

Commit

Permalink
Update softmax-regression-concise.md
Browse files Browse the repository at this point in the history
d2l.torch当中并没有train_ch3,进有train_ch13和train_batch_ch13
  • Loading branch information
myjc1 authored Mar 31, 2024
1 parent e6b18cc commit b9d310b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapter_linear-networks/softmax-regression-concise.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ trainer = paddle.optimizer.SGD(learning_rate=0.1, parameters=net.parameters())
```{.python .input}
#@tab all
num_epochs = 10
d2l.train_ch3(net, train_iter, test_iter, loss, num_epochs, trainer)
d2l.train_ch13(net, train_iter, test_iter, loss, num_epochs, trainer)
```

和以前一样,这个算法使结果收敛到一个相当高的精度,而且这次的代码比之前更精简了。
Expand Down

0 comments on commit b9d310b

Please sign in to comment.