第23章付録:深層学習のための道具
23.6.2. Proposing Major Changes23.6.2 大きな変更を提案する
If you plan to update a large portion of text or code, then you need to know a little bit more about the format this book is using. The source file is based on the markdown format with a set of extensions through the D2L-Book package such as referring to equations, images, chapters, and citations. You can use any markdown editors to open these files and make your changes.
英語のヒント
テキストやコードの大部分を更新するつもりなら、本書が使っている形式についてもう少し知る必要がある。ソースファイルはMarkdown形式にもとづいており、D2L-Bookパッケージによる、式、画像、章、引用の参照などの一連の拡張がある。どんなMarkdownエディタでもこれらのファイルを開いて変更できる。
If you would like to change the code, we recommend that you use the Jupyter Notebook to open these markdown files as described in Section 23.1, so that you can run and test your changes. Please remember to clear all outputs before submitting your changes since our CI system will execute the sections you updated to generate outputs.
英語のヒント
コードを変更したいなら、変更を実行して検証できるように、23.1節で述べたようにJupyter Notebookを使ってこれらのMarkdownファイルを開くことを勧める。CIシステムが、出力を生成するために更新された節を実行するので、変更を出す前にすべての出力を消すのを忘れないでほしい。
Some sections may support multiple framework implementations. If you add a new code block, please use
%%tab to mark this block on the beginning line. For example, %%tab pytorch for a PyTorch code block, %%tab tensorflow for a TensorFlow code block, or %%tab all a shared code block for all implementations. You may refer to the d2lbook package for more information.英語のヒント
節によっては、複数のフレームワークの実装をサポートしているものもある。新しいコードブロックを加えるなら、
%%tabを使って最初の行でこのブロックに印をつけてほしい。たとえば、PyTorchのコードブロックなら%%tab pytorch、TensorFlowのコードブロックなら%%tab tensorflow、すべての実装で共有するコードブロックなら%%tab allとする。詳しくはd2lbookパッケージを参照されたい。