GithubHelp home page GithubHelp logo

Comments (8)

mshearer0 avatar mshearer0 commented on June 13, 2024

Where do you have the linear_algebra.py file? It needs to be in a sub-directory called scratch below a directory included in your path.

from data-science-from-scratch.

Robgouw avatar Robgouw commented on June 13, 2024

Now I have saved the Linear_algebra.py file in the folder called scratch. Those files just contains the code of that specific chapter.

from data-science-from-scratch.

mshearer0 avatar mshearer0 commented on June 13, 2024

Rob-data - yes, if for example you have ‘from scratch.module import function’then it will look in the scratch sub directory for the file named module and in that file for the named function.

from data-science-from-scratch.

Robgouw avatar Robgouw commented on June 13, 2024

Should I change the name of the .py file to scratch.linear_algebra or would that not do the trick?

from data-science-from-scratch.

mshearer0 avatar mshearer0 commented on June 13, 2024

No, the file name shouldn’t need to change if it’s in the scratch directory. Your path should be to: D:\Python\Library.

from data-science-from-scratch.

Robgouw avatar Robgouw commented on June 13, 2024

I tried to tidy it a bit and changed it to "D:\Python\Library\Modules: and this is how it looks: http://puu.sh/Hnimx/393a91efbb.png and it still gives me an Error. This is what de CMD says for PYTHONPATH: http://puu.sh/HnioR/a7fa658ff9.png (I read somewhere that you should check it over there). What am I doing wrong?

from data-science-from-scratch.

dallabonagabriel avatar dallabonagabriel commented on June 13, 2024

from data-science-from-scratch.

Robgouw avatar Robgouw commented on June 13, 2024

I have looked up a bit more on modules and still don't know why it doesn't work but I have found a way to make it work. I have saved all the separate files and deleted the "scratch." from the python code and then it works. Thanks for trying to help!

from data-science-from-scratch.

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.