TJHG / experiments
Theme Auto

COMPILED EXPERIMENT · linear-regression-frozen-lifecycle-v1

Frozen linear-regression lifecycle fixture

Can an independent runner reproduce the declared small linear-regression result using only the files in this package?

Package identity

Profile
compiled-experiment-lifecycle-v1
Package
SHA-256 ce2c5582c3d0ddf1b9d48041694a72360a7492436513914c85d985faa0744d20 · 11,316 bytes
Source
pH34r-pH/experiment-compiler@a4bebe3fff748268f037e5fa622b51ad40322a91

Research question

Can an independent runner reproduce the declared small linear-regression result using only the files in this package?

Method

Not declared.

Full authoritative protocol

Package member: experiment/protocol.md

# Protocol

## Question

Can an independent runner reproduce the declared small linear-regression result using only the files in this package?

## Data

`data.csv` has an explicit `split` column. Rows marked `train` are the complete training set; rows marked `eval` are held out from optimization and used only for the final acceptance metric. The data are synthetic and CC0-1.0.

## Model and training

The model is `y_hat = weight * x + bias`.

Initialize weight and bias from `experiment-config.json`. For exactly 32 updates:

1. evaluate every training row;
2. compute full-batch mean-squared-error gradients for weight and bias;
3. update both parameters with the declared learning rate.

The reference implementation uses Python `fractions.Fraction`, so arithmetic is exact and no floating-point tolerance is needed to define the training trajectory. There is no stochasticity or data reordering.

## Acceptance

After the 32nd update:

- evaluate MSE only on the `eval` split;
- require evaluation MSE <= the fraction in `acceptance.json`;
- require absolute error of weight and bias versus the declared targets <= the parameter threshold;
- require the deterministic scientific result object to equal `expected-result.json` exactly.

A reproduction receipt may contain environment-specific runtime/resource observations and therefore is not expected to be byte-identical to the reference receipt.

## Entrypoint

Run:

```sh
python reproduce.py --output-dir reproduction
```

The entrypoint first runs `test_experiment.py`, then executes the training/evaluation implementation and emits `result.json` plus `reproduction-receipt.json`.

Package integrity checks establish byte consistency. Execution status records an attempt; completed execution does not establish scientific acceptance. Interpretation is source-authored evidence, not approval. Independent reproduction requires its own observed run and comparison.

Lifecycle, evidence, and declared environment
{
  "contents": {
    "embedded": [
      {
        "item": "data.csv",
        "path": "experiment/data.csv"
      },
      {
        "item": "experiment-config.json",
        "path": "experiment/experiment-config.json"
      },
      {
        "item": "acceptance.json",
        "path": "experiment/acceptance.json"
      },
      {
        "item": "expected-result.json",
        "path": "experiment/expected-result.json"
      },
      {
        "item": "run_experiment.py",
        "path": "experiment/run_experiment.py"
      },
      {
        "item": "reproduce.py",
        "path": "experiment/reproduce.py"
      },
      {
        "item": "test_experiment.py",
        "path": "experiment/test_experiment.py"
      },
      {
        "item": "workflow.cwl",
        "path": "experiment/workflow.cwl"
      },
      {
        "item": "job.yml",
        "path": "experiment/job.yml"
      }
    ],
    "external": [],
    "publicImmutableReferences": [],
    "unavailable": []
  },
  "executionAttempts": [],
  "lifecycle": {
    "attemptCount": 0,
    "creativeWorkStatus": "Published",
    "potentialActionCount": 1,
    "processRunCrate": false,
    "resourceMeasurements": [
      {
        "evidence": null,
        "measurementTechnique": "not measured through the lifecycle runner",
        "propertyID": "peak process memory",
        "unitText": null,
        "value": "unknown"
      },
      {
        "evidence": null,
        "measurementTechnique": "not measured through the lifecycle runner",
        "propertyID": "wall-clock duration",
        "unitText": null,
        "value": "unknown"
      }
    ]
  }
}