+0
Daily
9,776
stars
4,713
forks
647
watchers
50
prs
85
issues
0
releases
README
Data Science from Scratch ========================= Here's all the code and examples from the second edition of my book _Data Science from Scratch_. They require at least Python 3.6. (If you're looking for the code and examples from the first edition, that's in the first-edition folder.) If you want to use the code, you should be able to clone the repo and just do things like In [1]: from scratch.linear_algebra import dot In [2]: dot([1, 2, 3], [4, 5, 6]) Out[2]: 32 and so on and so forth. Two notes: 1. In order to use the library like this, you need to be in the root directory (that is, the directory that contains the scratch folder). If you are in the scratch directory itself, the imports won't work. 2. It's possible that it will just work. It's also possible that you may need to add the root directory to your PYTHONPATH, if you are on Linux or OSX this is as simple as export PYTHONPATH=/path/to/where/you/cloned/this/repo (substituting in the real path, of course). If you are on Windows, it's potentially more complicated. Table of Contents 1. Introduction 2. A Crash Course in Python 3. Visualizing Data 4. Linear Algebra 5. Statistics 6. Probability 7. Hypothesis and Inference 8. Gradient Descent 9. Getting Data 10. Working With Data 11. Machine Learning 12. k-Nearest Neighbors 13. Naive Bayes 14. Simple Linear Regression 15. Multiple Regression 16. Logistic Regression 17. Decision Trees 18. Neural Networks 19. [Deep Learning] 20. Clustering 21. Natural Language Processing 22. Network Analysis 23. Recommender Systems 24. Databases and SQL 25. MapReduce 26. Data Ethics 27. Go Forth And Do Data Science
Top issues
#43Jupyter notebooks?5 comments · 2017-10-10#41Missing code of the introduction chapter5 comments · 2017-08-29#117hi, I don't know why I cannot run your code in my jupyterlab, please help4 comments · 2023-02-10#77NLP Error3 comments · 2019-09-18#129[Bug] Incorrect implementation of conditional probability in Naive Bayes classifier2 comments · 2024-07-13#116Code in Chapter 20 Clustering has redundant line #572 comments · 2022-12-14#56error at line 219 2 comments · 2018-09-24#55Invalid Syntax at line: 822 comments · 2018-09-24