Python projects

Each project brings several Python ideas together in one piece of work. Choose a ladder, build the result in stages, and keep the evidence that shows how it works.

Projects are optional. Their chapter guidance shows when the required Python ideas have been introduced; you may still open any project and inspect its brief.

Data and experiments

  1. Project 18 milestonesInspect and Validate a Dataset

    Turn a small measurement file into checked records and a report that shows what was usable, what was missing, and what could not be trusted.

    Builds on Seeing Numerical Results
  2. Project 28 milestonesBuild a Reproducible Split and Batch Pipeline

    Move aligned records into a checking group and working batches while preserving every row's identity and the evidence needed to replay the run.

    Builds on Controlled and Repeatable Experiments
  3. Project 38 milestonesBuild an Experiment Runner

    Run one supplied computation under several explicit configurations, keeping each run's settings, results, status, and files together for comparison and replay.

    Builds on Controlled and Repeatable Experiments

Numerical methods and evaluation

  1. Project 48 milestonesA Complete Numerical Experiment

    Generate a small repeatable dataset, search a supplied grid of lines, and preserve enough numerical and visual evidence to explain which candidate the program selected.

    Builds on Controlled and Repeatable Experiments
  2. Project 58 milestonesBuild a Nearest-Neighbor System

    Compare each query with a small set of labelled reference records, keep the nearest records in a deterministic order, and preserve the evidence behind every predicted label.

    Builds on Controlled and Repeatable Experiments
  3. Project 68 milestonesBuild an Evaluation Report

    Align expected labels with two sets of predictions, calculate supplied count-based measures, inspect where the systems agree or differ, and keep every conclusion within the saved evidence.

    Builds on Controlled and Repeatable Experiments

Text, search, and compression

  1. Project 78 milestonesInspect a Text Corpus

    Read a supplied collection of text documents without losing their identity, measure what is present, flag records under explicit rules, and preserve the evidence behind the report.

    Builds on Controlled and Repeatable Experiments
  2. Project 88 milestonesBuild a Tokenizer Toolkit

    Turn inspected text into exact token records, build a stable bounded vocabulary, translate between tokens and integer IDs, and preserve every unknown or lossy case as evidence.

    Builds on Controlled and Repeatable Experiments
  3. Project 98 milestonesBuild a Sequence Dataset

    Turn encoded documents into fixed-width preceding contexts and following-token targets while preserving every document, position, group, mask, and remainder.

    Builds on Controlled and Repeatable Experiments
  4. Project 108 milestonesBuild a Document Search Index

    Map exact text terms to documents and positions, then answer supplied queries with visible integer scores, deterministic rankings, and traceable excerpts.

    Builds on Reading Objects and Records
  5. Project 118 milestonesBuild a Phrase and Proximity Search Engine

    Extend an exact-term positional index so that it can find ordered phrases and bounded term proximity while retaining the source positions that prove every match.

    Builds on Files and Small Programs
  6. Project 129 milestonesBuild a Ranked Retrieval and Evaluation Workbench

    Compare an exact term-count ranker with one supplied tf-idf cosine ranker, trace every score, and evaluate both against complete binary judgments at fixed cutoffs.

    Builds on Seeing Numerical Results
  7. Project 1311 milestonesCompress and Rebuild an Inverted Index

    Encode a small positional inverted index as a bounded binary artifact, rebuild it exactly, and prove that its search behaviour has not changed.

    Builds on Files and Small Programs
  8. Project 149 milestonesFind Near-Duplicate Documents

    Represent documents with exact overlapping token groups, compare every bounded pair, and retain the source evidence behind each candidate.

    Builds on Files and Small Programs
  9. Project 1510 milestonesBuild a Lossless Dictionary Text Codec

    Encode strict UTF-8 source bytes with one bounded phrase dictionary, store fixed-width codes in a versioned file, and prove exact recovery.

    Builds on Reading Objects and Records

Images

  1. Project 168 milestonesBuild an Image Transformation Toolkit

    Load small supplied PNG images into arrays with named axes, apply exact transformations, and verify each result with pixels, counts, saved images, and replay.

    Builds on Controlled and Repeatable Experiments
  2. Project 178 milestonesBuild an Image Patch Dataset

    Divide verified image arrays into fixed-size patches while retaining source coordinates, valid pixels, supplied groups, batch remainders, coverage, and reconstruction evidence.

    Builds on Controlled and Repeatable Experiments