Atelier des rouesLab FR
Objects/Documentation

sessions22.py

A jump threshold over three sessions · sessions22.py

Download ↓
"""Repeat the same held-out paired timing experiment in three new interpreters."""
import json
from pathlib import Path
import subprocess,sys


def study():
    script=Path(__file__).with_name('regle21.py')
    rows=[]
    for _ in range(3):
        d=json.loads(subprocess.check_output([sys.executable,'-B',str(script)]))
        rows.append(dict(cut=d['cut'],python=d['test_python'],starts=d['starts'],
                         regret_ns=sum(r['regret_ns'] for r in d['rows']),
                         oracle_ns=sum(r['oracle_ns'] for r in d['rows']),
                         errors=sum(r['errors'] for r in d['rows']),rows=d['rows']))
    assert all((r['starts'],r['cut'])==(rows[0]['starts'],rows[0]['cut']) for r in rows)

Read in context

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.