From 54598da1dd28e2398d92bf8cc7b9cb690b406780 Mon Sep 17 00:00:00 2001 From: mmcky Date: Thu, 7 Mar 2024 15:08:57 +1100 Subject: [PATCH 1/8] MAINT: update to anaconda=2024.02 --- .github/workflows/cache.yml | 2 +- .github/workflows/ci.yml | 2 +- .github/workflows/publish.yml | 2 +- environment.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index 26ed9d211..21c2a3824 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eef986f1c..3ad57ca07 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2a12516ed..62bce1c35 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 diff --git a/environment.yml b/environment.yml index 8571e5734..ef4c3bf36 100644 --- a/environment.yml +++ b/environment.yml @@ -3,7 +3,7 @@ channels: - default dependencies: - python=3.11 - - anaconda=2023.09 + - anaconda=2024.02 - pip - pip: - jupyter-book==0.15.1 From 32578091af78181d2006575d9fe4469a86d7b5e3 Mon Sep 17 00:00:00 2001 From: mmcky Date: Thu, 7 Mar 2024 15:09:21 +1100 Subject: [PATCH 2/8] TMP: remove cache for full test build --- .github/workflows/ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3ad57ca07..40f64b26b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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} From 0ef7fd6ba99db3d5e4ecfa2e5c5aa5d55426b0f7 Mon Sep 17 00:00:00 2001 From: mmcky Date: Fri, 8 Mar 2024 11:31:41 +1100 Subject: [PATCH 3/8] fix linkchecker --- lectures/_static/quant-econ.bib | 8 ++++++++ lectures/var_dmd.md | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lectures/_static/quant-econ.bib b/lectures/_static/quant-econ.bib index 0d00d3caa..512810f5d 100644 --- a/lectures/_static/quant-econ.bib +++ b/lectures/_static/quant-econ.bib @@ -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} +} \ No newline at end of file diff --git a/lectures/var_dmd.md b/lectures/var_dmd.md index 54d5d2fab..9a9bacea9 100644 --- a/lectures/var_dmd.md +++ b/lectures/var_dmd.md @@ -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`. From 1c3c2bd2de17d8ff1bf178516d0b50ef92f87e5f Mon Sep 17 00:00:00 2001 From: mmcky Date: Thu, 21 Mar 2024 14:38:39 +1100 Subject: [PATCH 4/8] update status page --- lectures/status.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/lectures/status.md b/lectures/status.md index 8309f5100..3ada25f02 100644 --- a/lectures/status.md +++ b/lectures/status.md @@ -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. \ No newline at end of file +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 +``` \ No newline at end of file From 7e144fa6bb468e4f238bbd87ac7f4079b59c5dff Mon Sep 17 00:00:00 2001 From: mmcky Date: Thu, 21 Mar 2024 14:42:33 +1100 Subject: [PATCH 5/8] install interpolation from repo --- lectures/odu.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/odu.md b/lectures/odu.md index 0cfe26943..6bab398e9 100644 --- a/lectures/odu.md +++ b/lectures/odu.md @@ -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 ``` ## Overview From 192d7bfa2fd0225186c3623d982444cbf66b9cf2 Mon Sep 17 00:00:00 2001 From: mmcky Date: Fri, 22 Mar 2024 16:15:40 +1100 Subject: [PATCH 6/8] v2 of cml runner --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 40f64b26b..58d4ff81a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} From 7c3e29b70496e451ce315b01851798e71d56300b Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Fri, 26 Apr 2024 16:12:41 +1000 Subject: [PATCH 7/8] Update lectures/odu.md reverts to pypi version which is currently `2.2.6` --- lectures/odu.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/odu.md b/lectures/odu.md index 6bab398e9..0cfe26943 100644 --- a/lectures/odu.md +++ b/lectures/odu.md @@ -30,7 +30,7 @@ In addition to what’s in Anaconda, this lecture deploys the libraries: --- tags: [hide-output] --- -!pip install git+https://github.com/EconForge/interpolation.py +!pip install interpolation ``` ## Overview From f1894411ca99ed1eaf5a66258ace3255c53acdf5 Mon Sep 17 00:00:00 2001 From: mmcky Date: Fri, 26 Apr 2024 20:46:01 +1000 Subject: [PATCH 8/8] enable build cache --- .github/workflows/ci.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 58d4ff81a..993bd5e5d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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}