pyprobml-dummy
Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
1 of 3 committers (33.3%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.8%) to scientific vocabulary
Repository
Basic Info
- Host: GitHub
- Owner: patel-zeel
- License: mit
- Language: Python
- Default Branch: notebook_first_trial
- Homepage: https://patel-zeel.github.io/pyprobml-fork/
- Size: 13.8 MB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
pyprobml
Python 3 code to reproduce the figures in the book series Probabilistic Machine Learning by Kevin Patrick Murphy. This is work in progress, so expect rough edges! (Some demos use code from our companion JAX State Space Library.)
Running the notebooks
The scripts needed to make all the figures for each chapter are automatically combined together into a series of Jupyter notebooks, one per chapter. * Volume 1 figure notebooks * Volume 2 figure notebooks. (Note: volume 2 is not finished yet.)
In addition to the automatically generated notebooks, there are a series of manually created notebooks, which create additional figures, and provide supplementary material for the book. These are stored in the notebooks repo, since they can be quite large. Some of these notebooks use the scripts mentioned above, but others are independent of the book content.
The easiest way to run these notebooks is inside Colab. This 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 intro to colab notebook with more details.
Running scripts in colab
The easiest way to run individual scripts is inside Colab.
Just cut and paste this into a code cell:
py
%pip install superimport
!git clone --depth 1 https://github.com/probml/pyprobml &> /dev/null # THIS CODEBASE
Note: The superimport
library will automatically install packages for any file which contains the line `import superimport'.
Then run a script from a cell like this:
py
%run pyprobml/scripts/softmax_plot.py
To edit a file locally and then run it, follow the example below. ```py
Make sure local changes to file are detected by runtime
%load_ext autoreload %autoreload 2
file = 'pyprobml/scripts/softmax_plot.py' # change this filename as needed from google.colab import files files.view(file) # open editor
%run $file ```
To download and run code from github, follow the example below.
(Note the raw in the URL.)
py
!wget -q https://raw.githubusercontent.com/probml/pyprobml/master/scripts/softmax_plot.py
%run softmax_plot.py
Running the scripts 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.
For the remaining python packages, do this:
bash
pip install superimport
git clone --depth 1 https://github.com/probml/pyprobml &> /dev/null # THIS CODEBASE
Note: The superimport library will automatically install packages for any file which contains the line `import superimport'.
To manually execute an individual script from the command line,
follow this example:
bash
python3 pyprobml/scripts/softmax_plot.py
This will run the script, plot a figure, and save the result to the pyprobml/figures directory.
Running scripts for vol 2
Some demos for vol 2 use JSL (Jax State-space Library).
This requires extra packages, see these installation instructions.
Then you can run the pyprobml version of the JSL demos like this
%run pyprobml/scripts/kf_tracking_demo.py # colab
python3 pyprobml/scripts/kf_tracking_demo.py # locally
GCP, TPUs, and all that
When you want more power or control than colab gives you, you should get a Google Cloud Platform (GCP) account, and get access to a TPU VM. You can then use this as a virtual desktop which you can access via ssh from inside VScode. We have created various tutorials on Colab, GCP and TPUs with more information.
How to contribute
See this guide for how to contribute code.
Metrics
GSOC 2021
For a summary of some of the contributions to this codebase during Google Summer of Code 2021, see this link.
Acknowledgements
I would like to thank the following people for contributing to the code (list autogenerated from this page):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
murphyk|mjsML|Drishttii|Duane321|gerdm|animesh-007|Nirzu97|always-newbie161|karalleyna|nappaillav|jdf22|shivaditya-meduri|Neoanarika|andrewnc|Abdelrahman350|Garvit9000c|kzymgch|alen1010|adamnemecek|galv|krasserm|nealmcb|petercerno|Prahitha|khanshehjad|hieuza|jlh2018|mvervuurt|TripleTop|
Owner
- Name: Zeel B Patel
- Login: patel-zeel
- Kind: user
- Location: Gandhinagar, Gujarat, India
- Company: IIT Gandhinagar
- Website: patel-zeel.github.io
- Twitter: patel_zeel_
- Repositories: 19
- Profile: https://github.com/patel-zeel
Citation (CITATION.cff)
# YAML 1.2
---
authors:
-
family-names: Murphy
given-names: Kevin
-
family-names: Soliman
given-names: Mahmoud
-
family-names: "Duran-Martin"
given-names: "Gerardo"
-
family-names: Kara
given-names: Aleyna
-
family-names: "Liang Ang"
given-names: Ming
-
family-names: Reddy
given-names: Srikar
-
family-names: Patel
given-names: Drishti
cff-version: "1.1.0"
date-released: 2021-08-25
message: "If you use this software, please cite it using these metadata."
title: "PyProbML library for Probabilistic Machine Learning"
...
GitHub Events
Total
Last Year
Committers
Last synced: over 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| patel-zeel | p****l@i****n | 72 |
| Automated Publisher | a****s | 13 |
| karm-patel | k****6@g****m | 11 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 0
- Total pull requests: 5
- Average time to close issues: N/A
- Average time to close pull requests: about 5 hours
- Total issue authors: 0
- Total pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 1.0
- Merged pull requests: 4
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
- karm-patel (5)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- jupyter-book *
- sphinx ==4.2.0