Skip to content

Commit

Permalink
🔥 remove notebooks from pymc3, replace with pymc-examples submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Dec 17, 2020
1 parent b7b145d commit a905780
Show file tree
Hide file tree
Showing 95 changed files with 15 additions and 94,303 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "docs/source/pymc-examples"]
path = docs/source/pymc-examples
url = git@github.com:pymc-devs/pymc-examples.git
22 changes: 0 additions & 22 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,6 @@ repos:
- id: requirements-txt-fixer
exclude: ^requirements-dev\.txt$
- id: trailing-whitespace
- repo: https://github.com/nbQA-dev/nbQA
rev: 0.5.5
hooks:
- id: nbqa-black
additional_dependencies: [black==20.8b1]
- id: nbqa-isort
additional_dependencies: [isort==5.6.4]
- id: nbqa-pyupgrade
additional_dependencies: [pyupgrade==2.7.4]
args: [--py37-plus]
- repo: https://github.com/PyCQA/isort
rev: 5.6.4
hooks:
Expand All @@ -45,18 +35,6 @@ repos:
files: ^pymc3/
- repo: local
hooks:
- id: watermark
args: [--negate, --multiline]
entry: '%load_ext watermark.*%watermark -n -u -v -iv -w'
language: pygrep
minimum_pre_commit_version: 2.8.0
name: Check notebooks have watermark (see Jupyter style guide from PyMC3 Wiki)
types: [jupyter]
- id: check-toc
entry: python scripts/check_toc_is_complete.py
language: python
name: Check all notebooks appear in table of contents
types: [jupyter]
- id: check-no-tests-are-ignored
entry: python scripts/check_all_tests_are_covered.py
files: ^\.github/workflows/pytest\.yml$
Expand Down
1 change: 1 addition & 0 deletions build_and_deploy_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
latesttag=$(git describe --tags `git rev-list --tags --max-count=1`)
echo checking out ${latesttag}
git checkout ${latesttag}
git submodule update --init --recursive
pushd docs/source
make html
ghp-import -c docs.pymc.io -n -p _build/html/
Expand Down
8 changes: 4 additions & 4 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,31 +80,31 @@
<h2 class="ui dividing header">In-Depth Guides</h2>
<div class="ui four stackable cards">

<a class="ui link card" href="/Probability_Distributions.html">
<a class="ui link card" href="Probability_Distributions.html">
<div class="content">
<div class="header">Probability Distributions</div>
<div class="description">PyMC3 includes a comprehensive set of pre-defined statistical distributions that can be used as model building blocks.
</div>
</div>
</a>

<a class="ui link card" href="/Gaussian_Processes.html">
<a class="ui link card" href="Gaussian_Processes.html">
<div class="content">
<div class="header">Gaussian Processes</div>
<div class="description">Sometimes an unknown parameter or variable in a model is not a scalar value or a fixed-length vector, but a function. A Gaussian process (GP) can be used as a prior probability distribution whose support is over the space of continuous functions. PyMC3 provides rich support for defining and using GPs.
</div>
</div>
</a>

<a class="ui link card" href="/notebooks/variational_api_quickstart.html">
<a class="ui link card" href="pymc-examples/notebooks/variational_api_quickstart.html">
<div class="content">
<div class="header">Variational Inference</div>
<div class="description">Variational inference saves computational cost by turning a problem of integration into one of optimization. PyMC3's variational API supports a number of cutting edge algorithms, as well as minibatch for scaling to large datasets.
</div>
</div>
</a>

<a class="ui link card" href="/PyMC3_and_Theano.html">
<a class="ui link card" href="PyMC3_and_Theano.html">
<div class="content">
<div class="header">PyMC3 and Theano</div>
<div class="description">Theano is the deep-learning library PyMC3 uses to construct probability distributions and then access the gradient in order to implement cutting edge inference algorithms. More advanced models may be built by understanding this layer.
Expand Down
585 changes: 0 additions & 585 deletions docs/source/notebooks/AR.ipynb

This file was deleted.

697 changes: 0 additions & 697 deletions docs/source/notebooks/BEST.ipynb

This file was deleted.

702 changes: 0 additions & 702 deletions docs/source/notebooks/Bayes_factor.ipynb

This file was deleted.

Loading

0 comments on commit a905780

Please sign in to comment.