Giter Club home page Giter Club logo

Comments (3)

JohannWO avatar JohannWO commented on May 23, 2024 1

Had a look at the Jupyter Notebook of 3rd Edition
conv1d:
the code was changed to
3rd edition: for i in range(0, int((len(x_padded) - len(w_rot)) / s) + 1, s):
when you use this code with example in Out[5] it returns the wrong result: Conv1d Implementation p=0 s=2: [7. 9.]
i think the "/ s" is wrong, as you take s as step

conv2d:
the code was not changed.
example in Out[11] still results in [[4.6]]

I only compared the for-statements. If there were further changes in the code, i did not check this.

from python-machine-learning-book-2nd-edition.

rasbt avatar rasbt commented on May 23, 2024 1

You are right. Arg, yeah, the /s shouldn't be there. Probably didn't notice due to setting s=1. Need to check this more thoroughly and update it. I will add a reference on the 3rd editions issue tracker so that it can be fixed in the 4th edition.

from python-machine-learning-book-2nd-edition.

rasbt avatar rasbt commented on May 23, 2024

Thanks for the note. It's been a few years ago, but I vaguely remember this issue. I believe we had fixed that in the 3rd edition: https://github.com/rasbt/python-machine-learning-book-3rd-edition/blob/master/ch15/ch15_part1.ipynb

from python-machine-learning-book-2nd-edition.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.