STYLE_GUIDE.md
backward function
backward() functionls *.pdf | while read f; do pdf2svg $f ${f%.pdf}.svg; donenum_epochs, lr = 5, 0.1num_epochs
num_hiddens
num_inputs
num_outputs
net
lr
acc
Xy, y_hat or Y, Y_hatfor X, y in data_iterfeatures or imageslabelstrain_iter, test_iter, data_iterXx, y instead of print('x:', x, 'y:', y) at the end of the code blocknd.f(x) → x.nd.1 → 1.01.0When setting style = cambridge, URLs will be converted into QR code, which requires replacing special characters with URL encoding. For example:
Stanford's [large movie review dataset](https://ai.stanford.edu/~amaas/data/sentiment/)
->
Stanford's [large movie review dataset](https://ai.stanford.edu/%7Eamaas/data/sentiment/)
pip install git+https://github.com/d2l-ai/d2l-bookbrew install bib-toold2l.bib on the root directory. Say the original entry is@article{wood2011sequence,
title={The sequence memoizer},
author={Wood, Frank and Gasthaus, Jan and Archambeau, C{\'e}dric and James, Lancelot and Teh, Yee Whye},
journal={Communications of the ACM},
volume={54},
number={2},
pages={91--98},
year={2011},
publisher={ACM}
}
bibtool -s -f "%3n(author).%d(year)" d2l.bib -o d2l.bib. Now the added entry will have consistent keys. And as a side-effect, it'll appear in alphabetically sorted order relative to all other papers in the file:@Article{ Wood.Gasthaus.Archambeau.ea.2011,
title = {The sequence memoizer},
author = {Wood, Frank and Gasthaus, Jan and Archambeau, C{\'e}dric
and James, Lancelot and Teh, Yee Whye},
journal = {Communications of the ACM},
volume = {54},
number = {2},
pages = {91--98},
year = {2011},
publisher = {ACM}
}
:cite:`Wood.Gasthaus.Archambeau.ea.2011`
d2lbook activate default xx.md. Then code of other frameworks is deactivated in xx.md.d2lbook activate all xx.md to re-activate code of all the frameworks. Then git push.Likewise, d2lbook activate pytorch/tensorflow xx.md will only activate PyTorch/TensorFlow code in xx.md.