- Make sure you have an account with ChatGPT
- Login to or sign up for a GitHub account
- Create a fork of this breakout session materials repository (ETA < 60 seconds)
- Start up a codespace for editing and running the code (opening the link in a new window is recommended)
Select your fork of the session repository (try entering "symposium" to find your forked repository)
Bump system specs to 4-core 8GB RAM
ETA 10-15 seconds - Navigate (on the left) to the
python
directory and double-click5fixed.py
. This will bring up a dialog in the lower right corner of the window. Select install - note that this is installing into the remote codespace, not onto your local computer.
- original
- refactored into function
- optimized with vector operations
- tested
- fixed
- translated
- load from
.mat
files - create reference data
- test translation
- fix translation
- load
.csv
file - aggregate case counts for type A and type B
- calculate mean and variance
- implement test
- run test on reference data
- calculate mean by week
- plot with
matplotlib
- save to
.png
file
*Note: prompts in prompts.txt
- import numpy and matplotlib.pyplot
- prompt for function to run model
- prompt for function invoke model and plot results
This repository clorton/idm-symposium-2023
Takes about 5 minutes to install. Note: about ½ way through the installation there is a prompt to which you must respond in order to continue the installation.
(hover over the commands below to reveal the "copy" button in the upper right corner)
sudo apt update
sudo apt install -y octave
Takes about 5 minutes to install.
(hover over the commands below to reveal the "copy" button in the upper right corner)
# update indices
sudo apt update -qq
# install two helper packages we need
sudo apt install --no-install-recommends software-properties-common dirmngr
# add the signing key (by Michael Rutter) for these repos
# To verify key, run gpg --show-keys /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
# Fingerprint: E298A3A825C0D65DFD57CBB651716619E084DAB9
wget -qO- https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc | sudo tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc
# add the R 4.0 repo from CRAN -- adjust 'focal' to 'groovy' or 'bionic' as needed
sudo add-apt-repository "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/"
sudo apt install --no-install-recommends r-base
Additional steps for integration with GitHub Codespace:
(hover over the commands below to reveal the "copy" button in the upper right corner)
sudo /usr/bin/R --silent --slave --no-save --no-restore -e "install.packages('languageserver', repos='https://cloud.r-project.org/')"
sudo /usr/bin/R --silent --slave --no-save --no-restore -e "install.packages('jsonlite')"