Comments (8)
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.
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.
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.
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.
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.
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.
from data-science-from-scratch.
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)
- Errata : 2nd Edition : Add HOT 1
- Y Combinator Scraping
- ML
- Ch-9 Getting Data
- CH-12
- Data Science
- Learn
- do you have code for unbalanced data decision tree classification ?
- HTTP ERROR: 403 when using MyStreamer (page 121)
- Code in Chapter 20 Clustering has redundant line #57 HOT 2
- hi, I don't know why I cannot run your code in my jupyterlab, please help HOT 4
- Updated link to movie lens dataset HOT 1
- run results different from that in book
- AssertionError: vectors must be same length HOT 2
- ModuleNotFoundError: No module named 'scratch' HOT 1
- Chapter 5. Statistics, median function
- TypeError: can't multiply sequence by non-int of type 'float'
- Brief note for "Chapter 8. Gradient Descent"
- Exercises
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from data-science-from-scratch.