COMPILED EXPERIMENT · stdlib-linear-regression-v1-compiled-experiment
Self-contained stdlib linear-regression reproduction
A one-dimensional linear model trained by 32 full-batch gradient-descent updates on the embedded training split will recover the relation `y = 2x + 1` closely enough that the held-out evaluation mean-squared error is at most `1e-15`, with both learned parameters within `1e-9` of their declared targets. The point is not that this is a difficult scientific problem. The point is that every dependency needed to reproduce the claim is public, auditable, and small enough to inspect directly.
Package identity
- Profile
- compiled-experiment-v1
- Package
- SHA-256 251a43f8719a17bb0898a5e5e51f4d8c22f9280b29febadd72d98ffbba20e544 · 14,010 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
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.
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
{
"acceptance": {
"evalMseMaximum": "1/1000000000000000",
"targetBias": "1",
"targetParameterAbsoluteErrorMaximum": "1/1000000000",
"targetWeight": "2"
},
"contents": {
"embedded": [
{
"item": "training implementation",
"path": "experiment/run_experiment.py"
},
{
"item": "one-command reproduction entrypoint",
"path": "experiment/reproduce.py"
},
{
"item": "conformance tests",
"path": "experiment/test_experiment.py"
},
{
"item": "training/evaluation data and split labels",
"path": "experiment/data.csv"
},
{
"item": "dataset license notice",
"path": "experiment/DATA-LICENSE.md"
},
{
"item": "environment contract",
"path": "experiment/environment.json"
},
{
"item": "training configuration",
"path": "experiment/experiment-config.json"
},
{
"item": "protocol",
"path": "experiment/protocol.md"
},
{
"item": "acceptance criteria",
"path": "experiment/acceptance.json"
},
{
"item": "reference scientific result bytes",
"path": "evidence/expected-result.json"
},
{
"item": "reference reproduction receipt bytes",
"path": "evidence/reference-reproduction-receipt.json"
},
{
"item": "resource measurements and planning basis",
"path": "evidence/resource-requirements.json"
},
{
"item": "Croissant dataset metadata",
"path": "metadata/croissant.jsonld"
},
{
"item": "RO-Crate / Process Run Crate metadata",
"path": "ro-crate-metadata.json"
}
],
"publicImmutableReferences": [
{
"identity": "https://github.com/pH34r-pH/experiment-compiler/commit/a4bebe3fff748268f037e5fa622b51ad40322a91",
"item": "scientific source snapshot"
},
{
"identity": "http://mlcommons.org/croissant/1.1",
"item": "Croissant 1.1 specification"
},
{
"identity": "https://w3id.org/ro/crate/1.3",
"item": "RO-Crate 1.3 specification"
},
{
"identity": "https://w3id.org/ro/wfrun/process/0.6",
"item": "Process Run Crate 0.6 profile"
}
],
"unavailable": []
},
"environment": {
"accelerator": "none",
"dependencies": [],
"networkRequired": false,
"numericSemantics": "Python fractions.Fraction exact rational arithmetic",
"python": ">=3.11,<4",
"randomness": "none",
"schemaVersion": 1,
"standardLibraryOnly": true
},
"resources": {
"accelerator": {
"basis": "CPU-only standard-library implementation; no accelerator runtime is imported or used.",
"peakVramBytes": 0,
"required": false
},
"experimentId": "stdlib-linear-regression-v1",
"ram": {
"measurement": "resource.getrusage(RUSAGE_SELF).ru_maxrss on GitHub-hosted Ubuntu 24.04, normalized from KiB to bytes.",
"observedMaximumBytes": 21655552,
"observedPeakRssBytes": [
{
"python": "3.11.16",
"value": 19832832
},
{
"python": "3.13.15",
"value": 21041152
},
{
"python": "3.14.7",
"value": 21655552
}
],
"planningBasis": "32 MiB is conservative headroom above the maximum peak RSS observed across the public Ubuntu 24.04 CI matrix; it is a planning estimate, not a hard runtime minimum.",
"planningRamBytes": 33554432
},
"referenceWorkflow": {
"python311JobId": 108440436565,
"runId": 36255160704
},
"schemaVersion": 1
},
"result": {
"acceptancePassed": true,
"experimentId": "stdlib-linear-regression-v1",
"metrics": {
"evalMse": {
"denominator": 18446744073709551616,
"numerator": 13
},
"trainMse": {
"denominator": 18446744073709551616,
"numerator": 5
}
},
"model": "y_hat = weight * x + bias",
"parameters": {
"bias": {
"denominator": 4294967296,
"numerator": 4294967295
},
"weight": {
"denominator": 2147483648,
"numerator": 4294967295
}
},
"schemaVersion": 1,
"training": {
"arithmetic": "exact-rational",
"learningRate": "1/4",
"steps": 32
}
}
}