TJHG / experiments
Theme Auto

COMPILED EXPERIMENT · linear-regression-plan-v1

Prospective linear-regression pipeline fixture

A one-dimensional linear model trained with 32 exact-rational full-batch gradient steps on the included synthetic training split will recover `y = 2x + 1` within the parameter and held-out loss bounds in `acceptance.json`. This package is deliberately a plan: it contains no run result, execution receipt, or Process Run Crate claim. It is a public, tiny workflow fixture for exercising the plan → attempt → new result package pipeline. It does not validate a large-scale training workflow.

Package identity

Profile
compiled-experiment-lifecycle-v1
Package
SHA-256 b8598574e52492da702f7d4fd8bee9ae7fd54195e125ac8a869dc1d0da6e9d41 · 9,378 bytes
Source
pH34r-pH/experiment-compiler@a4bebe3fff748268f037e5fa622b51ad40322a91

Research question

Can an independently invoked CWL workflow run the declared exact-rational linear-regression plan and emit machine-readable result bytes?

Method

Not declared.

Full authoritative protocol

Package member: experiment/protocol.md

# Protocol

## Question

Can an independently invoked CWL workflow run the declared exact-rational linear-regression plan and emit machine-readable result bytes?

## Model and training

Use the `y_hat = weight * x + bias` model, the included synthetic train/eval rows, initial parameters and learning rate. Run exactly the configured 32 full-batch updates using Python `fractions.Fraction`; do not shuffle or use randomness.

## Acceptance

After training, require the held-out MSE and parameter errors to meet `acceptance.json`. A process exit code of zero means only that the CWL command completed. The scientific decision is recorded separately in `result.json` and is not inferred from Process Run status.

## Execution and resource declaration

`workflow.cwl` is the executable contract. It requests one CPU core and 32 MiB minimum RAM. Temporary and output storage are bounded to 4 MiB and 1 MiB for this tiny fixture. These are CWL requests for this example, not general defaults for other experiments.

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": "training and evaluation data",
        "path": "experiment/data.csv"
      },
      {
        "item": "training configuration",
        "path": "experiment/experiment-config.json"
      },
      {
        "item": "acceptance rule",
        "path": "experiment/acceptance.json"
      },
      {
        "item": "scientific implementation",
        "path": "experiment/run_experiment.py"
      },
      {
        "item": "CWL workflow",
        "path": "experiment/workflow.cwl"
      },
      {
        "item": "CWL job inputs",
        "path": "experiment/job.yml"
      }
    ],
    "external": [],
    "publicImmutableReferences": [],
    "unavailable": []
  },
  "executionAttempts": [],
  "lifecycle": {
    "attemptCount": 0,
    "creativeWorkStatus": "Draft",
    "potentialActionCount": 1,
    "processRunCrate": false,
    "resourceMeasurements": [
      {
        "evidence": null,
        "measurementTechnique": "no execution attempt has been made",
        "propertyID": "peak process memory",
        "unitText": null,
        "value": "unknown"
      },
      {
        "evidence": null,
        "measurementTechnique": "no execution attempt has been made",
        "propertyID": "wall-clock duration",
        "unitText": null,
        "value": "unknown"
      }
    ]
  }
}