Skip to content

Commit f471c89

Browse files
updated lectures
1 parent b825144 commit f471c89

6 files changed

Lines changed: 168 additions & 140 deletions

File tree

‎lectures/lec_08_pandas.qmd‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -397,14 +397,14 @@ Session VI gave you the basics, so here is why it sometimes fails.
397397

398398
## How it was trained
399399

400-
- **Pre-training**: predict the next token over massive text, where the [weights]{.highlight} inside get adjusted. Applying them afterwards (called *inference*) is much cheaper
400+
- **Pre-training**: predicting the next token over massive text sets the [weights]{.highlight}. Using them later (*inference*) is much cheaper
401401
- **Fine-tuning**: curated examples teach it to follow instructions
402402
- **RLHF** (reinforcement learning from human feedback): humans rank answers and it learns to prefer the ranked-higher ones
403-
- Its knowledge has an end date, the [knowledge cutoff]{.highlight}: after it, it guesses fluently or uses web search. And it inherits the [biases]{.highlight} of the text it read!
403+
- Its knowledge ends at the [knowledge cutoff]{.highlight}: after that, it guesses fluently or searches the web. It also inherits the [biases]{.highlight} of the text it read
404404

405405
. . .
406406

407-
Every stage rewards *sounding* right. Verifacation is your job (at least for now), and step 3 of the verify workflow is how.
407+
Every stage rewards *sounding* right. Verification is your job (for now), and step 3 of the verify workflow is how.
408408

409409
## Disclosure: say what the AI did
410410

@@ -459,12 +459,12 @@ Open the agent panel (the sparkle icon, bottom right), pick **Mistral Vibe**, an
459459

460460
> *In `lab_08_dataroom.py`, fill in `revenue_by_zone` in Task 4: a dict, zone name to euros, from the DataFrame `clean`. Change nothing else.*
461461
462-
1. **Read it**: Zed shows the changes as a *diff*, old lines red, new lines green. Read it **before** you accept
462+
1. **Read it**: Zed shows a *diff*, old lines red, new lines green. Read it **before** you accept
463463
2. **Run it**, then **test it** on a case where you know the answer
464464

465465
. . .
466466

467-
More on how gAI works and how you can use it even better in Session X. Today it is a tool you supervise.
467+
Session X shows how an agent works. Today you supervise it.
468468

469469
# [Wrap-up]{.flow} {.title}
470470

‎lectures/lec_10_projects.qmd‎

Lines changed: 48 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ format:
3737

3838
## The deal closes
3939

40-
The checkpoint is behind you, and so, it turns out, is the startup. Overnight rival chain **MunchCorp** stopped competing and made an offer: they're **buying the company.** The investor read the term sheet, did the math against her own, and told you to take it: her money would have bought growth, theirs buys the whole shop.
40+
The checkpoint is behind you, and so is the startup. Overnight rival chain **MunchCorp** stopped competing and made an offer: they're **buying the company.** The investor read the term sheet, did the math against her own, and told you to take it: her money would have bought growth, theirs buys the whole shop.
4141

4242
. . .
4343

@@ -49,7 +49,7 @@ No cliff-edge growth chart with a chopped axis. Just data that survived a second
4949

5050
## The handover
5151

52-
Tobi's job today is to hand over the **data room**: the folder with every file the company ever built. You know that folder. It's `python-labs`, two labs later.
52+
Tobi's job today is to hand over the **data room**: the folder with every file the company ever built.
5353

5454
. . .
5555

@@ -62,19 +62,15 @@ MunchCorp's lawyer opens it and asks two questions:
6262

6363
Nobody can say. A folder shows what is in it **now**, and nothing about how it got there. Today you give a folder a **history**, with a tool called [git]{.highlight}.
6464

65-
## Your exit package
65+
## The exit package
6666

6767
Every acquisition comes with an exit package. Here's yours: you don't join MunchCorp. You **spin off your own idea** and build it.
6868

6969
. . .
7070

7171
- The tools are the ones professionals use: uv and Zed have been on your laptop since Session VII, **git and GitHub** join them today
7272
- The work is a real project, built in a group of three, over the next weeks
73-
- Today we set up the repo; the building starts here
74-
75-
. . .
76-
77-
Let's get you kitted out.
73+
- Today we set up the repo as the building starts there
7874

7975
# [The Project]{.flow} {.title}
8076

@@ -90,19 +86,18 @@ Over the next weeks you build and present **one real project**.
9086
. . .
9187

9288
:::{.callout-tip}
93-
Pick something you're **actually interested in**. You'll spend real hours on it. Curiosity is the fuel that carries a project past the boring middle.
94-
:::
89+
Pick something you're **actually interested in**. You'll spend real hours on it.
9590

9691
## How it counts
9792

9893
- Project **and** presentation together are worth **40 of the 100** course points, judged on scope, work and presentation. Everyone in a group gets the same points
9994
- Your **commit history counts**: it's the evidence of *how* the work happened, which the final state alone can't show. Commit small and often (git block, shortly)
100-
- **Sessions XI and XII are supervised work sessions**: I'm in the room while you build, so bring your questions
95+
- **Sessions XI and XII are supervised work sessions**: I'm in the room while you build, so you can ask your questions
10196

10297
. . .
10398

10499
:::{.callout-note}
105-
The project need not be flawless; an unfinished one can be presented too. Show that you scoped it realistically, built it in the open, and can explain your own code. That's the bar.
100+
The project need not be flawless, an unfinished one can be presented too! Show that you scoped it realistically, built it in the open, and can explain your own code.
106101
:::
107102

108103
## Games you can play at the demo
@@ -144,7 +139,7 @@ The project need not be flawless; an unfinished one can be presented too. Show t
144139
## Your own idea
145140

146141
- It is the **best choice**, once I approve it. **Make it ambitious**
147-
- Bring it to me today, and we settle scope and feasibility together
142+
- Tell it to me today, and we settle scope and feasibility together
148143
- Every idea on the menu in full, with its core, its stretch and the work for three people: [Project Ideas](../general/project-ideas.qmd)
149144

150145
# [Form your group]{.flow} {.title}
@@ -158,16 +153,16 @@ You build your project with the agent, and the agent lives in Zed. So **every gr
158153

159154
## Take ~25 minutes
160155

161-
Right now, in the room:
156+
Right now:
162157

163-
- **Find your two partners.** No group yet? **Come to the front**, I'll match you
164-
- **Pick a direction** from the menu, or bring your own
165-
- Talk it through: what's the *core* you can definitely finish, what's a *bonus* if time allows?
158+
- **Find your two partners.** No group yet? **Ask me**, I'll match you
159+
- **Pick a direction** from the provided ideas, or bring your own
160+
- Talk it through!
166161

167162
. . .
168163

169164
:::{.callout-tip}
170-
**A good outcome by the end of this block:** a one-sentence pitch ("we're building X that does Y for Z"), a name for the project, and a decision on who owns the shared repo (the owner creates it in the git block; the partners clone). The sentence keeps you honest about scope; the name goes on the repo in a minute.
165+
**A good outcome by the end of this block:** a one-sentence pitch ("we're building X that does Y for Z"), a name for the project, and a decision on who owns the shared repo (the owner creates it in the git block; the partners clone).
171166
:::
172167

173168
# [Your First Repo]{.flow} {.title}
@@ -185,12 +180,12 @@ gh auth status
185180
. . .
186181

187182
:::{.callout-important}
188-
**Missed Session IX, or the login has gone?** Don't burn the session fighting it. Sit with a partner whose laptop works and follow along on the slides. The [one-time setup](../general/git-basics.qmd#one-time-setup) takes ten minutes, at the break or with me in Session XI. Nobody's project stalls on a login.
183+
**Missed Session IX, or the login has gone?** Sit with a partner whose laptop works and follow along on the slides. The [one-time setup](../general/git-basics.qmd#one-time-setup) takes ten minutes, at the break or with me in Session XI.
189184
:::
190185

191186
## Your project starts on GitHub
192187

193-
Everyone, right now, a **practice repo**. On [github.com](https://github.com) click **New repository**, then:
188+
Everyone, right now, create a **practice repo**. On [github.com](https://github.com) click **New repository**, then:
194189

195190
- **Name**: `python-practice`
196191
- **Private**; tick **Add a README file**
@@ -200,11 +195,11 @@ Everyone, right now, a **practice repo**. On [github.com](https://github.com) cl
200195

201196
. . .
202197

203-
That's a **repository**: a folder git watches, with its whole history. So far it lives only on GitHub. Next we bring it down.
198+
That's a **repository**: a folder git watches, with its whole history. So far it is only on GitHub.
204199

205200
## Bring it down: clone
206201

207-
In Zed's command palette (`Cmd/Ctrl+Shift+P`): **`git: clone`**, paste the URL, and pick the folder that `python-labs` sits in, so the repo lands **next to** `python-labs` and not inside it. Zed opens the new folder as your workspace: the file tree on the left shows `README.md` and `.gitignore`.
202+
In Zed's command palette (`Cmd/Ctrl+Shift+P`): **`git: clone`**, paste the URL, and pick the parent folder that your course code sits in, so the repo lands **next to** it and not inside it. Zed opens the new folder as your workspace: the file tree on the left shows `README.md` and `.gitignore`.
208203

209204
The same in the terminal. Use one way, not both:
210205

@@ -215,7 +210,7 @@ git clone https://github.com/you/python-practice.git
215210
. . .
216211

217212
:::{.callout-note}
218-
Everything from here on happens **inside this folder**: git, uv, the AI. If Zed ever shows an empty file tree, **File → Open Folder** and pick the cloned folder itself, not the one above it.
213+
Everything from here on happens **inside this folder**: git, uv, the AI. If Zed ever shows an empty file tree, **File → Open Folder** and pick the cloned folder itself.
219214
:::
220215

221216
## Make it a Python project: `uv init`
@@ -232,7 +227,7 @@ uv run python main.py
232227
. . .
233228

234229
:::{.callout-note}
235-
**`--no-package`** keeps it a flat folder of scripts, like `python-labs`, which the same command made in Session VII; without it, uv builds an installable package layout you don't need yet. And no `git init`: the folder came from GitHub, it **is** a git repository already.
230+
**`--no-package`** keeps it a flat folder of scripts. Without it, uv builds an installable package layout you don't need yet. And no `git init`: the folder came from GitHub, it **is** a git repository already.
236231
:::
237232

238233
## Same agent, new folder
@@ -241,7 +236,7 @@ Part III **encourages** AI, and your agent is already here: Mistral Vibe works i
241236

242237
> *Explain what `main.py` does, then add a one-line comment at the top that says so. Don't change anything else.*
243238
244-
This time, **watch the panel while it works:** what does Vibe do before it shows you a change? Then read the diff before you accept it, as always.
239+
This time, **watch the panel while it works:** what does Vibe do before it shows you a change? Then read the diff before you accept it.
245240

246241
. . .
247242

@@ -251,7 +246,7 @@ The disclosure rule applies from today: your repo's `README.md` says **which too
251246

252247
## Inside the panel: a model in a loop
253248

254-
- Mistral Vibe is an [agent]{.highlight}: the language model you met in Session VI, wired into a loop with tools
249+
- Mistral Vibe is an [agent]{.highlight}, wired into a loop with tools
255250
- The model **proposes** an action: read a file, edit a line, run a command
256251
- The tool **runs** it, the result **feeds back**, and it proposes again, until the goal is met
257252
- No magic, and no memory between sessions
@@ -260,6 +255,16 @@ The disclosure rule applies from today: your repo's `README.md` says **which too
260255

261256
Every failure mode from Sessions VI and VIII applies at every step, and a loop gives them many steps to compound in. The diff you just read is the guardrail.
262257

258+
## One prompt, no feedback
259+
260+
Ethan Mollick, an entrepreneurship professor, gave Anthropic's model Fable 5.2 a single prompt: *"create the most impressive thing I can share with people when you launch."* He gave no feedback after that [@mollick_fable_2026].
261+
262+
[Watch what it made, to the end](https://www.oneusefulthing.org/p/fable-52-and-jagged-agi)
263+
264+
. . .
265+
266+
Mollick also found some misses. Fable's first course website was "accurate and joyless", and "the AI did not notice these problems itself." Noticing stays your job (at least for now).
267+
263268
# [Git]{.flow} {.title}
264269

265270
## The five words
@@ -274,7 +279,7 @@ Git has a small vocabulary. These five cover all this project needs:
274279

275280
. . .
276281

277-
Two of them you've already done: the repo exists, and you cloned it. The other three now, **live, in your practice repo**. Mistakes are cheap when the repo is five minutes old.
282+
Two of them you've already done: the repo exists, and you cloned it. The other three now, **live, in your practice repo**.
278283

279284
## Your first commit
280285

@@ -314,7 +319,7 @@ Two commits in, the folder has a history. Read it:
314319
git log --oneline
315320
```
316321

317-
One line per commit, newest first: a short ID and the message. Yours sits on top of GitHub's `Initial commit`. On github.com, **Commits** (top right of the file list) shows the same list with author and time; click a commit to see what it changed.
322+
One line per commit, newest first: a short ID and the message. Yours sits on top of GitHub's `Initial commit`. On github.com, **Commits** (top right of the file list) shows the same list with author and time, click a commit to see what it changed.
318323

319324
. . .
320325

@@ -359,39 +364,33 @@ Cloning brings the whole project, its history and the connection to GitHub; the
359364

360365
All of you have now pushed and pulled in the real repo. On github.com, **Commits** shows every name.
361366

362-
. . .
363-
364-
:::{.callout-note}
365-
**Clock ran out?** This step can wait: inviting and cloning works just as well at the start of **Session XI**, with me in the room.
366-
:::
367-
368367
## How we work together
369368

370-
Three people, one repo. Four habits keep it painless:
369+
Three people, one repo. Four habits keep it easy:
371370

372371
- **Pull before you start.** `git: pull` first, every session: this alone prevents almost every problem
373372
- **Commit small and often.** Clear messages, no giant commits
374-
- **A conflict? Call me.** If git marks a clash, don't fix it alone in week one. Bring it to class
373+
- **A conflict? Call me.** If git marks a clash, don't fix it alone in week one. Ask me!
375374
- **Never force anything.** No `--force`, no "force push", ever
376375

377376
. . .
378377

379378
:::{.callout-note}
380-
Everything today (the actions, the terminal equivalents, the setup, and a **cheatsheet table**) lives on the [Git Basics](../general/git-basics.qmd) page. When today's follow-along is a fading memory, that's the page you reopen.
379+
Everything today (the actions, the terminal equivalents, the setup, and a **cheatsheet table**) lives on the [Git Basics](../general/git-basics.qmd) page.
381380
:::
382381

383382
# [Send-off]{.flow} {.title}
384383

385384
## The road to the finish
386385

387-
- **Session XI**: work session, plus one short segment: why AI text now carries a watermark, and why that makes your README disclosure standard practice
388-
- **Session XII**: work session, plus teaching your agent your project's rules
389-
- **Session XIII**: Demo Day, and where this course hands you over to your thesis
386+
- **Session XI**: work session, plus teaching your agent your project's rules
387+
- **Session XII**: work session, plus why AI text now carries a watermark, and what AI means for your first job
388+
- **Session XIII**: Final presentations
390389

391390
. . .
392391

393392
:::{.callout-tip}
394-
Between now and then, the repo tells your story. Commit as you go. A steady history is worth more than a heroic final night.
393+
Between now and then, the repo tells your story. Commit as you go!
395394
:::
396395

397396
# [Demo Day]{.flow} {.title}
@@ -405,16 +404,21 @@ Between now and then, the repo tells your story. Commit as you go. A steady hist
405404
## What to show
406405

407406
- **The thing running.** The output, and the command that produces it
408-
- **How you worked.** Open the repo: the commit history instead of describing it
409407
- **Your AI disclosure.** Which tool, what for, what you verified yourself
410408
- **What went wrong.** Where you had to step in, what cost you an hour
411409

412410
. . .
413411

414-
Your machine, your repo, your demo: it must run from the clone on the room's projector.
415-
412+
Your computer, your repo, your demo: it must run in class.
416413
## The reference pages
417414

418415
::: {.callout-note}
419416
The [Git Basics](../general/git-basics.qmd) page is the reference version of everything we did live today. The setup from Session VII lives on [Installing Python](../general/uv.qmd) and [AI Tools](../general/ai-tools.qmd).
420417
:::
418+
419+
# [Literature]{.flow} {.title}
420+
421+
## References
422+
423+
::: {#refs}
424+
:::

0 commit comments

Comments
 (0)