Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,24 @@ jobs:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
# Install LaTeX (Support for matplotlib)
- name: Install latex dependencies
shell: bash -l {0}
run: |
apt-get -qq update
export DEBIAN_FRONTEND=noninteractive
apt-get install -y tzdata
apt-get install -y \
texlive-latex-recommended \
texlive-latex-extra \
texlive-fonts-recommended \
texlive-fonts-extra \
texlive-xetex \
latexmk \
xindy \
dvipng \
ghostscript \
cm-super
- name: Setup Anaconda
uses: conda-incubator/setup-miniconda@v2
with:
Expand Down
19 changes: 18 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,24 @@ jobs:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
# Install LaTeX (Support for matplotlib and PDF builds)
- name: Install latex dependencies
shell: bash -l {0}
run: |
apt-get -qq update
export DEBIAN_FRONTEND=noninteractive
apt-get install -y tzdata
apt-get install -y \
texlive-latex-recommended \
texlive-latex-extra \
texlive-fonts-recommended \
texlive-fonts-extra \
texlive-xetex \
latexmk \
xindy \
dvipng \
ghostscript \
cm-super
- name: Setup Anaconda
uses: conda-incubator/setup-miniconda@v2
with:
Expand All @@ -43,7 +61,6 @@ jobs:
shell: bash -l {0}
run: |
pip install --upgrade "jax[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
pip install --upgrade "numpyro[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
nvidia-smi
- name: Install latex dependencies
shell: bash -l {0}
Expand Down
34 changes: 19 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,25 @@ jobs:
options: --gpus all
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
# Install LaTeX (Support for matplotlib and PDF builds)
- name: Install latex dependencies
shell: bash -l {0}
run: |
apt-get -qq update
export DEBIAN_FRONTEND=noninteractive
apt-get install -y tzdata
apt-get install -y \
texlive-latex-recommended \
texlive-latex-extra \
texlive-fonts-recommended \
texlive-fonts-extra \
texlive-xetex \
latexmk \
xindy \
dvipng \
ghostscript \
cm-super
- name: Setup Anaconda
uses: conda-incubator/setup-miniconda@v2
with:
Expand All @@ -47,20 +65,6 @@ jobs:
run: |
pip install --upgrade "jax[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
nvidia-smi
- name: Install Supporting Packages
run: |
apt-get -qq update
export DEBIAN_FRONTEND=noninteractive
apt-get install -y tzdata
apt-get install -y git
apt-get install -y \
texlive-latex-recommended \
texlive-latex-extra \
texlive-fonts-recommended \
texlive-fonts-extra \
texlive-xetex \
latexmk \
xindy
- name: Display Conda Environment Versions
shell: bash -l {0}
run: conda list
Expand Down
2 changes: 1 addition & 1 deletion lectures/mix_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ in conjunction with the `numpy.searchsorted` command to sample from $H$ directly
See <https://numpy.org/doc/stable/reference/generated/numpy.searchsorted.html> for the
`searchsorted` function.

See the Mr. P Solver video on Monte Carlo simulation to see other applications of this powerful trick: <https://www.google.com/search?client=firefox-b-1-d&q=Mr+P+solver+Monte+Carlo#fpstate=ive&vld=cid:bdcddc9f,vid:U00Kseb6SB4>
See the [Mr. P Solver video on Monte Carlo simulation](https://www.google.com/search?client=firefox-b-1-d&q=Mr+P+solver+Monte+Carlo#fpstate=ive&vld=cid:bdcddc9f,vid:U00Kseb6SB4) to see other applications of this powerful trick.

In the Python code below, we'll use both of our methods and confirm that each of them does a good job of sampling
from our target mixture distribution.
Expand Down