Part 1 of the course has five sessions, and this guide has one section for each. Every section gives a take-home message, a short list of things you should be able to do, the terms you need, and where to review. Treat the “be able to” lists as a checklist. Try each item on a dataset or repository of your own before you reopen the slides. Each row of a “Numbers to know” table names its source: a slide deck and slide title, or a book section. It also says when the number comes from the speaker notes. If the slides and the book ever define a term differently, use the book’s definition. The guide ends with five ideas that run through the whole quarter and some open questions to test yourself.
Session 1 (Wed Sep 30): Why machine learning in the geosciences¶
An assistant can now write the analysis in minutes. Your job is to decide which question the data can answer, how the result will be tested, and what it means for the Earth.
You should be able to:
Place a published machine-learning result in one of the four uses (automation, discovery, emulation, forecasting) and explain why it does not belong in the other three.
Report every GNSS (Global Navigation Satellite System) velocity with three things attached: its reference frame, its uncertainty, and the estimator that produced it.
Vote on each feature of a residual time series using the three choices on lec01 “Measurement error or model error?”: measurement or processing error, physics the model leaves out, or cannot tell yet. Then list the records that could settle the vote: the station log, NGL’s step list, an earthquake catalog, nearby stations.
Compare a fitted offset with its own uncertainty and with the day-to-day scatter before treating it as a signal.
Say what each letter of FAIR asks of a dataset. Choose a license for the code and a license for the data in your repository.
Check a paper that an assistant suggests: open the publisher’s or archive’s landing page and match the title, author list, year and DOI (lec01 “Pair sprint: paper, evidence, project idea”, notes).
Key terms:
| Term | Meaning in this course |
|---|---|
| Automation | Doing at scale a task that people did by hand. Example: template matching on Southern California Seismic Network (SCSN) waveforms built the Quake Template Matching (QTM) catalog (lec01 “Literature example: Southern California earthquakes”) |
| Discovery | Example: clustering of continuous seismic records turned up new families of repeating signals (lec01 “Four uses of machine learning in the geosciences”, notes). Section 3.3 covers clustering |
| Emulation | Example: GraphCast, trained on the ERA5 reanalysis from the European Centre for Medium-Range Weather Forecasts (ECMWF), produces a 10-day global forecast in under a minute. Another example: machine-learned surrogates for ground-motion simulation (lec01 “Four uses of machine learning in the geosciences”, takeaway and notes) |
| Forecasting | Examples: river floods predicted 5 days ahead in basins without gauges (Nearing et al. 2024), and El Niño predicted more than a year ahead (Ham et al. 2019) (lec01 “Machine learning results in other Earth systems”, notes) |
| NGL | Nevada Geodetic Laboratory, University of Nevada, Reno: the source of the course’s daily GNSS positions (1.7) |
| Trajectory model | NGL’s fit to a station’s position: a constant rate, annual and semi-annual terms, and steps |
| Residual | Observation minus model: what the model did not explain |
| Reference frame | The body or network that a velocity is measured against. NGL publishes each velocity in IGS20 (the International GNSS Service’s realization of the International Terrestrial Reference Frame) and relative to stable North America. 1.7 explains what each frame includes |
| MIDAS | Median Interannual Difference Adjusted for Skewness: NGL’s velocity estimator, built to be insensitive to steps and seasonal signals (1.7; Blewitt et al. 2016) |
| Step list | NGL’s steps.txt: dates when a step may occur, from equipment changes and nearby earthquakes (lec01 “Measurement error or model error?”, notes) |
| Correlated noise | Errors with nonzero autocorrelation at lags of days to months, so the noise power rises toward long periods. White noise has no such correlation (lec01 “What the residual contains”, row E) |
| FAIR | Findable: a persistent identifier (DOI) and rich metadata, indexed somewhere searchable. Accessible: retrievable by a standard protocol such as HTTPS. “Email the author” does not count. Interoperable: open, documented formats and standard vocabularies. Reusable: a clear license and enough provenance to judge fitness for a purpose (1.1 “FAIR principles”) |
| License | The terms under which others may reuse your work. Public does not mean licensed: without a license, nobody may legally reuse or modify the work (1.1 “Licenses”; lec01 “Open, reproducible science: the course standard”, notes) |
| Code and data licenses | MIT or BSD for code; CC-BY or CC0 for data. A repository that holds both states the split in its README (1.1 “Licenses”) |
Numbers to know:
| Quantity | Value | Source |
|---|---|---|
| Events in the QTM catalog vs the SCSN catalog, 2008 to 2017 | 1,811,362 vs 180,069 | lec01 “Literature example: Southern California earthquakes” |
| Magnitude of completeness, SCSN vs QTM | 1.7 vs 0.3 | lec01 “Literature example: Southern California earthquakes” |
| GraphCast vs ECMWF’s high-resolution deterministic forecast (HRES) | better on 90% of 1,380 verification targets | lec01 “Machine learning results in other Earth systems”, notes |
| Machine-learning papers with data leakage (Kapoor and Narayanan 2023) | 294 papers in 17 fields | 1.1, table of reproducibility studies |
Where to review: Session 1 slides; 1.1 Open, reproducible science; 1.7 Get geodetic GNSS data for the frames and MIDAS.
Session 2 (Fri Oct 2): Your reproducible workbench¶
The Turing Way sorts checks of a result into four kinds, by whether the data and the analysis change. Rerunning the same code on the same data is only one of the four. Say which one you ran, and record what someone else needs to run it.
You should be able to:
Place any check of a result in the Turing Way two-by-two table and say what that check does not rule out (1.1 “What each test establishes”).
Take two cases through the table: the aftershock-location network (DeVries et al. 2018; Mignan and Broccardo 2019) and the Northern Hemisphere temperature reconstruction (Mann et al. 1998 through PAGES 2k 2019). Say which cells each one passed and what evidence put it there (1.1; lec02 “What each test establishes”, notes).
Score a repository on rubric v0.1 using evidence you can point to, then compare your scores with a classmate’s (lec02 “Rubric calibration”).
Name the resource that limits a run (CPU, GPU, RAM, storage, network) and choose where the run should go. Follow a job through the five stages on lec02 “How an HPC job reaches hardware” (HPC: high-performance computing).
Make a repository rerun on someone else’s machine. That takes a lockfile, paths relative to the repository root (no
/Users/...), and a README that names the command (1.9 Steps 6 and 7).Run Kernel > Restart Kernel and Run All Cells before you trust a notebook (1.2), and read
git diffbefore every commit (1.5).
The four tests, as 1.1 prints the Turing Way table (lec02 “Same or different data, same or different analysis” shows the same table):
| Same data | Different data | |
|---|---|---|
| Same analysis | Reproducible: the same steps on the same data give the same answer | Replicable: the same analysis on different data gives a qualitatively similar answer |
| Different analysis | Robust: a different workflow on the same data gives a qualitatively similar answer | Generalisable: the answer holds across new data and new analyses |
“Robust” and “Generalisable” keep the Turing Way’s wording and spelling.
Key terms:
| Term | Meaning in this course |
|---|---|
| Baseline | The simplest reasonable model a new method has to beat |
| Data leakage | Information the model would not have at prediction time reaches training or model selection, so the test score is too high (1.1; Kapoor and Narayanan 2023) |
| Observable criterion | A rubric line that names evidence anyone can inspect or rerun |
| Rubric v0.1 scale | 0 missing, 1 present but incomplete, 2 another team can verify it (lec02 “Class rubric v0.1”) |
| Lockfile | pixi.lock, written by pixi, the package manager the course uses. It records the exact version and hash of every package for each listed platform. A clone on the same platform installs the identical set. Another operating system gets the same versions in its own builds, and results can still differ slightly (1.3 “Lockfiles are reproducibility”) |
| Sandbox | Limits that a tool or service places on the software it runs, whatever packages are installed (lec02 “Software boundaries”, notes) |
| Container | An environment that also carries operating-system dependencies, running on the host’s hardware and kernel (lec02 “Software boundaries”, notes) |
| Login node | The shared machine you connect to first on a cluster such as Hyak, UW’s HPC system |
| Compute node | A machine the scheduler assigns to a job |
| Scheduler | The program that queues resource requests (cores, memory, GPUs, wall time) and starts a job when a matching allocation is free (lec02 “How an HPC job reaches hardware”) |
| GPU utilization | A GPU speeds up parallel arithmetic only. It waits whenever the CPU-side data loader or the file system cannot feed it data fast enough (lec02 “CPU and GPU execution models”, notes) |
| Provenance | Source revision and uncommitted changes; data identifiers, versions, the time window and other preprocessing parameters; environment specification and lockfile; command, configuration, random seed and requested resources; logs, warnings and output checksums (lec02 “Minimum computational provenance”) |
| Smoke test | A short run that checks three things: the packages import, a small calculation with a known answer returns it, and the run reaches the end. In your repository it is smoke_test.py, run with pixi run smoke, which checks that a line rising 2.5 mm/yr gives slope 2.5 (1.9 Steps 5 and 6) |
| Staging area | Git’s list of the changes to include in the next commit. git status shows it (1.5) |
| Hidden state | Anything the running kernel remembers that the visible cells, run top to bottom, would not produce (1.2) |
Numbers to know:
| Quantity | Value | Source |
|---|---|---|
| Hydrology articles reproduced (Stagge et al. 2019) | 1.6% of the tested articles, sampled as 360 of 1,989; 95% confidence interval for all 1,989: 0.6 to 6.8% | lec02 “Measured reproducibility in four geoscience fields”, notes; 1.1 |
| Geophysics articles with a data statement vs with original data reachable (Ireland et al. 2023) | 86% vs 54% of 200 | lec02 “Measured reproducibility in four geoscience fields”; 1.1 |
| Geoscience papers whose R code ran with no issues (Konkol et al. 2019) | 2 of 41, with 173 issues logged | lec02 “Measured reproducibility in four geoscience fields”; 1.1 |
| Aftershock rerun input | 57 CSV files, about 400 MB | lec02 “Hardware resources”, notes |
| Aftershock rerun wall time, first run vs cached files | 2 min 39 s vs 25 s (the slide body rounds to 2 min 40 s) | lec02 “Hardware resources”, notes |
Where to review: Session 2 slides; 1.1; 1.2 Jupyter; 1.3 Python environments; 1.4 Computational environments; 1.5 Git; 1.9 HW1.
Session 3 (Mon Oct 5): Reproducible work with agents¶
The specification decides the number. An assistant’s answer counts only after you have checked it against a record the model did not write.
You should be able to:
Read an error message and name the layer it comes from, using the table below.
Write the reference calculation before you ask. It covers the station component, date interval and reference frame; the treatment of missing data, offsets and seasonality; the regression model, units and reported precision; and the tolerance for agreement (lec03 “Numerical calibration protocol”).
Check each suggested citation for existence, bibliographic identity, relevance, and accessibility of evidence (lec03 “Citation calibration protocol”). Report how many passed out of how many you checked.
Write an AGENTS.md in which each rule names the evidence that would show it was followed (1.9 Step 7). Disclose AI help the way the course modes ask: what the tool drafted, what you changed, and how you verified it (lec03 “Course AI modes”, notes; 1.8).
Error messages and the layer they point to:
| Message | Layer | Source |
|---|---|---|
ModuleNotFoundError | environment | lec03 “Agent, tools, environment, sandbox” |
Permission denied | sandbox, or file-system permissions | lec03 “Agent, tools, environment, sandbox”; lec02 “Workbench lab”, notes |
CUDA out of memory | hardware (GPU memory) | lec03 “Agent, tools, environment, sandbox” |
Killed, with no Python traceback | hardware: often the memory limit | lec02 “Workbench lab”, notes |
command not found | shell or PATH | lec02 “Workbench lab”, notes |
Key terms:
| Term | Meaning in this course |
|---|---|
| Agent | A language model plus a set of tools plus a loop over observations (6.1) |
| Specification, execution, interpretation | The three stages of one loop: what was asked, what ran, what was concluded (lec03 “The agent loop”) |
| Attention failure | Important context receives little weight (lec03 “Where errors enter”) |
| Agreement failure | The model follows a user’s wrong framing (lec03 “Where errors enter”) |
| Judgment failure | The model chooses the wrong data, method or interpretation (lec03 “Where errors enter”) |
| Hallucination | A fluent claim or citation with no source behind it (lec03 “Where errors enter”) |
| Calibration | Comparing an assistant’s answers with an independent reference, within a stated tolerance |
| AGENTS.md | The instruction file an agent reads in your repository (1.9 Step 7) |
| Course AI modes | “By hand”: the learning objective requires unaided work. “Assistant allowed”: the assistant may contribute, and the submission discloses its contribution and documents independent verification (1.8; lec03 “Course AI modes”) |
Numbers to know:
| Quantity | Value | Source |
|---|---|---|
| GPT-4 accuracy on IPCC (Intergovernmental Panel on Climate Change) confidence labels | 47% of 300 statements | lec03 “Literature example: GPT-4 and IPCC confidence labels” |
| Three non-expert humans on the same test | 36.3% | lec03 “Literature example: GPT-4 and IPCC confidence labels”, notes |
| Low-confidence statements labeled correctly by GPT-4 | 5 of 50 | lec03 “Literature example: GPT-4 and IPCC confidence labels”, notes |
| Fabricated citations, GPT-3.5 | 55% | lec03 “Where errors enter”, notes |
| Fabricated citations, GPT-4 | 18% | lec03 “Tests of AI assistants against independent records”, notes |
| Real cited works with substantive errors, GPT-3.5 / GPT-4 | 43% / 24% | lec03 “Citation calibration protocol” |
Where to review: Session 3 slides; 1.8 AI in your workflow; 6.1 From LLMs to agents; 1.9 HW1, Step 7.
Session 4 (Wed Oct 7): Data streams, formats, and the first real dataset¶
How a dataset is stored and which copy you read are scientific choices. Match the container to the kind of data, and record exactly which version you used.
You should be able to:
Assign a dataset to one of the three streams (regular series, gridded fields, irregular sparse points) and choose an array or a data frame to hold it.
Explain what a CSV file throws away, and choose among CSV, Parquet, netCDF and Zarr for a given size and use.
Decide whether to pin a file’s checksum (a released file) or log it on every run (a file that keeps changing), and say what a hash mismatch means.
Carry a dataset’s location, reference frame, license and citation into your own repository.
Key terms:
| Term | Meaning in this course |
|---|---|
| Data curation | Selecting, documenting, checking, versioning and licensing data so someone else can reuse it (lec04 “Curation questions, session by session”) |
| Array | A container where position encodes the coordinate; suited to gridded fields |
| Data frame | A table of records with mixed types; suited to per-observation data |
| Self-describing format | netCDF/HDF5: units and coordinates travel with the numbers |
| Chunked format | Zarr: a directory of compressed chunks plus metadata, read in parallel and in parts from cloud storage |
| Checksum | A fingerprint (sha256) of a file’s exact bytes |
| Living file | A file the provider rewrites as new data arrive, such as an NGL .tenv3 series |
| Data card | The document at the end of Chapter 2 (2.20) that records what the data are and what was done to them (lec04 “Curation questions, session by session”) |
Numbers to know:
| Quantity | Value | Source |
|---|---|---|
| Same 3,200-cell temperature field, CSV vs Parquet | 133 kB vs 33 kB | lec04 “One temperature field stored as CSV and as Parquet”; 2.2 |
| Drought uplift, Borsa et al. (2014) | 5 mm median; about 240 Gt of water lost | lec04 “Literature example: drought seen by GNSS” |
| Same uplift from today’s NGL reprocessing | 4.6 mm median | lec04 “Literature example: drought seen by GNSS”, notes |
| Genomics papers with gene names turned into dates | 19.6% | lec04 “Archives and formats behind other results” |
| P563 vertical rate | 7.2 mm/yr subsidence | lec04 “GNSS stations P395 and P563: location and velocity” |
Where to review: Session 4 slides; 2.1 Data definitions; 2.2 Data formats; 1.6 Data gallery; 1.7 Get geodetic GNSS data.
Session 5 (Fri Oct 9): Cleaning tabular data¶
Every cleaning rule changes a number that a conclusion rests on. Base each rule on the column’s physics and metadata, and log what it changed.
You should be able to:
Find the sentinel values in a table and write each replacement rule, with the count it changed and the reason, into the cleaning log.
Recognize values held at a reporting floor, predict which way they bias a mean or a trend, and explain why deleting them does not remove the bias.
Ask what caused each gap, and say when dropping incomplete rows deletes the very events the study is about.
Check column types after every cleaning step, and show how a completeness cut changes a catalog statistic.
Key terms:
| Term | Meaning in this course |
|---|---|
| Sentinel | A placeholder value (0, -999) that an instrument writes when it has no measurement |
| Censored value | A value reported as the floor (or ceiling) because the true value lies beyond it. isna() does not flag it (lec05 “Values censored at a reporting floor”, notes; 2.4) |
| MCAR | Missing completely at random: the gap has nothing to do with the value |
| MNAR | Missing not at random: the value itself causes the gap, as when the flood drowns the gauge |
| Dtype drift | A cleaning step silently changes a column’s type, after which numeric tools skip the column |
| Magnitude of completeness (Mc) | The magnitude above which a catalog records essentially every event |
| b-value | The slope of the magnitude-frequency relation, N(≥M) ∝ 10^(-bM) |
| Cleaning log | Each rule, the count of values it changed, and the reason, recorded in cleaning_log.csv and the data card |
Numbers to know:
| Quantity | Value | Source |
|---|---|---|
| Samples at the 5 mm reporting floor | 12% | lec05 “Values censored at a reporting floor” |
| Fitted trend: true / floor kept / floor dropped | 12.44 / 11.59 / 11.82 mm/yr | lec05 “Effect of the floor on the fitted trend” |
| b-value: all 36,518 events / the 16,892 events at or above Mc = 1.0 | 0.43 / 0.81 | lec05 “Catalog completeness and the b-value” |
| Magnitude types mixed in the same catalog | 33,016 local (ml), 3,323 duration (md) | lec05 “Catalog completeness and the b-value”, notes |
| Sea-surface temperature drop in late 1945 from mixed measurement methods | about 0.3 °C | lec05 “Literature example: ocean temperatures in the 1940s” |
| Drifting buoys vs ships at the same place | buoys about 0.12 °C cooler | lec05 “The same problem in other geoscience tables”, notes |
Column type after replacing zeros with pd.NA | float64 becomes object | lec05 “Cleaning can change a column’s type” |
Where to review: Session 5 slides; 2.3 Pandas; 2.4 DataFrame preparation.
Five ideas that carry the quarter¶
Name the test. Say whether the data changed, the analysis changed, both or neither. Report the cell of the Turing Way table that your evidence supports.
Beat a baseline, on data the model never saw. A complex model earns its place only by doing better than the simplest reasonable one, on a test set that shares nothing with training.
Know the answer before you trust the method. lec05 could measure the bias from a reporting floor exactly because the generator returned the uncensored truth. Your smoke test’s 2.5 mm/yr slope applies the same idea to code.
The specification decides the number. Component, interval, frame, data version and cleaning rules all change the answer. Write them down before you ask a person or an agent.
Check against a record the model did not write, and leave one of your own. That means checkable rules, disclosed AI help, and the commit that ran.
Check yourself¶
None of these has a single right answer. Write a paragraph for each, then compare with a classmate.
P395’s east residual starts to decline months before its 2016 equipment changes (lec01 “What the residual contains”, row D). What data, from this station or others, would tell you whether part of that decline is ground motion?
P563 subsides 7.2 mm/yr (lec04). Propose two observations that would separate groundwater extraction from a tectonic cause, and say which data stream each belongs to.
Pick one result from your own field. For each of the four cells of the Turing Way table, describe a concrete test that would place the result in that cell, and what the test would cost.
Estimate the size of the dataset you plan to use for your project. Which resource will limit your first full run, and where will you run it? What would you write in the README so someone else can request the same resources?
GPT-4 gave a confidence label to all 300 IPCC statements (lec03). Why is a confident answer to every item not evidence of skill? How would you set up an independent check for a question in your project?
Choose one cleaning rule you expect to apply to your project data. Write it as an AGENTS.md rule, then describe what in a transcript or a commit would show that the agent followed it.
Keeping only events at or above Mc moved the b-value from 0.43 to 0.81 (lec05). Name a quantity in your own data that depends on a similar cut, and say how you would report the choice.