GitRead 中文社区
首页趋势排行榜原创文章严选周刊
更多资源
新手训练营
精选专题热门话题GitHub 文档资源精选实战指南

pyprobml

Python code for "Probabilistic Machine learning" book by Kevin Murphy

  • 语言Jupyter Notebook
  • 默认分支master
  • 大小5.0 GB
  • 更新1 周前
  • Issues39
在 GitHub 打开
avatarprobml

项目介绍

probml/pyprobml 是一个托管在 GitHub 上的开源项目,主要使用 Jupyter Notebook 编写,采用 MIT License 许可证,目前获得 7.2k 个 Star、1.6k 次 Fork。

仓库全名
probml/pyprobml

README 摘要

pyprobml Python 3 code to reproduce the figures in the books Probabilistic Machine Learning: An Introduction (aka "book 1") and Probabilistic Machine Learning: Advanced Topics (aka "book 2"). The code uses the standard Python libraries, such as numpy, scipy, matplotlib, sklearn, etc. Some of the code (especially in book 2) also uses JAX, and in some parts of book 1, we also use Tensorflow 2 and a little bit of…

完整内容见 GitHub 原始 README 或本页 。

常见问题

pyprobml 用什么语言开发?

主要使用 Jupyter Notebook 编写,采用 MIT License 许可证,目前有 7.2k 个 Star。

pyprobml 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 pyprobml 的源码?

可以直接克隆仓库:git clone https://github.com/probml/pyprobml.git,默认分支为 master;安装与运行步骤见仓库 README。

pyprobml 最近还在维护吗?

仓库最近一次更新为 1 周前,当前有 39 个未关闭 Issue;Star 数为 7.2k,可作为社区活跃度的参考。

本页面展示项目元数据与原始 README,GitRead 中文社区 编辑团队负责选题收录。

相关仓库

jackfrued/Python-100-Days avatar
Python-100-Daysjackfrued
7月29日
187.8k
55.7k
724

Python——100天从新手到大师

Jupyter Notebook
396.1 MB
8
详情
microsoft/generative-ai-for-beginners avatar
generative-ai-for-beginnersmicrosoft
5 天前
123.3k
66.2k
18

21 节课,开始使用生成式 AI 构建

aiazurechatgpt+11
Jupyter Notebook
6.3 GB
0
详情
rasbt/LLMs-from-scratch avatar
LLMs-from-scratchrasbt
13 小时前
108.1k
16.7k
1

从零开始,逐步用 PyTorch 实现一个类似 ChatGPT 的大语言模型

aiartificial-intelligenceattention-mechanism+16
Jupyter Notebook
16.7 MB
0
详情
microsoft/ML-For-Beginners avatar
ML-For-Beginnersmicrosoft
3 天前
92.1k
22.9k
27

12周,26节课,52个小测验,面向所有人的经典机器学习

data-scienceeducationmachine-learning+9
Jupyter Notebook
2.2 GB
0
详情
microsoft/ai-agents-for-beginners avatar
ai-agents-for-beginnersmicrosoft
2 天前
79.3k
26.0k
5

开始构建 AI 智能体的 18 节课

agentic-aiagentic-frameworkagentic-rag+8
Jupyter Notebook
3.6 GB
0
详情
openai/openai-cookbook avatar
openai-cookbookopenai
12 小时前
77.0k
13.1k
354

使用 OpenAI API 的示例和指南

chatgptgpt-4openai+1
Jupyter Notebook
976.3 MB
0
详情
CompVis/stable-diffusion avatar
stable-diffusionCompVis
2024年6月18日
73.6k
10.7k
619

一个潜空间文本到图像扩散模型

Jupyter Notebook
42.7 MB
0
详情
microsoft/AI-For-Beginners avatar
AI-For-Beginnersmicrosoft
5 天前
70.7k
13.6k
0

12 周,24 节课,人人可用的 AI!

aiartificial-intelligencecnn+7
Jupyter Notebook
1.3 GB
0
详情

关于

jupyter-notebooksmachine-learningcolabpmlprobabilistic-programmingjaxtensorflowpytorchpymc3numpyro
  • MIT License
  • 7.2k Stars
  • 1.6k Forks
  • 194 Watching

简要分析

热度分
10628
价值分
4814
活跃状态
活跃
GitHub

语言占比

Jupyter Notebook
MATLAB
Python
R
Shell
TeX

Release

  • Checkpoint before moving to notebooks for book12022年5月5日

贡献者

murphykmurphykJamesMLdoesMLJamesMLdoesMLkarm-patelkarm-patelmjsMLmjsMLpatel-zeelpatel-zeelkaralleynakaralleynaDrishttiiDrishttiigerdmgerdmashishpapanaiashishpapanaiDuane321Duane321always-newbie161always-newbie161animesh-007animesh-007

pyprobml

Python 3 code to reproduce the figures in the books Probabilistic Machine Learning: An Introduction (aka “book 1”) and Probabilistic Machine Learning: Advanced Topics (aka “book 2”). The code uses the standard Python libraries, such as numpy, scipy, matplotlib, sklearn, etc. Some of the code (especially in book 2) also uses JAX, and in some parts of book 1, we also use Tensorflow 2 and a little bit of Torch. See also probml-utils for some utility code that is shared across multiple notebooks.

For the latest status of the code, see Book 1 dashboard and Book 2 dashboard. As of September 2022, this code is now in maintenance mode.

Running the notebooks

The notebooks needed to make all the figures are available at the following locations.

  • All notebooks (sorted by filename)
  • Book 1 notebooks (sorted by chapter)
  • Book 2 notebooks (sorted by chapter).

Running notebooks in colab

Colab has most of the libraries you will need (e.g., scikit-learn, JAX) pre-installed, and gives you access to a free GPU and TPU. We have a created a colab intro notebook with more details. To run the notebooks on colab in any browser, you can go to a particular notebook on GitHub and change the domain from github.com to githubtocolab.com as suggested here. If you are using Google Chrome browser, you can use “Open in Colab” Chrome extension to do the same with a single click.

Running the notebooks locally

We assume you have already installed JAX and Tensorflow and Torch, since the details on how to do this depend on whether you have a CPU, GPU, etc.

You can use any of the following options to install the other requirements.

  • Option 1
pip install -r https://raw.githubusercontent.com/probml/pyprobml/master/requirements.txt
  • Option 2

Download requirements.txt locally to your path and run

pip install -r requirements.txt
  • Option 3

Run the following. (Note the --depth 1 prevents installing the whole history, which is very large).

git clone --depth 1 https://github.com/probml/pyprobml.git

Then install manually.

If you want to save the figures, you first need to execute something like this

#export FIG_DIR="/teamspace/studios/this_studio/figures"

import os
os.environ["FIG_DIR"] = "/teamspace/studios/this_studio/pyprobml/notebooks/figures"
os.environ["DUAL_SAVE"] = "1" # both pdf and png

This is used by the savefig function to store pdf files.

Cloud computing

When you want more power or control than colab gives you, I recommend you use https://lightning.ai/docs/overview/studios, which makes it very easy to develop using VScode, running on a VM accessed from your web browser; you can then launch on one or more GPUs when needed with a single button click. Alternatively, if you are a power user, you can try Google Cloud Platform, which supports GPUs and TPUs; see this short tutorial on Colab, GCP and TPUs.

How to contribute

See this guide for how to contribute code. Please follow these guidelines to contribute new notebooks to the notebooks directory.

Metrics

Stargazers over time

GSOC

For a summary of some of the contributions to this codebase during Google Summer of Code (GSOC), see these links: 2021 and 2022.

Acknowledgements

For a list of contributors, see this list.

评论

登录 后发表评论
暂无评论
GitRead 中文社区
深度解读 · 趋势洞察 · 价值精选

关于

关于我们联系我们编辑准则收录标准赞赏人员

发现

技术趋势新手训练营资源精选实战指南精选专题热门话题GitHub 文档

条款

隐私政策服务条款网站地图
26.9万收录项目
5.5万中文话题
155精选专题
发现技术价值,连接开源智慧
© 2026 GitRead · GitHub 中文社区 本站与 GitHub, Inc. 无隶属关系;GitHub 是 GitHub, Inc. 的商标。