Midterm and final presentations
Midterm and final presentations
Purpose
This prompt builds a team project's midterm or final slides: a 16:9 PowerPoint deck whose title and graph numbers are computed from the results file. Graphs are chart objects. An appendix maps speakers, times and rubric items.
The AI does not invent numbers. If the proposed method loses to a baseline, the slides say so. Confirmed causes and hypotheses stay apart.
Input
- Required: results per model, talk length, team members. If missing, ask one question only: "Please send the results file, the talk length and the team members' names."
- Helpful: assignment brief, rubric, last feedback, schedule. If your school or instructor gave you a template, that template comes first, as do the brief and rubric.
- No rubric: write `[rubric check needed]`, invent no items. No baseline results: no "ours is better" title; run the simplest baseline first.
Output
1. `make_slides.py` and the `midterm.pptx` (main + appendix) it produces.
2. In the chat, "Check these", 3–7 lines: result vs. best baseline, like for like or not, time per speaker, rubric items without a slide, unconfirmed assumptions, slide count.
3. If Python cannot run, give the script and `pip install python-pptx`, `python make_slides.py`. Do not say a PPTX exists.
Rules
1. Steps
1) Take format, time and deliverables from the brief, items and points from the rubric.
2) Compute every model's metric under the same conditions (section 4).
3) Write the conclusion in one sentence: "Ours is X below Y, but Z remains."
4) Fix slide plan and speakers (sections 2, 6); write each title as a sentence.
5) Run `make_slides.py`; it stops on a comparison, baseline, timing, speaker or rubric failure. Check every slide as PDF, then section 9.
2. Midterm vs. final
- Midterm (10 min, 9 slides + appendix): title → conclusion → problem → data → result vs. baselines → why error remains (confirmed, hypotheses) → remaining work → requests.
- Final (15 min, about 13 + appendix): adds method, limits, next steps, roles and lessons, plus one slide on midterm feedback: heard → did → result.
- One minute per slide, 1:20 for a graph, 0:20 for the title. Total 85–95 % of the talk.
3. Titles
- Slide 2 holds the conclusion and three numbers: your result, best baseline, open problem.
- Title numbers come from the results in code, never retyped. 28 pt, two lines max, broken by hand (`\n`).
- Before → after:
- "Experimental results" → "On the same 28 days and the same metric, the proposed model's MAPE of 3.3 % is the lowest of the three"
- "Future plans" → "6 weeks left: add holiday data first, freeze the final model in week 13"
- "Questions" → "Two decisions from you and we start next week"
4. Like-for-like comparison
- "Ours is better" needs baselines on the same test dates, metric and input window: the simplest (same day last week) and a common one (linear regression).
- Pick one main metric before seeing results. Never switch to a kinder one.
- Split time series by date. A shuffled split leaks test values into training.
- The script stops on an empty cell (models scored on different days) or if ours does not beat the best baseline. Then the title says so: "Ours is no better than linear regression yet".
- Error analysis: confirmed / hypothesis 1 / hypothesis 2, each hypothesis with a one-line test.
5. Graphs
- Bar axes start at 0. Axis titles carry quantity and unit; the metric's definition goes in the source line.
- Same colour meaning on every graph: baselines grey, ours blue, problem days orange.
- Target beside the graph: "Target 5 % or less: met". With 28 dates, label Mondays only. No chart titles.
6. Format and speakers
- The brief's slide count, format and time come first. Otherwise 16:9, title 28 pt, body 20 pt (never under 18), chart 16 pt, source 12 pt, Calibri, blue `#1F4E79`, orange `#C55A11`.
- Speakers change between slides only; bottom right shows "Name · page". Times differ by 1 minute at most (2:10–2:20 here).
- Notes start "[Name · time]". Rehearse twice; put the measured seconds back in the script.
7. Rubric
- Every rubric item gets a slide; a missing one stops the script. Heavier items get more time: method and results (30 points) get 2 slides, 2:30.
- The appendix maps slide, section, speaker, time and rubric item, so in Q&A you can say "that is slide 6".
8. Requests and the files
- Schedule: task, owner, week; the title names the freeze week. At most two yes/no requests.
- Before → after: "Our data is limited, so any advice is welcome." → "May we also train on the same period from 3 other buildings?"
- Both files ran end to end on a hypothetical case: a 10-minute midterm on building power demand forecasting, team of 4. All values and names are hypothetical. `results.csv`: `date`, `day_type` (weekday, weekend, holiday), `actual_kw`, one forecast column per model.
9. Final check
- Slide 2 alone gives the conclusion. Every "ours is better" rests on a like-for-like baseline.
- Bars from 0, units on axes, hypotheses marked, nothing under 18 pt, graphs as chart objects.
- You checked every slide as PDF and said what you ran and what you only wrote.
Attachment 1 · make_slides.py (Python)
```python
make_slides.py - team midterm talk, 16:9 PPTX: conclusion first, like-for-like baselines, speaker and rubric checks
Run: pip install python-pptx, then python make_slides.py next to results.csv. Hypothetical case; all numbers are hypothetical.
import csv
import datetime as dt
from statistics import mean
from pptx import Presentation
from pptx.chart.data import CategoryChartData
from pptx.dml.color import RGBColor
from pptx.enum.chart import XL_CHART_TYPE as CT, XL_LABEL_POSITION as LP, XL_LEGEND_POSITION as LG
from pptx.enum.shapes import MSO_SHAPE
from pptx.enum.text import MSO_ANCHOR, PP_ALIGN
from pptx.oxml.ns import qn
from pptx.util import Inches as In, Pt
1) Talk settings. The assignment brief and rubric override these
TALK = 600 # talk length (s)
RUBRIC = {"Problem": 15, "Data": 15, "Method & results": 30, "Analysis": 20, "Plan": 10, "Delivery": 10} # hypothetical rubric (points)
GOAL = 5.0 # target MAPE (%), set by the team: confirm with the instructor
MODELS = {"Same day last week": "naive_kw", "Linear regression": "linreg_kw", "Proposed (GBM)": "gbm_kw"} # first two are baselines
MINE = "Proposed (GBM)"
FONT = "Calibri"
MAIN, ACC, GRAY, INK, PALE, WHITE = (RGBColor.from_string(c) for c in ("1F4E79", "C55A11", "8C8C8C", "262626", "F2F2F2", "FFFFFF"))
BODY = 20 # body text, never below 18 pt
2) Every model on the same dates with the same metric (MAPE)
rows = list(csv.DictReader(open("results.csv", encoding="utf-8")))
if any(not r[c] for r in rows for c in MODELS.values()):
raise SystemExit("Empty cell: models would be scored on different days")
ape = {m: [abs(float(r[c]) / float(r["actual_kw"]) - 1) * 100 for r in rows] for m, c in MODELS.items()}
mape = {m: mean(v) for m, v in ape.items()}
part = {k: mean(e for e, r in zip(ape[MINE], rows) if r["day_type"] == k) for k in ("weekday", "weekend", "holiday")}
hol = [r["day_type"] == "holiday" for r in rows]
share = sum(e for e, h in zip(ape[MINE], hol) if h) / sum(ape[MINE]) * 100 # holiday share of the total error
best = min((m for m in MODELS if m != MINE), key=mape.get) # best baseline
if mape[MINE] >= mape[best]:
raise SystemExit("Proposed model does not beat the best baseline: rewrite titles and conclusion")
prs = Presentation()
prs.slide_width, prs.slide_height = In(13.333), In(7.5)
PLAN = [] # per slide: (number, section, speaker, seconds, rubric items)
def mmss(sec):
return f"{round(sec) // 60}:{round(sec) % 60:02d}"
def style(r, size, color=INK, bold=False):
r.font.size, r.font.bold, r.font.name, r.font.color.rgb = Pt(size), bold, FONT, color
def text(s, x, y, w, h, lines, size=BODY, color=INK, bold=False, align=PP_ALIGN.LEFT, gap=8):
a line is a string or (string, size, colour, bold); "\n" breaks a line by hand
tf = s.shapes.add_textbox(In(x), In(y), In(w), In(h)).text_frame
tf.word_wrap, tf.margin_left, tf.margin_right, tf.margin_top, tf.margin_bottom = True, 0, 0, 0, 0
for n, ln in enumerate(lines.split("\n") if isinstance(lines, str) else lines):
p = tf.paragraphs[0] if n == 0 else tf.add_paragraph()
p.alignment, p.space_after = align, Pt(gap)
r = p.add_run()
t, *fmt = (ln, size, color, bold) if isinstance(ln, str) else ln
r.text = t.replace(" %", "\u00a0%") # no-break space between number and %
style(r, *fmt)
def box(s, x, y, w, h, fill=PALE):
b = s.shapes.add_shape(MSO_SHAPE.RECTANGLE, In(x), In(y), In(w), In(h))
b.fill.solid()
b.fill.fore_color.rgb = fill
b._element.remove(b._element.find(qn("p:style"))) # no theme shadow or outline
def slide(label, title, who, sec, rubric=(), src=""):
s = prs.slides.add_slide(prs.slide_layouts[6])
PLAN.append((len(PLAN) + 1, label or "Title", who, sec, rubric))
s.notes_slide.notes_text_frame.text = f"[{who} · {mmss(sec)}] {title}".replace("\n", " ") # notes: who, how long, one sentence
if label: # label, title, source, speaker and page number sit in the same place on every slide
text(s, 0.6, 0.4, 9, 0.35, label, 16, MAIN, True)
text(s, 0.6, 0.78, 12.13, 1.1, title, 28, INK, True, gap=0)
text(s, 0.6, 7.0, 9, 0.25, src, 12, GRAY)
text(s, 9.73, 7.0, 3.0, 0.25, f"{who} · {len(PLAN)}", 12, GRAY, align=PP_ALIGN.RIGHT)
return s
def panels(s, items, rows=False, h=3.4): # 3 panels side by side (default) or stacked bands (rows=True)
for n, lines in enumerate(items):
x, y, w, hh = (0.6, 2.3 + n * 1.45, 12.13, 1.2) if rows else (0.6 + n * 4.15, 2.3, 3.83, h)
box(s, x, y, w, hh)
text(s, x + 0.35, y + (0.18 if rows else 0.35), w - 0.7, hh - 0.3, lines, gap=2 if rows else 8)
def bars(s, cats, series, w, ytitle, xtitle, ymax, colors, legend=True): # a PowerPoint chart object, not a picture
d = CategoryChartData()
d.categories = cats
for name, v in series.items():
d.add_series(name, v)
ch = s.shapes.add_chart(CT.COLUMN_CLUSTERED, In(0.5), In(2.05), In(w), In(4.85), d).chart
ch.font.size, ch.font.name, ch.has_legend, ch.has_title = Pt(16), FONT, legend, False # the slide title says it
if legend:
ch.legend.position = LG.TOP
ch.value_axis.minimum_scale, ch.value_axis.maximum_scale = 0, ymax # bars start at 0
for ax, tt in ((ch.value_axis, ytitle), (ch.category_axis, xtitle)):
ax.has_title = True
ax.axis_title.text_frame.text = tt
style(ax.axis_title.text_frame.paragraphs[0].runs[0], 16)
for ser, c in zip(ch.plots[0].series, colors):
ser.format.fill.solid()
ser.format.fill.fore_color.rgb = c
return ch
def table(s, rows, y, widths, h, size=18, colors={}, fills={}):
tb = s.shapes.add_table(len(rows), len(rows[0]), In(0.6), In(y), In(sum(widths)), In(h * len(rows))).table
for j, w in enumerate(widths):
tb.columns[j].width = In(w)
for i, row in enumerate(rows):
for j, v in enumerate(row):
c = tb.cell(i, j)
c.vertical_anchor = MSO_ANCHOR.MIDDLE
c.fill.solid()
c.fill.fore_color.rgb = fills.get((i, j), MAIN if i == 0 else PALE)
r = c.text_frame.paragraphs[0].add_run()
r.text = v
style(r, size, WHITE if i == 0 else colors.get((i, j), INK), i == 0 or j == 0)
3) Slides. Titles are claims; their numbers come from 2)
s = slide(None, "Building power demand forecast", "Alex", 20)
box(s, 0.6, 2.2, 0.12, 2.3, MAIN)
text(s, 1.0, 2.1, 11.2, 1.6, "Building power demand forecast\nMidterm presentation", 36, INK, True, gap=0)
text(s, 1.0, 3.8, 11, 0.5, "Course team project, Team 4 · Alex, Ben, Chloe, Dana · 21 Oct 2026 · hypothetical data", 16, GRAY)
s = slide("Summary", f"The proposed model's MAPE of {mape[MINE]:.1f} % beats both baselines,\nbut the 3-day holiday error is still {part['holiday']:.1f} %",
"Alex", 60, ("Delivery",))
panels(s, [[("Proposed model", BODY, INK, True), (f"{mape[MINE]:.1f} %", 54, MAIN, True), f"Target {GOAL:.0f} % or less", "4-week test MAPE"],
[("Best baseline", BODY, INK, True), (f"{mape[best]:.1f} %", 54, INK, True), best, "Same 4 weeks, same metric"],
[("3-day holiday", BODY, INK, True), (f"{part['holiday']:.1f} %", 54, ACC, True), f"Weekdays {part['weekday']:.1f} %", "Cause still a hypothesis"]])
s = slide("Problem", f"We forecast tomorrow's peak building load a day ahead;\nthe target is MAPE {GOAL:.0f} % or less", "Alex", 60, ("Problem",))
panels(s, [[("Use", BODY, MAIN, True), "Next-day plan for cooling and equipment in the peak hours"],
[("Inputs", BODY, MAIN, True), "Load up to yesterday, tomorrow's temperature forecast, day type"],
[("Target", BODY, ACC, True), f"MAPE {GOAL:.0f} % or less. Set by the team: [check needed]"]], h=2.6)
s = slide("Data", "We split the data in time order:\n548 days to train, the next 4 weeks to compare three models", "Ben", 60, ("Data",),
"Hypothetical data · daily peak load of one building (kW)")
table(s, [["Split", "Period", "Days", "Use"], ["Train", "1 Mar 2025 – 30 Aug 2026", "548", "Model training"],
["Test", "31 Aug – 27 Sep 2026", f"{len(rows)}", f"Compare 3 models ({sum(hol)} holidays)"]], 2.4, [1.6, 4.2, 1.6, 4.73], 0.9, 20)
text(s, 0.6, 5.4, 12.13, 0.9, "A shuffled split leaks test-period values into training and makes the error look smaller.", BODY, ACC, True)
s = slide("Results", f"On the same {len(rows)} days and the same metric, the proposed\nmodel's MAPE of {mape[MINE]:.1f} % is the lowest of the three",
"Ben", 80, ("Method & results",), "MAPE = mean of |forecast − actual| ÷ actual (%) · hypothetical data")
ch = bars(s, list(MODELS), {"MAPE (%)": [round(mape[m], 1) for m in MODELS]}, 7.9, "4-week test MAPE (%)", "Model", 10, [MAIN], False)
pl = ch.plots[0]
pl.gap_width, pl.has_data_labels = 70, True
pl.data_labels.number_format, pl.data_labels.number_format_is_linked, pl.data_labels.position = "0.0", False, LP.OUTSIDE_END
for k, m in enumerate(MODELS): # baselines grey, only the proposed model blue
pt = pl.series[0].points[k].format.fill
pt.solid()
pt.fore_color.rgb = MAIN if m == MINE else GRAY
text(s, 9.0, 2.6, 3.73, 3.8, [("Comparison", BODY, INK, True), f"{len(rows)} test days, same for all", "One metric: MAPE", "2 baselines", "",
(f"Target {GOAL:.0f} % or less: {'met' if mape[MINE] <= GOAL else 'not met'}", BODY, MAIN, True)])
s = slide("Error analysis", f"The error sits in the 3-day holiday:\n{share:.0f} % of the {len(rows)}-day error total came from those 3 days", "Chloe", 70,
("Method & results", "Analysis"), "Proposed model's error by date · hypothetical data")
days = [dt.date.fromisoformat(r["date"]) for r in rows]
ch = bars(s, [str(d.day) if d.weekday() == 0 else "" for d in days],
{"Weekday/weekend": [None if h else round(e, 1) for e, h in zip(ape[MINE], hol)], "Holiday": [round(e, 1) if h else None for e, h in zip(ape[MINE], hol)]},
8.6, "Proposed model error (%)", f"Date ({days[0].day} Aug – {days[-1].day} Sep, Mondays labelled)", 20, [MAIN, ACC])
ch.plots[0].overlap, ch.plots[0].gap_width = 100, 40
text(s, 9.5, 2.6, 3.23, 3.8, [("MAPE by day type", BODY, INK, True), f"Weekday {part['weekday']:.1f} %", f"Weekend {part['weekend']:.1f} %",
(f"Holiday {part['holiday']:.1f} %", BODY, ACC, True)])
s = slide("Error analysis", "The cause of the holiday error is still a hypothesis;\neach hypothesis has a test", "Chloe", 70, ("Analysis",))
table(s, [["", "What", "How to check"], ["Confirmed", f"{share:.0f} % of the error total came from the 3 holiday days", "Error split by date (slide 6)"],
["Hypothesis 1", "Training data has few weekday holidays", "Count them; retrain with other buildings"],
["Hypothesis 2", "The academic calendar (term start) is not an input", "Add calendar flags; compare week-1 error"]], 2.3, [2.0, 5.3, 4.83], 1.0, 20,
{(1, 0): MAIN, (2, 0): ACC, (3, 0): ACC})
s = slide("Remaining work", "6 weeks left: add holiday data first,\nfreeze the final model in week 13", "Dana", 70, ("Plan",), "Final presentation in week 15")
WEEKS = range(9, 15)
TASKS = [("Add holiday data (other buildings)", "Chloe", 9, 10), ("Add academic-calendar features", "Ben", 10, 11),
("Tune model, cross-validate", "Alex", 11, 12), ("Freeze final model, write report", "Dana", 13, 14)]
table(s, [["Task", "Owner", *[f"Wk {w}" for w in WEEKS]]] + [[t, who] + [""] * len(WEEKS) for t, who, *_ in TASKS], 2.3,
[4.33, 1.4] + [1.07] * len(WEEKS), 0.8, 20,
fills={(i, 2 + k): MAIN for i, (*_, a, b) in enumerate(TASKS, 1) for k, w in enumerate(WEEKS) if a <= w <= b})
s = slide("Requests", "Two decisions from you and we start next week:\nmay we use other buildings' data, and is MAPE alone enough?", "Dana", 60, ("Plan",))
panels(s, [[("Request 1", BODY, MAIN, True), "Holiday data is thin. May we also train on the same period from 3 other buildings?"],
[("Request 2", BODY, MAIN, True), "Is MAPE alone enough, or should we also score the timing of the daily peak?"]], rows=True)
4) Checks: total 85-95 % of the talk, speakers within 1 minute, every rubric item on a slide
spk = {}
for n, lab, who, sec, rub in PLAN:
spk[who] = spk.get(who, 0) + sec
total = sum(spk.values())
err = [f"rubric item missing: {k}" for k in RUBRIC if not any(k in rub for *_, rub in PLAN)]
if not TALK * 0.85 <= total <= TALK * 0.95:
err.append(f"total {mmss(total)}: outside 85-95 % of the talk")
if max(spk.values()) - min(spk.values()) > 60:
err.append(f"speakers differ by more than 1 minute: {spk}")
s = slide("Appendix", f"Speaking split: each of the four takes {mmss(min(spk.values()))}–{mmss(max(spk.values()))},\nand all {len(RUBRIC)} rubric items have a slide",
"Dana", 0)
table(s, [["Slide", "Section", "Speaker", "Time", "Rubric item (points)"]] + [[str(n), lab, who, mmss(sec), ", ".join(f"{k} ({RUBRIC[k]})" for k in rub)]
for n, lab, who, sec, rub in PLAN if sec] + [["", "Total", "4 people", mmss(total), f"{sum(RUBRIC.values())} points"]], 2.05, [1.0, 2.6, 1.5, 1.2, 5.83], 0.42, 18)
prs.save("midterm.pptx")
print(f"midterm.pptx {len(PLAN)} slides · MAPE " + ", ".join(f"{m} {v:.2f} %" for m, v in mape.items()) + f" · holiday share {share:.0f} %")
print("Speakers: " + ", ".join(f"{w} {mmss(v)}" for w, v in spk.items()) + f" · total {mmss(total)} / {mmss(TALK)}")
print("Check: " + ("pass" if not err else "stopped"), *err, sep="\n ")
raise SystemExit(1 if err else 0)
```
Attachment 2 · results.csv (CSV)
```csv
date,day_type,actual_kw,naive_kw,linreg_kw,gbm_kw
2026-08-31,weekday,866,773,834,894
2026-09-01,weekday,849,782,884,864
2026-09-02,weekday,859,787,816,853
2026-09-03,weekday,846,773,878,871
2026-09-04,weekday,844,791,880,836
2026-09-05,weekend,540,513,555,548
2026-09-06,weekend,549,516,569,533
2026-09-07,weekday,839,866,864,860
2026-09-08,weekday,840,849,855,808
2026-09-09,weekday,850,859,890,844
2026-09-10,weekday,858,846,896,871
2026-09-11,weekday,844,844,891,849
2026-09-12,weekend,531,540,549,519
2026-09-13,weekend,544,549,516,528
2026-09-14,weekday,821,839,847,827
2026-09-15,weekday,844,840,872,875
2026-09-16,weekday,824,850,868,849
2026-09-17,weekday,817,858,855,849
2026-09-18,weekday,814,844,799,803
2026-09-19,weekend,521,531,510,512
2026-09-20,weekend,532,544,518,545
2026-09-21,weekday,810,821,856,793
2026-09-22,weekday,820,844,847,827
2026-09-23,weekday,820,824,834,787
2026-09-24,holiday,475,817,591,531
2026-09-25,holiday,479,814,604,535
2026-09-26,holiday,469,521,590,536
2026-09-27,weekend,505,532,528,489
```
Connect ChatGPT or Claude and use this prompt now · More prompts