# Reproduce a cooling comparison

This package uses original synthetic teaching data. It does not establish real cooling behavior. No network access, account, package installation or GPU is required. Use Python 3.10 or later; only its standard library is used. If Python is not installed, arrange an approved local Python environment before claiming the reproducible project is complete. Browser activities remain available.

Extract the ZIP to a folder. Open a terminal **in that folder**. `python` runs Python, `-m unittest` runs its test module, and the remaining name selects the checks. Some systems use `python3` instead of `python`; use the same interpreter consistently.

```text
python --version
python -m unittest test_experiment.py
python experiment.py --input cooling.json --output lesson-report.json
python experiment.py --input cooling.json --ambient 25 --output lesson-room25.json
```

`--input` selects data. `--output` names a report file in the folder; use distinct names to retain comparisons. `--ambient` changes a model assumption, not observations. Inspect `configuration`, `line_fit`, per-row `residual`, and the separate `mae_by_role` values. Numbers are degrees Celsius and minutes. The line fit uses only rows marked training. Later rows are public monitoring, not untouched tests. A seed is unnecessary because this calculation has no random step.

The data files identify the synthetic source, version, initial temperature, ambient temperature, retention fraction, reading uncertainty and row roles. The report adds the exact input file's SHA-256 digest and Python version. A digest identifies bytes, not valid measurements. Results can differ if data, settings or code change; small floating-point differences across environments do not automatically indicate scientific disagreement.

## The separate Model Challenge

Use `project-cooling.json`, not the lesson data. Keep a copy of the original starter and work in a new folder.

```text
python experiment.py --input project-cooling.json --output project-report.json
python experiment.py --input project-cooling.json --ambient 22 --output project-room22.json
```

1. Inspect and independently check a prediction or coefficient. Explain which rows determine the fit.
2. Implement `interval_failures(rows, role)` in `project_extension.py`. Count rows of the chosen role where the absolute residual is **strictly greater than** their uncertainty. Equality is within the interval. Do not change the original observations to make a test pass.
3. Run `python -m unittest project_checks.py`. These public exercise checks intentionally fail with `NotImplementedError` in the supplied starter. Add an additional meaningful case and explain it. Passing these checks is not an independent proficiency assessment.
4. Integrate your function into a copy of the report generation: import it, call it on each method's result rows for each role, and retain the counts in the report. Include your changed code. This integration is learner work, not an already completed feature.
5. Introduce a deliberate boundary or role-filter mistake in a copy; record the failing check, repair it and rerun. Keep the observed outputs honestly.
6. Compare the two room assumptions and state the synthetic-data, selection and extrapolation limits. Changing a parameter does not create a new empirical replication.
7. Give a reviewer the code, inputs, commands, test output, runtime and reports. Ask them to run from a fresh folder if available. The website's six evidence fields index these files; it does not store, execute or grade your Python package.

The project’s visible cases are different from lesson cases, but they are not secret or authenticated independent tests. Stronger assessment requires separately supplied cases and agreed conditions. No independent implementation is claimed by downloading or running the unmodified starter.

## Files and attribution

`experiment.py` is the complete runnable baseline; `test_experiment.py` contains independent arithmetic and split checks. `project_extension.py` is an intentionally unfinished learner exercise; `project_checks.py` supplies public boundary checks. Both JSON files contain original authored synthetic values. No external dataset or third-party text was copied. This package and its teaching data may be reused for these learning exercises with attribution to YoolVi Learn; no real measurement provenance is claimed.
