Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: Upgrade to anaconda=2024.02 and cuda=12.3.1 #388

Merged
merged 12 commits into from
Apr 29, 2024
2 changes: 1 addition & 1 deletion .github/workflows/cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
needs: deploy-runner
runs-on: [self-hosted, cml-gpu]
container:
image: docker://mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-09-py311-c
image: docker://mmcky/quantecon-lecture-python:cuda-12.3.1-anaconda-2024-02-py311
options: --gpus all
steps:
- uses: actions/checkout@v3
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
deploy-runner:
runs-on: ubuntu-latest
steps:
- uses: iterative/setup-cml@v1
- uses: iterative/setup-cml@v2
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
Expand All @@ -24,7 +24,7 @@ jobs:
needs: deploy-runner
runs-on: [self-hosted, cml-gpu]
container:
image: docker://mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-09-py311-c
image: docker://mmcky/quantecon-lecture-python:cuda-12.3.1-anaconda-2024-02-py311
options: --gpus all
steps:
- uses: actions/checkout@v3
Expand All @@ -40,13 +40,13 @@ jobs:
- name: Display Pip Versions
shell: bash -l {0}
run: pip list
- name: Download "build" folder (cache)
uses: dawidd6/action-download-artifact@v2
with:
workflow: cache.yml
branch: main
name: build-cache
path: _build
# - name: Download "build" folder (cache)
# uses: dawidd6/action-download-artifact@v2
# with:
# workflow: cache.yml
# branch: main
# name: build-cache
# path: _build
# Build Assets (Download Notebooks and PDF via LaTeX)
- name: Build Download Notebooks (sphinx-tojupyter)
shell: bash -l {0}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
needs: deploy-runner
runs-on: [self-hosted, cml-gpu]
container:
image: docker://mmcky/quantecon-lecture-python:cuda-12.1.0-anaconda-2023-09-py311-c
image: docker://mmcky/quantecon-lecture-python:cuda-12.3.1-anaconda-2024-02-py311
options: --gpus all
steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- default
dependencies:
- python=3.11
- anaconda=2023.09
- anaconda=2024.02
- pip
- pip:
- jupyter-book==0.15.1
Expand Down
8 changes: 8 additions & 0 deletions lectures/_static/quant-econ.bib
Original file line number Diff line number Diff line change
Expand Up @@ -2514,3 +2514,11 @@ @article{stachurski2019impossibility
year = {2019},
publisher = {Elsevier}
}

@book{Brunton_Kutz_2019,
place = {Cambridge},
title = {Data-Driven Science and Engineering: Machine Learning, Dynamical Systems, and Control},
publisher = {Cambridge University Press},
author = {Brunton, Steven L. and Kutz, J. Nathan},
year = {2019}
}
2 changes: 1 addition & 1 deletion lectures/odu.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ In addition to what’s in Anaconda, this lecture deploys the libraries:
---
tags: [hide-output]
---
!pip install interpolation
!pip install git+https://github.com/EconForge/interpolation.py
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jstac this installs interpolation package in the odu lecture from the main branch of the repo as it isn't released to pypi yet. Are you happy to run with this until pypi is updated?

mmcky marked this conversation as resolved.
Show resolved Hide resolved
```

## Overview
Expand Down
17 changes: 14 additions & 3 deletions lectures/status.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ This table contains the latest execution statistics.

(status:machine-details)=

These lectures are built on `linux` instances through `github actions` and `amazon web services (aws)` to
enable access to a `gpu`. These lectures are built on a [p3.2xlarge](https://aws.amazon.com/ec2/instance-types/p3/)
that has access to `8 vcpu's`, a `V100 NVIDIA Tesla GPU`, and `61 Gb` of memory.
These lectures are built on `linux` instances through `github actions`.

These lectures are using the following python version

```{code-cell} ipython
!python --version
```

and the following package versions

```{code-cell} ipython
:tags: [hide-output]
!conda list
```
2 changes: 1 addition & 1 deletion lectures/var_dmd.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ Here an $ m \times n+1 $ data matrix $ \tilde X $ contains many more attributes

Dynamic mode decomposition was introduced by {cite}`schmid2010`,

You can read about Dynamic Mode Decomposition here {cite}`DMD_book` and here [[BK19](https://python.quantecon.org/zreferences.html#id25)] (section 7.2).
You can read about Dynamic Mode Decomposition here {cite}`DMD_book` and here {cite}`Brunton_Kutz_2019` (section 7.2).

**Dynamic Mode Decomposition** (DMD) computes a rank $ r < p $ approximation to the least squares regression coefficients $ \hat A $ described by formula {eq}`eq:AhatSVDformula`.

Expand Down
Loading