Carol_JITAI / colab /experimental_data.py
AnuCaro's picture
Publish verified experimental source project; no trained weights
f830a9a verified
Raw History Blame Contribute Delete
1.07 kB
"""Explicit synthetic-only smoke-test input. Never creates approval evidence."""
from pathlib import Path
from jitai_training.review import load_source, LABELS
from jitai_training.reporting import build_reports
EXPERIMENT_ACK = 'I understand this is unreviewed synthetic data, not an approved pilot'
def validate_experimental(source):
source = Path(source)
rows = list(load_source(source).values())
if len(rows) != 300 or any(r['review_status'] != 'unreviewed' or r['is_synthetic'] is not True for r in rows):
raise ValueError('Experimental path requires the complete 300-row unreviewed synthetic candidate export')
report = build_reports(rows)
if report['automated_status'] != 'passed':
raise ValueError('Experimental candidate validation failed')
for split in ('train', 'validation', 'test'):
if set(report['class_distribution'][split]) != set(LABELS) or any(report['class_distribution'][split][label] < 1 for label in LABELS):
raise ValueError('Missing experimental class/split coverage')
return report