Train Your Own LLM - companion code
Chapter 18: Capstone: A Style-Matched Writing Helper

HOW TO RUN
Use the Python environment from Chapter 4 (Python 3.12 or 3.13,
versions pinned in Appendix F). Unzip this folder, cd into it, and run each
script with: python <script>.py   (each example's caption in the book
gives its file name). Expected output is printed in the book.
Scripts download models and datasets from the Hugging Face Hub on first run.

CHAPTER NOTES
pip install scikit-learn==1.9.1
Run get_texts.sh first (downloads the five public-domain Project Gutenberg books),
then ch18_prep.py.

FILES THAT NEED A GPU
- None. Every script here ran on a CPU-only test machine,
  except any recipe the book marks as not run on our test machine.

FILES
- ch18_canary.py
- ch18_fingerprint.py
- ch18_generate.py
- ch18_judge.py
- ch18_judge_data.py
- ch18_paired.py
- ch18_plant.py
- ch18_prep.py
- ch18_scrub.py
- ch18_train.py
- get_texts.sh

LICENSE
The code is released under the MIT License (see LICENSE).
Data files that scripts download keep their own licenses.
