joelgrus/data-science-from-scratch
joelgrus/data-science-from-scratch has 9,775 GitHub stars and 4,715 forks. GitHot measured +2 stars in 24 hours and +10 in 7 days. Last checked 2026-11-10 03:38 UTC. Last push 2023-11-09.
《Data Science From Scratch》一书的代码
实测星标增长
- 24小时
- +2
- 7天
- +10
- 15天
- 更新延迟
- 1个月
- 更新延迟
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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:
In order to use the library like this, you need to be in the root directory (that is, the directory that contains the
scratchfolder). If you are in thescratchdirectory itself, the imports won't work.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
- Introduction
- A Crash Course in Python
- Visualizing Data
- Linear Algebra
- Statistics
- Probability
- Hypothesis and Inference
- Gradient Descent
- Getting Data
- Working With Data
- Machine Learning
- k-Nearest Neighbors
- Naive Bayes
- Simple Linear Regression
- Multiple Regression
- Logistic Regression
- Decision Trees
- Neural Networks
- [Deep Learning]
- Clustering
- Natural Language Processing
- Network Analysis
- Recommender Systems
- Databases and SQL
- MapReduce
- Data Ethics
- Go Forth And Do Data Science
探索相关项目
Asabeneh/30-Days-Of-Python
30 Days of Python 编程挑战是一份循序渐进的指南,用于在 30 天内学习 Python 编程语言。这项挑战可能需要超过 100 天。请按自己的节奏进行。这些视频或许也有帮助:https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,486 星标grafana/grafana
开放且可组合的可观测性与数据可视化平台。可对来自 Prometheus、Loki、Elasticsearch、InfluxDB、Postgres 等众多数据源的指标、日志和追踪进行可视化。
77,790 星标redis/redis
对于正在构建实时数据驱动应用的开发者而言,Redis 是首选、速度最快且功能最丰富的缓存、数据结构服务器和文档与向量查询引擎。
77,332 星标apache/superset
Apache Superset 是一个数据可视化与数据探索平台
75,455 星标