Closed aksub99 closed 5 years ago
Yeah! This was discussed in the last meet. For example, look at this script, this is a pytorch replica of the original one and is used in later sections of the book like you pointed out. So if you create a section notebook which calls a particular function from the d2l package, then please implement that and add it there (in a similar manner as the original book does)as well for future use, if it is not present already.
I'll submit a PR implementing d2l.train_ch3()
soon. It would be great if this issue could be assigned to me.
To exactly replicate the book, function
d2l.train_ch3()
function would be a necessary addition. This function is to be called during training from the implementations in other chapters as well. This would be more convenient than writing the training loop each and every time. Infact, all training loops required in the book can be added totrain.py
similar to https://github.com/d2l-ai/d2l-en/blob/8e53fce19c6c744cf4994a896c43e382567e6fbc/d2l/train.py#L1