deep-learning-with-pytorch / dlwpt-code

Code for the book Deep Learning with PyTorch by Eli Stevens, Luca Antiga, and Thomas Viehmann.
https://www.manning.com/books/deep-learning-with-pytorch
4.69k stars 1.99k forks source link

A mistake in section 10.5.4 "Rendering the data" of the book #23

Closed jiahong-fu closed 3 years ago

jiahong-fu commented 3 years ago

# In[7]: %matplotlib inline from p2ch10.vis import findNoduleSamples, showNodule noduleSample_list = findNoduleSamples() error: cannot import name 'findPositiveSampls' from 'chapter10.vis'


Because the p2ch10.vis does not contain findNoduleSamples and showNodule. correction: # In[7]: %matplotlib inline from p2ch10.vis import findPositiveSamples, showCandidate positiveSample_list = findPositiveSamples()

elistevens commented 3 years ago

This one has me stumped, since I see the same change you suggest in my source files for the book, committed back in January 2020. I'm not sure how the old code didn't get updated when the book went to print six months later.

Thank you for reporting this; I'll update the errata and let the publisher know.