Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Study guide: Part 1, Sessions 1 to 5 (Sep 30 to Oct 9)

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:

Key terms:

TermMeaning in this course
AutomationDoing 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”)
DiscoveryExample: 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
EmulationExample: 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)
ForecastingExamples: 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)
NGLNevada Geodetic Laboratory, University of Nevada, Reno: the source of the course’s daily GNSS positions (1.7)
Trajectory modelNGL’s fit to a station’s position: a constant rate, annual and semi-annual terms, and steps
ResidualObservation minus model: what the model did not explain
Reference frameThe 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
MIDASMedian 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 listNGL’s steps.txt: dates when a step may occur, from equipment changes and nearby earthquakes (lec01 “Measurement error or model error?”, notes)
Correlated noiseErrors 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)
FAIRFindable: 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”)
LicenseThe 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 licensesMIT 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:

QuantityValueSource
Events in the QTM catalog vs the SCSN catalog, 2008 to 20171,811,362 vs 180,069lec01 “Literature example: Southern California earthquakes”
Magnitude of completeness, SCSN vs QTM1.7 vs 0.3lec01 “Literature example: Southern California earthquakes”
GraphCast vs ECMWF’s high-resolution deterministic forecast (HRES)better on 90% of 1,380 verification targetslec01 “Machine learning results in other Earth systems”, notes
Machine-learning papers with data leakage (Kapoor and Narayanan 2023)294 papers in 17 fields1.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:

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 dataDifferent data
Same analysisReproducible: the same steps on the same data give the same answerReplicable: the same analysis on different data gives a qualitatively similar answer
Different analysisRobust: a different workflow on the same data gives a qualitatively similar answerGeneralisable: the answer holds across new data and new analyses

“Robust” and “Generalisable” keep the Turing Way’s wording and spelling.

Key terms:

TermMeaning in this course
BaselineThe simplest reasonable model a new method has to beat
Data leakageInformation 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 criterionA rubric line that names evidence anyone can inspect or rerun
Rubric v0.1 scale0 missing, 1 present but incomplete, 2 another team can verify it (lec02 “Class rubric v0.1”)
Lockfilepixi.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”)
SandboxLimits that a tool or service places on the software it runs, whatever packages are installed (lec02 “Software boundaries”, notes)
ContainerAn environment that also carries operating-system dependencies, running on the host’s hardware and kernel (lec02 “Software boundaries”, notes)
Login nodeThe shared machine you connect to first on a cluster such as Hyak, UW’s HPC system
Compute nodeA machine the scheduler assigns to a job
SchedulerThe 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 utilizationA 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)
ProvenanceSource 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 testA 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 areaGit’s list of the changes to include in the next commit. git status shows it (1.5)
Hidden stateAnything the running kernel remembers that the visible cells, run top to bottom, would not produce (1.2)

Numbers to know:

QuantityValueSource
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 200lec02 “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 loggedlec02 “Measured reproducibility in four geoscience fields”; 1.1
Aftershock rerun input57 CSV files, about 400 MBlec02 “Hardware resources”, notes
Aftershock rerun wall time, first run vs cached files2 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:

Error messages and the layer they point to:

MessageLayerSource
ModuleNotFoundErrorenvironmentlec03 “Agent, tools, environment, sandbox”
Permission deniedsandbox, or file-system permissionslec03 “Agent, tools, environment, sandbox”; lec02 “Workbench lab”, notes
CUDA out of memoryhardware (GPU memory)lec03 “Agent, tools, environment, sandbox”
Killed, with no Python tracebackhardware: often the memory limitlec02 “Workbench lab”, notes
command not foundshell or PATHlec02 “Workbench lab”, notes

Key terms:

TermMeaning in this course
AgentA language model plus a set of tools plus a loop over observations (6.1)
Specification, execution, interpretationThe three stages of one loop: what was asked, what ran, what was concluded (lec03 “The agent loop”)
Attention failureImportant context receives little weight (lec03 “Where errors enter”)
Agreement failureThe model follows a user’s wrong framing (lec03 “Where errors enter”)
Judgment failureThe model chooses the wrong data, method or interpretation (lec03 “Where errors enter”)
HallucinationA fluent claim or citation with no source behind it (lec03 “Where errors enter”)
CalibrationComparing an assistant’s answers with an independent reference, within a stated tolerance
AGENTS.mdThe 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:

QuantityValueSource
GPT-4 accuracy on IPCC (Intergovernmental Panel on Climate Change) confidence labels47% of 300 statementslec03 “Literature example: GPT-4 and IPCC confidence labels”
Three non-expert humans on the same test36.3%lec03 “Literature example: GPT-4 and IPCC confidence labels”, notes
Low-confidence statements labeled correctly by GPT-45 of 50lec03 “Literature example: GPT-4 and IPCC confidence labels”, notes
Fabricated citations, GPT-3.555%lec03 “Where errors enter”, notes
Fabricated citations, GPT-418%lec03 “Tests of AI assistants against independent records”, notes
Real cited works with substantive errors, GPT-3.5 / GPT-443% / 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:

Key terms:

TermMeaning in this course
Data curationSelecting, documenting, checking, versioning and licensing data so someone else can reuse it (lec04 “Curation questions, session by session”)
ArrayA container where position encodes the coordinate; suited to gridded fields
Data frameA table of records with mixed types; suited to per-observation data
Self-describing formatnetCDF/HDF5: units and coordinates travel with the numbers
Chunked formatZarr: a directory of compressed chunks plus metadata, read in parallel and in parts from cloud storage
ChecksumA fingerprint (sha256) of a file’s exact bytes
Living fileA file the provider rewrites as new data arrive, such as an NGL .tenv3 series
Data cardThe 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:

QuantityValueSource
Same 3,200-cell temperature field, CSV vs Parquet133 kB vs 33 kBlec04 “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 lostlec04 “Literature example: drought seen by GNSS”
Same uplift from today’s NGL reprocessing4.6 mm medianlec04 “Literature example: drought seen by GNSS”, notes
Genomics papers with gene names turned into dates19.6%lec04 “Archives and formats behind other results”
P563 vertical rate7.2 mm/yr subsidencelec04 “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:

Key terms:

TermMeaning in this course
SentinelA placeholder value (0, -999) that an instrument writes when it has no measurement
Censored valueA 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)
MCARMissing completely at random: the gap has nothing to do with the value
MNARMissing not at random: the value itself causes the gap, as when the flood drowns the gauge
Dtype driftA 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-valueThe slope of the magnitude-frequency relation, N(≥M) ∝ 10^(-bM)
Cleaning logEach rule, the count of values it changed, and the reason, recorded in cleaning_log.csv and the data card

Numbers to know:

QuantityValueSource
Samples at the 5 mm reporting floor12%lec05 “Values censored at a reporting floor”
Fitted trend: true / floor kept / floor dropped12.44 / 11.59 / 11.82 mm/yrlec05 “Effect of the floor on the fitted trend”
b-value: all 36,518 events / the 16,892 events at or above Mc = 1.00.43 / 0.81lec05 “Catalog completeness and the b-value”
Magnitude types mixed in the same catalog33,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 methodsabout 0.3 °Clec05 “Literature example: ocean temperatures in the 1940s”
Drifting buoys vs ships at the same placebuoys about 0.12 °C coolerlec05 “The same problem in other geoscience tables”, notes
Column type after replacing zeros with pd.NAfloat64 becomes objectlec05 “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

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  1. 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?

  2. 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.

  3. 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.

  4. 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?

  5. 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?

  6. 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.

  7. 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.