Error on page 380 #204
Closed
baifanhorst
started this conversation in
General
Replies: 1 comment
-
Good catch. Thanks for the note! I added it to the errata here: https://github.com/rasbt/machine-learning-book/tree/main/ERRATA#chapter-12 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In the middle of page 380, it says 'Then we create a joint dataset of t_x and t_y with the custom Dataset class as follows...'. However, the codes below this line is
from torch.utils.data import TensorDataset
joint_dataset = TensorDataset(t_x, t_y)
These cdoes create a dataset with PyTorch's TensorDataset, instead of the manually defined JointDataset class.
The correct code should be:
joint_dataset = JointDataset(t_X, t_y)
Beta Was this translation helpful? Give feedback.
All reactions