{
  "score": {
    "python": {
      "weighted-probabilities": {
        "api": "score",
        "variant": "weighted-probabilities",
        "language": "python",
        "title": "Weighted Brier and natural logarithmic loss",
        "input": {
          "rows": [
            {
              "p": "1/10",
              "y": "0",
              "weight": "1"
            },
            {
              "p": "7/10",
              "y": "1",
              "weight": "3"
            }
          ]
        },
        "expectedFailure": false,
        "codeFile": "ml20-code/score-weighted-probabilities.py",
        "codeSHA256": "e59a3be54c52bbf9979be24e971e2cf13abe987fab6fae879a31b5fb4c9be7d6",
        "code": "\"\"\"ML20 standalone fixed example, not an arbitrary-input validator.\nFinite Python Fraction algebra; natural logs use Decimal1800 approximation\nthen a final binary64 display projection. Realdata reads4factual CSVs only,\nreusing the frozen public reader/fit implementation by value; all other inputs\nare complete fixed literals. No engine/model/computed/checker imported.\nRun: python this-file.py NEW-OUTPUT\n\"\"\"\nfrom pathlib import Path\nimport csv,json,hashlib,sys,math,html\nif hasattr(sys,'set_int_max_str_digits'):sys.set_int_max_str_digits(100000)\n\"\"\"Owned standalone exact finite optimization primitives for ML19 public programs.\nThis is an author implementation, never an independent numerical oracle.\n\"\"\"\nfrom fractions import Fraction as Q\ndef number(v):return v if isinstance(v,Q)else Q(str(v))\ndef dot(a,b):return sum((x*y for x,y in zip(a,b)),Q(0))\ndef frame(rows,p=2,scale='range'):\n rr=[]\n for i,r in enumerate(rows):\n  x=[None if v is None else number(v)for v in r['x']];y=None if r['y']is None else number(r['y']);w=number(r.get('weight',1));role=r.get('role','train');rr.append(dict(id=r.get('id','row:'+str(i+1)),index=i,x=x,y=y,w=w,role=role,eligible=y is not None and all(v is not None for v in x)and w>0))\n train=[r for r in rr if r['role']=='train'and r['eligible']];W=sum((r['w']for r in train),Q(0))\n if not W:return dict(defined=False,p=p,rows=rr,train=[],W=W)\n mean=[sum(r['w']*r['x'][j]for r in train)/W for j in range(p)];ranges=[max(r['x'][j]for r in train)-min(r['x'][j]for r in train)or Q(1)for j in range(p)];scales=ranges if scale=='range'else[Q(1)]*p\n for r in rr:r['z']=None if None in r['x']else[Q(1)]+[(r['x'][j]-mean[j])/scales[j]for j in range(p)]\n return dict(defined=True,p=p,rows=rr,train=train,W=W,mean=mean,ranges=ranges,scales=scales,meanY=sum(r['w']*r['y']for r in train)/W)\ndef quadratic(f,lam=Q(0),role='train'):\n rr=[r for r in f['rows']if r['role']==role and r['eligible']];W=sum((r['w']for r in rr),Q(0));n=f['p']+1\n if not W:return None\n H=[[sum(r['w']*r['z'][j]*r['z'][k]for r in rr)/W+(lam if j==k and j else 0)for k in range(n)]for j in range(n)];b=[sum(r['w']*r['y']*r['z'][j]for r in rr)/W for j in range(n)];d=sum(r['w']*r['y']**2 for r in rr)/(2*W);return H,b,d\ndef state(q,theta):\n H,b,d=q;gradient=[dot(row,theta)-bb for row,bb in zip(H,b)];return dict(theta=theta,objective=dot(theta,[dot(row,theta)for row in H])/2-dot(theta,b)+d,gradient=gradient,gradientNormSquared=dot(gradient,gradient))\ndef solve(H,b):\n n=len(b);A=[row[:]+[bb]for row,bb in zip(H,b)];piv=[];row=0\n for j in range(n):\n  k=next((i for i in range(row,n)if A[i][j]),None)\n  if k is None:continue\n  A[row],A[k]=A[k],A[row];z=A[row][j];A[row]=[v/z for v in A[row]]\n  for i in range(n):\n   if i!=row:\n    z=A[i][j];A[i]=[v-z*u for v,u in zip(A[i],A[row])]\n  piv.append(j);row+=1\n  if row==n:break\n assert not any(not any(r[:n])and r[n]for r in A)\n beta=[Q(0)]*n\n for i,j in enumerate(piv):beta[j]=A[i][n]\n nullspace=[]\n for j in range(n):\n  if j not in piv:\n   v=[Q(0)]*n;v[j]=Q(1)\n   for i,k in enumerate(piv):v[k]=-A[i][j]\n   nullspace.append(v)\n return dict(rank=len(piv),particular=beta,nullspace=nullspace,unique=len(piv)==n)\n\n\ndef fixed_source(kind):\n SRC=Path(__file__).resolve().parent/\"data\"\n read=lambda n:list(csv.DictReader((SRC/n).open(encoding='utf8',newline='')))\n def native(v):return None if v in['','.']else v\n\n models={};original=read('actual48-country-revised-original-2023-2024.csv');lookup={(r['countryISO3'],r['indicatorID'],r['date']):r for r in original};rows=[]\n for iso in sorted({r['countryISO3']for r in original}):\n  g=lookup[iso,'NY.GDP.PCAP.KD','2023'];p=lookup[iso,'FP.CPI.TOTL.ZG','2023'];y=lookup[iso,'NY.GDP.MKTP.KD.ZG','2024'];rows.append(dict(id=iso+':2024',x=[None if not g['originalValueToken']else str(number(g['originalValueToken'])/10000),None if not p['originalValueToken']else str(number(p['originalValueToken'])/10)],y=native(y['originalValueToken']),sourceRow=iso))\n models['country']=dict(rows=rows,names=['g','pi'],unit='annual GDP growth percentage points')\n for kind,file,keys,ykey,ID in [('person','actual3613-NLS-original52-fields-and-conformal-frame.csv',['ed76','age76'],'lwage76','person-row:'),('company','actual3150-churn-original14-fields-and-conformal-frame.csv',['Call  Failure','Seconds of Use'],'Churn','customer-row:')]:\n  source=read(file);models[kind]=dict(rows=[dict(id=ID+r['sourceRow'],sourceRow=r['sourceRow'],x=[native(r[k])for k in keys],y=native(r[ykey]))for r in source],names=['ed76','age76']if kind=='person'else['CallFailure','SecondsUse'],unit='native trimmed1976log hourly wage'if kind=='person'else'native Churn0/1')\n for kind,m in models.items():\n  for rank,r in enumerate(sorted(m['rows'],key=lambda r:(hashlib.sha256(('ML20|'+kind+'|'+r['id']).encode()).digest(),r['id']))):r.update(splitRank=rank,plannedRole=['test','calibration','train','train'][rank%4]);r['role']=r['plannedRole']if r['y']is not None and None not in r['x']else'excluded';r['weight']='1'\n  m['trainingIDs']=[r['id']for r in sorted(m['rows'],key=lambda r:r['splitRank'])if r['role']=='train']\n\n models={kind:models[kind]}\n # New public actual-source study; exact finite Fraction fit/rank/membership.\n # Default single declared model, not a hyperparameter Cartesian dump.\n from decimal import Decimal,localcontext\n from collections import Counter\n outputs={k:[]for k in['study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins']}\n alpha=number('1/5');lam=number('1/100')\n if not 0<alpha<1 or lam<0:raise ValueError('Require0<alpha<1 and nonnegative ridge')\n def metric(kind,name,value,unit,arithmetic='exact rational'):\n  outputs['study-metrics'].append(dict(kind=kind,metric=name,value=''if value is None else value,unit=unit,defined=int(value is not None),arithmetic=arithmetic))\n def bins(rr,B=5):\n  groups=[[]for _ in range(B)]\n  for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n  n=len(rr);yb=sum((r['y']for r in rr),Q(0))/n if n else None;ece=rel=res=var=cov=Q(0);result=[]\n  for j,gg in enumerate(groups):\n   nn=len(gg);pm=sum((r['p']for r in gg),Q(0))/nn if nn else None;ym=sum((r['y']for r in gg),Q(0))/nn if nn else None;v=sum(((r['p']-pm)**2 for r in gg),Q(0))/nn if nn else None;co=sum(((r['p']-pm)*(r['y']-ym)for r in gg),Q(0))/nn if nn else None\n   result.append(dict(bin=j,lower=Q(j,B),upper=Q(j+1,B),rightClosed=int(j==B-1),rows=nn,meanP=pm,frequencyY1=ym,gap=None if not nn else pm-ym,withinVarianceP=v,withinCovariancePY=co))\n   if nn:weight=Q(nn,n);ece+=weight*abs(pm-ym);rel+=weight*(pm-ym)**2;res+=weight*(ym-yb)**2;var+=weight*v;cov+=weight*co\n  return result,dict(ECE=ece if n else None,Brier=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/n if n else None,uncertainty=yb*(1-yb)if n else None,resolution=res if n else None,reliability=rel if n else None,withinVarianceP=var if n else None,withinCovariancePY=cov if n else None)\n def meanlog(rr):\n  if not rr:return None\n  pp=[r['p']if r['y']else 1-r['p']for r in rr]\n  if any(not p for p in pp):return'+infinity'\n  with localcontext()as ctx:\n   ctx.prec=60;return str(-sum(((Decimal(p.numerator)/Decimal(p.denominator)).ln()for p in pp),Decimal(0))/len(pp))\n for kind,m in models.items():\n  f=frame(m['rows']);n=len(f['train']);assert n>0;H,b,d=quadratic(f,lam);fit=solve(H,b);theta=fit['particular'];minimum=state((H,b,d),theta)['objective'];beta=[theta[j+1]/f['scales'][j]for j in range(2)];intercept=theta[0]-dot(beta,f['mean']);rr=[]\n  for r in f['rows']:\n   native=m['rows'][r['index']];raw=None if r['z']is None else dot(r['z'],theta);pred=None if raw is None else max(Q(0),min(Q(1),raw))if kind=='company'else raw;group='missing-X'if r['z']is None else('schooling-at-most12'if r['x'][0]<=12 else'schooling-over12')if kind=='person'else('zero-call-failures'if r['x'][0]==0 else'positive-call-failures')if kind=='company'else('GDPpc-at-most-training-mean'if r['x'][0]<=f['mean'][0]else'GDPpc-above-training-mean');rr.append(dict(id=r['id'],sourceRow=native['sourceRow'],sourceIndex0=r['index'],plannedRole=native['plannedRole'],role=r['role'],group=group,y=r['y'],raw=raw,prediction=pred,eligible=r['eligible']))\n  cal=[r for r in rr if r['role']=='calibration'and r['prediction']is not None and r['y']is not None]\n  for i,r in enumerate(cal):r['calibrationIndex0']=i;r['score']=(1-r['prediction']if r['y']else r['prediction'])if kind=='company'else abs(r['y']-r['prediction'])\n  ordered=sorted(cal,key=lambda r:(r['score'],r['calibrationIndex0']));rankQ=(len(cal)+1)*(1-alpha);k=(rankQ.numerator+rankQ.denominator-1)//rankQ.denominator;threshold=ordered[k-1]['score']if k<=len(cal)else None;unbounded=threshold is None\n  for j,r in enumerate(ordered,1):outputs['calibration-scores'].append(dict(kind=kind,rank=j,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],calibrationIndex0=r['calibrationIndex0'],score=r['score'],threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded)))\n  for j,name in enumerate(m['names']):outputs['training-coefficients'].append(dict(kind=kind,feature=name,mean=f['mean'][j],scale=f['scales'][j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[0],nativeIntercept=intercept,rank=fit['rank'],unique=int(fit['unique']),lambdaValue=lam,minimumObjective=minimum))\n  for name,value,unit in[('sourceRows',len(rr),'rows'),('trainingRows',n,'rows'),('calibrationScores',len(cal),'unit-count scores'),('testLabeledRows',sum(r['role']=='test'and r['y']is not None for r in rr),'rows'),('excludedRows',sum(r['role']=='excluded'for r in rr),'rows'),('alpha',alpha,'probability'),('ridge',lam,'transformed slope penalty'),('quantileRank',k,'one-based rank'),('threshold','+infinity'if unbounded else threshold,'dimensionless score'if kind=='company'else m['unit']),('minimumObjective',minimum,'('+m['unit']+') squared')]:metric(kind,name,value,unit,'mathematical infinity'if value=='+infinity'else'exact rational')\n  for r in rr:\n   defined=r['prediction']is not None;labeled=defined and r['y']is not None\n   if not defined:lo=hi=width=size=None;labels='';covered=None\n   elif kind=='company':\n    labelsList=[j for j,s in enumerate([r['prediction'],1-r['prediction']])if unbounded or s<=threshold];labels='|'.join(map(str,labelsList));size=len(labelsList);lo=hi=width=None;covered=int(int(r['y'])in labelsList)if labeled else None\n   else:lo='-infinity'if unbounded else r['prediction']-threshold;hi='+infinity'if unbounded else r['prediction']+threshold;width='+infinity'if unbounded else 2*threshold;labels='';size=None;covered=int(unbounded or abs(r['y']-r['prediction'])<=threshold)if labeled else None\n   r.update(defined=defined,labeled=labeled,lower=lo,upper=hi,width=width,labels=labels,size=size,covered=covered)\n   outputs['row-predictions'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],plannedRole=r['plannedRole'],role=r['role'],group=r['group'],actualY=r['y'],rawLinear=r['raw'],prediction=r['prediction'],predictionDefined=int(defined),threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded),lower=lo,upper=hi,width=width,setLabels=labels,setSize=size,covered=covered,labeledPrediction=int(labeled)))\n   outputs['eligibility'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],plannedRole=r['plannedRole'],role=r['role'],requiredComplete=int(r['eligible']),trainingUsed=int(r['role']=='train'and r['eligible']),reason='missing-required-field'if not r['eligible']else''))\n  roles=list(dict.fromkeys(r['role']for r in rr));groups=list(dict.fromkeys(r['group']for r in rr))\n  for role in roles:\n   for group in['all']+groups:\n    use=[r for r in rr if r['role']==role and(group=='all'or r['group']==group)];defined=[r for r in use if r['defined']];scored=[r for r in use if r['labeled']and role not in['excluded','unused']];covered=sum(r['covered']for r in scored);nn=len(defined);nscore=len(scored);unboundedCount=sum(r['width']=='+infinity'for r in defined);size=Q(sum(r['size']for r in defined),nn)if kind=='company'and nn else None;width=('+infinity'if unboundedCount else sum(r['width']for r in defined)/nn)if kind!='company'and nn else None\n    outputs['role-group-coverage'].append(dict(kind=kind,role=role,group=group,originalRows=len(use),definedPredictions=nn,scoredLabels=nscore,coveredRows=covered,coverage=Q(covered,nscore)if nscore else None,meanSetSize=size,meanIntervalWidth=width,unboundedIntervals=unboundedCount))\n  if kind=='company':\n   for role in['train','calibration','test']:\n    use=[dict(p=r['prediction'],y=r['y'])for r in rr if r['role']==role and r['labeled']];bb,mm=bins(use)\n    for row in bb:outputs['reliability-bins'].append(dict(kind=kind,role=role,**row))\n    for name,value in mm.items():metric(kind,role+':'+name,value,'dimensionless'if name=='ECE'else'squared probability')\n    metric(kind,role+':meanLogLoss',meanlog(use),'nats','Decimal60 approximation or genuine infinity')\n return outputs\n\n# Owned ML20 fixed-example adapters. Finite rational calculations; logs approximate.\nfrom fractions import Fraction as Q\nfrom decimal import Decimal,localcontext\nimport math\ndef num(v):return v if isinstance(v,Q)else Q(str(v))\ndef ceilq(q):return-((-q.numerator)//q.denominator)\ndef fixed_quantile(scores,alpha):\n a=num(alpha)\n if not 0<a<1:raise ValueError('alpha-must-be-strictly-between-zero-and-one')\n ordered=sorted([(num(v),i)for i,v in enumerate(scores)if v is not None]);n=len(ordered);k=ceilq((n+1)*(1-a));q=None if k>n else ordered[k-1][0]\n return dict(n=n,k=k,threshold=q,infinite=q is None,ordered=ordered)\ndef fixed_score(rows):\n rr=[dict(p=num(r['p']),y=num(r['y']),w=num(r.get('weight',1)))for r in rows];rr=[r for r in rr if r['w']>0];mass=sum((r['w']for r in rr),Q(0));brier=sum((r['w']*(r['p']-r['y'])**2 for r in rr),Q(0))/mass if mass else None;logs=[];genuine=False\n with localcontext()as ctx:\n  ctx.prec=1800\n  total=Decimal(0)\n  for r in rr:\n   p=r['p']if r['y']else 1-r['p']\n   if not p:genuine=True;logs.append('+infinity');continue\n   loss=-(Decimal(p.numerator)/Decimal(p.denominator)).ln();logs.append(str(loss));w=r['w']/mass;total+=Decimal(w.numerator)/Decimal(w.denominator)*loss\n  display='+infinity'if genuine else None if not mass else repr(float(total));raw='+infinity'if genuine else None if not mass else str(total)\n return dict(rows=rr,mass=mass,Brier=brier,meanLogLoss=display,naturalLogApprox1800=raw,individualLogLoss=logs,genuineInfinite=genuine,BrierPositive=brier is not None and brier>0)\ndef fixed_calibration(rows,B):\n rr=[dict(p=num(r['p']),y=num(r['y']))for r in rows];N=len(rr);yb=sum((r['y']for r in rr),Q(0))/N;groups=[[]for _ in range(B)]\n for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n result=[];ece=rel=res=vp=cp=Q(0)\n for j,g in enumerate(groups):\n  n=len(g);pm=sum((r['p']for r in g),Q(0))/n if n else None;ym=sum((r['y']for r in g),Q(0))/n if n else None;v=sum(((r['p']-pm)**2 for r in g),Q(0))/n if n else None;c=sum(((r['p']-pm)*(r['y']-ym)for r in g),Q(0))/n if n else None;result.append(dict(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c))\n  if n:z=Q(n,N);ece+=z*abs(pm-ym);rel+=z*(pm-ym)**2;res+=z*(ym-yb)**2;vp+=z*v;cp+=z*c\n bs=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/N;u=yb*(1-yb)\n return dict(rows=N,bins=result,Brier=bs,ECE=ece,uncertainty=u,resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=u-res+rel+vp-2*cp)\ndef fixed_predict(a):\n q=fixed_quantile(a['scores'],a['alpha']);out=[];classification=a['mode']=='classification'\n for i,row in enumerate(a['queries']):\n  p=num(row['p']if classification else row['center']);y=None if row.get('y')is None else num(row['y']);threshold=q['threshold'];unbounded=q['infinite']\n  if classification:labels=[v for v,s in[(0,p),(1,1-p)]if unbounded or s<=threshold];lo=hi=width=None;size=len(labels);covered=None if y is None else int(int(y)in labels)\n  else:labels=None;size=None;lo='-infinity'if unbounded else p-threshold;hi='+infinity'if unbounded else p+threshold;width='+infinity'if unbounded else 2*threshold;covered=None if y is None else int(unbounded or abs(y-p)<=threshold)\n  out.append(dict(id=row.get('id',str(i)),prediction=p,actualY=y,labels=labels,size=size,lower=lo,upper=hi,width=width,covered=covered))\n scored=[r for r in out if r['covered']is not None];coverage=Q(sum(r['covered']for r in scored),len(scored))if scored else None;meanSize=Q(sum(r['size']for r in out),len(out))if classification and out else None;meanWidth=('+infinity'if q['infinite']else 2*q['threshold'])if not classification and out else None\n return dict(quantile=q,rows=out,scoredLabels=len(scored),coverage=coverage,meanSetSize=meanSize,meanWidth=meanWidth)\ndef fixed_ranklaw(a):\n scores=list(map(num,a['scores']));trials=[]\n for i,y in enumerate(scores):q=fixed_quantile(scores[:i]+scores[i+1:],a['alpha']);trials.append(dict(heldout=i,score=y,k=q['k'],threshold=q['threshold'],infinite=q['infinite'],covered=int(q['infinite']or y<=q['threshold'])))\n return dict(N=len(scores),distinct=len(set(scores))==len(scores),trials=trials,coverage=Q(sum(t['covered']for t in trials),len(trials)))\ndef fixed_operation(api,a):\n return fixed_score(a['rows'])if api=='score'else fixed_calibration(a['rows'],a['bins'])if api=='calibration'else fixed_quantile(a['scores'],a['alpha'])if api=='quantile'else fixed_predict(a)if api=='predict'else fixed_ranklaw(a)if api=='ranklaw'else fixed_source(a['kind'])\ndef report_values(api,z):\n summary=[];series=[]\n def add(k,v,u):summary.append((k,v,u))\n if api=='score':\n  for k,u in[('mass','analysis weight'),('Brier','squared probability'),('meanLogLoss','nats; numerical logarithm'),('genuineInfinite','indicator'),('BrierPositive','mathematical indicator')]:add(k,z[k],u)\n  series=[('squared error',[(i,(r['p']-r['y'])**2)for i,r in enumerate(z['rows'])])]\n elif api=='calibration':\n  for k in['Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity']:add(k,z[k],'probability'if k=='ECE'else'squared probability')\n  series=[('bin probability',[(r['bin'],r['meanP'])for r in z['bins']]),('bin outcome frequency',[(r['bin'],r['frequency'])for r in z['bins']])]\n elif api=='quantile':\n  for k,u in[('n','scores'),('k','one-based rank'),('infinite','mathematical indicator')]:add(k,z[k],u)\n  add('threshold','+infinity'if z['infinite']else z['threshold'],'score units');series=[('sorted score',[(i+1,v)for i,(v,index)in enumerate(z['ordered'])])]\n elif api=='predict':\n  for k,u in[('scoredLabels','labels'),('coverage','fraction'),('meanSetSize','classes'),('meanWidth','outcome units')]:add(k,z[k],u)\n  add('thresholdInfinite',z['quantile']['infinite'],'mathematical indicator');series=[('predicted center or probability',[(i,r['prediction'])for i,r in enumerate(z['rows'])]),('observed label or outcome',[(i,r['actualY'])for i,r in enumerate(z['rows'])])]\n elif api=='ranklaw':\n  for k,u in[('N','scores'),('distinct','indicator'),('coverage','fraction')]:add(k,z[k],u)\n  series=[('held-out coverage',[(r['heldout'],r['covered'])for r in z['trials']])]\n else:\n  mt={r['metric']:r for r in z['study-metrics']};cv=next(r for r in z['role-group-coverage']if r['role']=='test'and r['group']=='all')\n  for k in['sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold']:add(k,mt[k]['value'],mt[k]['unit'])\n  for k,u in[('coverage','fraction'),('meanSetSize','classes'),('meanIntervalWidth','outcome units')]:add(k,cv[k],u)\n  series=[('all calibration scores',[(r['rank'],r['score'])for r in z['calibration-scores']])]\n return summary,series\n\nnumber=num\n\nFIXED={'api': 'score', 'variant': 'weighted-probabilities', 'title': 'Weighted Brier and natural logarithmic loss', 'input': {'rows': [{'p': '1/10', 'y': '0', 'weight': '1'}, {'p': '7/10', 'y': '1', 'weight': '3'}]}, 'expectedFailure': False}\n\ndef fixed_svg(points,title):\n good=[p for p in points if p['y'] is not None];xx=[float(p['x'])for p in good];yy=[float(p['y'])for p in good];xmin=min(xx)if xx else 0;xmax=max(xx)if xx else 1;ymin=min([0]+yy);ymax=max([0]+yy)\n if xmin==xmax:xmin-=.5;xmax+=.5\n if ymin==ymax:ymin-=.5;ymax+=.5\n pad=(ymax-ymin)*.08;ymin-=pad;ymax+=pad;X=lambda x:82+(float(x)-xmin)/(xmax-xmin)*608;Y=lambda y:354-(float(y)-ymin)/(ymax-ymin)*290;e=html.escape\n out=['<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"'+e(title)+'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">'+e(title)+'</text>']\n for j in range(5):\n  y=ymin+(ymax-ymin)*j/4;x=xmin+(xmax-xmin)*j/4;out.append('<line x1=\"82\" y1=\"'+str(Y(y))+'\" x2=\"690\" y2=\"'+str(Y(y))+'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"'+str(Y(y)+4)+'\" text-anchor=\"end\">'+format(y,'.3g')+'</text><text x=\"'+str(X(x))+'\" y=\"380\" text-anchor=\"middle\">'+format(x,'.3g')+'</text>')\n series=list(dict.fromkeys(p['series']for p in good))\n for j,s in enumerate(series):\n  pp=[p for p in good if p['series']==s];color=['#0f766e','#c76622','#4f46e5','#b23857'][j%4];out.append('<polyline fill=\"none\" stroke=\"'+color+'\" stroke-width=\"1.5\" points=\"'+' '.join(format(X(p['x']),'.6f')+','+format(Y(p['y']),'.6f')for p in pp)+'\"/>')\n  for p in pp:out.append('<circle cx=\"'+format(X(p['x']),'.6f')+'\" cy=\"'+format(Y(p['y']),'.6f')+'\" r=\"2.6\" fill=\"'+color+'\"><title>'+e(s+': '+str(p['y']))+'</title></circle>')\n  out.append('<text x=\"'+str(82+(j%2)*310)+'\" y=\"'+str(432+(j//2)*23)+'\" fill=\"'+color+'\">'+e(s)+'</text>')\n out.append('<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>');return''.join(out)\n\nOUT=Path(sys.argv[1]);OUT.mkdir(parents=True,exist_ok=False)\nresult=fixed_operation(FIXED['api'],FIXED['input']);summary,series=report_values(FIXED['api'],result)\ndef encode(v):\n if isinstance(v,Q):return str(v)\n if isinstance(v,dict):return{k:encode(x)for k,x in v.items()}\n if isinstance(v,(list,tuple)):return[encode(x)for x in v]\n return v\n(OUT/'full.json').write_text(json.dumps(dict(arithmetic='Exact finite Fraction algebra except approximate natural logs; declared fixed examples, no exchangeability certification',result=encode(result)),ensure_ascii=False,indent=2)+'\\n',encoding='utf8')\nsummaryRows=[dict(metric=m,value=''if v is None else str(int(v))if isinstance(v,bool)else str(v),unit=u,defined=int(v is not None))for m,v,u in summary]\npoints=[dict(series=name,index=i,x=str(x),y=''if y is None else str(y),defined=int(y is not None))for name,pp in series for i,(x,y)in enumerate(pp)]\nfor name,rows in [('summary',summaryRows),('plot-points',points)]:\n with(OUT/(name+'.csv')).open('w',encoding='utf8',newline='')as f:writer=csv.DictWriter(f,fieldnames=list(rows[0]));writer.writeheader();writer.writerows(rows)\n(OUT/'plot.svg').write_text(fixed_svg([dict(p,x=number(p['x']),y=None if not p['defined']else number(p['y']))for p in points],FIXED['title']),encoding='utf8');print(FIXED['api']+'/'+FIXED['variant'])\n",
        "returnCode": 0,
        "stdout": "score/weighted-probabilities\r\n",
        "stderr": "",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/python-score-weighted-probabilities-result",
        "kind": null,
        "inputFiles": [],
        "files": [
          {
            "file": "ml20-code/python-score-weighted-probabilities-result/full.json",
            "sha256": "fdb0f9fd5a472cdec182c1683701bdf66a538304e7623024561f51c3745a48b1",
            "bytes": 5983
          },
          {
            "file": "ml20-code/python-score-weighted-probabilities-result/plot-points.csv",
            "sha256": "f448bdb79487851333dd2a97bc1e045e58d9c0dd49d3c600250d2c4234327eff",
            "bytes": 80
          },
          {
            "file": "ml20-code/python-score-weighted-probabilities-result/plot.svg",
            "sha256": "77e843f6559beec8a8b9fe960cee585b2a9ba846dcaedc5aa0cc1c44787ad999",
            "bytes": 1698
          },
          {
            "file": "ml20-code/python-score-weighted-probabilities-result/summary.csv",
            "sha256": "540ce3a513a30f1b79c742d34b867881529fff8a30d8f96316600c9b28d03f28",
            "bytes": 222
          },
          {
            "file": "ml20-code/python-score-weighted-probabilities-result/stdout.txt",
            "sha256": "f62efe0451981d167c56347043fd82d8546b18c4730f28869fc42f1b60c71983",
            "bytes": 30
          },
          {
            "file": "ml20-code/python-score-weighted-probabilities-result/stderr.txt",
            "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
            "bytes": 0
          }
        ],
        "summaryRows": [
          {
            "metric": "mass",
            "value": "4",
            "unit": "analysis weight",
            "defined": "true",
            "exactFraction": "4",
            "rawValue": "4",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "Brier",
            "value": "0.07",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "7/100",
            "rawValue": "7/100",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "meanLogLoss",
            "value": "0.293846337",
            "unit": "nats; numerical logarithm",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.29384633686850586",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Numerical logarithm/display approximation"
          },
          {
            "metric": "genuineInfinite",
            "value": "0",
            "unit": "indicator",
            "defined": "true",
            "exactFraction": "0",
            "rawValue": "0",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "BrierPositive",
            "value": "1",
            "unit": "mathematical indicator",
            "defined": "true",
            "exactFraction": "1",
            "rawValue": "1",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          }
        ],
        "plotRows": [
          {
            "series": "squared error",
            "index": 0,
            "x": "0",
            "y": "0.01",
            "defined": true,
            "xExact": "0",
            "yExact": "1/100"
          },
          {
            "series": "squared error",
            "index": 1,
            "x": "1",
            "y": "0.089999999999999997",
            "defined": true,
            "xExact": "1",
            "yExact": "9/100"
          }
        ],
        "plotFile": "ml20-code/python-score-weighted-probabilities-result/plot.svg",
        "fullResultFile": "ml20-code/python-score-weighted-probabilities-result/full.json",
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      },
      "rare-aggregate": {
        "api": "score",
        "variant": "rare-aggregate",
        "language": "python",
        "title": "Tiny positive loss: aggregate before display",
        "input": {
          "rows": [
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1",
              "y": "1",
              "weight": "1"
            }
          ]
        },
        "expectedFailure": false,
        "codeFile": "ml20-code/score-rare-aggregate.py",
        "codeSHA256": "3c46ea171f956ddb8ec70d574fb1a583ea9804a0b2a33c68b999cab8101ab6c0",
        "code": "\"\"\"ML20 standalone fixed example, not an arbitrary-input validator.\nFinite Python Fraction algebra; natural logs use Decimal1800 approximation\nthen a final binary64 display projection. Realdata reads4factual CSVs only,\nreusing the frozen public reader/fit implementation by value; all other inputs\nare complete fixed literals. No engine/model/computed/checker imported.\nRun: python this-file.py NEW-OUTPUT\n\"\"\"\nfrom pathlib import Path\nimport csv,json,hashlib,sys,math,html\nif hasattr(sys,'set_int_max_str_digits'):sys.set_int_max_str_digits(100000)\n\"\"\"Owned standalone exact finite optimization primitives for ML19 public programs.\nThis is an author implementation, never an independent numerical oracle.\n\"\"\"\nfrom fractions import Fraction as Q\ndef number(v):return v if isinstance(v,Q)else Q(str(v))\ndef dot(a,b):return sum((x*y for x,y in zip(a,b)),Q(0))\ndef frame(rows,p=2,scale='range'):\n rr=[]\n for i,r in enumerate(rows):\n  x=[None if v is None else number(v)for v in r['x']];y=None if r['y']is None else number(r['y']);w=number(r.get('weight',1));role=r.get('role','train');rr.append(dict(id=r.get('id','row:'+str(i+1)),index=i,x=x,y=y,w=w,role=role,eligible=y is not None and all(v is not None for v in x)and w>0))\n train=[r for r in rr if r['role']=='train'and r['eligible']];W=sum((r['w']for r in train),Q(0))\n if not W:return dict(defined=False,p=p,rows=rr,train=[],W=W)\n mean=[sum(r['w']*r['x'][j]for r in train)/W for j in range(p)];ranges=[max(r['x'][j]for r in train)-min(r['x'][j]for r in train)or Q(1)for j in range(p)];scales=ranges if scale=='range'else[Q(1)]*p\n for r in rr:r['z']=None if None in r['x']else[Q(1)]+[(r['x'][j]-mean[j])/scales[j]for j in range(p)]\n return dict(defined=True,p=p,rows=rr,train=train,W=W,mean=mean,ranges=ranges,scales=scales,meanY=sum(r['w']*r['y']for r in train)/W)\ndef quadratic(f,lam=Q(0),role='train'):\n rr=[r for r in f['rows']if r['role']==role and r['eligible']];W=sum((r['w']for r in rr),Q(0));n=f['p']+1\n if not W:return None\n H=[[sum(r['w']*r['z'][j]*r['z'][k]for r in rr)/W+(lam if j==k and j else 0)for k in range(n)]for j in range(n)];b=[sum(r['w']*r['y']*r['z'][j]for r in rr)/W for j in range(n)];d=sum(r['w']*r['y']**2 for r in rr)/(2*W);return H,b,d\ndef state(q,theta):\n H,b,d=q;gradient=[dot(row,theta)-bb for row,bb in zip(H,b)];return dict(theta=theta,objective=dot(theta,[dot(row,theta)for row in H])/2-dot(theta,b)+d,gradient=gradient,gradientNormSquared=dot(gradient,gradient))\ndef solve(H,b):\n n=len(b);A=[row[:]+[bb]for row,bb in zip(H,b)];piv=[];row=0\n for j in range(n):\n  k=next((i for i in range(row,n)if A[i][j]),None)\n  if k is None:continue\n  A[row],A[k]=A[k],A[row];z=A[row][j];A[row]=[v/z for v in A[row]]\n  for i in range(n):\n   if i!=row:\n    z=A[i][j];A[i]=[v-z*u for v,u in zip(A[i],A[row])]\n  piv.append(j);row+=1\n  if row==n:break\n assert not any(not any(r[:n])and r[n]for r in A)\n beta=[Q(0)]*n\n for i,j in enumerate(piv):beta[j]=A[i][n]\n nullspace=[]\n for j in range(n):\n  if j not in piv:\n   v=[Q(0)]*n;v[j]=Q(1)\n   for i,k in enumerate(piv):v[k]=-A[i][j]\n   nullspace.append(v)\n return dict(rank=len(piv),particular=beta,nullspace=nullspace,unique=len(piv)==n)\n\n\ndef fixed_source(kind):\n SRC=Path(__file__).resolve().parent/\"data\"\n read=lambda n:list(csv.DictReader((SRC/n).open(encoding='utf8',newline='')))\n def native(v):return None if v in['','.']else v\n\n models={};original=read('actual48-country-revised-original-2023-2024.csv');lookup={(r['countryISO3'],r['indicatorID'],r['date']):r for r in original};rows=[]\n for iso in sorted({r['countryISO3']for r in original}):\n  g=lookup[iso,'NY.GDP.PCAP.KD','2023'];p=lookup[iso,'FP.CPI.TOTL.ZG','2023'];y=lookup[iso,'NY.GDP.MKTP.KD.ZG','2024'];rows.append(dict(id=iso+':2024',x=[None if not g['originalValueToken']else str(number(g['originalValueToken'])/10000),None if not p['originalValueToken']else str(number(p['originalValueToken'])/10)],y=native(y['originalValueToken']),sourceRow=iso))\n models['country']=dict(rows=rows,names=['g','pi'],unit='annual GDP growth percentage points')\n for kind,file,keys,ykey,ID in [('person','actual3613-NLS-original52-fields-and-conformal-frame.csv',['ed76','age76'],'lwage76','person-row:'),('company','actual3150-churn-original14-fields-and-conformal-frame.csv',['Call  Failure','Seconds of Use'],'Churn','customer-row:')]:\n  source=read(file);models[kind]=dict(rows=[dict(id=ID+r['sourceRow'],sourceRow=r['sourceRow'],x=[native(r[k])for k in keys],y=native(r[ykey]))for r in source],names=['ed76','age76']if kind=='person'else['CallFailure','SecondsUse'],unit='native trimmed1976log hourly wage'if kind=='person'else'native Churn0/1')\n for kind,m in models.items():\n  for rank,r in enumerate(sorted(m['rows'],key=lambda r:(hashlib.sha256(('ML20|'+kind+'|'+r['id']).encode()).digest(),r['id']))):r.update(splitRank=rank,plannedRole=['test','calibration','train','train'][rank%4]);r['role']=r['plannedRole']if r['y']is not None and None not in r['x']else'excluded';r['weight']='1'\n  m['trainingIDs']=[r['id']for r in sorted(m['rows'],key=lambda r:r['splitRank'])if r['role']=='train']\n\n models={kind:models[kind]}\n # New public actual-source study; exact finite Fraction fit/rank/membership.\n # Default single declared model, not a hyperparameter Cartesian dump.\n from decimal import Decimal,localcontext\n from collections import Counter\n outputs={k:[]for k in['study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins']}\n alpha=number('1/5');lam=number('1/100')\n if not 0<alpha<1 or lam<0:raise ValueError('Require0<alpha<1 and nonnegative ridge')\n def metric(kind,name,value,unit,arithmetic='exact rational'):\n  outputs['study-metrics'].append(dict(kind=kind,metric=name,value=''if value is None else value,unit=unit,defined=int(value is not None),arithmetic=arithmetic))\n def bins(rr,B=5):\n  groups=[[]for _ in range(B)]\n  for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n  n=len(rr);yb=sum((r['y']for r in rr),Q(0))/n if n else None;ece=rel=res=var=cov=Q(0);result=[]\n  for j,gg in enumerate(groups):\n   nn=len(gg);pm=sum((r['p']for r in gg),Q(0))/nn if nn else None;ym=sum((r['y']for r in gg),Q(0))/nn if nn else None;v=sum(((r['p']-pm)**2 for r in gg),Q(0))/nn if nn else None;co=sum(((r['p']-pm)*(r['y']-ym)for r in gg),Q(0))/nn if nn else None\n   result.append(dict(bin=j,lower=Q(j,B),upper=Q(j+1,B),rightClosed=int(j==B-1),rows=nn,meanP=pm,frequencyY1=ym,gap=None if not nn else pm-ym,withinVarianceP=v,withinCovariancePY=co))\n   if nn:weight=Q(nn,n);ece+=weight*abs(pm-ym);rel+=weight*(pm-ym)**2;res+=weight*(ym-yb)**2;var+=weight*v;cov+=weight*co\n  return result,dict(ECE=ece if n else None,Brier=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/n if n else None,uncertainty=yb*(1-yb)if n else None,resolution=res if n else None,reliability=rel if n else None,withinVarianceP=var if n else None,withinCovariancePY=cov if n else None)\n def meanlog(rr):\n  if not rr:return None\n  pp=[r['p']if r['y']else 1-r['p']for r in rr]\n  if any(not p for p in pp):return'+infinity'\n  with localcontext()as ctx:\n   ctx.prec=60;return str(-sum(((Decimal(p.numerator)/Decimal(p.denominator)).ln()for p in pp),Decimal(0))/len(pp))\n for kind,m in models.items():\n  f=frame(m['rows']);n=len(f['train']);assert n>0;H,b,d=quadratic(f,lam);fit=solve(H,b);theta=fit['particular'];minimum=state((H,b,d),theta)['objective'];beta=[theta[j+1]/f['scales'][j]for j in range(2)];intercept=theta[0]-dot(beta,f['mean']);rr=[]\n  for r in f['rows']:\n   native=m['rows'][r['index']];raw=None if r['z']is None else dot(r['z'],theta);pred=None if raw is None else max(Q(0),min(Q(1),raw))if kind=='company'else raw;group='missing-X'if r['z']is None else('schooling-at-most12'if r['x'][0]<=12 else'schooling-over12')if kind=='person'else('zero-call-failures'if r['x'][0]==0 else'positive-call-failures')if kind=='company'else('GDPpc-at-most-training-mean'if r['x'][0]<=f['mean'][0]else'GDPpc-above-training-mean');rr.append(dict(id=r['id'],sourceRow=native['sourceRow'],sourceIndex0=r['index'],plannedRole=native['plannedRole'],role=r['role'],group=group,y=r['y'],raw=raw,prediction=pred,eligible=r['eligible']))\n  cal=[r for r in rr if r['role']=='calibration'and r['prediction']is not None and r['y']is not None]\n  for i,r in enumerate(cal):r['calibrationIndex0']=i;r['score']=(1-r['prediction']if r['y']else r['prediction'])if kind=='company'else abs(r['y']-r['prediction'])\n  ordered=sorted(cal,key=lambda r:(r['score'],r['calibrationIndex0']));rankQ=(len(cal)+1)*(1-alpha);k=(rankQ.numerator+rankQ.denominator-1)//rankQ.denominator;threshold=ordered[k-1]['score']if k<=len(cal)else None;unbounded=threshold is None\n  for j,r in enumerate(ordered,1):outputs['calibration-scores'].append(dict(kind=kind,rank=j,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],calibrationIndex0=r['calibrationIndex0'],score=r['score'],threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded)))\n  for j,name in enumerate(m['names']):outputs['training-coefficients'].append(dict(kind=kind,feature=name,mean=f['mean'][j],scale=f['scales'][j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[0],nativeIntercept=intercept,rank=fit['rank'],unique=int(fit['unique']),lambdaValue=lam,minimumObjective=minimum))\n  for name,value,unit in[('sourceRows',len(rr),'rows'),('trainingRows',n,'rows'),('calibrationScores',len(cal),'unit-count scores'),('testLabeledRows',sum(r['role']=='test'and r['y']is not None for r in rr),'rows'),('excludedRows',sum(r['role']=='excluded'for r in rr),'rows'),('alpha',alpha,'probability'),('ridge',lam,'transformed slope penalty'),('quantileRank',k,'one-based rank'),('threshold','+infinity'if unbounded else threshold,'dimensionless score'if kind=='company'else m['unit']),('minimumObjective',minimum,'('+m['unit']+') squared')]:metric(kind,name,value,unit,'mathematical infinity'if value=='+infinity'else'exact rational')\n  for r in rr:\n   defined=r['prediction']is not None;labeled=defined and r['y']is not None\n   if not defined:lo=hi=width=size=None;labels='';covered=None\n   elif kind=='company':\n    labelsList=[j for j,s in enumerate([r['prediction'],1-r['prediction']])if unbounded or s<=threshold];labels='|'.join(map(str,labelsList));size=len(labelsList);lo=hi=width=None;covered=int(int(r['y'])in labelsList)if labeled else None\n   else:lo='-infinity'if unbounded else r['prediction']-threshold;hi='+infinity'if unbounded else r['prediction']+threshold;width='+infinity'if unbounded else 2*threshold;labels='';size=None;covered=int(unbounded or abs(r['y']-r['prediction'])<=threshold)if labeled else None\n   r.update(defined=defined,labeled=labeled,lower=lo,upper=hi,width=width,labels=labels,size=size,covered=covered)\n   outputs['row-predictions'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],plannedRole=r['plannedRole'],role=r['role'],group=r['group'],actualY=r['y'],rawLinear=r['raw'],prediction=r['prediction'],predictionDefined=int(defined),threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded),lower=lo,upper=hi,width=width,setLabels=labels,setSize=size,covered=covered,labeledPrediction=int(labeled)))\n   outputs['eligibility'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],plannedRole=r['plannedRole'],role=r['role'],requiredComplete=int(r['eligible']),trainingUsed=int(r['role']=='train'and r['eligible']),reason='missing-required-field'if not r['eligible']else''))\n  roles=list(dict.fromkeys(r['role']for r in rr));groups=list(dict.fromkeys(r['group']for r in rr))\n  for role in roles:\n   for group in['all']+groups:\n    use=[r for r in rr if r['role']==role and(group=='all'or r['group']==group)];defined=[r for r in use if r['defined']];scored=[r for r in use if r['labeled']and role not in['excluded','unused']];covered=sum(r['covered']for r in scored);nn=len(defined);nscore=len(scored);unboundedCount=sum(r['width']=='+infinity'for r in defined);size=Q(sum(r['size']for r in defined),nn)if kind=='company'and nn else None;width=('+infinity'if unboundedCount else sum(r['width']for r in defined)/nn)if kind!='company'and nn else None\n    outputs['role-group-coverage'].append(dict(kind=kind,role=role,group=group,originalRows=len(use),definedPredictions=nn,scoredLabels=nscore,coveredRows=covered,coverage=Q(covered,nscore)if nscore else None,meanSetSize=size,meanIntervalWidth=width,unboundedIntervals=unboundedCount))\n  if kind=='company':\n   for role in['train','calibration','test']:\n    use=[dict(p=r['prediction'],y=r['y'])for r in rr if r['role']==role and r['labeled']];bb,mm=bins(use)\n    for row in bb:outputs['reliability-bins'].append(dict(kind=kind,role=role,**row))\n    for name,value in mm.items():metric(kind,role+':'+name,value,'dimensionless'if name=='ECE'else'squared probability')\n    metric(kind,role+':meanLogLoss',meanlog(use),'nats','Decimal60 approximation or genuine infinity')\n return outputs\n\n# Owned ML20 fixed-example adapters. Finite rational calculations; logs approximate.\nfrom fractions import Fraction as Q\nfrom decimal import Decimal,localcontext\nimport math\ndef num(v):return v if isinstance(v,Q)else Q(str(v))\ndef ceilq(q):return-((-q.numerator)//q.denominator)\ndef fixed_quantile(scores,alpha):\n a=num(alpha)\n if not 0<a<1:raise ValueError('alpha-must-be-strictly-between-zero-and-one')\n ordered=sorted([(num(v),i)for i,v in enumerate(scores)if v is not None]);n=len(ordered);k=ceilq((n+1)*(1-a));q=None if k>n else ordered[k-1][0]\n return dict(n=n,k=k,threshold=q,infinite=q is None,ordered=ordered)\ndef fixed_score(rows):\n rr=[dict(p=num(r['p']),y=num(r['y']),w=num(r.get('weight',1)))for r in rows];rr=[r for r in rr if r['w']>0];mass=sum((r['w']for r in rr),Q(0));brier=sum((r['w']*(r['p']-r['y'])**2 for r in rr),Q(0))/mass if mass else None;logs=[];genuine=False\n with localcontext()as ctx:\n  ctx.prec=1800\n  total=Decimal(0)\n  for r in rr:\n   p=r['p']if r['y']else 1-r['p']\n   if not p:genuine=True;logs.append('+infinity');continue\n   loss=-(Decimal(p.numerator)/Decimal(p.denominator)).ln();logs.append(str(loss));w=r['w']/mass;total+=Decimal(w.numerator)/Decimal(w.denominator)*loss\n  display='+infinity'if genuine else None if not mass else repr(float(total));raw='+infinity'if genuine else None if not mass else str(total)\n return dict(rows=rr,mass=mass,Brier=brier,meanLogLoss=display,naturalLogApprox1800=raw,individualLogLoss=logs,genuineInfinite=genuine,BrierPositive=brier is not None and brier>0)\ndef fixed_calibration(rows,B):\n rr=[dict(p=num(r['p']),y=num(r['y']))for r in rows];N=len(rr);yb=sum((r['y']for r in rr),Q(0))/N;groups=[[]for _ in range(B)]\n for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n result=[];ece=rel=res=vp=cp=Q(0)\n for j,g in enumerate(groups):\n  n=len(g);pm=sum((r['p']for r in g),Q(0))/n if n else None;ym=sum((r['y']for r in g),Q(0))/n if n else None;v=sum(((r['p']-pm)**2 for r in g),Q(0))/n if n else None;c=sum(((r['p']-pm)*(r['y']-ym)for r in g),Q(0))/n if n else None;result.append(dict(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c))\n  if n:z=Q(n,N);ece+=z*abs(pm-ym);rel+=z*(pm-ym)**2;res+=z*(ym-yb)**2;vp+=z*v;cp+=z*c\n bs=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/N;u=yb*(1-yb)\n return dict(rows=N,bins=result,Brier=bs,ECE=ece,uncertainty=u,resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=u-res+rel+vp-2*cp)\ndef fixed_predict(a):\n q=fixed_quantile(a['scores'],a['alpha']);out=[];classification=a['mode']=='classification'\n for i,row in enumerate(a['queries']):\n  p=num(row['p']if classification else row['center']);y=None if row.get('y')is None else num(row['y']);threshold=q['threshold'];unbounded=q['infinite']\n  if classification:labels=[v for v,s in[(0,p),(1,1-p)]if unbounded or s<=threshold];lo=hi=width=None;size=len(labels);covered=None if y is None else int(int(y)in labels)\n  else:labels=None;size=None;lo='-infinity'if unbounded else p-threshold;hi='+infinity'if unbounded else p+threshold;width='+infinity'if unbounded else 2*threshold;covered=None if y is None else int(unbounded or abs(y-p)<=threshold)\n  out.append(dict(id=row.get('id',str(i)),prediction=p,actualY=y,labels=labels,size=size,lower=lo,upper=hi,width=width,covered=covered))\n scored=[r for r in out if r['covered']is not None];coverage=Q(sum(r['covered']for r in scored),len(scored))if scored else None;meanSize=Q(sum(r['size']for r in out),len(out))if classification and out else None;meanWidth=('+infinity'if q['infinite']else 2*q['threshold'])if not classification and out else None\n return dict(quantile=q,rows=out,scoredLabels=len(scored),coverage=coverage,meanSetSize=meanSize,meanWidth=meanWidth)\ndef fixed_ranklaw(a):\n scores=list(map(num,a['scores']));trials=[]\n for i,y in enumerate(scores):q=fixed_quantile(scores[:i]+scores[i+1:],a['alpha']);trials.append(dict(heldout=i,score=y,k=q['k'],threshold=q['threshold'],infinite=q['infinite'],covered=int(q['infinite']or y<=q['threshold'])))\n return dict(N=len(scores),distinct=len(set(scores))==len(scores),trials=trials,coverage=Q(sum(t['covered']for t in trials),len(trials)))\ndef fixed_operation(api,a):\n return fixed_score(a['rows'])if api=='score'else fixed_calibration(a['rows'],a['bins'])if api=='calibration'else fixed_quantile(a['scores'],a['alpha'])if api=='quantile'else fixed_predict(a)if api=='predict'else fixed_ranklaw(a)if api=='ranklaw'else fixed_source(a['kind'])\ndef report_values(api,z):\n summary=[];series=[]\n def add(k,v,u):summary.append((k,v,u))\n if api=='score':\n  for k,u in[('mass','analysis weight'),('Brier','squared probability'),('meanLogLoss','nats; numerical logarithm'),('genuineInfinite','indicator'),('BrierPositive','mathematical indicator')]:add(k,z[k],u)\n  series=[('squared error',[(i,(r['p']-r['y'])**2)for i,r in enumerate(z['rows'])])]\n elif api=='calibration':\n  for k in['Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity']:add(k,z[k],'probability'if k=='ECE'else'squared probability')\n  series=[('bin probability',[(r['bin'],r['meanP'])for r in z['bins']]),('bin outcome frequency',[(r['bin'],r['frequency'])for r in z['bins']])]\n elif api=='quantile':\n  for k,u in[('n','scores'),('k','one-based rank'),('infinite','mathematical indicator')]:add(k,z[k],u)\n  add('threshold','+infinity'if z['infinite']else z['threshold'],'score units');series=[('sorted score',[(i+1,v)for i,(v,index)in enumerate(z['ordered'])])]\n elif api=='predict':\n  for k,u in[('scoredLabels','labels'),('coverage','fraction'),('meanSetSize','classes'),('meanWidth','outcome units')]:add(k,z[k],u)\n  add('thresholdInfinite',z['quantile']['infinite'],'mathematical indicator');series=[('predicted center or probability',[(i,r['prediction'])for i,r in enumerate(z['rows'])]),('observed label or outcome',[(i,r['actualY'])for i,r in enumerate(z['rows'])])]\n elif api=='ranklaw':\n  for k,u in[('N','scores'),('distinct','indicator'),('coverage','fraction')]:add(k,z[k],u)\n  series=[('held-out coverage',[(r['heldout'],r['covered'])for r in z['trials']])]\n else:\n  mt={r['metric']:r for r in z['study-metrics']};cv=next(r for r in z['role-group-coverage']if r['role']=='test'and r['group']=='all')\n  for k in['sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold']:add(k,mt[k]['value'],mt[k]['unit'])\n  for k,u in[('coverage','fraction'),('meanSetSize','classes'),('meanIntervalWidth','outcome units')]:add(k,cv[k],u)\n  series=[('all calibration scores',[(r['rank'],r['score'])for r in z['calibration-scores']])]\n return summary,series\n\nnumber=num\n\nFIXED={'api': 'score', 'variant': 'rare-aggregate', 'title': 'Tiny positive loss: aggregate before display', 'input': {'rows': [{'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1e-200', 'y': '1', 'weight': '0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200'}, {'p': '1', 'y': '1', 'weight': '1'}]}, 'expectedFailure': False}\n\ndef fixed_svg(points,title):\n good=[p for p in points if p['y'] is not None];xx=[float(p['x'])for p in good];yy=[float(p['y'])for p in good];xmin=min(xx)if xx else 0;xmax=max(xx)if xx else 1;ymin=min([0]+yy);ymax=max([0]+yy)\n if xmin==xmax:xmin-=.5;xmax+=.5\n if ymin==ymax:ymin-=.5;ymax+=.5\n pad=(ymax-ymin)*.08;ymin-=pad;ymax+=pad;X=lambda x:82+(float(x)-xmin)/(xmax-xmin)*608;Y=lambda y:354-(float(y)-ymin)/(ymax-ymin)*290;e=html.escape\n out=['<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"'+e(title)+'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">'+e(title)+'</text>']\n for j in range(5):\n  y=ymin+(ymax-ymin)*j/4;x=xmin+(xmax-xmin)*j/4;out.append('<line x1=\"82\" y1=\"'+str(Y(y))+'\" x2=\"690\" y2=\"'+str(Y(y))+'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"'+str(Y(y)+4)+'\" text-anchor=\"end\">'+format(y,'.3g')+'</text><text x=\"'+str(X(x))+'\" y=\"380\" text-anchor=\"middle\">'+format(x,'.3g')+'</text>')\n series=list(dict.fromkeys(p['series']for p in good))\n for j,s in enumerate(series):\n  pp=[p for p in good if p['series']==s];color=['#0f766e','#c76622','#4f46e5','#b23857'][j%4];out.append('<polyline fill=\"none\" stroke=\"'+color+'\" stroke-width=\"1.5\" points=\"'+' '.join(format(X(p['x']),'.6f')+','+format(Y(p['y']),'.6f')for p in pp)+'\"/>')\n  for p in pp:out.append('<circle cx=\"'+format(X(p['x']),'.6f')+'\" cy=\"'+format(Y(p['y']),'.6f')+'\" r=\"2.6\" fill=\"'+color+'\"><title>'+e(s+': '+str(p['y']))+'</title></circle>')\n  out.append('<text x=\"'+str(82+(j%2)*310)+'\" y=\"'+str(432+(j//2)*23)+'\" fill=\"'+color+'\">'+e(s)+'</text>')\n out.append('<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>');return''.join(out)\n\nOUT=Path(sys.argv[1]);OUT.mkdir(parents=True,exist_ok=False)\nresult=fixed_operation(FIXED['api'],FIXED['input']);summary,series=report_values(FIXED['api'],result)\ndef encode(v):\n if isinstance(v,Q):return str(v)\n if isinstance(v,dict):return{k:encode(x)for k,x in v.items()}\n if isinstance(v,(list,tuple)):return[encode(x)for x in v]\n return v\n(OUT/'full.json').write_text(json.dumps(dict(arithmetic='Exact finite Fraction algebra except approximate natural logs; declared fixed examples, no exchangeability certification',result=encode(result)),ensure_ascii=False,indent=2)+'\\n',encoding='utf8')\nsummaryRows=[dict(metric=m,value=''if v is None else str(int(v))if isinstance(v,bool)else str(v),unit=u,defined=int(v is not None))for m,v,u in summary]\npoints=[dict(series=name,index=i,x=str(x),y=''if y is None else str(y),defined=int(y is not None))for name,pp in series for i,(x,y)in enumerate(pp)]\nfor name,rows in [('summary',summaryRows),('plot-points',points)]:\n with(OUT/(name+'.csv')).open('w',encoding='utf8',newline='')as f:writer=csv.DictWriter(f,fieldnames=list(rows[0]));writer.writeheader();writer.writerows(rows)\n(OUT/'plot.svg').write_text(fixed_svg([dict(p,x=number(p['x']),y=None if not p['defined']else number(p['y']))for p in points],FIXED['title']),encoding='utf8');print(FIXED['api']+'/'+FIXED['variant'])\n",
        "returnCode": 0,
        "stdout": "score/rare-aggregate\r\n",
        "stderr": "",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/python-score-rare-aggregate-result",
        "kind": null,
        "inputFiles": [],
        "files": [
          {
            "file": "ml20-code/python-score-rare-aggregate-result/full.json",
            "sha256": "44b05479c52b600a216b86d596a7d10c4242801187ae9c7b526f44c06830d81a",
            "bytes": 245804
          },
          {
            "file": "ml20-code/python-score-rare-aggregate-result/plot-points.csv",
            "sha256": "c80fea65aa3ffbee3b9d59ac873f0ba5218b170737e6644c2d73fe651782fb04",
            "bytes": 82633
          },
          {
            "file": "ml20-code/python-score-rare-aggregate-result/plot.svg",
            "sha256": "8e6e953d84c0442fb57bf8f982700d05c4e9df8d1218048c86598025880c6cd8",
            "bytes": 93952
          },
          {
            "file": "ml20-code/python-score-rare-aggregate-result/summary.csv",
            "sha256": "9f9fc629d9dc4b1c9da1bee844610440cf211a23839b7b9264883ae175ad1bca",
            "bytes": 1934
          },
          {
            "file": "ml20-code/python-score-rare-aggregate-result/stdout.txt",
            "sha256": "fbec240b8cc813dfc951b20041a0cee31abcf36ce40f2739543ccd8599e187db",
            "bytes": 22
          },
          {
            "file": "ml20-code/python-score-rare-aggregate-result/stderr.txt",
            "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
            "bytes": 0
          }
        ],
        "summaryRows": [
          {
            "metric": "mass",
            "value": "1",
            "unit": "analysis weight",
            "defined": "true",
            "exactFraction": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
            "rawValue": "10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": true,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "Brier",
            "value": "0",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "999999999999999999999999900000000000000000000000009999999999999999999999999000000000000000000000000099999999999999999999999990000000000000000000000000999999999999999999999999899999999999999999999999990000000000000000000000000999999999999999999999999900000000000000000000000009999999999999999999999999000000000000000000000000099999999999999999999999990000000000000000000000001/9999999999999999999999999000000000000000000000000099999999999999999999999990000000000000000000000000999999999999999999999999900000000000000000000000009999999999999999999999999000000000000000000000000099999999999999999999999990000000000000000000000000999999999999999999999999900000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
            "rawValue": "999999999999999999999999900000000000000000000000009999999999999999999999999000000000000000000000000099999999999999999999999990000000000000000000000000999999999999999999999999899999999999999999999999990000000000000000000000000999999999999999999999999900000000000000000000000009999999999999999999999999000000000000000000000000099999999999999999999999990000000000000000000000001/9999999999999999999999999000000000000000000000000099999999999999999999999990000000000000000000000000999999999999999999999999900000000000000000000000009999999999999999999999999000000000000000000000000099999999999999999999999990000000000000000000000000999999999999999999999999900000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
            "mathematicallyPositive": true,
            "displayUnderflow": true,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "meanLogLoss",
            "value": "4.44659081e-323",
            "unit": "nats; numerical logarithm",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "4.4e-323",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Numerical logarithm/display approximation"
          },
          {
            "metric": "genuineInfinite",
            "value": "0",
            "unit": "indicator",
            "defined": "true",
            "exactFraction": "0",
            "rawValue": "0",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "BrierPositive",
            "value": "1",
            "unit": "mathematical indicator",
            "defined": "true",
            "exactFraction": "1",
            "rawValue": "1",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          }
        ],
        "plotRows": [
          {
            "series": "squared error",
            "index": 0,
            "x": "0",
            "y": "1",
            "defined": true,
            "xExact": "0",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 1,
            "x": "1",
            "y": "1",
            "defined": true,
            "xExact": "1",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 2,
            "x": "2",
            "y": "1",
            "defined": true,
            "xExact": "2",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 3,
            "x": "3",
            "y": "1",
            "defined": true,
            "xExact": "3",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 4,
            "x": "4",
            "y": "1",
            "defined": true,
            "xExact": "4",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 5,
            "x": "5",
            "y": "1",
            "defined": true,
            "xExact": "5",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 6,
            "x": "6",
            "y": "1",
            "defined": true,
            "xExact": "6",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 7,
            "x": "7",
            "y": "1",
            "defined": true,
            "xExact": "7",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 8,
            "x": "8",
            "y": "1",
            "defined": true,
            "xExact": "8",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 9,
            "x": "9",
            "y": "1",
            "defined": true,
            "xExact": "9",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 10,
            "x": "10",
            "y": "1",
            "defined": true,
            "xExact": "10",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 11,
            "x": "11",
            "y": "1",
            "defined": true,
            "xExact": "11",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 12,
            "x": "12",
            "y": "1",
            "defined": true,
            "xExact": "12",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 13,
            "x": "13",
            "y": "1",
            "defined": true,
            "xExact": "13",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 14,
            "x": "14",
            "y": "1",
            "defined": true,
            "xExact": "14",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 15,
            "x": "15",
            "y": "1",
            "defined": true,
            "xExact": "15",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 16,
            "x": "16",
            "y": "1",
            "defined": true,
            "xExact": "16",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 17,
            "x": "17",
            "y": "1",
            "defined": true,
            "xExact": "17",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 18,
            "x": "18",
            "y": "1",
            "defined": true,
            "xExact": "18",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 19,
            "x": "19",
            "y": "1",
            "defined": true,
            "xExact": "19",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 20,
            "x": "20",
            "y": "1",
            "defined": true,
            "xExact": "20",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 21,
            "x": "21",
            "y": "1",
            "defined": true,
            "xExact": "21",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 22,
            "x": "22",
            "y": "1",
            "defined": true,
            "xExact": "22",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 23,
            "x": "23",
            "y": "1",
            "defined": true,
            "xExact": "23",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 24,
            "x": "24",
            "y": "1",
            "defined": true,
            "xExact": "24",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 25,
            "x": "25",
            "y": "1",
            "defined": true,
            "xExact": "25",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 26,
            "x": "26",
            "y": "1",
            "defined": true,
            "xExact": "26",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 27,
            "x": "27",
            "y": "1",
            "defined": true,
            "xExact": "27",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 28,
            "x": "28",
            "y": "1",
            "defined": true,
            "xExact": "28",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 29,
            "x": "29",
            "y": "1",
            "defined": true,
            "xExact": "29",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 30,
            "x": "30",
            "y": "1",
            "defined": true,
            "xExact": "30",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 31,
            "x": "31",
            "y": "1",
            "defined": true,
            "xExact": "31",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 32,
            "x": "32",
            "y": "1",
            "defined": true,
            "xExact": "32",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 33,
            "x": "33",
            "y": "1",
            "defined": true,
            "xExact": "33",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 34,
            "x": "34",
            "y": "1",
            "defined": true,
            "xExact": "34",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 35,
            "x": "35",
            "y": "1",
            "defined": true,
            "xExact": "35",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 36,
            "x": "36",
            "y": "1",
            "defined": true,
            "xExact": "36",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 37,
            "x": "37",
            "y": "1",
            "defined": true,
            "xExact": "37",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 38,
            "x": "38",
            "y": "1",
            "defined": true,
            "xExact": "38",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 39,
            "x": "39",
            "y": "1",
            "defined": true,
            "xExact": "39",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 40,
            "x": "40",
            "y": "1",
            "defined": true,
            "xExact": "40",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 41,
            "x": "41",
            "y": "1",
            "defined": true,
            "xExact": "41",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 42,
            "x": "42",
            "y": "1",
            "defined": true,
            "xExact": "42",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 43,
            "x": "43",
            "y": "1",
            "defined": true,
            "xExact": "43",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 44,
            "x": "44",
            "y": "1",
            "defined": true,
            "xExact": "44",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 45,
            "x": "45",
            "y": "1",
            "defined": true,
            "xExact": "45",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 46,
            "x": "46",
            "y": "1",
            "defined": true,
            "xExact": "46",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 47,
            "x": "47",
            "y": "1",
            "defined": true,
            "xExact": "47",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 48,
            "x": "48",
            "y": "1",
            "defined": true,
            "xExact": "48",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 49,
            "x": "49",
            "y": "1",
            "defined": true,
            "xExact": "49",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 50,
            "x": "50",
            "y": "1",
            "defined": true,
            "xExact": "50",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 51,
            "x": "51",
            "y": "1",
            "defined": true,
            "xExact": "51",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 52,
            "x": "52",
            "y": "1",
            "defined": true,
            "xExact": "52",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 53,
            "x": "53",
            "y": "1",
            "defined": true,
            "xExact": "53",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 54,
            "x": "54",
            "y": "1",
            "defined": true,
            "xExact": "54",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 55,
            "x": "55",
            "y": "1",
            "defined": true,
            "xExact": "55",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 56,
            "x": "56",
            "y": "1",
            "defined": true,
            "xExact": "56",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 57,
            "x": "57",
            "y": "1",
            "defined": true,
            "xExact": "57",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 58,
            "x": "58",
            "y": "1",
            "defined": true,
            "xExact": "58",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 59,
            "x": "59",
            "y": "1",
            "defined": true,
            "xExact": "59",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 60,
            "x": "60",
            "y": "1",
            "defined": true,
            "xExact": "60",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 61,
            "x": "61",
            "y": "1",
            "defined": true,
            "xExact": "61",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 62,
            "x": "62",
            "y": "1",
            "defined": true,
            "xExact": "62",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 63,
            "x": "63",
            "y": "1",
            "defined": true,
            "xExact": "63",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 64,
            "x": "64",
            "y": "1",
            "defined": true,
            "xExact": "64",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 65,
            "x": "65",
            "y": "1",
            "defined": true,
            "xExact": "65",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 66,
            "x": "66",
            "y": "1",
            "defined": true,
            "xExact": "66",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 67,
            "x": "67",
            "y": "1",
            "defined": true,
            "xExact": "67",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 68,
            "x": "68",
            "y": "1",
            "defined": true,
            "xExact": "68",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 69,
            "x": "69",
            "y": "1",
            "defined": true,
            "xExact": "69",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 70,
            "x": "70",
            "y": "1",
            "defined": true,
            "xExact": "70",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 71,
            "x": "71",
            "y": "1",
            "defined": true,
            "xExact": "71",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 72,
            "x": "72",
            "y": "1",
            "defined": true,
            "xExact": "72",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 73,
            "x": "73",
            "y": "1",
            "defined": true,
            "xExact": "73",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 74,
            "x": "74",
            "y": "1",
            "defined": true,
            "xExact": "74",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 75,
            "x": "75",
            "y": "1",
            "defined": true,
            "xExact": "75",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 76,
            "x": "76",
            "y": "1",
            "defined": true,
            "xExact": "76",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 77,
            "x": "77",
            "y": "1",
            "defined": true,
            "xExact": "77",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 78,
            "x": "78",
            "y": "1",
            "defined": true,
            "xExact": "78",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 79,
            "x": "79",
            "y": "1",
            "defined": true,
            "xExact": "79",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 80,
            "x": "80",
            "y": "1",
            "defined": true,
            "xExact": "80",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 81,
            "x": "81",
            "y": "1",
            "defined": true,
            "xExact": "81",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 82,
            "x": "82",
            "y": "1",
            "defined": true,
            "xExact": "82",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 83,
            "x": "83",
            "y": "1",
            "defined": true,
            "xExact": "83",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 84,
            "x": "84",
            "y": "1",
            "defined": true,
            "xExact": "84",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 85,
            "x": "85",
            "y": "1",
            "defined": true,
            "xExact": "85",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 86,
            "x": "86",
            "y": "1",
            "defined": true,
            "xExact": "86",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 87,
            "x": "87",
            "y": "1",
            "defined": true,
            "xExact": "87",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 88,
            "x": "88",
            "y": "1",
            "defined": true,
            "xExact": "88",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 89,
            "x": "89",
            "y": "1",
            "defined": true,
            "xExact": "89",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 90,
            "x": "90",
            "y": "1",
            "defined": true,
            "xExact": "90",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 91,
            "x": "91",
            "y": "1",
            "defined": true,
            "xExact": "91",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 92,
            "x": "92",
            "y": "1",
            "defined": true,
            "xExact": "92",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 93,
            "x": "93",
            "y": "1",
            "defined": true,
            "xExact": "93",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 94,
            "x": "94",
            "y": "1",
            "defined": true,
            "xExact": "94",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 95,
            "x": "95",
            "y": "1",
            "defined": true,
            "xExact": "95",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 96,
            "x": "96",
            "y": "1",
            "defined": true,
            "xExact": "96",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 97,
            "x": "97",
            "y": "1",
            "defined": true,
            "xExact": "97",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 98,
            "x": "98",
            "y": "1",
            "defined": true,
            "xExact": "98",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 99,
            "x": "99",
            "y": "1",
            "defined": true,
            "xExact": "99",
            "yExact": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001/10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
          },
          {
            "series": "squared error",
            "index": 100,
            "x": "100",
            "y": "0",
            "defined": true,
            "xExact": "100",
            "yExact": "0"
          }
        ],
        "plotFile": "ml20-code/python-score-rare-aggregate-result/plot.svg",
        "fullResultFile": "ml20-code/python-score-rare-aggregate-result/full.json",
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      },
      "genuine-infinite": {
        "api": "score",
        "variant": "genuine-infinite",
        "language": "python",
        "title": "Wrong endpoint: genuine infinite log loss",
        "input": {
          "rows": [
            {
              "p": "0",
              "y": "1"
            },
            {
              "p": "1",
              "y": "1"
            }
          ]
        },
        "expectedFailure": false,
        "codeFile": "ml20-code/score-genuine-infinite.py",
        "codeSHA256": "e7e33efbd41a97d9d645d172381fed5e0505ff32ebed1816659fde2a2c1bbdf3",
        "code": "\"\"\"ML20 standalone fixed example, not an arbitrary-input validator.\nFinite Python Fraction algebra; natural logs use Decimal1800 approximation\nthen a final binary64 display projection. Realdata reads4factual CSVs only,\nreusing the frozen public reader/fit implementation by value; all other inputs\nare complete fixed literals. No engine/model/computed/checker imported.\nRun: python this-file.py NEW-OUTPUT\n\"\"\"\nfrom pathlib import Path\nimport csv,json,hashlib,sys,math,html\nif hasattr(sys,'set_int_max_str_digits'):sys.set_int_max_str_digits(100000)\n\"\"\"Owned standalone exact finite optimization primitives for ML19 public programs.\nThis is an author implementation, never an independent numerical oracle.\n\"\"\"\nfrom fractions import Fraction as Q\ndef number(v):return v if isinstance(v,Q)else Q(str(v))\ndef dot(a,b):return sum((x*y for x,y in zip(a,b)),Q(0))\ndef frame(rows,p=2,scale='range'):\n rr=[]\n for i,r in enumerate(rows):\n  x=[None if v is None else number(v)for v in r['x']];y=None if r['y']is None else number(r['y']);w=number(r.get('weight',1));role=r.get('role','train');rr.append(dict(id=r.get('id','row:'+str(i+1)),index=i,x=x,y=y,w=w,role=role,eligible=y is not None and all(v is not None for v in x)and w>0))\n train=[r for r in rr if r['role']=='train'and r['eligible']];W=sum((r['w']for r in train),Q(0))\n if not W:return dict(defined=False,p=p,rows=rr,train=[],W=W)\n mean=[sum(r['w']*r['x'][j]for r in train)/W for j in range(p)];ranges=[max(r['x'][j]for r in train)-min(r['x'][j]for r in train)or Q(1)for j in range(p)];scales=ranges if scale=='range'else[Q(1)]*p\n for r in rr:r['z']=None if None in r['x']else[Q(1)]+[(r['x'][j]-mean[j])/scales[j]for j in range(p)]\n return dict(defined=True,p=p,rows=rr,train=train,W=W,mean=mean,ranges=ranges,scales=scales,meanY=sum(r['w']*r['y']for r in train)/W)\ndef quadratic(f,lam=Q(0),role='train'):\n rr=[r for r in f['rows']if r['role']==role and r['eligible']];W=sum((r['w']for r in rr),Q(0));n=f['p']+1\n if not W:return None\n H=[[sum(r['w']*r['z'][j]*r['z'][k]for r in rr)/W+(lam if j==k and j else 0)for k in range(n)]for j in range(n)];b=[sum(r['w']*r['y']*r['z'][j]for r in rr)/W for j in range(n)];d=sum(r['w']*r['y']**2 for r in rr)/(2*W);return H,b,d\ndef state(q,theta):\n H,b,d=q;gradient=[dot(row,theta)-bb for row,bb in zip(H,b)];return dict(theta=theta,objective=dot(theta,[dot(row,theta)for row in H])/2-dot(theta,b)+d,gradient=gradient,gradientNormSquared=dot(gradient,gradient))\ndef solve(H,b):\n n=len(b);A=[row[:]+[bb]for row,bb in zip(H,b)];piv=[];row=0\n for j in range(n):\n  k=next((i for i in range(row,n)if A[i][j]),None)\n  if k is None:continue\n  A[row],A[k]=A[k],A[row];z=A[row][j];A[row]=[v/z for v in A[row]]\n  for i in range(n):\n   if i!=row:\n    z=A[i][j];A[i]=[v-z*u for v,u in zip(A[i],A[row])]\n  piv.append(j);row+=1\n  if row==n:break\n assert not any(not any(r[:n])and r[n]for r in A)\n beta=[Q(0)]*n\n for i,j in enumerate(piv):beta[j]=A[i][n]\n nullspace=[]\n for j in range(n):\n  if j not in piv:\n   v=[Q(0)]*n;v[j]=Q(1)\n   for i,k in enumerate(piv):v[k]=-A[i][j]\n   nullspace.append(v)\n return dict(rank=len(piv),particular=beta,nullspace=nullspace,unique=len(piv)==n)\n\n\ndef fixed_source(kind):\n SRC=Path(__file__).resolve().parent/\"data\"\n read=lambda n:list(csv.DictReader((SRC/n).open(encoding='utf8',newline='')))\n def native(v):return None if v in['','.']else v\n\n models={};original=read('actual48-country-revised-original-2023-2024.csv');lookup={(r['countryISO3'],r['indicatorID'],r['date']):r for r in original};rows=[]\n for iso in sorted({r['countryISO3']for r in original}):\n  g=lookup[iso,'NY.GDP.PCAP.KD','2023'];p=lookup[iso,'FP.CPI.TOTL.ZG','2023'];y=lookup[iso,'NY.GDP.MKTP.KD.ZG','2024'];rows.append(dict(id=iso+':2024',x=[None if not g['originalValueToken']else str(number(g['originalValueToken'])/10000),None if not p['originalValueToken']else str(number(p['originalValueToken'])/10)],y=native(y['originalValueToken']),sourceRow=iso))\n models['country']=dict(rows=rows,names=['g','pi'],unit='annual GDP growth percentage points')\n for kind,file,keys,ykey,ID in [('person','actual3613-NLS-original52-fields-and-conformal-frame.csv',['ed76','age76'],'lwage76','person-row:'),('company','actual3150-churn-original14-fields-and-conformal-frame.csv',['Call  Failure','Seconds of Use'],'Churn','customer-row:')]:\n  source=read(file);models[kind]=dict(rows=[dict(id=ID+r['sourceRow'],sourceRow=r['sourceRow'],x=[native(r[k])for k in keys],y=native(r[ykey]))for r in source],names=['ed76','age76']if kind=='person'else['CallFailure','SecondsUse'],unit='native trimmed1976log hourly wage'if kind=='person'else'native Churn0/1')\n for kind,m in models.items():\n  for rank,r in enumerate(sorted(m['rows'],key=lambda r:(hashlib.sha256(('ML20|'+kind+'|'+r['id']).encode()).digest(),r['id']))):r.update(splitRank=rank,plannedRole=['test','calibration','train','train'][rank%4]);r['role']=r['plannedRole']if r['y']is not None and None not in r['x']else'excluded';r['weight']='1'\n  m['trainingIDs']=[r['id']for r in sorted(m['rows'],key=lambda r:r['splitRank'])if r['role']=='train']\n\n models={kind:models[kind]}\n # New public actual-source study; exact finite Fraction fit/rank/membership.\n # Default single declared model, not a hyperparameter Cartesian dump.\n from decimal import Decimal,localcontext\n from collections import Counter\n outputs={k:[]for k in['study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins']}\n alpha=number('1/5');lam=number('1/100')\n if not 0<alpha<1 or lam<0:raise ValueError('Require0<alpha<1 and nonnegative ridge')\n def metric(kind,name,value,unit,arithmetic='exact rational'):\n  outputs['study-metrics'].append(dict(kind=kind,metric=name,value=''if value is None else value,unit=unit,defined=int(value is not None),arithmetic=arithmetic))\n def bins(rr,B=5):\n  groups=[[]for _ in range(B)]\n  for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n  n=len(rr);yb=sum((r['y']for r in rr),Q(0))/n if n else None;ece=rel=res=var=cov=Q(0);result=[]\n  for j,gg in enumerate(groups):\n   nn=len(gg);pm=sum((r['p']for r in gg),Q(0))/nn if nn else None;ym=sum((r['y']for r in gg),Q(0))/nn if nn else None;v=sum(((r['p']-pm)**2 for r in gg),Q(0))/nn if nn else None;co=sum(((r['p']-pm)*(r['y']-ym)for r in gg),Q(0))/nn if nn else None\n   result.append(dict(bin=j,lower=Q(j,B),upper=Q(j+1,B),rightClosed=int(j==B-1),rows=nn,meanP=pm,frequencyY1=ym,gap=None if not nn else pm-ym,withinVarianceP=v,withinCovariancePY=co))\n   if nn:weight=Q(nn,n);ece+=weight*abs(pm-ym);rel+=weight*(pm-ym)**2;res+=weight*(ym-yb)**2;var+=weight*v;cov+=weight*co\n  return result,dict(ECE=ece if n else None,Brier=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/n if n else None,uncertainty=yb*(1-yb)if n else None,resolution=res if n else None,reliability=rel if n else None,withinVarianceP=var if n else None,withinCovariancePY=cov if n else None)\n def meanlog(rr):\n  if not rr:return None\n  pp=[r['p']if r['y']else 1-r['p']for r in rr]\n  if any(not p for p in pp):return'+infinity'\n  with localcontext()as ctx:\n   ctx.prec=60;return str(-sum(((Decimal(p.numerator)/Decimal(p.denominator)).ln()for p in pp),Decimal(0))/len(pp))\n for kind,m in models.items():\n  f=frame(m['rows']);n=len(f['train']);assert n>0;H,b,d=quadratic(f,lam);fit=solve(H,b);theta=fit['particular'];minimum=state((H,b,d),theta)['objective'];beta=[theta[j+1]/f['scales'][j]for j in range(2)];intercept=theta[0]-dot(beta,f['mean']);rr=[]\n  for r in f['rows']:\n   native=m['rows'][r['index']];raw=None if r['z']is None else dot(r['z'],theta);pred=None if raw is None else max(Q(0),min(Q(1),raw))if kind=='company'else raw;group='missing-X'if r['z']is None else('schooling-at-most12'if r['x'][0]<=12 else'schooling-over12')if kind=='person'else('zero-call-failures'if r['x'][0]==0 else'positive-call-failures')if kind=='company'else('GDPpc-at-most-training-mean'if r['x'][0]<=f['mean'][0]else'GDPpc-above-training-mean');rr.append(dict(id=r['id'],sourceRow=native['sourceRow'],sourceIndex0=r['index'],plannedRole=native['plannedRole'],role=r['role'],group=group,y=r['y'],raw=raw,prediction=pred,eligible=r['eligible']))\n  cal=[r for r in rr if r['role']=='calibration'and r['prediction']is not None and r['y']is not None]\n  for i,r in enumerate(cal):r['calibrationIndex0']=i;r['score']=(1-r['prediction']if r['y']else r['prediction'])if kind=='company'else abs(r['y']-r['prediction'])\n  ordered=sorted(cal,key=lambda r:(r['score'],r['calibrationIndex0']));rankQ=(len(cal)+1)*(1-alpha);k=(rankQ.numerator+rankQ.denominator-1)//rankQ.denominator;threshold=ordered[k-1]['score']if k<=len(cal)else None;unbounded=threshold is None\n  for j,r in enumerate(ordered,1):outputs['calibration-scores'].append(dict(kind=kind,rank=j,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],calibrationIndex0=r['calibrationIndex0'],score=r['score'],threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded)))\n  for j,name in enumerate(m['names']):outputs['training-coefficients'].append(dict(kind=kind,feature=name,mean=f['mean'][j],scale=f['scales'][j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[0],nativeIntercept=intercept,rank=fit['rank'],unique=int(fit['unique']),lambdaValue=lam,minimumObjective=minimum))\n  for name,value,unit in[('sourceRows',len(rr),'rows'),('trainingRows',n,'rows'),('calibrationScores',len(cal),'unit-count scores'),('testLabeledRows',sum(r['role']=='test'and r['y']is not None for r in rr),'rows'),('excludedRows',sum(r['role']=='excluded'for r in rr),'rows'),('alpha',alpha,'probability'),('ridge',lam,'transformed slope penalty'),('quantileRank',k,'one-based rank'),('threshold','+infinity'if unbounded else threshold,'dimensionless score'if kind=='company'else m['unit']),('minimumObjective',minimum,'('+m['unit']+') squared')]:metric(kind,name,value,unit,'mathematical infinity'if value=='+infinity'else'exact rational')\n  for r in rr:\n   defined=r['prediction']is not None;labeled=defined and r['y']is not None\n   if not defined:lo=hi=width=size=None;labels='';covered=None\n   elif kind=='company':\n    labelsList=[j for j,s in enumerate([r['prediction'],1-r['prediction']])if unbounded or s<=threshold];labels='|'.join(map(str,labelsList));size=len(labelsList);lo=hi=width=None;covered=int(int(r['y'])in labelsList)if labeled else None\n   else:lo='-infinity'if unbounded else r['prediction']-threshold;hi='+infinity'if unbounded else r['prediction']+threshold;width='+infinity'if unbounded else 2*threshold;labels='';size=None;covered=int(unbounded or abs(r['y']-r['prediction'])<=threshold)if labeled else None\n   r.update(defined=defined,labeled=labeled,lower=lo,upper=hi,width=width,labels=labels,size=size,covered=covered)\n   outputs['row-predictions'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],plannedRole=r['plannedRole'],role=r['role'],group=r['group'],actualY=r['y'],rawLinear=r['raw'],prediction=r['prediction'],predictionDefined=int(defined),threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded),lower=lo,upper=hi,width=width,setLabels=labels,setSize=size,covered=covered,labeledPrediction=int(labeled)))\n   outputs['eligibility'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],plannedRole=r['plannedRole'],role=r['role'],requiredComplete=int(r['eligible']),trainingUsed=int(r['role']=='train'and r['eligible']),reason='missing-required-field'if not r['eligible']else''))\n  roles=list(dict.fromkeys(r['role']for r in rr));groups=list(dict.fromkeys(r['group']for r in rr))\n  for role in roles:\n   for group in['all']+groups:\n    use=[r for r in rr if r['role']==role and(group=='all'or r['group']==group)];defined=[r for r in use if r['defined']];scored=[r for r in use if r['labeled']and role not in['excluded','unused']];covered=sum(r['covered']for r in scored);nn=len(defined);nscore=len(scored);unboundedCount=sum(r['width']=='+infinity'for r in defined);size=Q(sum(r['size']for r in defined),nn)if kind=='company'and nn else None;width=('+infinity'if unboundedCount else sum(r['width']for r in defined)/nn)if kind!='company'and nn else None\n    outputs['role-group-coverage'].append(dict(kind=kind,role=role,group=group,originalRows=len(use),definedPredictions=nn,scoredLabels=nscore,coveredRows=covered,coverage=Q(covered,nscore)if nscore else None,meanSetSize=size,meanIntervalWidth=width,unboundedIntervals=unboundedCount))\n  if kind=='company':\n   for role in['train','calibration','test']:\n    use=[dict(p=r['prediction'],y=r['y'])for r in rr if r['role']==role and r['labeled']];bb,mm=bins(use)\n    for row in bb:outputs['reliability-bins'].append(dict(kind=kind,role=role,**row))\n    for name,value in mm.items():metric(kind,role+':'+name,value,'dimensionless'if name=='ECE'else'squared probability')\n    metric(kind,role+':meanLogLoss',meanlog(use),'nats','Decimal60 approximation or genuine infinity')\n return outputs\n\n# Owned ML20 fixed-example adapters. Finite rational calculations; logs approximate.\nfrom fractions import Fraction as Q\nfrom decimal import Decimal,localcontext\nimport math\ndef num(v):return v if isinstance(v,Q)else Q(str(v))\ndef ceilq(q):return-((-q.numerator)//q.denominator)\ndef fixed_quantile(scores,alpha):\n a=num(alpha)\n if not 0<a<1:raise ValueError('alpha-must-be-strictly-between-zero-and-one')\n ordered=sorted([(num(v),i)for i,v in enumerate(scores)if v is not None]);n=len(ordered);k=ceilq((n+1)*(1-a));q=None if k>n else ordered[k-1][0]\n return dict(n=n,k=k,threshold=q,infinite=q is None,ordered=ordered)\ndef fixed_score(rows):\n rr=[dict(p=num(r['p']),y=num(r['y']),w=num(r.get('weight',1)))for r in rows];rr=[r for r in rr if r['w']>0];mass=sum((r['w']for r in rr),Q(0));brier=sum((r['w']*(r['p']-r['y'])**2 for r in rr),Q(0))/mass if mass else None;logs=[];genuine=False\n with localcontext()as ctx:\n  ctx.prec=1800\n  total=Decimal(0)\n  for r in rr:\n   p=r['p']if r['y']else 1-r['p']\n   if not p:genuine=True;logs.append('+infinity');continue\n   loss=-(Decimal(p.numerator)/Decimal(p.denominator)).ln();logs.append(str(loss));w=r['w']/mass;total+=Decimal(w.numerator)/Decimal(w.denominator)*loss\n  display='+infinity'if genuine else None if not mass else repr(float(total));raw='+infinity'if genuine else None if not mass else str(total)\n return dict(rows=rr,mass=mass,Brier=brier,meanLogLoss=display,naturalLogApprox1800=raw,individualLogLoss=logs,genuineInfinite=genuine,BrierPositive=brier is not None and brier>0)\ndef fixed_calibration(rows,B):\n rr=[dict(p=num(r['p']),y=num(r['y']))for r in rows];N=len(rr);yb=sum((r['y']for r in rr),Q(0))/N;groups=[[]for _ in range(B)]\n for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n result=[];ece=rel=res=vp=cp=Q(0)\n for j,g in enumerate(groups):\n  n=len(g);pm=sum((r['p']for r in g),Q(0))/n if n else None;ym=sum((r['y']for r in g),Q(0))/n if n else None;v=sum(((r['p']-pm)**2 for r in g),Q(0))/n if n else None;c=sum(((r['p']-pm)*(r['y']-ym)for r in g),Q(0))/n if n else None;result.append(dict(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c))\n  if n:z=Q(n,N);ece+=z*abs(pm-ym);rel+=z*(pm-ym)**2;res+=z*(ym-yb)**2;vp+=z*v;cp+=z*c\n bs=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/N;u=yb*(1-yb)\n return dict(rows=N,bins=result,Brier=bs,ECE=ece,uncertainty=u,resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=u-res+rel+vp-2*cp)\ndef fixed_predict(a):\n q=fixed_quantile(a['scores'],a['alpha']);out=[];classification=a['mode']=='classification'\n for i,row in enumerate(a['queries']):\n  p=num(row['p']if classification else row['center']);y=None if row.get('y')is None else num(row['y']);threshold=q['threshold'];unbounded=q['infinite']\n  if classification:labels=[v for v,s in[(0,p),(1,1-p)]if unbounded or s<=threshold];lo=hi=width=None;size=len(labels);covered=None if y is None else int(int(y)in labels)\n  else:labels=None;size=None;lo='-infinity'if unbounded else p-threshold;hi='+infinity'if unbounded else p+threshold;width='+infinity'if unbounded else 2*threshold;covered=None if y is None else int(unbounded or abs(y-p)<=threshold)\n  out.append(dict(id=row.get('id',str(i)),prediction=p,actualY=y,labels=labels,size=size,lower=lo,upper=hi,width=width,covered=covered))\n scored=[r for r in out if r['covered']is not None];coverage=Q(sum(r['covered']for r in scored),len(scored))if scored else None;meanSize=Q(sum(r['size']for r in out),len(out))if classification and out else None;meanWidth=('+infinity'if q['infinite']else 2*q['threshold'])if not classification and out else None\n return dict(quantile=q,rows=out,scoredLabels=len(scored),coverage=coverage,meanSetSize=meanSize,meanWidth=meanWidth)\ndef fixed_ranklaw(a):\n scores=list(map(num,a['scores']));trials=[]\n for i,y in enumerate(scores):q=fixed_quantile(scores[:i]+scores[i+1:],a['alpha']);trials.append(dict(heldout=i,score=y,k=q['k'],threshold=q['threshold'],infinite=q['infinite'],covered=int(q['infinite']or y<=q['threshold'])))\n return dict(N=len(scores),distinct=len(set(scores))==len(scores),trials=trials,coverage=Q(sum(t['covered']for t in trials),len(trials)))\ndef fixed_operation(api,a):\n return fixed_score(a['rows'])if api=='score'else fixed_calibration(a['rows'],a['bins'])if api=='calibration'else fixed_quantile(a['scores'],a['alpha'])if api=='quantile'else fixed_predict(a)if api=='predict'else fixed_ranklaw(a)if api=='ranklaw'else fixed_source(a['kind'])\ndef report_values(api,z):\n summary=[];series=[]\n def add(k,v,u):summary.append((k,v,u))\n if api=='score':\n  for k,u in[('mass','analysis weight'),('Brier','squared probability'),('meanLogLoss','nats; numerical logarithm'),('genuineInfinite','indicator'),('BrierPositive','mathematical indicator')]:add(k,z[k],u)\n  series=[('squared error',[(i,(r['p']-r['y'])**2)for i,r in enumerate(z['rows'])])]\n elif api=='calibration':\n  for k in['Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity']:add(k,z[k],'probability'if k=='ECE'else'squared probability')\n  series=[('bin probability',[(r['bin'],r['meanP'])for r in z['bins']]),('bin outcome frequency',[(r['bin'],r['frequency'])for r in z['bins']])]\n elif api=='quantile':\n  for k,u in[('n','scores'),('k','one-based rank'),('infinite','mathematical indicator')]:add(k,z[k],u)\n  add('threshold','+infinity'if z['infinite']else z['threshold'],'score units');series=[('sorted score',[(i+1,v)for i,(v,index)in enumerate(z['ordered'])])]\n elif api=='predict':\n  for k,u in[('scoredLabels','labels'),('coverage','fraction'),('meanSetSize','classes'),('meanWidth','outcome units')]:add(k,z[k],u)\n  add('thresholdInfinite',z['quantile']['infinite'],'mathematical indicator');series=[('predicted center or probability',[(i,r['prediction'])for i,r in enumerate(z['rows'])]),('observed label or outcome',[(i,r['actualY'])for i,r in enumerate(z['rows'])])]\n elif api=='ranklaw':\n  for k,u in[('N','scores'),('distinct','indicator'),('coverage','fraction')]:add(k,z[k],u)\n  series=[('held-out coverage',[(r['heldout'],r['covered'])for r in z['trials']])]\n else:\n  mt={r['metric']:r for r in z['study-metrics']};cv=next(r for r in z['role-group-coverage']if r['role']=='test'and r['group']=='all')\n  for k in['sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold']:add(k,mt[k]['value'],mt[k]['unit'])\n  for k,u in[('coverage','fraction'),('meanSetSize','classes'),('meanIntervalWidth','outcome units')]:add(k,cv[k],u)\n  series=[('all calibration scores',[(r['rank'],r['score'])for r in z['calibration-scores']])]\n return summary,series\n\nnumber=num\n\nFIXED={'api': 'score', 'variant': 'genuine-infinite', 'title': 'Wrong endpoint: genuine infinite log loss', 'input': {'rows': [{'p': '0', 'y': '1'}, {'p': '1', 'y': '1'}]}, 'expectedFailure': False}\n\ndef fixed_svg(points,title):\n good=[p for p in points if p['y'] is not None];xx=[float(p['x'])for p in good];yy=[float(p['y'])for p in good];xmin=min(xx)if xx else 0;xmax=max(xx)if xx else 1;ymin=min([0]+yy);ymax=max([0]+yy)\n if xmin==xmax:xmin-=.5;xmax+=.5\n if ymin==ymax:ymin-=.5;ymax+=.5\n pad=(ymax-ymin)*.08;ymin-=pad;ymax+=pad;X=lambda x:82+(float(x)-xmin)/(xmax-xmin)*608;Y=lambda y:354-(float(y)-ymin)/(ymax-ymin)*290;e=html.escape\n out=['<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"'+e(title)+'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">'+e(title)+'</text>']\n for j in range(5):\n  y=ymin+(ymax-ymin)*j/4;x=xmin+(xmax-xmin)*j/4;out.append('<line x1=\"82\" y1=\"'+str(Y(y))+'\" x2=\"690\" y2=\"'+str(Y(y))+'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"'+str(Y(y)+4)+'\" text-anchor=\"end\">'+format(y,'.3g')+'</text><text x=\"'+str(X(x))+'\" y=\"380\" text-anchor=\"middle\">'+format(x,'.3g')+'</text>')\n series=list(dict.fromkeys(p['series']for p in good))\n for j,s in enumerate(series):\n  pp=[p for p in good if p['series']==s];color=['#0f766e','#c76622','#4f46e5','#b23857'][j%4];out.append('<polyline fill=\"none\" stroke=\"'+color+'\" stroke-width=\"1.5\" points=\"'+' '.join(format(X(p['x']),'.6f')+','+format(Y(p['y']),'.6f')for p in pp)+'\"/>')\n  for p in pp:out.append('<circle cx=\"'+format(X(p['x']),'.6f')+'\" cy=\"'+format(Y(p['y']),'.6f')+'\" r=\"2.6\" fill=\"'+color+'\"><title>'+e(s+': '+str(p['y']))+'</title></circle>')\n  out.append('<text x=\"'+str(82+(j%2)*310)+'\" y=\"'+str(432+(j//2)*23)+'\" fill=\"'+color+'\">'+e(s)+'</text>')\n out.append('<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>');return''.join(out)\n\nOUT=Path(sys.argv[1]);OUT.mkdir(parents=True,exist_ok=False)\nresult=fixed_operation(FIXED['api'],FIXED['input']);summary,series=report_values(FIXED['api'],result)\ndef encode(v):\n if isinstance(v,Q):return str(v)\n if isinstance(v,dict):return{k:encode(x)for k,x in v.items()}\n if isinstance(v,(list,tuple)):return[encode(x)for x in v]\n return v\n(OUT/'full.json').write_text(json.dumps(dict(arithmetic='Exact finite Fraction algebra except approximate natural logs; declared fixed examples, no exchangeability certification',result=encode(result)),ensure_ascii=False,indent=2)+'\\n',encoding='utf8')\nsummaryRows=[dict(metric=m,value=''if v is None else str(int(v))if isinstance(v,bool)else str(v),unit=u,defined=int(v is not None))for m,v,u in summary]\npoints=[dict(series=name,index=i,x=str(x),y=''if y is None else str(y),defined=int(y is not None))for name,pp in series for i,(x,y)in enumerate(pp)]\nfor name,rows in [('summary',summaryRows),('plot-points',points)]:\n with(OUT/(name+'.csv')).open('w',encoding='utf8',newline='')as f:writer=csv.DictWriter(f,fieldnames=list(rows[0]));writer.writeheader();writer.writerows(rows)\n(OUT/'plot.svg').write_text(fixed_svg([dict(p,x=number(p['x']),y=None if not p['defined']else number(p['y']))for p in points],FIXED['title']),encoding='utf8');print(FIXED['api']+'/'+FIXED['variant'])\n",
        "returnCode": 0,
        "stdout": "score/genuine-infinite\r\n",
        "stderr": "",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/python-score-genuine-infinite-result",
        "kind": null,
        "inputFiles": [],
        "files": [
          {
            "file": "ml20-code/python-score-genuine-infinite-result/full.json",
            "sha256": "67469098734194282636f9e85124da8b1e1931d11549393ccc07350bb5e573f4",
            "bytes": 577
          },
          {
            "file": "ml20-code/python-score-genuine-infinite-result/plot-points.csv",
            "sha256": "e0c951bcdfbb172d406795fdaf408a36ff0aee68c09b570daa45dc8ace52a70b",
            "bytes": 72
          },
          {
            "file": "ml20-code/python-score-genuine-infinite-result/plot.svg",
            "sha256": "ae98ed390192798fc21291011b8a09ae33e0b2ba7ab9c8de2290aaeeca69975b",
            "bytes": 1676
          },
          {
            "file": "ml20-code/python-score-genuine-infinite-result/summary.csv",
            "sha256": "8b4fd8846ce60da4de90e3bce25f9b18b720380846a66f9af1342b16cf0642bd",
            "bytes": 210
          },
          {
            "file": "ml20-code/python-score-genuine-infinite-result/stdout.txt",
            "sha256": "3533c7a44eddd2d91b6f3be84e937c151d7f18e269c254dc481782feb6e297f3",
            "bytes": 24
          },
          {
            "file": "ml20-code/python-score-genuine-infinite-result/stderr.txt",
            "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
            "bytes": 0
          }
        ],
        "summaryRows": [
          {
            "metric": "mass",
            "value": "2",
            "unit": "analysis weight",
            "defined": "true",
            "exactFraction": "2",
            "rawValue": "2",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "Brier",
            "value": "0.5",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "1/2",
            "rawValue": "1/2",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "meanLogLoss",
            "value": "+infinity",
            "unit": "nats; numerical logarithm",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "+infinity",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": true,
            "arithmetic": "Numerical logarithm/display approximation"
          },
          {
            "metric": "genuineInfinite",
            "value": "1",
            "unit": "indicator",
            "defined": "true",
            "exactFraction": "1",
            "rawValue": "1",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "BrierPositive",
            "value": "1",
            "unit": "mathematical indicator",
            "defined": "true",
            "exactFraction": "1",
            "rawValue": "1",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          }
        ],
        "plotRows": [
          {
            "series": "squared error",
            "index": 0,
            "x": "0",
            "y": "1",
            "defined": true,
            "xExact": "0",
            "yExact": "1"
          },
          {
            "series": "squared error",
            "index": 1,
            "x": "1",
            "y": "0",
            "defined": true,
            "xExact": "1",
            "yExact": "0"
          }
        ],
        "plotFile": "ml20-code/python-score-genuine-infinite-result/plot.svg",
        "fullResultFile": "ml20-code/python-score-genuine-infinite-result/full.json",
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      }
    },
    "r": {
      "weighted-probabilities": {
        "api": "score",
        "variant": "weighted-probabilities",
        "language": "r",
        "title": "Weighted Brier and natural logarithmic loss",
        "input": {
          "rows": [
            {
              "p": "1/10",
              "y": "0",
              "weight": "1"
            },
            {
              "p": "7/10",
              "y": "1",
              "weight": "3"
            }
          ]
        },
        "expectedFailure": false,
        "codeFile": "ml20-code/score-weighted-probabilities.R",
        "codeSHA256": "36dc90935c489d22f62297e4a2f38e8834c586215dc7759a5529698e6fd8153e",
        "code": "# ML20 complete standalone numerical fixed examples, no browser/model/results.\n# Base-R QR1e-12/membership1e-12; tiny log loss uses log-domain normalized\n# weights to avoid early underflow. This is an approximate counterpart, not\n# a general exact-rational numeric-token validator. Fixed alpha uses small fractions.\noptions(digits=17)\nfixedSource<-function(kind){\n src<-file.path(dirname(sub(\"^--file=\",\"\",grep(\"^--file=\",commandArgs(),value=TRUE)[1])),\"data\")\nreadnative<-function(n)read.csv(file.path(src,n),check.names=FALSE,colClasses='character',na.strings=NULL,stringsAsFactors=FALSE)\nnum<-function(x){a<-suppressWarnings(as.numeric(x));a[x%in%c('','.')] <- NA_real_;a}\nroles<-function(d){n<-nrow(d);rank<-as.integer(d$splitRank);if(!identical(sort(rank),0:(n-1)))stop('splitRank permutation');planned<-c('test','calibration','train','train')[rank%%4+1];if(any(planned!=d$plannedRole))stop('planned roles');list(rank=rank,planned=planned)}\noriginal<-readnative('actual48-country-revised-original-2023-2024.csv');derived<-readnative('derived16-country-features-and-roles.csv');isos<-sort(unique(original$countryISO3));lookup<-function(iso,code,year){r<-original[original$countryISO3==iso&original$indicatorID==code&original$date==year,,drop=FALSE];if(nrow(r)!=1)stop('country identity');num(r$originalValueToken)}\ncr<-roles(derived);if(!identical(isos,derived$countryISO3))stop('country order');country<-list(id=paste0(isos,':2024'),sourceRow=isos,x=cbind(vapply(isos,lookup,numeric(1),code='NY.GDP.PCAP.KD',year='2023')/10000,vapply(isos,lookup,numeric(1),code='FP.CPI.TOTL.ZG',year='2023')/10),y=vapply(isos,lookup,numeric(1),code='NY.GDP.MKTP.KD.ZG',year='2024'),rank=cr$rank,planned=cr$planned,names=c('g','pi'),unit='annual GDP growth percentage points')\npd<-readnative('actual3613-NLS-original52-fields-and-conformal-frame.csv');pr<-roles(pd);person<-list(id=paste0('person-row:',pd$sourceRow),sourceRow=pd$sourceRow,x=cbind(num(pd$ed76),num(pd$age76)),y=num(pd$lwage76),rank=pr$rank,planned=pr$planned,names=c('ed76','age76'),unit='native trimmed1976log hourly wage')\ncd<-readnative('actual3150-churn-original14-fields-and-conformal-frame.csv');rr<-roles(cd);company<-list(id=paste0('customer-row:',cd$sourceRow),sourceRow=cd$sourceRow,x=cbind(num(cd[['Call  Failure']]),num(cd[['Seconds of Use']])),y=num(cd$Churn),rank=rr$rank,planned=rr$planned,names=c('CallFailure','SecondsUse'),unit='native Churn0/1')\nmodels<-list(country=country,person=person,company=company)\n\nmodels<-models[kind]\nalphaToken<-\"1/5\";ridgeToken<-\"1/100\"\nqnum<-function(s){v<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(v)==2)as.numeric(v[1])/as.numeric(v[2])else as.numeric(v)}\nalphaParts<-function(s){v<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(v)==2&&all(grepl('^[0-9]+$',v))){a<-as.numeric(v[1]);b<-as.numeric(v[2])}else if(grepl('^[0-9]+([.][0-9]{1,6})?$',s)){n<-if(grepl('.',s,fixed=TRUE))nchar(sub('^[^.]*[.]','',s))else 0;a<-as.numeric(gsub('.','',s,fixed=TRUE));b<-10^n}else stop('Base-R alpha needs small integer fraction or <=6decimal places');if(a<=0||a>=b||b>1e6)stop('Require0<alpha<1 with denominator<=1e6');c(a,b)}\nap<-alphaParts(alphaToken);alpha<-ap[1]/ap[2];lambda<-qnum(ridgeToken);if(!is.finite(lambda)||lambda<0)stop('nonnegative finite ridge required')\nnamesOut<-c('study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins');outputs<-setNames(lapply(namesOut,function(n)list()),namesOut)\nemit<-function(name,row)outputs[[name]][[length(outputs[[name]])+1L]]<<-row\nmetric<-function(kind,name,value,unit,arithmetic='binary64 approximation'){emit('study-metrics',list(kind=kind,metric=name,value=if(is.null(value))NA else value,unit=unit,defined=as.integer(!is.null(value)&&!is.na(value)),arithmetic=arithmetic))}\nfor(kind in names(models)){\n m<-models[[kind]];complete<-rowSums(is.na(m$x))==0&!is.na(m$y);role<-ifelse(complete,m$planned,'excluded');train<-which(role=='train');n<-length(train);stopifnot(n>0);meanX<-colMeans(m$x[train,,drop=FALSE]);scale<-apply(m$x[train,,drop=FALSE],2,function(x)diff(range(x)));scale[scale==0]<-1;Z<-cbind(1,sweep(sweep(m$x,2,meanX,'-'),2,scale,'/'));H<-crossprod(Z[train,,drop=FALSE])/n+diag(c(0,lambda,lambda));b<-as.vector(crossprod(Z[train,,drop=FALSE],m$y[train]))/n;qrfit<-qr(H,tol=1e-12,LAPACK=FALSE);theta<-qr.coef(qrfit,b);theta[is.na(theta)]<-0;minimum<-as.numeric(crossprod(theta,H%*%theta)/2-sum(theta*b)+sum(m$y[train]^2)/(2*n));beta<-theta[-1]/scale;intercept<-theta[1]-sum(beta*meanX);raw<-as.vector(Z%*%theta);pred<-if(kind=='company')pmax(0,pmin(1,raw))else raw;defined<-!is.na(pred);group<-if(kind=='person')ifelse(m$x[,1]<=12,'schooling-at-most12','schooling-over12')else if(kind=='company')ifelse(m$x[,1]==0,'zero-call-failures','positive-call-failures')else ifelse(m$x[,1]<=meanX[1],'GDPpc-at-most-training-mean','GDPpc-above-training-mean');group[is.na(raw)]<-'missing-X';cal<-which(role=='calibration'&defined&!is.na(m$y));score<-if(kind=='company')ifelse(m$y[cal]==1,1-pred[cal],pred[cal])else abs(m$y[cal]-pred[cal]);ordered<-order(score,seq_along(score));k<-ceiling((length(cal)+1)*(ap[2]-ap[1])/ap[2]);threshold<-if(k<=length(cal))score[ordered[k]]else Inf;unbounded<-is.infinite(threshold)\n for(j in seq_along(ordered)){slot<-ordered[j];i<-cal[slot];emit('calibration-scores',list(kind=kind,rank=j,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,calibrationIndex0=slot-1,score=score[slot],threshold=threshold,thresholdInfinite=as.integer(unbounded)))}\n for(j in 1:2)emit('training-coefficients',list(kind=kind,feature=m$names[j],mean=meanX[j],scale=scale[j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[1],nativeIntercept=intercept,rank=qrfit$rank,unique=as.integer(qrfit$rank==3),lambdaValue=lambda,minimumObjective=minimum))\n metrics<-list(sourceRows=length(role),trainingRows=n,calibrationScores=length(cal),testLabeledRows=sum(role=='test'&!is.na(m$y)),excludedRows=sum(role=='excluded'),alpha=alpha,ridge=lambda,quantileRank=k,threshold=threshold,minimumObjective=minimum);units<-c('rows','rows','unit-count scores','rows','rows','probability','transformed slope penalty','one-based rank',if(kind=='company')'dimensionless score'else m$unit,paste0('(',m$unit,') squared'))\n for(j in seq_along(metrics))metric(kind,names(metrics)[j],metrics[[j]],units[j],if(is.infinite(metrics[[j]]))'mathematical infinity'else if(j%in%c(1:5,8))'integer count'else'binary64 approximation')\n labeled<-defined&!is.na(m$y);covered<-rep(NA_integer_,length(role));lo<-hi<-width<-rep(NA_real_,length(role));setSize<-rep(NA_integer_,length(role));setLabels<-rep('',length(role))\n if(kind=='company'){\n  zero<-defined&(unbounded|pred<=threshold+1e-12);one<-defined&(unbounded|1-pred<=threshold+1e-12);setSize[defined]<-as.integer(zero[defined])+as.integer(one[defined]);setLabels[zero&!one]<-'0';setLabels[!zero&one]<-'1';setLabels[zero&one]<-'0|1';covered[labeled]<-as.integer((m$y[labeled]==0&zero[labeled])|(m$y[labeled]==1&one[labeled]))\n }else{lo[defined]<-pred[defined]-threshold;hi[defined]<-pred[defined]+threshold;width[defined]<-2*threshold;tol<-1e-12*pmax(1,abs(m$y[labeled]),abs(pred[labeled]),if(is.finite(threshold))abs(threshold)else 1);covered[labeled]<-as.integer(unbounded|abs(m$y[labeled]-pred[labeled])<=threshold+tol)}\n for(i in seq_along(role)){\n  emit('row-predictions',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,plannedRole=m$planned[i],role=role[i],group=group[i],actualY=m$y[i],rawLinear=raw[i],prediction=pred[i],predictionDefined=as.integer(defined[i]),threshold=threshold,thresholdInfinite=as.integer(unbounded),lower=lo[i],upper=hi[i],width=width[i],setLabels=setLabels[i],setSize=setSize[i],covered=covered[i],labeledPrediction=as.integer(labeled[i])))\n  emit('eligibility',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],plannedRole=m$planned[i],role=role[i],requiredComplete=as.integer(complete[i]),trainingUsed=as.integer(role[i]=='train'&complete[i]),reason=if(complete[i])''else'missing-required-field'))\n }\n for(rol in unique(role))for(gr in c('all',unique(group))){use<-which(role==rol&(gr=='all'|group==gr));def<-use[defined[use]];scored<-use[labeled[use]&!role[use]%in%c('excluded','unused')];nn<-length(def);ns<-length(scored);cv<-sum(covered[scored]);ub<-if(kind=='company')0 else sum(is.infinite(width[def]));emit('role-group-coverage',list(kind=kind,role=rol,group=gr,originalRows=length(use),definedPredictions=nn,scoredLabels=ns,coveredRows=cv,coverage=if(ns)cv/ns else NA_real_,meanSetSize=if(kind=='company'&&nn)mean(setSize[def])else NA_real_,meanIntervalWidth=if(kind!='company'&&nn)mean(width[def])else NA_real_,unboundedIntervals=ub))}\n if(kind=='company')for(rol in c('train','calibration','test')){\n  ix<-which(role==rol&labeled);pp<-pred[ix];yy<-m$y[ix];N<-length(ix);bin<-pmin(4,floor(pp*5));yb<-if(N)mean(yy)else NA_real_;ece<-rel<-res<-vp<-cp<-0\n  for(j in 0:4){take<-which(bin==j);nb<-length(take);pm<-if(nb)mean(pp[take])else NA_real_;ym<-if(nb)mean(yy[take])else NA_real_;v<-if(nb)mean((pp[take]-pm)^2)else NA_real_;co<-if(nb)mean((pp[take]-pm)*(yy[take]-ym))else NA_real_;emit('reliability-bins',list(kind=kind,role=rol,bin=j,lower=j/5,upper=(j+1)/5,rightClosed=as.integer(j==4),rows=nb,meanP=pm,frequencyY1=ym,gap=pm-ym,withinVarianceP=v,withinCovariancePY=co));if(nb){z<-nb/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*co}}\n  mm<-list(ECE=if(N)ece else NA_real_,Brier=if(N)mean((pp-yy)^2)else NA_real_,uncertainty=yb*(1-yb),resolution=if(N)res else NA_real_,reliability=if(N)rel else NA_real_,withinVarianceP=if(N)vp else NA_real_,withinCovariancePY=if(N)cp else NA_real_);for(name in names(mm))metric(kind,paste0(rol,':',name),mm[[name]],if(name=='ECE')'dimensionless'else'squared probability');prob<-ifelse(yy==1,pp,1-pp);ll<-if(!N)NA_real_ else if(any(prob==0))Inf else-mean(log(prob));metric(kind,paste0(rol,':meanLogLoss'),ll,'nats','binary64 approximation or genuine infinity')\n }\n}\n\noutputs\n}\n\n# New fixed-example numerical adapters. Not arbitrary exact-input validators.\nnum20<-function(v){s<-as.character(v);a<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(a)==2)as.numeric(a[1])/as.numeric(a[2])else as.numeric(s)}\nalpha20<-function(s){a<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(a)==2){n<-as.numeric(a[1]);d<-as.numeric(a[2])}else{n<-as.numeric(a[1]);d<-1};if(n<=0||n>=d)stop('alpha-must-be-strictly-between-zero-and-one');c(n,d)}\nquantile20<-function(scores,alpha){ap<-alpha20(alpha);keep<-which(!vapply(scores,is.null,logical(1)));vv<-vapply(scores[keep],num20,numeric(1));ix<-order(vv,keep);n<-length(vv);k<-((n+1)*(ap[2]-ap[1])+ap[2]-1)%/%ap[2];list(n=n,k=k,threshold=if(k>n)NULL else vv[ix[k]],infinite=k>n,ordered=lapply(ix,function(j)list(score=vv[j],index=keep[j]-1)))}\nlogPositive20<-function(v){s<-tolower(as.character(v));part<-strsplit(s,'e',fixed=TRUE)[[1]];mantissa<-as.numeric(part[1]);power<-if(length(part)==2)as.numeric(part[2])else 0;if(mantissa<=0)stop('fixed positive weight required');log(mantissa)+power*log(10)}\nscore20<-function(rows){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));lw<-vapply(rows,function(r)logPositive20(if(is.null(r$weight))1 else r$weight),numeric(1));mx<-max(lw);lm<-mx+log(sum(exp(lw-mx)));mass<-exp(lm);w<-exp(lw-lm);observed<-ifelse(y==1,p,1-p);genuine<-any(observed==0);loss<-ifelse(observed==1,0,-log(observed));terms<-lw-lm+log(loss);finite<-terms[is.finite(terms)];ll<-if(genuine)'+infinity'else if(length(finite)){top<-max(finite);exp(top+log(sum(exp(finite-top))))}else 0;bs<-sum(w*(p-y)^2);list(rows=lapply(seq_along(rows),function(i)list(p=p[i],y=y[i],w=w[i])),mass=mass,Brier=bs,meanLogLoss=ll,genuineInfinite=genuine,BrierPositive=any(p!=y))}\ncalibration20<-function(rows,B){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));N<-length(p);bin<-pmin(B-1,floor(p*B));yb<-mean(y);ece<-rel<-res<-vp<-cp<-0;out<-list()\n for(j in 0:(B-1)){ix<-which(bin==j);n<-length(ix);pm<-if(n)mean(p[ix])else NULL;ym<-if(n)mean(y[ix])else NULL;v<-if(n)mean((p[ix]-pm)^2)else NULL;c<-if(n)mean((p[ix]-pm)*(y[ix]-ym))else NULL;out[[j+1]]<-list(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c);if(n){z<-n/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*c}}\n list(rows=N,bins=out,Brier=mean((p-y)^2),ECE=ece,uncertainty=yb*(1-yb),resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=yb*(1-yb)-res+rel+vp-2*cp)}\npredict20<-function(a){q<-quantile20(a$scores,a$alpha);classification<-a$mode=='classification';rows<-list()\n for(i in seq_along(a$queries)){r<-a$queries[[i]];p<-num20(if(classification)r$p else r$center);y<-if(is.null(r$y))NULL else num20(r$y)\n  if(classification){labels<-if(q$infinite)0:1 else which(c(p,1-p)<=q$threshold)-1;lo<-hi<-width<-NULL;size<-length(labels);covered<-if(is.null(y))NULL else as.integer(y%in%labels)}else{labels<-NULL;size<-NULL;lo<-if(q$infinite)'-infinity'else p-q$threshold;hi<-if(q$infinite)'+infinity'else p+q$threshold;width<-if(q$infinite)'+infinity'else 2*q$threshold;covered<-if(is.null(y))NULL else as.integer(q$infinite||abs(y-p)<=q$threshold+1e-12)}\n  rows[[i]]<-list(id=if(is.null(r$id))as.character(i-1)else r$id,prediction=p,actualY=y,labels=as.list(labels),size=size,lower=lo,upper=hi,width=width,covered=covered)\n };scored<-Filter(function(r)!is.null(r$covered),rows);coverage<-if(length(scored))mean(vapply(scored,`[[`,numeric(1),'covered'))else NULL;list(quantile=q,rows=rows,scoredLabels=length(scored),coverage=coverage,meanSetSize=if(classification&&length(rows))mean(vapply(rows,`[[`,numeric(1),'size'))else NULL,meanWidth=if(!classification&&length(rows))if(q$infinite)'+infinity'else 2*q$threshold else NULL)}\nranklaw20<-function(a){v<-vapply(a$scores,num20,numeric(1));trials<-lapply(seq_along(v),function(i){q<-quantile20(as.list(v[-i]),a$alpha);list(heldout=i-1,score=v[i],k=q$k,threshold=q$threshold,infinite=q$infinite,covered=as.integer(q$infinite||v[i]<=q$threshold))});list(N=length(v),distinct=length(unique(v))==length(v),trials=trials,coverage=mean(vapply(trials,`[[`,numeric(1),'covered')))}\nfixedOperation<-function(api,a)switch(api,score=score20(a$rows),calibration=calibration20(a$rows,a$bins),quantile=quantile20(a$scores,a$alpha),predict=predict20(a),ranklaw=ranklaw20(a),realdata=fixedSource(a$kind))\nreportValues<-function(api,z){summary<-list();points<-list();add<-function(k,v,u)summary[[length(summary)+1]]<<-list(metric=k,value=if(is.null(v)||length(v)==0||anyNA(v))NULL else unname(v),unit=u);pt<-function(s,i,x,y)points[[length(points)+1]]<<-list(series=s,index=i,x=x,y=y)\n if(api=='score'){for(k in c('mass','Brier','meanLogLoss','genuineInfinite','BrierPositive'))add(k,z[[k]],switch(k,mass='analysis weight',Brier='squared probability',meanLogLoss='nats; numerical logarithm',genuineInfinite='indicator',BrierPositive='mathematical indicator'));for(i in seq_along(z$rows)){r<-z$rows[[i]];pt('squared error',i-1,i-1,(r$p-r$y)^2)}\n }else if(api=='calibration'){for(k in c('Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity'))add(k,z[[k]],if(k=='ECE')'probability'else'squared probability');for(r in z$bins){pt('bin probability',r$bin,r$bin,r$meanP);pt('bin outcome frequency',r$bin,r$bin,r$frequency)}\n }else if(api=='quantile'){add('n',z$n,'scores');add('k',z$k,'one-based rank');add('infinite',z$infinite,'mathematical indicator');add('threshold',if(z$infinite)'+infinity'else z$threshold,'score units');for(i in seq_along(z$ordered))pt('sorted score',i-1,i,z$ordered[[i]]$score)\n }else if(api=='predict'){for(k in c('scoredLabels','coverage','meanSetSize','meanWidth'))add(k,z[[k]],switch(k,scoredLabels='labels',coverage='fraction',meanSetSize='classes',meanWidth='outcome units'));add('thresholdInfinite',z$quantile$infinite,'mathematical indicator');for(i in seq_along(z$rows)){pt('predicted center or probability',i-1,i-1,z$rows[[i]]$prediction);pt('observed label or outcome',i-1,i-1,z$rows[[i]]$actualY)}\n }else if(api=='ranklaw'){add('N',z$N,'scores');add('distinct',z$distinct,'indicator');add('coverage',z$coverage,'fraction');for(r in z$trials)pt('held-out coverage',r$heldout,r$heldout,r$covered)\n }else{for(k in c('sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold')){r<-Filter(function(r)r$metric==k,z[['study-metrics']])[[1]];add(k,r$value,r$unit)};cv<-Filter(function(r)r$role=='test'&&r$group=='all',z[['role-group-coverage']])[[1]];for(k in c('coverage','meanSetSize','meanIntervalWidth'))add(k,cv[[k]],switch(k,coverage='fraction',meanSetSize='classes',meanIntervalWidth='outcome units'));for(i in seq_along(z[['calibration-scores']])){r<-z[['calibration-scores']][[i]];pt('all calibration scores',i-1,r$rank,r$score)}}\n list(summary=summary,points=points)}\n\nescapeXML<-function(s){s<-gsub('&','&amp;',s,fixed=TRUE);s<-gsub('<','&lt;',s,fixed=TRUE);s<-gsub('>','&gt;',s,fixed=TRUE);gsub('\"','&quot;',s,fixed=TRUE)}\nsvgPlot<-function(pp,title){\n xx<-vapply(pp,function(p)as.numeric(p$x),numeric(1));yy<-vapply(pp,function(p)as.numeric(p$y),numeric(1));xmin<-if(length(xx))min(xx)else 0;xmax<-if(length(xx))max(xx)else 1;ymin<-min(c(0,yy));ymax<-max(c(0,yy));if(xmin==xmax){xmin<-xmin-.5;xmax<-xmax+.5};if(ymin==ymax){ymin<-ymin-.5;ymax<-ymax+.5};pad<-(ymax-ymin)*.08;ymin<-ymin-pad;ymax<-ymax+pad;X<-function(x)82+(as.numeric(x)-xmin)/(xmax-xmin)*608;Y<-function(y)354-(as.numeric(y)-ymin)/(ymax-ymin)*290\n out<-paste0('<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"',escapeXML(title),'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">',escapeXML(title),'</text>')\n for(j in 0:4){y<-ymin+(ymax-ymin)*j/4;x<-xmin+(xmax-xmin)*j/4;out<-paste0(out,'<line x1=\"82\" y1=\"',Y(y),'\" x2=\"690\" y2=\"',Y(y),'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"',Y(y)+4,'\" text-anchor=\"end\">',sprintf('%.3g',y),'</text><text x=\"',X(x),'\" y=\"380\" text-anchor=\"middle\">',sprintf('%.3g',x),'</text>')}\n ss<-unique(vapply(pp,`[[`,character(1),'series'));cols<-c('#0f766e','#c76622','#4f46e5','#b23857')\n for(j in seq_along(ss)){rr<-Filter(function(p)p$series==ss[j],pp);xy<-vapply(rr,function(p)sprintf('%.6f,%.6f',X(p$x),Y(p$y)),character(1));col<-cols[(j-1)%%4+1];out<-paste0(out,'<polyline fill=\"none\" stroke=\"',col,'\" stroke-width=\"1.5\" points=\"',paste(xy,collapse=' '),'\"/>');for(p in rr)out<-paste0(out,'<circle cx=\"',sprintf('%.6f',X(p$x)),'\" cy=\"',sprintf('%.6f',Y(p$y)),'\" r=\"2.6\" fill=\"',col,'\"><title>',escapeXML(ss[j]),': ',escapeXML(p$y),'</title></circle>');out<-paste0(out,'<text x=\"',82+((j-1)%%2)*310,'\" y=\"',432+floor((j-1)/2)*23,'\" fill=\"',col,'\">',escapeXML(ss[j]),'</text>')}\n paste0(out,'<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>')\n}\n\ntoJSON<-function(x){\n if(is.null(x))return('null');if(is.list(x)){v<-vapply(x,toJSON,character(1));if(!is.null(names(x)))paste0('{',paste(paste0(vapply(names(x),toJSON,character(1)),':',v),collapse=','),'}')else paste0('[',paste(v,collapse=','),']')}\n else if(length(x)!=1){if(!is.null(names(x)))toJSON(as.list(x))else paste0('[',paste(vapply(as.list(x),toJSON,character(1)),collapse=','),']')}\n else if(is.na(x))'null'else if(is.logical(x))if(x)'true'else'false'else if(is.numeric(x))if(is.finite(x))sprintf('%.17g',x)else'null'else paste0('\"',gsub('\\n','\\\\n',gsub('\"','\\\\\"',gsub('\\\\','\\\\\\\\',x,fixed=TRUE),fixed=TRUE),fixed=TRUE),'\"')\n}\n\nFIXED<-list(\"api\"=\"score\",\"variant\"=\"weighted-probabilities\",\"title\"=\"Weighted Brier and natural logarithmic loss\",\"input\"=list(\"rows\"=list(list(\"p\"=\"1/10\",\"y\"=\"0\",\"weight\"=\"1\"),list(\"p\"=\"7/10\",\"y\"=\"1\",\"weight\"=\"3\"))),\"expectedFailure\"=FALSE)\n\nargs<-commandArgs(trailingOnly=TRUE);out<-if(length(args))args[1]else stop('NEW output directory required');if(dir.exists(out))stop('Preserve previous output directory');dir.create(out,recursive=TRUE)\nz<-fixedOperation(FIXED$api,FIXED$input);rr<-reportValues(FIXED$api,z)\nwriteLines(toJSON(list(arithmetic='BaseR numerical counterpart; QR and membership1e-12, log-domain tiny weights; source splitRank read from factualCSV',result=z)),file.path(out,'full.json'),useBytes=TRUE)\nsums<-do.call(rbind,lapply(rr$summary,function(row)data.frame(metric=row$metric,value=if(is.null(row$value))''else if(is.logical(row$value))as.character(as.integer(row$value))else format(row$value,digits=17,scientific=NA,trim=TRUE),unit=row$unit,defined=as.integer(!is.null(row$value)),stringsAsFactors=FALSE)))\npoints<-do.call(rbind,lapply(rr$points,function(p)data.frame(series=p$series,index=p$index,x=p$x,y=if(is.null(p$y))NA_real_ else p$y,defined=as.integer(!is.null(p$y)),stringsAsFactors=FALSE)))\nwrite.csv(sums,file.path(out,'summary.csv'),row.names=FALSE,na='');write.csv(points,file.path(out,'plot-points.csv'),row.names=FALSE,na='');writeLines(svgPlot(Filter(function(p)!is.null(p$y),rr$points),FIXED$title),file.path(out,'plot.svg'),useBytes=TRUE);cat(FIXED$api,'/',FIXED$variant,'\\n',sep='')\n",
        "returnCode": 0,
        "stdout": "score/weighted-probabilities\r\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed ",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/r-score-weighted-probabilities-result",
        "kind": null,
        "inputFiles": [],
        "files": [
          {
            "file": "ml20-code/r-score-weighted-probabilities-result/full.json",
            "sha256": "4f1dc86d7520f8eae5d08894cf1acde5ee2f6d1086cfe2be9bfe29b97f1a6c8f",
            "bytes": 368
          },
          {
            "file": "ml20-code/r-score-weighted-probabilities-result/plot-points.csv",
            "sha256": "94edcb9ccb19f64c951c32fd620a70fb2d7fe1a4bed4bbf8561d0d2fc0e7a0d9",
            "bytes": 92
          },
          {
            "file": "ml20-code/r-score-weighted-probabilities-result/plot.svg",
            "sha256": "adfaa9fd482ce13fd2642740f7f4a4748fa0a98849509c2f9fc4558aacba8df7",
            "bytes": 1670
          },
          {
            "file": "ml20-code/r-score-weighted-probabilities-result/summary.csv",
            "sha256": "814d18f199a8eca68dece7e45ca86e04e6d93bb9dbe69ad7ed38db646564d9f9",
            "bytes": 275
          },
          {
            "file": "ml20-code/r-score-weighted-probabilities-result/stdout.txt",
            "sha256": "f62efe0451981d167c56347043fd82d8546b18c4730f28869fc42f1b60c71983",
            "bytes": 30
          },
          {
            "file": "ml20-code/r-score-weighted-probabilities-result/stderr.txt",
            "sha256": "b807bd2d0f7060ea384b0ac2317cda2d63a4f59f63b4a901b9e665fead79627d",
            "bytes": 182
          }
        ],
        "summaryRows": [
          {
            "metric": "mass",
            "value": "4",
            "unit": "analysis weight",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "4",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "Brier",
            "value": "0.07",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.070000000000000034",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "meanLogLoss",
            "value": "0.293846337",
            "unit": "nats; numerical logarithm",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.29384633686850598",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Numerical logarithm/display approximation"
          },
          {
            "metric": "genuineInfinite",
            "value": "0",
            "unit": "indicator",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "BrierPositive",
            "value": "1",
            "unit": "mathematical indicator",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "1",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          }
        ],
        "plotRows": [
          {
            "series": "squared error",
            "index": 0,
            "x": "0",
            "y": "0.01",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 1,
            "x": "1",
            "y": "0.089999999999999997",
            "defined": true,
            "xExact": "",
            "yExact": ""
          }
        ],
        "plotFile": "ml20-code/r-score-weighted-probabilities-result/plot.svg",
        "fullResultFile": "ml20-code/r-score-weighted-probabilities-result/full.json",
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      },
      "rare-aggregate": {
        "api": "score",
        "variant": "rare-aggregate",
        "language": "r",
        "title": "Tiny positive loss: aggregate before display",
        "input": {
          "rows": [
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1e-200",
              "y": "1",
              "weight": "0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200"
            },
            {
              "p": "1",
              "y": "1",
              "weight": "1"
            }
          ]
        },
        "expectedFailure": false,
        "codeFile": "ml20-code/score-rare-aggregate.R",
        "codeSHA256": "e4eab7e4980aefd954d933578ad0fcc66cff75ca89aee2933cdcd3c3b2733a2b",
        "code": "# ML20 complete standalone numerical fixed examples, no browser/model/results.\n# Base-R QR1e-12/membership1e-12; tiny log loss uses log-domain normalized\n# weights to avoid early underflow. This is an approximate counterpart, not\n# a general exact-rational numeric-token validator. Fixed alpha uses small fractions.\noptions(digits=17)\nfixedSource<-function(kind){\n src<-file.path(dirname(sub(\"^--file=\",\"\",grep(\"^--file=\",commandArgs(),value=TRUE)[1])),\"data\")\nreadnative<-function(n)read.csv(file.path(src,n),check.names=FALSE,colClasses='character',na.strings=NULL,stringsAsFactors=FALSE)\nnum<-function(x){a<-suppressWarnings(as.numeric(x));a[x%in%c('','.')] <- NA_real_;a}\nroles<-function(d){n<-nrow(d);rank<-as.integer(d$splitRank);if(!identical(sort(rank),0:(n-1)))stop('splitRank permutation');planned<-c('test','calibration','train','train')[rank%%4+1];if(any(planned!=d$plannedRole))stop('planned roles');list(rank=rank,planned=planned)}\noriginal<-readnative('actual48-country-revised-original-2023-2024.csv');derived<-readnative('derived16-country-features-and-roles.csv');isos<-sort(unique(original$countryISO3));lookup<-function(iso,code,year){r<-original[original$countryISO3==iso&original$indicatorID==code&original$date==year,,drop=FALSE];if(nrow(r)!=1)stop('country identity');num(r$originalValueToken)}\ncr<-roles(derived);if(!identical(isos,derived$countryISO3))stop('country order');country<-list(id=paste0(isos,':2024'),sourceRow=isos,x=cbind(vapply(isos,lookup,numeric(1),code='NY.GDP.PCAP.KD',year='2023')/10000,vapply(isos,lookup,numeric(1),code='FP.CPI.TOTL.ZG',year='2023')/10),y=vapply(isos,lookup,numeric(1),code='NY.GDP.MKTP.KD.ZG',year='2024'),rank=cr$rank,planned=cr$planned,names=c('g','pi'),unit='annual GDP growth percentage points')\npd<-readnative('actual3613-NLS-original52-fields-and-conformal-frame.csv');pr<-roles(pd);person<-list(id=paste0('person-row:',pd$sourceRow),sourceRow=pd$sourceRow,x=cbind(num(pd$ed76),num(pd$age76)),y=num(pd$lwage76),rank=pr$rank,planned=pr$planned,names=c('ed76','age76'),unit='native trimmed1976log hourly wage')\ncd<-readnative('actual3150-churn-original14-fields-and-conformal-frame.csv');rr<-roles(cd);company<-list(id=paste0('customer-row:',cd$sourceRow),sourceRow=cd$sourceRow,x=cbind(num(cd[['Call  Failure']]),num(cd[['Seconds of Use']])),y=num(cd$Churn),rank=rr$rank,planned=rr$planned,names=c('CallFailure','SecondsUse'),unit='native Churn0/1')\nmodels<-list(country=country,person=person,company=company)\n\nmodels<-models[kind]\nalphaToken<-\"1/5\";ridgeToken<-\"1/100\"\nqnum<-function(s){v<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(v)==2)as.numeric(v[1])/as.numeric(v[2])else as.numeric(v)}\nalphaParts<-function(s){v<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(v)==2&&all(grepl('^[0-9]+$',v))){a<-as.numeric(v[1]);b<-as.numeric(v[2])}else if(grepl('^[0-9]+([.][0-9]{1,6})?$',s)){n<-if(grepl('.',s,fixed=TRUE))nchar(sub('^[^.]*[.]','',s))else 0;a<-as.numeric(gsub('.','',s,fixed=TRUE));b<-10^n}else stop('Base-R alpha needs small integer fraction or <=6decimal places');if(a<=0||a>=b||b>1e6)stop('Require0<alpha<1 with denominator<=1e6');c(a,b)}\nap<-alphaParts(alphaToken);alpha<-ap[1]/ap[2];lambda<-qnum(ridgeToken);if(!is.finite(lambda)||lambda<0)stop('nonnegative finite ridge required')\nnamesOut<-c('study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins');outputs<-setNames(lapply(namesOut,function(n)list()),namesOut)\nemit<-function(name,row)outputs[[name]][[length(outputs[[name]])+1L]]<<-row\nmetric<-function(kind,name,value,unit,arithmetic='binary64 approximation'){emit('study-metrics',list(kind=kind,metric=name,value=if(is.null(value))NA else value,unit=unit,defined=as.integer(!is.null(value)&&!is.na(value)),arithmetic=arithmetic))}\nfor(kind in names(models)){\n m<-models[[kind]];complete<-rowSums(is.na(m$x))==0&!is.na(m$y);role<-ifelse(complete,m$planned,'excluded');train<-which(role=='train');n<-length(train);stopifnot(n>0);meanX<-colMeans(m$x[train,,drop=FALSE]);scale<-apply(m$x[train,,drop=FALSE],2,function(x)diff(range(x)));scale[scale==0]<-1;Z<-cbind(1,sweep(sweep(m$x,2,meanX,'-'),2,scale,'/'));H<-crossprod(Z[train,,drop=FALSE])/n+diag(c(0,lambda,lambda));b<-as.vector(crossprod(Z[train,,drop=FALSE],m$y[train]))/n;qrfit<-qr(H,tol=1e-12,LAPACK=FALSE);theta<-qr.coef(qrfit,b);theta[is.na(theta)]<-0;minimum<-as.numeric(crossprod(theta,H%*%theta)/2-sum(theta*b)+sum(m$y[train]^2)/(2*n));beta<-theta[-1]/scale;intercept<-theta[1]-sum(beta*meanX);raw<-as.vector(Z%*%theta);pred<-if(kind=='company')pmax(0,pmin(1,raw))else raw;defined<-!is.na(pred);group<-if(kind=='person')ifelse(m$x[,1]<=12,'schooling-at-most12','schooling-over12')else if(kind=='company')ifelse(m$x[,1]==0,'zero-call-failures','positive-call-failures')else ifelse(m$x[,1]<=meanX[1],'GDPpc-at-most-training-mean','GDPpc-above-training-mean');group[is.na(raw)]<-'missing-X';cal<-which(role=='calibration'&defined&!is.na(m$y));score<-if(kind=='company')ifelse(m$y[cal]==1,1-pred[cal],pred[cal])else abs(m$y[cal]-pred[cal]);ordered<-order(score,seq_along(score));k<-ceiling((length(cal)+1)*(ap[2]-ap[1])/ap[2]);threshold<-if(k<=length(cal))score[ordered[k]]else Inf;unbounded<-is.infinite(threshold)\n for(j in seq_along(ordered)){slot<-ordered[j];i<-cal[slot];emit('calibration-scores',list(kind=kind,rank=j,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,calibrationIndex0=slot-1,score=score[slot],threshold=threshold,thresholdInfinite=as.integer(unbounded)))}\n for(j in 1:2)emit('training-coefficients',list(kind=kind,feature=m$names[j],mean=meanX[j],scale=scale[j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[1],nativeIntercept=intercept,rank=qrfit$rank,unique=as.integer(qrfit$rank==3),lambdaValue=lambda,minimumObjective=minimum))\n metrics<-list(sourceRows=length(role),trainingRows=n,calibrationScores=length(cal),testLabeledRows=sum(role=='test'&!is.na(m$y)),excludedRows=sum(role=='excluded'),alpha=alpha,ridge=lambda,quantileRank=k,threshold=threshold,minimumObjective=minimum);units<-c('rows','rows','unit-count scores','rows','rows','probability','transformed slope penalty','one-based rank',if(kind=='company')'dimensionless score'else m$unit,paste0('(',m$unit,') squared'))\n for(j in seq_along(metrics))metric(kind,names(metrics)[j],metrics[[j]],units[j],if(is.infinite(metrics[[j]]))'mathematical infinity'else if(j%in%c(1:5,8))'integer count'else'binary64 approximation')\n labeled<-defined&!is.na(m$y);covered<-rep(NA_integer_,length(role));lo<-hi<-width<-rep(NA_real_,length(role));setSize<-rep(NA_integer_,length(role));setLabels<-rep('',length(role))\n if(kind=='company'){\n  zero<-defined&(unbounded|pred<=threshold+1e-12);one<-defined&(unbounded|1-pred<=threshold+1e-12);setSize[defined]<-as.integer(zero[defined])+as.integer(one[defined]);setLabels[zero&!one]<-'0';setLabels[!zero&one]<-'1';setLabels[zero&one]<-'0|1';covered[labeled]<-as.integer((m$y[labeled]==0&zero[labeled])|(m$y[labeled]==1&one[labeled]))\n }else{lo[defined]<-pred[defined]-threshold;hi[defined]<-pred[defined]+threshold;width[defined]<-2*threshold;tol<-1e-12*pmax(1,abs(m$y[labeled]),abs(pred[labeled]),if(is.finite(threshold))abs(threshold)else 1);covered[labeled]<-as.integer(unbounded|abs(m$y[labeled]-pred[labeled])<=threshold+tol)}\n for(i in seq_along(role)){\n  emit('row-predictions',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,plannedRole=m$planned[i],role=role[i],group=group[i],actualY=m$y[i],rawLinear=raw[i],prediction=pred[i],predictionDefined=as.integer(defined[i]),threshold=threshold,thresholdInfinite=as.integer(unbounded),lower=lo[i],upper=hi[i],width=width[i],setLabels=setLabels[i],setSize=setSize[i],covered=covered[i],labeledPrediction=as.integer(labeled[i])))\n  emit('eligibility',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],plannedRole=m$planned[i],role=role[i],requiredComplete=as.integer(complete[i]),trainingUsed=as.integer(role[i]=='train'&complete[i]),reason=if(complete[i])''else'missing-required-field'))\n }\n for(rol in unique(role))for(gr in c('all',unique(group))){use<-which(role==rol&(gr=='all'|group==gr));def<-use[defined[use]];scored<-use[labeled[use]&!role[use]%in%c('excluded','unused')];nn<-length(def);ns<-length(scored);cv<-sum(covered[scored]);ub<-if(kind=='company')0 else sum(is.infinite(width[def]));emit('role-group-coverage',list(kind=kind,role=rol,group=gr,originalRows=length(use),definedPredictions=nn,scoredLabels=ns,coveredRows=cv,coverage=if(ns)cv/ns else NA_real_,meanSetSize=if(kind=='company'&&nn)mean(setSize[def])else NA_real_,meanIntervalWidth=if(kind!='company'&&nn)mean(width[def])else NA_real_,unboundedIntervals=ub))}\n if(kind=='company')for(rol in c('train','calibration','test')){\n  ix<-which(role==rol&labeled);pp<-pred[ix];yy<-m$y[ix];N<-length(ix);bin<-pmin(4,floor(pp*5));yb<-if(N)mean(yy)else NA_real_;ece<-rel<-res<-vp<-cp<-0\n  for(j in 0:4){take<-which(bin==j);nb<-length(take);pm<-if(nb)mean(pp[take])else NA_real_;ym<-if(nb)mean(yy[take])else NA_real_;v<-if(nb)mean((pp[take]-pm)^2)else NA_real_;co<-if(nb)mean((pp[take]-pm)*(yy[take]-ym))else NA_real_;emit('reliability-bins',list(kind=kind,role=rol,bin=j,lower=j/5,upper=(j+1)/5,rightClosed=as.integer(j==4),rows=nb,meanP=pm,frequencyY1=ym,gap=pm-ym,withinVarianceP=v,withinCovariancePY=co));if(nb){z<-nb/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*co}}\n  mm<-list(ECE=if(N)ece else NA_real_,Brier=if(N)mean((pp-yy)^2)else NA_real_,uncertainty=yb*(1-yb),resolution=if(N)res else NA_real_,reliability=if(N)rel else NA_real_,withinVarianceP=if(N)vp else NA_real_,withinCovariancePY=if(N)cp else NA_real_);for(name in names(mm))metric(kind,paste0(rol,':',name),mm[[name]],if(name=='ECE')'dimensionless'else'squared probability');prob<-ifelse(yy==1,pp,1-pp);ll<-if(!N)NA_real_ else if(any(prob==0))Inf else-mean(log(prob));metric(kind,paste0(rol,':meanLogLoss'),ll,'nats','binary64 approximation or genuine infinity')\n }\n}\n\noutputs\n}\n\n# New fixed-example numerical adapters. Not arbitrary exact-input validators.\nnum20<-function(v){s<-as.character(v);a<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(a)==2)as.numeric(a[1])/as.numeric(a[2])else as.numeric(s)}\nalpha20<-function(s){a<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(a)==2){n<-as.numeric(a[1]);d<-as.numeric(a[2])}else{n<-as.numeric(a[1]);d<-1};if(n<=0||n>=d)stop('alpha-must-be-strictly-between-zero-and-one');c(n,d)}\nquantile20<-function(scores,alpha){ap<-alpha20(alpha);keep<-which(!vapply(scores,is.null,logical(1)));vv<-vapply(scores[keep],num20,numeric(1));ix<-order(vv,keep);n<-length(vv);k<-((n+1)*(ap[2]-ap[1])+ap[2]-1)%/%ap[2];list(n=n,k=k,threshold=if(k>n)NULL else vv[ix[k]],infinite=k>n,ordered=lapply(ix,function(j)list(score=vv[j],index=keep[j]-1)))}\nlogPositive20<-function(v){s<-tolower(as.character(v));part<-strsplit(s,'e',fixed=TRUE)[[1]];mantissa<-as.numeric(part[1]);power<-if(length(part)==2)as.numeric(part[2])else 0;if(mantissa<=0)stop('fixed positive weight required');log(mantissa)+power*log(10)}\nscore20<-function(rows){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));lw<-vapply(rows,function(r)logPositive20(if(is.null(r$weight))1 else r$weight),numeric(1));mx<-max(lw);lm<-mx+log(sum(exp(lw-mx)));mass<-exp(lm);w<-exp(lw-lm);observed<-ifelse(y==1,p,1-p);genuine<-any(observed==0);loss<-ifelse(observed==1,0,-log(observed));terms<-lw-lm+log(loss);finite<-terms[is.finite(terms)];ll<-if(genuine)'+infinity'else if(length(finite)){top<-max(finite);exp(top+log(sum(exp(finite-top))))}else 0;bs<-sum(w*(p-y)^2);list(rows=lapply(seq_along(rows),function(i)list(p=p[i],y=y[i],w=w[i])),mass=mass,Brier=bs,meanLogLoss=ll,genuineInfinite=genuine,BrierPositive=any(p!=y))}\ncalibration20<-function(rows,B){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));N<-length(p);bin<-pmin(B-1,floor(p*B));yb<-mean(y);ece<-rel<-res<-vp<-cp<-0;out<-list()\n for(j in 0:(B-1)){ix<-which(bin==j);n<-length(ix);pm<-if(n)mean(p[ix])else NULL;ym<-if(n)mean(y[ix])else NULL;v<-if(n)mean((p[ix]-pm)^2)else NULL;c<-if(n)mean((p[ix]-pm)*(y[ix]-ym))else NULL;out[[j+1]]<-list(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c);if(n){z<-n/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*c}}\n list(rows=N,bins=out,Brier=mean((p-y)^2),ECE=ece,uncertainty=yb*(1-yb),resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=yb*(1-yb)-res+rel+vp-2*cp)}\npredict20<-function(a){q<-quantile20(a$scores,a$alpha);classification<-a$mode=='classification';rows<-list()\n for(i in seq_along(a$queries)){r<-a$queries[[i]];p<-num20(if(classification)r$p else r$center);y<-if(is.null(r$y))NULL else num20(r$y)\n  if(classification){labels<-if(q$infinite)0:1 else which(c(p,1-p)<=q$threshold)-1;lo<-hi<-width<-NULL;size<-length(labels);covered<-if(is.null(y))NULL else as.integer(y%in%labels)}else{labels<-NULL;size<-NULL;lo<-if(q$infinite)'-infinity'else p-q$threshold;hi<-if(q$infinite)'+infinity'else p+q$threshold;width<-if(q$infinite)'+infinity'else 2*q$threshold;covered<-if(is.null(y))NULL else as.integer(q$infinite||abs(y-p)<=q$threshold+1e-12)}\n  rows[[i]]<-list(id=if(is.null(r$id))as.character(i-1)else r$id,prediction=p,actualY=y,labels=as.list(labels),size=size,lower=lo,upper=hi,width=width,covered=covered)\n };scored<-Filter(function(r)!is.null(r$covered),rows);coverage<-if(length(scored))mean(vapply(scored,`[[`,numeric(1),'covered'))else NULL;list(quantile=q,rows=rows,scoredLabels=length(scored),coverage=coverage,meanSetSize=if(classification&&length(rows))mean(vapply(rows,`[[`,numeric(1),'size'))else NULL,meanWidth=if(!classification&&length(rows))if(q$infinite)'+infinity'else 2*q$threshold else NULL)}\nranklaw20<-function(a){v<-vapply(a$scores,num20,numeric(1));trials<-lapply(seq_along(v),function(i){q<-quantile20(as.list(v[-i]),a$alpha);list(heldout=i-1,score=v[i],k=q$k,threshold=q$threshold,infinite=q$infinite,covered=as.integer(q$infinite||v[i]<=q$threshold))});list(N=length(v),distinct=length(unique(v))==length(v),trials=trials,coverage=mean(vapply(trials,`[[`,numeric(1),'covered')))}\nfixedOperation<-function(api,a)switch(api,score=score20(a$rows),calibration=calibration20(a$rows,a$bins),quantile=quantile20(a$scores,a$alpha),predict=predict20(a),ranklaw=ranklaw20(a),realdata=fixedSource(a$kind))\nreportValues<-function(api,z){summary<-list();points<-list();add<-function(k,v,u)summary[[length(summary)+1]]<<-list(metric=k,value=if(is.null(v)||length(v)==0||anyNA(v))NULL else unname(v),unit=u);pt<-function(s,i,x,y)points[[length(points)+1]]<<-list(series=s,index=i,x=x,y=y)\n if(api=='score'){for(k in c('mass','Brier','meanLogLoss','genuineInfinite','BrierPositive'))add(k,z[[k]],switch(k,mass='analysis weight',Brier='squared probability',meanLogLoss='nats; numerical logarithm',genuineInfinite='indicator',BrierPositive='mathematical indicator'));for(i in seq_along(z$rows)){r<-z$rows[[i]];pt('squared error',i-1,i-1,(r$p-r$y)^2)}\n }else if(api=='calibration'){for(k in c('Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity'))add(k,z[[k]],if(k=='ECE')'probability'else'squared probability');for(r in z$bins){pt('bin probability',r$bin,r$bin,r$meanP);pt('bin outcome frequency',r$bin,r$bin,r$frequency)}\n }else if(api=='quantile'){add('n',z$n,'scores');add('k',z$k,'one-based rank');add('infinite',z$infinite,'mathematical indicator');add('threshold',if(z$infinite)'+infinity'else z$threshold,'score units');for(i in seq_along(z$ordered))pt('sorted score',i-1,i,z$ordered[[i]]$score)\n }else if(api=='predict'){for(k in c('scoredLabels','coverage','meanSetSize','meanWidth'))add(k,z[[k]],switch(k,scoredLabels='labels',coverage='fraction',meanSetSize='classes',meanWidth='outcome units'));add('thresholdInfinite',z$quantile$infinite,'mathematical indicator');for(i in seq_along(z$rows)){pt('predicted center or probability',i-1,i-1,z$rows[[i]]$prediction);pt('observed label or outcome',i-1,i-1,z$rows[[i]]$actualY)}\n }else if(api=='ranklaw'){add('N',z$N,'scores');add('distinct',z$distinct,'indicator');add('coverage',z$coverage,'fraction');for(r in z$trials)pt('held-out coverage',r$heldout,r$heldout,r$covered)\n }else{for(k in c('sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold')){r<-Filter(function(r)r$metric==k,z[['study-metrics']])[[1]];add(k,r$value,r$unit)};cv<-Filter(function(r)r$role=='test'&&r$group=='all',z[['role-group-coverage']])[[1]];for(k in c('coverage','meanSetSize','meanIntervalWidth'))add(k,cv[[k]],switch(k,coverage='fraction',meanSetSize='classes',meanIntervalWidth='outcome units'));for(i in seq_along(z[['calibration-scores']])){r<-z[['calibration-scores']][[i]];pt('all calibration scores',i-1,r$rank,r$score)}}\n list(summary=summary,points=points)}\n\nescapeXML<-function(s){s<-gsub('&','&amp;',s,fixed=TRUE);s<-gsub('<','&lt;',s,fixed=TRUE);s<-gsub('>','&gt;',s,fixed=TRUE);gsub('\"','&quot;',s,fixed=TRUE)}\nsvgPlot<-function(pp,title){\n xx<-vapply(pp,function(p)as.numeric(p$x),numeric(1));yy<-vapply(pp,function(p)as.numeric(p$y),numeric(1));xmin<-if(length(xx))min(xx)else 0;xmax<-if(length(xx))max(xx)else 1;ymin<-min(c(0,yy));ymax<-max(c(0,yy));if(xmin==xmax){xmin<-xmin-.5;xmax<-xmax+.5};if(ymin==ymax){ymin<-ymin-.5;ymax<-ymax+.5};pad<-(ymax-ymin)*.08;ymin<-ymin-pad;ymax<-ymax+pad;X<-function(x)82+(as.numeric(x)-xmin)/(xmax-xmin)*608;Y<-function(y)354-(as.numeric(y)-ymin)/(ymax-ymin)*290\n out<-paste0('<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"',escapeXML(title),'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">',escapeXML(title),'</text>')\n for(j in 0:4){y<-ymin+(ymax-ymin)*j/4;x<-xmin+(xmax-xmin)*j/4;out<-paste0(out,'<line x1=\"82\" y1=\"',Y(y),'\" x2=\"690\" y2=\"',Y(y),'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"',Y(y)+4,'\" text-anchor=\"end\">',sprintf('%.3g',y),'</text><text x=\"',X(x),'\" y=\"380\" text-anchor=\"middle\">',sprintf('%.3g',x),'</text>')}\n ss<-unique(vapply(pp,`[[`,character(1),'series'));cols<-c('#0f766e','#c76622','#4f46e5','#b23857')\n for(j in seq_along(ss)){rr<-Filter(function(p)p$series==ss[j],pp);xy<-vapply(rr,function(p)sprintf('%.6f,%.6f',X(p$x),Y(p$y)),character(1));col<-cols[(j-1)%%4+1];out<-paste0(out,'<polyline fill=\"none\" stroke=\"',col,'\" stroke-width=\"1.5\" points=\"',paste(xy,collapse=' '),'\"/>');for(p in rr)out<-paste0(out,'<circle cx=\"',sprintf('%.6f',X(p$x)),'\" cy=\"',sprintf('%.6f',Y(p$y)),'\" r=\"2.6\" fill=\"',col,'\"><title>',escapeXML(ss[j]),': ',escapeXML(p$y),'</title></circle>');out<-paste0(out,'<text x=\"',82+((j-1)%%2)*310,'\" y=\"',432+floor((j-1)/2)*23,'\" fill=\"',col,'\">',escapeXML(ss[j]),'</text>')}\n paste0(out,'<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>')\n}\n\ntoJSON<-function(x){\n if(is.null(x))return('null');if(is.list(x)){v<-vapply(x,toJSON,character(1));if(!is.null(names(x)))paste0('{',paste(paste0(vapply(names(x),toJSON,character(1)),':',v),collapse=','),'}')else paste0('[',paste(v,collapse=','),']')}\n else if(length(x)!=1){if(!is.null(names(x)))toJSON(as.list(x))else paste0('[',paste(vapply(as.list(x),toJSON,character(1)),collapse=','),']')}\n else if(is.na(x))'null'else if(is.logical(x))if(x)'true'else'false'else if(is.numeric(x))if(is.finite(x))sprintf('%.17g',x)else'null'else paste0('\"',gsub('\\n','\\\\n',gsub('\"','\\\\\"',gsub('\\\\','\\\\\\\\',x,fixed=TRUE),fixed=TRUE),fixed=TRUE),'\"')\n}\n\nFIXED<-list(\"api\"=\"score\",\"variant\"=\"rare-aggregate\",\"title\"=\"Tiny positive loss: aggregate before display\",\"input\"=list(\"rows\"=list(list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1e-200\",\"y\"=\"1\",\"weight\"=\"0.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001e-200\"),list(\"p\"=\"1\",\"y\"=\"1\",\"weight\"=\"1\"))),\"expectedFailure\"=FALSE)\n\nargs<-commandArgs(trailingOnly=TRUE);out<-if(length(args))args[1]else stop('NEW output directory required');if(dir.exists(out))stop('Preserve previous output directory');dir.create(out,recursive=TRUE)\nz<-fixedOperation(FIXED$api,FIXED$input);rr<-reportValues(FIXED$api,z)\nwriteLines(toJSON(list(arithmetic='BaseR numerical counterpart; QR and membership1e-12, log-domain tiny weights; source splitRank read from factualCSV',result=z)),file.path(out,'full.json'),useBytes=TRUE)\nsums<-do.call(rbind,lapply(rr$summary,function(row)data.frame(metric=row$metric,value=if(is.null(row$value))''else if(is.logical(row$value))as.character(as.integer(row$value))else format(row$value,digits=17,scientific=NA,trim=TRUE),unit=row$unit,defined=as.integer(!is.null(row$value)),stringsAsFactors=FALSE)))\npoints<-do.call(rbind,lapply(rr$points,function(p)data.frame(series=p$series,index=p$index,x=p$x,y=if(is.null(p$y))NA_real_ else p$y,defined=as.integer(!is.null(p$y)),stringsAsFactors=FALSE)))\nwrite.csv(sums,file.path(out,'summary.csv'),row.names=FALSE,na='');write.csv(points,file.path(out,'plot-points.csv'),row.names=FALSE,na='');writeLines(svgPlot(Filter(function(p)!is.null(p$y),rr$points),FIXED$title),file.path(out,'plot.svg'),useBytes=TRUE);cat(FIXED$api,'/',FIXED$variant,'\\n',sep='')\n",
        "returnCode": 0,
        "stdout": "score/rare-aggregate\r\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed ",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/r-score-rare-aggregate-result",
        "kind": null,
        "inputFiles": [],
        "files": [
          {
            "file": "ml20-code/r-score-rare-aggregate-result/full.json",
            "sha256": "be362eec48e526497009671c48027d4db0a8abcfbddae7609b1f31b61b3b6c47",
            "bytes": 4476
          },
          {
            "file": "ml20-code/r-score-rare-aggregate-result/plot-points.csv",
            "sha256": "9080b1c0c3e3d0589997e9c160898783abbf78a8f45a4267dcbf6ab3ba6b5312",
            "bytes": 2745
          },
          {
            "file": "ml20-code/r-score-rare-aggregate-result/plot.svg",
            "sha256": "e68890fa8fda89b0f85e90cfc6a3d79464463baf8877ebfe2a34ac06d533906f",
            "bytes": 13826
          },
          {
            "file": "ml20-code/r-score-rare-aggregate-result/summary.csv",
            "sha256": "91d4ab578b109c28600ce73741f777952598e6ad21011805d877bdd0c20c403f",
            "bytes": 260
          },
          {
            "file": "ml20-code/r-score-rare-aggregate-result/stdout.txt",
            "sha256": "fbec240b8cc813dfc951b20041a0cee31abcf36ce40f2739543ccd8599e187db",
            "bytes": 22
          },
          {
            "file": "ml20-code/r-score-rare-aggregate-result/stderr.txt",
            "sha256": "b807bd2d0f7060ea384b0ac2317cda2d63a4f59f63b4a901b9e665fead79627d",
            "bytes": 182
          }
        ],
        "summaryRows": [
          {
            "metric": "mass",
            "value": "1",
            "unit": "analysis weight",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "1",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "Brier",
            "value": "0",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0",
            "mathematicallyPositive": true,
            "displayUnderflow": true,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "meanLogLoss",
            "value": "4.44659081e-323",
            "unit": "nats; numerical logarithm",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "4.4465908125712189e-323",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Numerical logarithm/display approximation"
          },
          {
            "metric": "genuineInfinite",
            "value": "0",
            "unit": "indicator",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "BrierPositive",
            "value": "1",
            "unit": "mathematical indicator",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "1",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          }
        ],
        "plotRows": [
          {
            "series": "squared error",
            "index": 0,
            "x": "0",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 1,
            "x": "1",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 2,
            "x": "2",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 3,
            "x": "3",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 4,
            "x": "4",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 5,
            "x": "5",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 6,
            "x": "6",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 7,
            "x": "7",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 8,
            "x": "8",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 9,
            "x": "9",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 10,
            "x": "10",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 11,
            "x": "11",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 12,
            "x": "12",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 13,
            "x": "13",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 14,
            "x": "14",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 15,
            "x": "15",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 16,
            "x": "16",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 17,
            "x": "17",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 18,
            "x": "18",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 19,
            "x": "19",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 20,
            "x": "20",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 21,
            "x": "21",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 22,
            "x": "22",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 23,
            "x": "23",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 24,
            "x": "24",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 25,
            "x": "25",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 26,
            "x": "26",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 27,
            "x": "27",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 28,
            "x": "28",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 29,
            "x": "29",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 30,
            "x": "30",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 31,
            "x": "31",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 32,
            "x": "32",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 33,
            "x": "33",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 34,
            "x": "34",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 35,
            "x": "35",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 36,
            "x": "36",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 37,
            "x": "37",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 38,
            "x": "38",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 39,
            "x": "39",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 40,
            "x": "40",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 41,
            "x": "41",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 42,
            "x": "42",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 43,
            "x": "43",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 44,
            "x": "44",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 45,
            "x": "45",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 46,
            "x": "46",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 47,
            "x": "47",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 48,
            "x": "48",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 49,
            "x": "49",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 50,
            "x": "50",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 51,
            "x": "51",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 52,
            "x": "52",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 53,
            "x": "53",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 54,
            "x": "54",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 55,
            "x": "55",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 56,
            "x": "56",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 57,
            "x": "57",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 58,
            "x": "58",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 59,
            "x": "59",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 60,
            "x": "60",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 61,
            "x": "61",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 62,
            "x": "62",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 63,
            "x": "63",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 64,
            "x": "64",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 65,
            "x": "65",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 66,
            "x": "66",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 67,
            "x": "67",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 68,
            "x": "68",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 69,
            "x": "69",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 70,
            "x": "70",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 71,
            "x": "71",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 72,
            "x": "72",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 73,
            "x": "73",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 74,
            "x": "74",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 75,
            "x": "75",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 76,
            "x": "76",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 77,
            "x": "77",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 78,
            "x": "78",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 79,
            "x": "79",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 80,
            "x": "80",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 81,
            "x": "81",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 82,
            "x": "82",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 83,
            "x": "83",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 84,
            "x": "84",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 85,
            "x": "85",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 86,
            "x": "86",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 87,
            "x": "87",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 88,
            "x": "88",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 89,
            "x": "89",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 90,
            "x": "90",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 91,
            "x": "91",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 92,
            "x": "92",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 93,
            "x": "93",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 94,
            "x": "94",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 95,
            "x": "95",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 96,
            "x": "96",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 97,
            "x": "97",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 98,
            "x": "98",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 99,
            "x": "99",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 100,
            "x": "100",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          }
        ],
        "plotFile": "ml20-code/r-score-rare-aggregate-result/plot.svg",
        "fullResultFile": "ml20-code/r-score-rare-aggregate-result/full.json",
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      },
      "genuine-infinite": {
        "api": "score",
        "variant": "genuine-infinite",
        "language": "r",
        "title": "Wrong endpoint: genuine infinite log loss",
        "input": {
          "rows": [
            {
              "p": "0",
              "y": "1"
            },
            {
              "p": "1",
              "y": "1"
            }
          ]
        },
        "expectedFailure": false,
        "codeFile": "ml20-code/score-genuine-infinite.R",
        "codeSHA256": "e21665c23779c1195be2f9cdfc9701027b457977e2ce6b4aeb7d834e9c275338",
        "code": "# ML20 complete standalone numerical fixed examples, no browser/model/results.\n# Base-R QR1e-12/membership1e-12; tiny log loss uses log-domain normalized\n# weights to avoid early underflow. This is an approximate counterpart, not\n# a general exact-rational numeric-token validator. Fixed alpha uses small fractions.\noptions(digits=17)\nfixedSource<-function(kind){\n src<-file.path(dirname(sub(\"^--file=\",\"\",grep(\"^--file=\",commandArgs(),value=TRUE)[1])),\"data\")\nreadnative<-function(n)read.csv(file.path(src,n),check.names=FALSE,colClasses='character',na.strings=NULL,stringsAsFactors=FALSE)\nnum<-function(x){a<-suppressWarnings(as.numeric(x));a[x%in%c('','.')] <- NA_real_;a}\nroles<-function(d){n<-nrow(d);rank<-as.integer(d$splitRank);if(!identical(sort(rank),0:(n-1)))stop('splitRank permutation');planned<-c('test','calibration','train','train')[rank%%4+1];if(any(planned!=d$plannedRole))stop('planned roles');list(rank=rank,planned=planned)}\noriginal<-readnative('actual48-country-revised-original-2023-2024.csv');derived<-readnative('derived16-country-features-and-roles.csv');isos<-sort(unique(original$countryISO3));lookup<-function(iso,code,year){r<-original[original$countryISO3==iso&original$indicatorID==code&original$date==year,,drop=FALSE];if(nrow(r)!=1)stop('country identity');num(r$originalValueToken)}\ncr<-roles(derived);if(!identical(isos,derived$countryISO3))stop('country order');country<-list(id=paste0(isos,':2024'),sourceRow=isos,x=cbind(vapply(isos,lookup,numeric(1),code='NY.GDP.PCAP.KD',year='2023')/10000,vapply(isos,lookup,numeric(1),code='FP.CPI.TOTL.ZG',year='2023')/10),y=vapply(isos,lookup,numeric(1),code='NY.GDP.MKTP.KD.ZG',year='2024'),rank=cr$rank,planned=cr$planned,names=c('g','pi'),unit='annual GDP growth percentage points')\npd<-readnative('actual3613-NLS-original52-fields-and-conformal-frame.csv');pr<-roles(pd);person<-list(id=paste0('person-row:',pd$sourceRow),sourceRow=pd$sourceRow,x=cbind(num(pd$ed76),num(pd$age76)),y=num(pd$lwage76),rank=pr$rank,planned=pr$planned,names=c('ed76','age76'),unit='native trimmed1976log hourly wage')\ncd<-readnative('actual3150-churn-original14-fields-and-conformal-frame.csv');rr<-roles(cd);company<-list(id=paste0('customer-row:',cd$sourceRow),sourceRow=cd$sourceRow,x=cbind(num(cd[['Call  Failure']]),num(cd[['Seconds of Use']])),y=num(cd$Churn),rank=rr$rank,planned=rr$planned,names=c('CallFailure','SecondsUse'),unit='native Churn0/1')\nmodels<-list(country=country,person=person,company=company)\n\nmodels<-models[kind]\nalphaToken<-\"1/5\";ridgeToken<-\"1/100\"\nqnum<-function(s){v<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(v)==2)as.numeric(v[1])/as.numeric(v[2])else as.numeric(v)}\nalphaParts<-function(s){v<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(v)==2&&all(grepl('^[0-9]+$',v))){a<-as.numeric(v[1]);b<-as.numeric(v[2])}else if(grepl('^[0-9]+([.][0-9]{1,6})?$',s)){n<-if(grepl('.',s,fixed=TRUE))nchar(sub('^[^.]*[.]','',s))else 0;a<-as.numeric(gsub('.','',s,fixed=TRUE));b<-10^n}else stop('Base-R alpha needs small integer fraction or <=6decimal places');if(a<=0||a>=b||b>1e6)stop('Require0<alpha<1 with denominator<=1e6');c(a,b)}\nap<-alphaParts(alphaToken);alpha<-ap[1]/ap[2];lambda<-qnum(ridgeToken);if(!is.finite(lambda)||lambda<0)stop('nonnegative finite ridge required')\nnamesOut<-c('study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins');outputs<-setNames(lapply(namesOut,function(n)list()),namesOut)\nemit<-function(name,row)outputs[[name]][[length(outputs[[name]])+1L]]<<-row\nmetric<-function(kind,name,value,unit,arithmetic='binary64 approximation'){emit('study-metrics',list(kind=kind,metric=name,value=if(is.null(value))NA else value,unit=unit,defined=as.integer(!is.null(value)&&!is.na(value)),arithmetic=arithmetic))}\nfor(kind in names(models)){\n m<-models[[kind]];complete<-rowSums(is.na(m$x))==0&!is.na(m$y);role<-ifelse(complete,m$planned,'excluded');train<-which(role=='train');n<-length(train);stopifnot(n>0);meanX<-colMeans(m$x[train,,drop=FALSE]);scale<-apply(m$x[train,,drop=FALSE],2,function(x)diff(range(x)));scale[scale==0]<-1;Z<-cbind(1,sweep(sweep(m$x,2,meanX,'-'),2,scale,'/'));H<-crossprod(Z[train,,drop=FALSE])/n+diag(c(0,lambda,lambda));b<-as.vector(crossprod(Z[train,,drop=FALSE],m$y[train]))/n;qrfit<-qr(H,tol=1e-12,LAPACK=FALSE);theta<-qr.coef(qrfit,b);theta[is.na(theta)]<-0;minimum<-as.numeric(crossprod(theta,H%*%theta)/2-sum(theta*b)+sum(m$y[train]^2)/(2*n));beta<-theta[-1]/scale;intercept<-theta[1]-sum(beta*meanX);raw<-as.vector(Z%*%theta);pred<-if(kind=='company')pmax(0,pmin(1,raw))else raw;defined<-!is.na(pred);group<-if(kind=='person')ifelse(m$x[,1]<=12,'schooling-at-most12','schooling-over12')else if(kind=='company')ifelse(m$x[,1]==0,'zero-call-failures','positive-call-failures')else ifelse(m$x[,1]<=meanX[1],'GDPpc-at-most-training-mean','GDPpc-above-training-mean');group[is.na(raw)]<-'missing-X';cal<-which(role=='calibration'&defined&!is.na(m$y));score<-if(kind=='company')ifelse(m$y[cal]==1,1-pred[cal],pred[cal])else abs(m$y[cal]-pred[cal]);ordered<-order(score,seq_along(score));k<-ceiling((length(cal)+1)*(ap[2]-ap[1])/ap[2]);threshold<-if(k<=length(cal))score[ordered[k]]else Inf;unbounded<-is.infinite(threshold)\n for(j in seq_along(ordered)){slot<-ordered[j];i<-cal[slot];emit('calibration-scores',list(kind=kind,rank=j,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,calibrationIndex0=slot-1,score=score[slot],threshold=threshold,thresholdInfinite=as.integer(unbounded)))}\n for(j in 1:2)emit('training-coefficients',list(kind=kind,feature=m$names[j],mean=meanX[j],scale=scale[j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[1],nativeIntercept=intercept,rank=qrfit$rank,unique=as.integer(qrfit$rank==3),lambdaValue=lambda,minimumObjective=minimum))\n metrics<-list(sourceRows=length(role),trainingRows=n,calibrationScores=length(cal),testLabeledRows=sum(role=='test'&!is.na(m$y)),excludedRows=sum(role=='excluded'),alpha=alpha,ridge=lambda,quantileRank=k,threshold=threshold,minimumObjective=minimum);units<-c('rows','rows','unit-count scores','rows','rows','probability','transformed slope penalty','one-based rank',if(kind=='company')'dimensionless score'else m$unit,paste0('(',m$unit,') squared'))\n for(j in seq_along(metrics))metric(kind,names(metrics)[j],metrics[[j]],units[j],if(is.infinite(metrics[[j]]))'mathematical infinity'else if(j%in%c(1:5,8))'integer count'else'binary64 approximation')\n labeled<-defined&!is.na(m$y);covered<-rep(NA_integer_,length(role));lo<-hi<-width<-rep(NA_real_,length(role));setSize<-rep(NA_integer_,length(role));setLabels<-rep('',length(role))\n if(kind=='company'){\n  zero<-defined&(unbounded|pred<=threshold+1e-12);one<-defined&(unbounded|1-pred<=threshold+1e-12);setSize[defined]<-as.integer(zero[defined])+as.integer(one[defined]);setLabels[zero&!one]<-'0';setLabels[!zero&one]<-'1';setLabels[zero&one]<-'0|1';covered[labeled]<-as.integer((m$y[labeled]==0&zero[labeled])|(m$y[labeled]==1&one[labeled]))\n }else{lo[defined]<-pred[defined]-threshold;hi[defined]<-pred[defined]+threshold;width[defined]<-2*threshold;tol<-1e-12*pmax(1,abs(m$y[labeled]),abs(pred[labeled]),if(is.finite(threshold))abs(threshold)else 1);covered[labeled]<-as.integer(unbounded|abs(m$y[labeled]-pred[labeled])<=threshold+tol)}\n for(i in seq_along(role)){\n  emit('row-predictions',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,plannedRole=m$planned[i],role=role[i],group=group[i],actualY=m$y[i],rawLinear=raw[i],prediction=pred[i],predictionDefined=as.integer(defined[i]),threshold=threshold,thresholdInfinite=as.integer(unbounded),lower=lo[i],upper=hi[i],width=width[i],setLabels=setLabels[i],setSize=setSize[i],covered=covered[i],labeledPrediction=as.integer(labeled[i])))\n  emit('eligibility',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],plannedRole=m$planned[i],role=role[i],requiredComplete=as.integer(complete[i]),trainingUsed=as.integer(role[i]=='train'&complete[i]),reason=if(complete[i])''else'missing-required-field'))\n }\n for(rol in unique(role))for(gr in c('all',unique(group))){use<-which(role==rol&(gr=='all'|group==gr));def<-use[defined[use]];scored<-use[labeled[use]&!role[use]%in%c('excluded','unused')];nn<-length(def);ns<-length(scored);cv<-sum(covered[scored]);ub<-if(kind=='company')0 else sum(is.infinite(width[def]));emit('role-group-coverage',list(kind=kind,role=rol,group=gr,originalRows=length(use),definedPredictions=nn,scoredLabels=ns,coveredRows=cv,coverage=if(ns)cv/ns else NA_real_,meanSetSize=if(kind=='company'&&nn)mean(setSize[def])else NA_real_,meanIntervalWidth=if(kind!='company'&&nn)mean(width[def])else NA_real_,unboundedIntervals=ub))}\n if(kind=='company')for(rol in c('train','calibration','test')){\n  ix<-which(role==rol&labeled);pp<-pred[ix];yy<-m$y[ix];N<-length(ix);bin<-pmin(4,floor(pp*5));yb<-if(N)mean(yy)else NA_real_;ece<-rel<-res<-vp<-cp<-0\n  for(j in 0:4){take<-which(bin==j);nb<-length(take);pm<-if(nb)mean(pp[take])else NA_real_;ym<-if(nb)mean(yy[take])else NA_real_;v<-if(nb)mean((pp[take]-pm)^2)else NA_real_;co<-if(nb)mean((pp[take]-pm)*(yy[take]-ym))else NA_real_;emit('reliability-bins',list(kind=kind,role=rol,bin=j,lower=j/5,upper=(j+1)/5,rightClosed=as.integer(j==4),rows=nb,meanP=pm,frequencyY1=ym,gap=pm-ym,withinVarianceP=v,withinCovariancePY=co));if(nb){z<-nb/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*co}}\n  mm<-list(ECE=if(N)ece else NA_real_,Brier=if(N)mean((pp-yy)^2)else NA_real_,uncertainty=yb*(1-yb),resolution=if(N)res else NA_real_,reliability=if(N)rel else NA_real_,withinVarianceP=if(N)vp else NA_real_,withinCovariancePY=if(N)cp else NA_real_);for(name in names(mm))metric(kind,paste0(rol,':',name),mm[[name]],if(name=='ECE')'dimensionless'else'squared probability');prob<-ifelse(yy==1,pp,1-pp);ll<-if(!N)NA_real_ else if(any(prob==0))Inf else-mean(log(prob));metric(kind,paste0(rol,':meanLogLoss'),ll,'nats','binary64 approximation or genuine infinity')\n }\n}\n\noutputs\n}\n\n# New fixed-example numerical adapters. Not arbitrary exact-input validators.\nnum20<-function(v){s<-as.character(v);a<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(a)==2)as.numeric(a[1])/as.numeric(a[2])else as.numeric(s)}\nalpha20<-function(s){a<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(a)==2){n<-as.numeric(a[1]);d<-as.numeric(a[2])}else{n<-as.numeric(a[1]);d<-1};if(n<=0||n>=d)stop('alpha-must-be-strictly-between-zero-and-one');c(n,d)}\nquantile20<-function(scores,alpha){ap<-alpha20(alpha);keep<-which(!vapply(scores,is.null,logical(1)));vv<-vapply(scores[keep],num20,numeric(1));ix<-order(vv,keep);n<-length(vv);k<-((n+1)*(ap[2]-ap[1])+ap[2]-1)%/%ap[2];list(n=n,k=k,threshold=if(k>n)NULL else vv[ix[k]],infinite=k>n,ordered=lapply(ix,function(j)list(score=vv[j],index=keep[j]-1)))}\nlogPositive20<-function(v){s<-tolower(as.character(v));part<-strsplit(s,'e',fixed=TRUE)[[1]];mantissa<-as.numeric(part[1]);power<-if(length(part)==2)as.numeric(part[2])else 0;if(mantissa<=0)stop('fixed positive weight required');log(mantissa)+power*log(10)}\nscore20<-function(rows){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));lw<-vapply(rows,function(r)logPositive20(if(is.null(r$weight))1 else r$weight),numeric(1));mx<-max(lw);lm<-mx+log(sum(exp(lw-mx)));mass<-exp(lm);w<-exp(lw-lm);observed<-ifelse(y==1,p,1-p);genuine<-any(observed==0);loss<-ifelse(observed==1,0,-log(observed));terms<-lw-lm+log(loss);finite<-terms[is.finite(terms)];ll<-if(genuine)'+infinity'else if(length(finite)){top<-max(finite);exp(top+log(sum(exp(finite-top))))}else 0;bs<-sum(w*(p-y)^2);list(rows=lapply(seq_along(rows),function(i)list(p=p[i],y=y[i],w=w[i])),mass=mass,Brier=bs,meanLogLoss=ll,genuineInfinite=genuine,BrierPositive=any(p!=y))}\ncalibration20<-function(rows,B){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));N<-length(p);bin<-pmin(B-1,floor(p*B));yb<-mean(y);ece<-rel<-res<-vp<-cp<-0;out<-list()\n for(j in 0:(B-1)){ix<-which(bin==j);n<-length(ix);pm<-if(n)mean(p[ix])else NULL;ym<-if(n)mean(y[ix])else NULL;v<-if(n)mean((p[ix]-pm)^2)else NULL;c<-if(n)mean((p[ix]-pm)*(y[ix]-ym))else NULL;out[[j+1]]<-list(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c);if(n){z<-n/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*c}}\n list(rows=N,bins=out,Brier=mean((p-y)^2),ECE=ece,uncertainty=yb*(1-yb),resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=yb*(1-yb)-res+rel+vp-2*cp)}\npredict20<-function(a){q<-quantile20(a$scores,a$alpha);classification<-a$mode=='classification';rows<-list()\n for(i in seq_along(a$queries)){r<-a$queries[[i]];p<-num20(if(classification)r$p else r$center);y<-if(is.null(r$y))NULL else num20(r$y)\n  if(classification){labels<-if(q$infinite)0:1 else which(c(p,1-p)<=q$threshold)-1;lo<-hi<-width<-NULL;size<-length(labels);covered<-if(is.null(y))NULL else as.integer(y%in%labels)}else{labels<-NULL;size<-NULL;lo<-if(q$infinite)'-infinity'else p-q$threshold;hi<-if(q$infinite)'+infinity'else p+q$threshold;width<-if(q$infinite)'+infinity'else 2*q$threshold;covered<-if(is.null(y))NULL else as.integer(q$infinite||abs(y-p)<=q$threshold+1e-12)}\n  rows[[i]]<-list(id=if(is.null(r$id))as.character(i-1)else r$id,prediction=p,actualY=y,labels=as.list(labels),size=size,lower=lo,upper=hi,width=width,covered=covered)\n };scored<-Filter(function(r)!is.null(r$covered),rows);coverage<-if(length(scored))mean(vapply(scored,`[[`,numeric(1),'covered'))else NULL;list(quantile=q,rows=rows,scoredLabels=length(scored),coverage=coverage,meanSetSize=if(classification&&length(rows))mean(vapply(rows,`[[`,numeric(1),'size'))else NULL,meanWidth=if(!classification&&length(rows))if(q$infinite)'+infinity'else 2*q$threshold else NULL)}\nranklaw20<-function(a){v<-vapply(a$scores,num20,numeric(1));trials<-lapply(seq_along(v),function(i){q<-quantile20(as.list(v[-i]),a$alpha);list(heldout=i-1,score=v[i],k=q$k,threshold=q$threshold,infinite=q$infinite,covered=as.integer(q$infinite||v[i]<=q$threshold))});list(N=length(v),distinct=length(unique(v))==length(v),trials=trials,coverage=mean(vapply(trials,`[[`,numeric(1),'covered')))}\nfixedOperation<-function(api,a)switch(api,score=score20(a$rows),calibration=calibration20(a$rows,a$bins),quantile=quantile20(a$scores,a$alpha),predict=predict20(a),ranklaw=ranklaw20(a),realdata=fixedSource(a$kind))\nreportValues<-function(api,z){summary<-list();points<-list();add<-function(k,v,u)summary[[length(summary)+1]]<<-list(metric=k,value=if(is.null(v)||length(v)==0||anyNA(v))NULL else unname(v),unit=u);pt<-function(s,i,x,y)points[[length(points)+1]]<<-list(series=s,index=i,x=x,y=y)\n if(api=='score'){for(k in c('mass','Brier','meanLogLoss','genuineInfinite','BrierPositive'))add(k,z[[k]],switch(k,mass='analysis weight',Brier='squared probability',meanLogLoss='nats; numerical logarithm',genuineInfinite='indicator',BrierPositive='mathematical indicator'));for(i in seq_along(z$rows)){r<-z$rows[[i]];pt('squared error',i-1,i-1,(r$p-r$y)^2)}\n }else if(api=='calibration'){for(k in c('Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity'))add(k,z[[k]],if(k=='ECE')'probability'else'squared probability');for(r in z$bins){pt('bin probability',r$bin,r$bin,r$meanP);pt('bin outcome frequency',r$bin,r$bin,r$frequency)}\n }else if(api=='quantile'){add('n',z$n,'scores');add('k',z$k,'one-based rank');add('infinite',z$infinite,'mathematical indicator');add('threshold',if(z$infinite)'+infinity'else z$threshold,'score units');for(i in seq_along(z$ordered))pt('sorted score',i-1,i,z$ordered[[i]]$score)\n }else if(api=='predict'){for(k in c('scoredLabels','coverage','meanSetSize','meanWidth'))add(k,z[[k]],switch(k,scoredLabels='labels',coverage='fraction',meanSetSize='classes',meanWidth='outcome units'));add('thresholdInfinite',z$quantile$infinite,'mathematical indicator');for(i in seq_along(z$rows)){pt('predicted center or probability',i-1,i-1,z$rows[[i]]$prediction);pt('observed label or outcome',i-1,i-1,z$rows[[i]]$actualY)}\n }else if(api=='ranklaw'){add('N',z$N,'scores');add('distinct',z$distinct,'indicator');add('coverage',z$coverage,'fraction');for(r in z$trials)pt('held-out coverage',r$heldout,r$heldout,r$covered)\n }else{for(k in c('sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold')){r<-Filter(function(r)r$metric==k,z[['study-metrics']])[[1]];add(k,r$value,r$unit)};cv<-Filter(function(r)r$role=='test'&&r$group=='all',z[['role-group-coverage']])[[1]];for(k in c('coverage','meanSetSize','meanIntervalWidth'))add(k,cv[[k]],switch(k,coverage='fraction',meanSetSize='classes',meanIntervalWidth='outcome units'));for(i in seq_along(z[['calibration-scores']])){r<-z[['calibration-scores']][[i]];pt('all calibration scores',i-1,r$rank,r$score)}}\n list(summary=summary,points=points)}\n\nescapeXML<-function(s){s<-gsub('&','&amp;',s,fixed=TRUE);s<-gsub('<','&lt;',s,fixed=TRUE);s<-gsub('>','&gt;',s,fixed=TRUE);gsub('\"','&quot;',s,fixed=TRUE)}\nsvgPlot<-function(pp,title){\n xx<-vapply(pp,function(p)as.numeric(p$x),numeric(1));yy<-vapply(pp,function(p)as.numeric(p$y),numeric(1));xmin<-if(length(xx))min(xx)else 0;xmax<-if(length(xx))max(xx)else 1;ymin<-min(c(0,yy));ymax<-max(c(0,yy));if(xmin==xmax){xmin<-xmin-.5;xmax<-xmax+.5};if(ymin==ymax){ymin<-ymin-.5;ymax<-ymax+.5};pad<-(ymax-ymin)*.08;ymin<-ymin-pad;ymax<-ymax+pad;X<-function(x)82+(as.numeric(x)-xmin)/(xmax-xmin)*608;Y<-function(y)354-(as.numeric(y)-ymin)/(ymax-ymin)*290\n out<-paste0('<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"',escapeXML(title),'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">',escapeXML(title),'</text>')\n for(j in 0:4){y<-ymin+(ymax-ymin)*j/4;x<-xmin+(xmax-xmin)*j/4;out<-paste0(out,'<line x1=\"82\" y1=\"',Y(y),'\" x2=\"690\" y2=\"',Y(y),'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"',Y(y)+4,'\" text-anchor=\"end\">',sprintf('%.3g',y),'</text><text x=\"',X(x),'\" y=\"380\" text-anchor=\"middle\">',sprintf('%.3g',x),'</text>')}\n ss<-unique(vapply(pp,`[[`,character(1),'series'));cols<-c('#0f766e','#c76622','#4f46e5','#b23857')\n for(j in seq_along(ss)){rr<-Filter(function(p)p$series==ss[j],pp);xy<-vapply(rr,function(p)sprintf('%.6f,%.6f',X(p$x),Y(p$y)),character(1));col<-cols[(j-1)%%4+1];out<-paste0(out,'<polyline fill=\"none\" stroke=\"',col,'\" stroke-width=\"1.5\" points=\"',paste(xy,collapse=' '),'\"/>');for(p in rr)out<-paste0(out,'<circle cx=\"',sprintf('%.6f',X(p$x)),'\" cy=\"',sprintf('%.6f',Y(p$y)),'\" r=\"2.6\" fill=\"',col,'\"><title>',escapeXML(ss[j]),': ',escapeXML(p$y),'</title></circle>');out<-paste0(out,'<text x=\"',82+((j-1)%%2)*310,'\" y=\"',432+floor((j-1)/2)*23,'\" fill=\"',col,'\">',escapeXML(ss[j]),'</text>')}\n paste0(out,'<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>')\n}\n\ntoJSON<-function(x){\n if(is.null(x))return('null');if(is.list(x)){v<-vapply(x,toJSON,character(1));if(!is.null(names(x)))paste0('{',paste(paste0(vapply(names(x),toJSON,character(1)),':',v),collapse=','),'}')else paste0('[',paste(v,collapse=','),']')}\n else if(length(x)!=1){if(!is.null(names(x)))toJSON(as.list(x))else paste0('[',paste(vapply(as.list(x),toJSON,character(1)),collapse=','),']')}\n else if(is.na(x))'null'else if(is.logical(x))if(x)'true'else'false'else if(is.numeric(x))if(is.finite(x))sprintf('%.17g',x)else'null'else paste0('\"',gsub('\\n','\\\\n',gsub('\"','\\\\\"',gsub('\\\\','\\\\\\\\',x,fixed=TRUE),fixed=TRUE),fixed=TRUE),'\"')\n}\n\nFIXED<-list(\"api\"=\"score\",\"variant\"=\"genuine-infinite\",\"title\"=\"Wrong endpoint: genuine infinite log loss\",\"input\"=list(\"rows\"=list(list(\"p\"=\"0\",\"y\"=\"1\"),list(\"p\"=\"1\",\"y\"=\"1\"))),\"expectedFailure\"=FALSE)\n\nargs<-commandArgs(trailingOnly=TRUE);out<-if(length(args))args[1]else stop('NEW output directory required');if(dir.exists(out))stop('Preserve previous output directory');dir.create(out,recursive=TRUE)\nz<-fixedOperation(FIXED$api,FIXED$input);rr<-reportValues(FIXED$api,z)\nwriteLines(toJSON(list(arithmetic='BaseR numerical counterpart; QR and membership1e-12, log-domain tiny weights; source splitRank read from factualCSV',result=z)),file.path(out,'full.json'),useBytes=TRUE)\nsums<-do.call(rbind,lapply(rr$summary,function(row)data.frame(metric=row$metric,value=if(is.null(row$value))''else if(is.logical(row$value))as.character(as.integer(row$value))else format(row$value,digits=17,scientific=NA,trim=TRUE),unit=row$unit,defined=as.integer(!is.null(row$value)),stringsAsFactors=FALSE)))\npoints<-do.call(rbind,lapply(rr$points,function(p)data.frame(series=p$series,index=p$index,x=p$x,y=if(is.null(p$y))NA_real_ else p$y,defined=as.integer(!is.null(p$y)),stringsAsFactors=FALSE)))\nwrite.csv(sums,file.path(out,'summary.csv'),row.names=FALSE,na='');write.csv(points,file.path(out,'plot-points.csv'),row.names=FALSE,na='');writeLines(svgPlot(Filter(function(p)!is.null(p$y),rr$points),FIXED$title),file.path(out,'plot.svg'),useBytes=TRUE);cat(FIXED$api,'/',FIXED$variant,'\\n',sep='')\n",
        "returnCode": 0,
        "stdout": "score/genuine-infinite\r\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed ",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/r-score-genuine-infinite-result",
        "kind": null,
        "inputFiles": [],
        "files": [
          {
            "file": "ml20-code/r-score-genuine-infinite-result/full.json",
            "sha256": "9ba664cd01650dcb38a87adde418745b83da894ffe2ef72a73ddba10173c43a5",
            "bytes": 289
          },
          {
            "file": "ml20-code/r-score-genuine-infinite-result/plot-points.csv",
            "sha256": "daea7047bfa0f02bbd6e6130f44e52c607aa7fae28d458815445f61d10c8f255",
            "bytes": 86
          },
          {
            "file": "ml20-code/r-score-genuine-infinite-result/plot.svg",
            "sha256": "12fa510f637b705b1dfbb3aaba4dcd09f027d9b6613cc4dabdd40eb18799166d",
            "bytes": 1650
          },
          {
            "file": "ml20-code/r-score-genuine-infinite-result/summary.csv",
            "sha256": "a1780312477e73563057fe82958dcf86605ef802180367bc92b1ac029af32aad",
            "bytes": 248
          },
          {
            "file": "ml20-code/r-score-genuine-infinite-result/stdout.txt",
            "sha256": "3533c7a44eddd2d91b6f3be84e937c151d7f18e269c254dc481782feb6e297f3",
            "bytes": 24
          },
          {
            "file": "ml20-code/r-score-genuine-infinite-result/stderr.txt",
            "sha256": "b807bd2d0f7060ea384b0ac2317cda2d63a4f59f63b4a901b9e665fead79627d",
            "bytes": 182
          }
        ],
        "summaryRows": [
          {
            "metric": "mass",
            "value": "2",
            "unit": "analysis weight",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "2",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "Brier",
            "value": "0.5",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.5",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "meanLogLoss",
            "value": "+infinity",
            "unit": "nats; numerical logarithm",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "+infinity",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": true,
            "arithmetic": "Numerical logarithm/display approximation"
          },
          {
            "metric": "genuineInfinite",
            "value": "1",
            "unit": "indicator",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "1",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "BrierPositive",
            "value": "1",
            "unit": "mathematical indicator",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "1",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          }
        ],
        "plotRows": [
          {
            "series": "squared error",
            "index": 0,
            "x": "0",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "squared error",
            "index": 1,
            "x": "1",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          }
        ],
        "plotFile": "ml20-code/r-score-genuine-infinite-result/plot.svg",
        "fullResultFile": "ml20-code/r-score-genuine-infinite-result/full.json",
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      }
    }
  },
  "calibration": {
    "python": {
      "bins-2": {
        "api": "calibration",
        "variant": "bins-2",
        "language": "python",
        "title": "Same observations, 2 probability bins",
        "input": {
          "rows": [
            {
              "p": "1/10",
              "y": "0"
            },
            {
              "p": "1/5",
              "y": "1"
            },
            {
              "p": "4/5",
              "y": "1"
            },
            {
              "p": "9/10",
              "y": "1"
            }
          ],
          "bins": 2
        },
        "expectedFailure": false,
        "codeFile": "ml20-code/calibration-bins-2.py",
        "codeSHA256": "5f0fa1c42d8f4df5b24feb83c0a2c78778b93127dfbdf4aff7f4468c2d80ff98",
        "code": "\"\"\"ML20 standalone fixed example, not an arbitrary-input validator.\nFinite Python Fraction algebra; natural logs use Decimal1800 approximation\nthen a final binary64 display projection. Realdata reads4factual CSVs only,\nreusing the frozen public reader/fit implementation by value; all other inputs\nare complete fixed literals. No engine/model/computed/checker imported.\nRun: python this-file.py NEW-OUTPUT\n\"\"\"\nfrom pathlib import Path\nimport csv,json,hashlib,sys,math,html\nif hasattr(sys,'set_int_max_str_digits'):sys.set_int_max_str_digits(100000)\n\"\"\"Owned standalone exact finite optimization primitives for ML19 public programs.\nThis is an author implementation, never an independent numerical oracle.\n\"\"\"\nfrom fractions import Fraction as Q\ndef number(v):return v if isinstance(v,Q)else Q(str(v))\ndef dot(a,b):return sum((x*y for x,y in zip(a,b)),Q(0))\ndef frame(rows,p=2,scale='range'):\n rr=[]\n for i,r in enumerate(rows):\n  x=[None if v is None else number(v)for v in r['x']];y=None if r['y']is None else number(r['y']);w=number(r.get('weight',1));role=r.get('role','train');rr.append(dict(id=r.get('id','row:'+str(i+1)),index=i,x=x,y=y,w=w,role=role,eligible=y is not None and all(v is not None for v in x)and w>0))\n train=[r for r in rr if r['role']=='train'and r['eligible']];W=sum((r['w']for r in train),Q(0))\n if not W:return dict(defined=False,p=p,rows=rr,train=[],W=W)\n mean=[sum(r['w']*r['x'][j]for r in train)/W for j in range(p)];ranges=[max(r['x'][j]for r in train)-min(r['x'][j]for r in train)or Q(1)for j in range(p)];scales=ranges if scale=='range'else[Q(1)]*p\n for r in rr:r['z']=None if None in r['x']else[Q(1)]+[(r['x'][j]-mean[j])/scales[j]for j in range(p)]\n return dict(defined=True,p=p,rows=rr,train=train,W=W,mean=mean,ranges=ranges,scales=scales,meanY=sum(r['w']*r['y']for r in train)/W)\ndef quadratic(f,lam=Q(0),role='train'):\n rr=[r for r in f['rows']if r['role']==role and r['eligible']];W=sum((r['w']for r in rr),Q(0));n=f['p']+1\n if not W:return None\n H=[[sum(r['w']*r['z'][j]*r['z'][k]for r in rr)/W+(lam if j==k and j else 0)for k in range(n)]for j in range(n)];b=[sum(r['w']*r['y']*r['z'][j]for r in rr)/W for j in range(n)];d=sum(r['w']*r['y']**2 for r in rr)/(2*W);return H,b,d\ndef state(q,theta):\n H,b,d=q;gradient=[dot(row,theta)-bb for row,bb in zip(H,b)];return dict(theta=theta,objective=dot(theta,[dot(row,theta)for row in H])/2-dot(theta,b)+d,gradient=gradient,gradientNormSquared=dot(gradient,gradient))\ndef solve(H,b):\n n=len(b);A=[row[:]+[bb]for row,bb in zip(H,b)];piv=[];row=0\n for j in range(n):\n  k=next((i for i in range(row,n)if A[i][j]),None)\n  if k is None:continue\n  A[row],A[k]=A[k],A[row];z=A[row][j];A[row]=[v/z for v in A[row]]\n  for i in range(n):\n   if i!=row:\n    z=A[i][j];A[i]=[v-z*u for v,u in zip(A[i],A[row])]\n  piv.append(j);row+=1\n  if row==n:break\n assert not any(not any(r[:n])and r[n]for r in A)\n beta=[Q(0)]*n\n for i,j in enumerate(piv):beta[j]=A[i][n]\n nullspace=[]\n for j in range(n):\n  if j not in piv:\n   v=[Q(0)]*n;v[j]=Q(1)\n   for i,k in enumerate(piv):v[k]=-A[i][j]\n   nullspace.append(v)\n return dict(rank=len(piv),particular=beta,nullspace=nullspace,unique=len(piv)==n)\n\n\ndef fixed_source(kind):\n SRC=Path(__file__).resolve().parent/\"data\"\n read=lambda n:list(csv.DictReader((SRC/n).open(encoding='utf8',newline='')))\n def native(v):return None if v in['','.']else v\n\n models={};original=read('actual48-country-revised-original-2023-2024.csv');lookup={(r['countryISO3'],r['indicatorID'],r['date']):r for r in original};rows=[]\n for iso in sorted({r['countryISO3']for r in original}):\n  g=lookup[iso,'NY.GDP.PCAP.KD','2023'];p=lookup[iso,'FP.CPI.TOTL.ZG','2023'];y=lookup[iso,'NY.GDP.MKTP.KD.ZG','2024'];rows.append(dict(id=iso+':2024',x=[None if not g['originalValueToken']else str(number(g['originalValueToken'])/10000),None if not p['originalValueToken']else str(number(p['originalValueToken'])/10)],y=native(y['originalValueToken']),sourceRow=iso))\n models['country']=dict(rows=rows,names=['g','pi'],unit='annual GDP growth percentage points')\n for kind,file,keys,ykey,ID in [('person','actual3613-NLS-original52-fields-and-conformal-frame.csv',['ed76','age76'],'lwage76','person-row:'),('company','actual3150-churn-original14-fields-and-conformal-frame.csv',['Call  Failure','Seconds of Use'],'Churn','customer-row:')]:\n  source=read(file);models[kind]=dict(rows=[dict(id=ID+r['sourceRow'],sourceRow=r['sourceRow'],x=[native(r[k])for k in keys],y=native(r[ykey]))for r in source],names=['ed76','age76']if kind=='person'else['CallFailure','SecondsUse'],unit='native trimmed1976log hourly wage'if kind=='person'else'native Churn0/1')\n for kind,m in models.items():\n  for rank,r in enumerate(sorted(m['rows'],key=lambda r:(hashlib.sha256(('ML20|'+kind+'|'+r['id']).encode()).digest(),r['id']))):r.update(splitRank=rank,plannedRole=['test','calibration','train','train'][rank%4]);r['role']=r['plannedRole']if r['y']is not None and None not in r['x']else'excluded';r['weight']='1'\n  m['trainingIDs']=[r['id']for r in sorted(m['rows'],key=lambda r:r['splitRank'])if r['role']=='train']\n\n models={kind:models[kind]}\n # New public actual-source study; exact finite Fraction fit/rank/membership.\n # Default single declared model, not a hyperparameter Cartesian dump.\n from decimal import Decimal,localcontext\n from collections import Counter\n outputs={k:[]for k in['study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins']}\n alpha=number('1/5');lam=number('1/100')\n if not 0<alpha<1 or lam<0:raise ValueError('Require0<alpha<1 and nonnegative ridge')\n def metric(kind,name,value,unit,arithmetic='exact rational'):\n  outputs['study-metrics'].append(dict(kind=kind,metric=name,value=''if value is None else value,unit=unit,defined=int(value is not None),arithmetic=arithmetic))\n def bins(rr,B=5):\n  groups=[[]for _ in range(B)]\n  for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n  n=len(rr);yb=sum((r['y']for r in rr),Q(0))/n if n else None;ece=rel=res=var=cov=Q(0);result=[]\n  for j,gg in enumerate(groups):\n   nn=len(gg);pm=sum((r['p']for r in gg),Q(0))/nn if nn else None;ym=sum((r['y']for r in gg),Q(0))/nn if nn else None;v=sum(((r['p']-pm)**2 for r in gg),Q(0))/nn if nn else None;co=sum(((r['p']-pm)*(r['y']-ym)for r in gg),Q(0))/nn if nn else None\n   result.append(dict(bin=j,lower=Q(j,B),upper=Q(j+1,B),rightClosed=int(j==B-1),rows=nn,meanP=pm,frequencyY1=ym,gap=None if not nn else pm-ym,withinVarianceP=v,withinCovariancePY=co))\n   if nn:weight=Q(nn,n);ece+=weight*abs(pm-ym);rel+=weight*(pm-ym)**2;res+=weight*(ym-yb)**2;var+=weight*v;cov+=weight*co\n  return result,dict(ECE=ece if n else None,Brier=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/n if n else None,uncertainty=yb*(1-yb)if n else None,resolution=res if n else None,reliability=rel if n else None,withinVarianceP=var if n else None,withinCovariancePY=cov if n else None)\n def meanlog(rr):\n  if not rr:return None\n  pp=[r['p']if r['y']else 1-r['p']for r in rr]\n  if any(not p for p in pp):return'+infinity'\n  with localcontext()as ctx:\n   ctx.prec=60;return str(-sum(((Decimal(p.numerator)/Decimal(p.denominator)).ln()for p in pp),Decimal(0))/len(pp))\n for kind,m in models.items():\n  f=frame(m['rows']);n=len(f['train']);assert n>0;H,b,d=quadratic(f,lam);fit=solve(H,b);theta=fit['particular'];minimum=state((H,b,d),theta)['objective'];beta=[theta[j+1]/f['scales'][j]for j in range(2)];intercept=theta[0]-dot(beta,f['mean']);rr=[]\n  for r in f['rows']:\n   native=m['rows'][r['index']];raw=None if r['z']is None else dot(r['z'],theta);pred=None if raw is None else max(Q(0),min(Q(1),raw))if kind=='company'else raw;group='missing-X'if r['z']is None else('schooling-at-most12'if r['x'][0]<=12 else'schooling-over12')if kind=='person'else('zero-call-failures'if r['x'][0]==0 else'positive-call-failures')if kind=='company'else('GDPpc-at-most-training-mean'if r['x'][0]<=f['mean'][0]else'GDPpc-above-training-mean');rr.append(dict(id=r['id'],sourceRow=native['sourceRow'],sourceIndex0=r['index'],plannedRole=native['plannedRole'],role=r['role'],group=group,y=r['y'],raw=raw,prediction=pred,eligible=r['eligible']))\n  cal=[r for r in rr if r['role']=='calibration'and r['prediction']is not None and r['y']is not None]\n  for i,r in enumerate(cal):r['calibrationIndex0']=i;r['score']=(1-r['prediction']if r['y']else r['prediction'])if kind=='company'else abs(r['y']-r['prediction'])\n  ordered=sorted(cal,key=lambda r:(r['score'],r['calibrationIndex0']));rankQ=(len(cal)+1)*(1-alpha);k=(rankQ.numerator+rankQ.denominator-1)//rankQ.denominator;threshold=ordered[k-1]['score']if k<=len(cal)else None;unbounded=threshold is None\n  for j,r in enumerate(ordered,1):outputs['calibration-scores'].append(dict(kind=kind,rank=j,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],calibrationIndex0=r['calibrationIndex0'],score=r['score'],threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded)))\n  for j,name in enumerate(m['names']):outputs['training-coefficients'].append(dict(kind=kind,feature=name,mean=f['mean'][j],scale=f['scales'][j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[0],nativeIntercept=intercept,rank=fit['rank'],unique=int(fit['unique']),lambdaValue=lam,minimumObjective=minimum))\n  for name,value,unit in[('sourceRows',len(rr),'rows'),('trainingRows',n,'rows'),('calibrationScores',len(cal),'unit-count scores'),('testLabeledRows',sum(r['role']=='test'and r['y']is not None for r in rr),'rows'),('excludedRows',sum(r['role']=='excluded'for r in rr),'rows'),('alpha',alpha,'probability'),('ridge',lam,'transformed slope penalty'),('quantileRank',k,'one-based rank'),('threshold','+infinity'if unbounded else threshold,'dimensionless score'if kind=='company'else m['unit']),('minimumObjective',minimum,'('+m['unit']+') squared')]:metric(kind,name,value,unit,'mathematical infinity'if value=='+infinity'else'exact rational')\n  for r in rr:\n   defined=r['prediction']is not None;labeled=defined and r['y']is not None\n   if not defined:lo=hi=width=size=None;labels='';covered=None\n   elif kind=='company':\n    labelsList=[j for j,s in enumerate([r['prediction'],1-r['prediction']])if unbounded or s<=threshold];labels='|'.join(map(str,labelsList));size=len(labelsList);lo=hi=width=None;covered=int(int(r['y'])in labelsList)if labeled else None\n   else:lo='-infinity'if unbounded else r['prediction']-threshold;hi='+infinity'if unbounded else r['prediction']+threshold;width='+infinity'if unbounded else 2*threshold;labels='';size=None;covered=int(unbounded or abs(r['y']-r['prediction'])<=threshold)if labeled else None\n   r.update(defined=defined,labeled=labeled,lower=lo,upper=hi,width=width,labels=labels,size=size,covered=covered)\n   outputs['row-predictions'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],plannedRole=r['plannedRole'],role=r['role'],group=r['group'],actualY=r['y'],rawLinear=r['raw'],prediction=r['prediction'],predictionDefined=int(defined),threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded),lower=lo,upper=hi,width=width,setLabels=labels,setSize=size,covered=covered,labeledPrediction=int(labeled)))\n   outputs['eligibility'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],plannedRole=r['plannedRole'],role=r['role'],requiredComplete=int(r['eligible']),trainingUsed=int(r['role']=='train'and r['eligible']),reason='missing-required-field'if not r['eligible']else''))\n  roles=list(dict.fromkeys(r['role']for r in rr));groups=list(dict.fromkeys(r['group']for r in rr))\n  for role in roles:\n   for group in['all']+groups:\n    use=[r for r in rr if r['role']==role and(group=='all'or r['group']==group)];defined=[r for r in use if r['defined']];scored=[r for r in use if r['labeled']and role not in['excluded','unused']];covered=sum(r['covered']for r in scored);nn=len(defined);nscore=len(scored);unboundedCount=sum(r['width']=='+infinity'for r in defined);size=Q(sum(r['size']for r in defined),nn)if kind=='company'and nn else None;width=('+infinity'if unboundedCount else sum(r['width']for r in defined)/nn)if kind!='company'and nn else None\n    outputs['role-group-coverage'].append(dict(kind=kind,role=role,group=group,originalRows=len(use),definedPredictions=nn,scoredLabels=nscore,coveredRows=covered,coverage=Q(covered,nscore)if nscore else None,meanSetSize=size,meanIntervalWidth=width,unboundedIntervals=unboundedCount))\n  if kind=='company':\n   for role in['train','calibration','test']:\n    use=[dict(p=r['prediction'],y=r['y'])for r in rr if r['role']==role and r['labeled']];bb,mm=bins(use)\n    for row in bb:outputs['reliability-bins'].append(dict(kind=kind,role=role,**row))\n    for name,value in mm.items():metric(kind,role+':'+name,value,'dimensionless'if name=='ECE'else'squared probability')\n    metric(kind,role+':meanLogLoss',meanlog(use),'nats','Decimal60 approximation or genuine infinity')\n return outputs\n\n# Owned ML20 fixed-example adapters. Finite rational calculations; logs approximate.\nfrom fractions import Fraction as Q\nfrom decimal import Decimal,localcontext\nimport math\ndef num(v):return v if isinstance(v,Q)else Q(str(v))\ndef ceilq(q):return-((-q.numerator)//q.denominator)\ndef fixed_quantile(scores,alpha):\n a=num(alpha)\n if not 0<a<1:raise ValueError('alpha-must-be-strictly-between-zero-and-one')\n ordered=sorted([(num(v),i)for i,v in enumerate(scores)if v is not None]);n=len(ordered);k=ceilq((n+1)*(1-a));q=None if k>n else ordered[k-1][0]\n return dict(n=n,k=k,threshold=q,infinite=q is None,ordered=ordered)\ndef fixed_score(rows):\n rr=[dict(p=num(r['p']),y=num(r['y']),w=num(r.get('weight',1)))for r in rows];rr=[r for r in rr if r['w']>0];mass=sum((r['w']for r in rr),Q(0));brier=sum((r['w']*(r['p']-r['y'])**2 for r in rr),Q(0))/mass if mass else None;logs=[];genuine=False\n with localcontext()as ctx:\n  ctx.prec=1800\n  total=Decimal(0)\n  for r in rr:\n   p=r['p']if r['y']else 1-r['p']\n   if not p:genuine=True;logs.append('+infinity');continue\n   loss=-(Decimal(p.numerator)/Decimal(p.denominator)).ln();logs.append(str(loss));w=r['w']/mass;total+=Decimal(w.numerator)/Decimal(w.denominator)*loss\n  display='+infinity'if genuine else None if not mass else repr(float(total));raw='+infinity'if genuine else None if not mass else str(total)\n return dict(rows=rr,mass=mass,Brier=brier,meanLogLoss=display,naturalLogApprox1800=raw,individualLogLoss=logs,genuineInfinite=genuine,BrierPositive=brier is not None and brier>0)\ndef fixed_calibration(rows,B):\n rr=[dict(p=num(r['p']),y=num(r['y']))for r in rows];N=len(rr);yb=sum((r['y']for r in rr),Q(0))/N;groups=[[]for _ in range(B)]\n for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n result=[];ece=rel=res=vp=cp=Q(0)\n for j,g in enumerate(groups):\n  n=len(g);pm=sum((r['p']for r in g),Q(0))/n if n else None;ym=sum((r['y']for r in g),Q(0))/n if n else None;v=sum(((r['p']-pm)**2 for r in g),Q(0))/n if n else None;c=sum(((r['p']-pm)*(r['y']-ym)for r in g),Q(0))/n if n else None;result.append(dict(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c))\n  if n:z=Q(n,N);ece+=z*abs(pm-ym);rel+=z*(pm-ym)**2;res+=z*(ym-yb)**2;vp+=z*v;cp+=z*c\n bs=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/N;u=yb*(1-yb)\n return dict(rows=N,bins=result,Brier=bs,ECE=ece,uncertainty=u,resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=u-res+rel+vp-2*cp)\ndef fixed_predict(a):\n q=fixed_quantile(a['scores'],a['alpha']);out=[];classification=a['mode']=='classification'\n for i,row in enumerate(a['queries']):\n  p=num(row['p']if classification else row['center']);y=None if row.get('y')is None else num(row['y']);threshold=q['threshold'];unbounded=q['infinite']\n  if classification:labels=[v for v,s in[(0,p),(1,1-p)]if unbounded or s<=threshold];lo=hi=width=None;size=len(labels);covered=None if y is None else int(int(y)in labels)\n  else:labels=None;size=None;lo='-infinity'if unbounded else p-threshold;hi='+infinity'if unbounded else p+threshold;width='+infinity'if unbounded else 2*threshold;covered=None if y is None else int(unbounded or abs(y-p)<=threshold)\n  out.append(dict(id=row.get('id',str(i)),prediction=p,actualY=y,labels=labels,size=size,lower=lo,upper=hi,width=width,covered=covered))\n scored=[r for r in out if r['covered']is not None];coverage=Q(sum(r['covered']for r in scored),len(scored))if scored else None;meanSize=Q(sum(r['size']for r in out),len(out))if classification and out else None;meanWidth=('+infinity'if q['infinite']else 2*q['threshold'])if not classification and out else None\n return dict(quantile=q,rows=out,scoredLabels=len(scored),coverage=coverage,meanSetSize=meanSize,meanWidth=meanWidth)\ndef fixed_ranklaw(a):\n scores=list(map(num,a['scores']));trials=[]\n for i,y in enumerate(scores):q=fixed_quantile(scores[:i]+scores[i+1:],a['alpha']);trials.append(dict(heldout=i,score=y,k=q['k'],threshold=q['threshold'],infinite=q['infinite'],covered=int(q['infinite']or y<=q['threshold'])))\n return dict(N=len(scores),distinct=len(set(scores))==len(scores),trials=trials,coverage=Q(sum(t['covered']for t in trials),len(trials)))\ndef fixed_operation(api,a):\n return fixed_score(a['rows'])if api=='score'else fixed_calibration(a['rows'],a['bins'])if api=='calibration'else fixed_quantile(a['scores'],a['alpha'])if api=='quantile'else fixed_predict(a)if api=='predict'else fixed_ranklaw(a)if api=='ranklaw'else fixed_source(a['kind'])\ndef report_values(api,z):\n summary=[];series=[]\n def add(k,v,u):summary.append((k,v,u))\n if api=='score':\n  for k,u in[('mass','analysis weight'),('Brier','squared probability'),('meanLogLoss','nats; numerical logarithm'),('genuineInfinite','indicator'),('BrierPositive','mathematical indicator')]:add(k,z[k],u)\n  series=[('squared error',[(i,(r['p']-r['y'])**2)for i,r in enumerate(z['rows'])])]\n elif api=='calibration':\n  for k in['Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity']:add(k,z[k],'probability'if k=='ECE'else'squared probability')\n  series=[('bin probability',[(r['bin'],r['meanP'])for r in z['bins']]),('bin outcome frequency',[(r['bin'],r['frequency'])for r in z['bins']])]\n elif api=='quantile':\n  for k,u in[('n','scores'),('k','one-based rank'),('infinite','mathematical indicator')]:add(k,z[k],u)\n  add('threshold','+infinity'if z['infinite']else z['threshold'],'score units');series=[('sorted score',[(i+1,v)for i,(v,index)in enumerate(z['ordered'])])]\n elif api=='predict':\n  for k,u in[('scoredLabels','labels'),('coverage','fraction'),('meanSetSize','classes'),('meanWidth','outcome units')]:add(k,z[k],u)\n  add('thresholdInfinite',z['quantile']['infinite'],'mathematical indicator');series=[('predicted center or probability',[(i,r['prediction'])for i,r in enumerate(z['rows'])]),('observed label or outcome',[(i,r['actualY'])for i,r in enumerate(z['rows'])])]\n elif api=='ranklaw':\n  for k,u in[('N','scores'),('distinct','indicator'),('coverage','fraction')]:add(k,z[k],u)\n  series=[('held-out coverage',[(r['heldout'],r['covered'])for r in z['trials']])]\n else:\n  mt={r['metric']:r for r in z['study-metrics']};cv=next(r for r in z['role-group-coverage']if r['role']=='test'and r['group']=='all')\n  for k in['sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold']:add(k,mt[k]['value'],mt[k]['unit'])\n  for k,u in[('coverage','fraction'),('meanSetSize','classes'),('meanIntervalWidth','outcome units')]:add(k,cv[k],u)\n  series=[('all calibration scores',[(r['rank'],r['score'])for r in z['calibration-scores']])]\n return summary,series\n\nnumber=num\n\nFIXED={'api': 'calibration', 'variant': 'bins-2', 'title': 'Same observations, 2 probability bins', 'input': {'rows': [{'p': '1/10', 'y': '0'}, {'p': '1/5', 'y': '1'}, {'p': '4/5', 'y': '1'}, {'p': '9/10', 'y': '1'}], 'bins': 2}, 'expectedFailure': False}\n\ndef fixed_svg(points,title):\n good=[p for p in points if p['y'] is not None];xx=[float(p['x'])for p in good];yy=[float(p['y'])for p in good];xmin=min(xx)if xx else 0;xmax=max(xx)if xx else 1;ymin=min([0]+yy);ymax=max([0]+yy)\n if xmin==xmax:xmin-=.5;xmax+=.5\n if ymin==ymax:ymin-=.5;ymax+=.5\n pad=(ymax-ymin)*.08;ymin-=pad;ymax+=pad;X=lambda x:82+(float(x)-xmin)/(xmax-xmin)*608;Y=lambda y:354-(float(y)-ymin)/(ymax-ymin)*290;e=html.escape\n out=['<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"'+e(title)+'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">'+e(title)+'</text>']\n for j in range(5):\n  y=ymin+(ymax-ymin)*j/4;x=xmin+(xmax-xmin)*j/4;out.append('<line x1=\"82\" y1=\"'+str(Y(y))+'\" x2=\"690\" y2=\"'+str(Y(y))+'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"'+str(Y(y)+4)+'\" text-anchor=\"end\">'+format(y,'.3g')+'</text><text x=\"'+str(X(x))+'\" y=\"380\" text-anchor=\"middle\">'+format(x,'.3g')+'</text>')\n series=list(dict.fromkeys(p['series']for p in good))\n for j,s in enumerate(series):\n  pp=[p for p in good if p['series']==s];color=['#0f766e','#c76622','#4f46e5','#b23857'][j%4];out.append('<polyline fill=\"none\" stroke=\"'+color+'\" stroke-width=\"1.5\" points=\"'+' '.join(format(X(p['x']),'.6f')+','+format(Y(p['y']),'.6f')for p in pp)+'\"/>')\n  for p in pp:out.append('<circle cx=\"'+format(X(p['x']),'.6f')+'\" cy=\"'+format(Y(p['y']),'.6f')+'\" r=\"2.6\" fill=\"'+color+'\"><title>'+e(s+': '+str(p['y']))+'</title></circle>')\n  out.append('<text x=\"'+str(82+(j%2)*310)+'\" y=\"'+str(432+(j//2)*23)+'\" fill=\"'+color+'\">'+e(s)+'</text>')\n out.append('<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>');return''.join(out)\n\nOUT=Path(sys.argv[1]);OUT.mkdir(parents=True,exist_ok=False)\nresult=fixed_operation(FIXED['api'],FIXED['input']);summary,series=report_values(FIXED['api'],result)\ndef encode(v):\n if isinstance(v,Q):return str(v)\n if isinstance(v,dict):return{k:encode(x)for k,x in v.items()}\n if isinstance(v,(list,tuple)):return[encode(x)for x in v]\n return v\n(OUT/'full.json').write_text(json.dumps(dict(arithmetic='Exact finite Fraction algebra except approximate natural logs; declared fixed examples, no exchangeability certification',result=encode(result)),ensure_ascii=False,indent=2)+'\\n',encoding='utf8')\nsummaryRows=[dict(metric=m,value=''if v is None else str(int(v))if isinstance(v,bool)else str(v),unit=u,defined=int(v is not None))for m,v,u in summary]\npoints=[dict(series=name,index=i,x=str(x),y=''if y is None else str(y),defined=int(y is not None))for name,pp in series for i,(x,y)in enumerate(pp)]\nfor name,rows in [('summary',summaryRows),('plot-points',points)]:\n with(OUT/(name+'.csv')).open('w',encoding='utf8',newline='')as f:writer=csv.DictWriter(f,fieldnames=list(rows[0]));writer.writeheader();writer.writerows(rows)\n(OUT/'plot.svg').write_text(fixed_svg([dict(p,x=number(p['x']),y=None if not p['defined']else number(p['y']))for p in points],FIXED['title']),encoding='utf8');print(FIXED['api']+'/'+FIXED['variant'])\n",
        "returnCode": 0,
        "stdout": "calibration/bins-2\r\n",
        "stderr": "",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/python-calibration-bins-2-result",
        "kind": null,
        "inputFiles": [],
        "files": [
          {
            "file": "ml20-code/python-calibration-bins-2-result/full.json",
            "sha256": "d0110fe9c6d615ab831f23a026a8db6935c1da7639358286ae117debd16e3853",
            "bytes": 780
          },
          {
            "file": "ml20-code/python-calibration-bins-2-result/plot-points.csv",
            "sha256": "e71ae693b342039e4cd7529249e8128c2b34a235a4b9fb39485393ea40a3bb02",
            "bytes": 147
          },
          {
            "file": "ml20-code/python-calibration-bins-2-result/plot.svg",
            "sha256": "5be2d08d52df4f2d48a29b833efec9701055a4cbbdfb694eda527b93021faffc",
            "bytes": 2080
          },
          {
            "file": "ml20-code/python-calibration-bins-2-result/summary.csv",
            "sha256": "e627618c8cbda2b71feeff034c9adf729fcabe80d810bee0c7745571d76441fd",
            "bytes": 331
          },
          {
            "file": "ml20-code/python-calibration-bins-2-result/stdout.txt",
            "sha256": "34cecbafe7ff99d0de24fec61b744e8c8f7120896579c753c91eeab0e4d0d45f",
            "bytes": 20
          },
          {
            "file": "ml20-code/python-calibration-bins-2-result/stderr.txt",
            "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
            "bytes": 0
          }
        ],
        "summaryRows": [
          {
            "metric": "Brier",
            "value": "0.175",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "7/40",
            "rawValue": "7/40",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "ECE",
            "value": "0.25",
            "unit": "probability",
            "defined": "true",
            "exactFraction": "1/4",
            "rawValue": "1/4",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "uncertainty",
            "value": "0.1875",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "3/16",
            "rawValue": "3/16",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "resolution",
            "value": "0.0625",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "1/16",
            "rawValue": "1/16",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "reliability",
            "value": "0.0725",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "29/400",
            "rawValue": "29/400",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "withinVariance",
            "value": "0.0025",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "1/400",
            "rawValue": "1/400",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "withinCovariance",
            "value": "0.0125",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "1/80",
            "rawValue": "1/80",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "identity",
            "value": "0.175",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "7/40",
            "rawValue": "7/40",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          }
        ],
        "plotRows": [
          {
            "series": "bin probability",
            "index": 0,
            "x": "0",
            "y": "0.14999999999999999",
            "defined": true,
            "xExact": "0",
            "yExact": "3/20"
          },
          {
            "series": "bin probability",
            "index": 1,
            "x": "1",
            "y": "0.84999999999999998",
            "defined": true,
            "xExact": "1",
            "yExact": "17/20"
          },
          {
            "series": "bin outcome frequency",
            "index": 0,
            "x": "0",
            "y": "0.5",
            "defined": true,
            "xExact": "0",
            "yExact": "1/2"
          },
          {
            "series": "bin outcome frequency",
            "index": 1,
            "x": "1",
            "y": "1",
            "defined": true,
            "xExact": "1",
            "yExact": "1"
          }
        ],
        "plotFile": "ml20-code/python-calibration-bins-2-result/plot.svg",
        "fullResultFile": "ml20-code/python-calibration-bins-2-result/full.json",
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      },
      "bins-4": {
        "api": "calibration",
        "variant": "bins-4",
        "language": "python",
        "title": "Same observations, 4 probability bins",
        "input": {
          "rows": [
            {
              "p": "1/10",
              "y": "0"
            },
            {
              "p": "1/5",
              "y": "1"
            },
            {
              "p": "4/5",
              "y": "1"
            },
            {
              "p": "9/10",
              "y": "1"
            }
          ],
          "bins": 4
        },
        "expectedFailure": false,
        "codeFile": "ml20-code/calibration-bins-4.py",
        "codeSHA256": "9bd1035cac1b89ed933b51e421b70bd291fe4a85910d10b4afe7f58b52c39617",
        "code": "\"\"\"ML20 standalone fixed example, not an arbitrary-input validator.\nFinite Python Fraction algebra; natural logs use Decimal1800 approximation\nthen a final binary64 display projection. Realdata reads4factual CSVs only,\nreusing the frozen public reader/fit implementation by value; all other inputs\nare complete fixed literals. No engine/model/computed/checker imported.\nRun: python this-file.py NEW-OUTPUT\n\"\"\"\nfrom pathlib import Path\nimport csv,json,hashlib,sys,math,html\nif hasattr(sys,'set_int_max_str_digits'):sys.set_int_max_str_digits(100000)\n\"\"\"Owned standalone exact finite optimization primitives for ML19 public programs.\nThis is an author implementation, never an independent numerical oracle.\n\"\"\"\nfrom fractions import Fraction as Q\ndef number(v):return v if isinstance(v,Q)else Q(str(v))\ndef dot(a,b):return sum((x*y for x,y in zip(a,b)),Q(0))\ndef frame(rows,p=2,scale='range'):\n rr=[]\n for i,r in enumerate(rows):\n  x=[None if v is None else number(v)for v in r['x']];y=None if r['y']is None else number(r['y']);w=number(r.get('weight',1));role=r.get('role','train');rr.append(dict(id=r.get('id','row:'+str(i+1)),index=i,x=x,y=y,w=w,role=role,eligible=y is not None and all(v is not None for v in x)and w>0))\n train=[r for r in rr if r['role']=='train'and r['eligible']];W=sum((r['w']for r in train),Q(0))\n if not W:return dict(defined=False,p=p,rows=rr,train=[],W=W)\n mean=[sum(r['w']*r['x'][j]for r in train)/W for j in range(p)];ranges=[max(r['x'][j]for r in train)-min(r['x'][j]for r in train)or Q(1)for j in range(p)];scales=ranges if scale=='range'else[Q(1)]*p\n for r in rr:r['z']=None if None in r['x']else[Q(1)]+[(r['x'][j]-mean[j])/scales[j]for j in range(p)]\n return dict(defined=True,p=p,rows=rr,train=train,W=W,mean=mean,ranges=ranges,scales=scales,meanY=sum(r['w']*r['y']for r in train)/W)\ndef quadratic(f,lam=Q(0),role='train'):\n rr=[r for r in f['rows']if r['role']==role and r['eligible']];W=sum((r['w']for r in rr),Q(0));n=f['p']+1\n if not W:return None\n H=[[sum(r['w']*r['z'][j]*r['z'][k]for r in rr)/W+(lam if j==k and j else 0)for k in range(n)]for j in range(n)];b=[sum(r['w']*r['y']*r['z'][j]for r in rr)/W for j in range(n)];d=sum(r['w']*r['y']**2 for r in rr)/(2*W);return H,b,d\ndef state(q,theta):\n H,b,d=q;gradient=[dot(row,theta)-bb for row,bb in zip(H,b)];return dict(theta=theta,objective=dot(theta,[dot(row,theta)for row in H])/2-dot(theta,b)+d,gradient=gradient,gradientNormSquared=dot(gradient,gradient))\ndef solve(H,b):\n n=len(b);A=[row[:]+[bb]for row,bb in zip(H,b)];piv=[];row=0\n for j in range(n):\n  k=next((i for i in range(row,n)if A[i][j]),None)\n  if k is None:continue\n  A[row],A[k]=A[k],A[row];z=A[row][j];A[row]=[v/z for v in A[row]]\n  for i in range(n):\n   if i!=row:\n    z=A[i][j];A[i]=[v-z*u for v,u in zip(A[i],A[row])]\n  piv.append(j);row+=1\n  if row==n:break\n assert not any(not any(r[:n])and r[n]for r in A)\n beta=[Q(0)]*n\n for i,j in enumerate(piv):beta[j]=A[i][n]\n nullspace=[]\n for j in range(n):\n  if j not in piv:\n   v=[Q(0)]*n;v[j]=Q(1)\n   for i,k in enumerate(piv):v[k]=-A[i][j]\n   nullspace.append(v)\n return dict(rank=len(piv),particular=beta,nullspace=nullspace,unique=len(piv)==n)\n\n\ndef fixed_source(kind):\n SRC=Path(__file__).resolve().parent/\"data\"\n read=lambda n:list(csv.DictReader((SRC/n).open(encoding='utf8',newline='')))\n def native(v):return None if v in['','.']else v\n\n models={};original=read('actual48-country-revised-original-2023-2024.csv');lookup={(r['countryISO3'],r['indicatorID'],r['date']):r for r in original};rows=[]\n for iso in sorted({r['countryISO3']for r in original}):\n  g=lookup[iso,'NY.GDP.PCAP.KD','2023'];p=lookup[iso,'FP.CPI.TOTL.ZG','2023'];y=lookup[iso,'NY.GDP.MKTP.KD.ZG','2024'];rows.append(dict(id=iso+':2024',x=[None if not g['originalValueToken']else str(number(g['originalValueToken'])/10000),None if not p['originalValueToken']else str(number(p['originalValueToken'])/10)],y=native(y['originalValueToken']),sourceRow=iso))\n models['country']=dict(rows=rows,names=['g','pi'],unit='annual GDP growth percentage points')\n for kind,file,keys,ykey,ID in [('person','actual3613-NLS-original52-fields-and-conformal-frame.csv',['ed76','age76'],'lwage76','person-row:'),('company','actual3150-churn-original14-fields-and-conformal-frame.csv',['Call  Failure','Seconds of Use'],'Churn','customer-row:')]:\n  source=read(file);models[kind]=dict(rows=[dict(id=ID+r['sourceRow'],sourceRow=r['sourceRow'],x=[native(r[k])for k in keys],y=native(r[ykey]))for r in source],names=['ed76','age76']if kind=='person'else['CallFailure','SecondsUse'],unit='native trimmed1976log hourly wage'if kind=='person'else'native Churn0/1')\n for kind,m in models.items():\n  for rank,r in enumerate(sorted(m['rows'],key=lambda r:(hashlib.sha256(('ML20|'+kind+'|'+r['id']).encode()).digest(),r['id']))):r.update(splitRank=rank,plannedRole=['test','calibration','train','train'][rank%4]);r['role']=r['plannedRole']if r['y']is not None and None not in r['x']else'excluded';r['weight']='1'\n  m['trainingIDs']=[r['id']for r in sorted(m['rows'],key=lambda r:r['splitRank'])if r['role']=='train']\n\n models={kind:models[kind]}\n # New public actual-source study; exact finite Fraction fit/rank/membership.\n # Default single declared model, not a hyperparameter Cartesian dump.\n from decimal import Decimal,localcontext\n from collections import Counter\n outputs={k:[]for k in['study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins']}\n alpha=number('1/5');lam=number('1/100')\n if not 0<alpha<1 or lam<0:raise ValueError('Require0<alpha<1 and nonnegative ridge')\n def metric(kind,name,value,unit,arithmetic='exact rational'):\n  outputs['study-metrics'].append(dict(kind=kind,metric=name,value=''if value is None else value,unit=unit,defined=int(value is not None),arithmetic=arithmetic))\n def bins(rr,B=5):\n  groups=[[]for _ in range(B)]\n  for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n  n=len(rr);yb=sum((r['y']for r in rr),Q(0))/n if n else None;ece=rel=res=var=cov=Q(0);result=[]\n  for j,gg in enumerate(groups):\n   nn=len(gg);pm=sum((r['p']for r in gg),Q(0))/nn if nn else None;ym=sum((r['y']for r in gg),Q(0))/nn if nn else None;v=sum(((r['p']-pm)**2 for r in gg),Q(0))/nn if nn else None;co=sum(((r['p']-pm)*(r['y']-ym)for r in gg),Q(0))/nn if nn else None\n   result.append(dict(bin=j,lower=Q(j,B),upper=Q(j+1,B),rightClosed=int(j==B-1),rows=nn,meanP=pm,frequencyY1=ym,gap=None if not nn else pm-ym,withinVarianceP=v,withinCovariancePY=co))\n   if nn:weight=Q(nn,n);ece+=weight*abs(pm-ym);rel+=weight*(pm-ym)**2;res+=weight*(ym-yb)**2;var+=weight*v;cov+=weight*co\n  return result,dict(ECE=ece if n else None,Brier=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/n if n else None,uncertainty=yb*(1-yb)if n else None,resolution=res if n else None,reliability=rel if n else None,withinVarianceP=var if n else None,withinCovariancePY=cov if n else None)\n def meanlog(rr):\n  if not rr:return None\n  pp=[r['p']if r['y']else 1-r['p']for r in rr]\n  if any(not p for p in pp):return'+infinity'\n  with localcontext()as ctx:\n   ctx.prec=60;return str(-sum(((Decimal(p.numerator)/Decimal(p.denominator)).ln()for p in pp),Decimal(0))/len(pp))\n for kind,m in models.items():\n  f=frame(m['rows']);n=len(f['train']);assert n>0;H,b,d=quadratic(f,lam);fit=solve(H,b);theta=fit['particular'];minimum=state((H,b,d),theta)['objective'];beta=[theta[j+1]/f['scales'][j]for j in range(2)];intercept=theta[0]-dot(beta,f['mean']);rr=[]\n  for r in f['rows']:\n   native=m['rows'][r['index']];raw=None if r['z']is None else dot(r['z'],theta);pred=None if raw is None else max(Q(0),min(Q(1),raw))if kind=='company'else raw;group='missing-X'if r['z']is None else('schooling-at-most12'if r['x'][0]<=12 else'schooling-over12')if kind=='person'else('zero-call-failures'if r['x'][0]==0 else'positive-call-failures')if kind=='company'else('GDPpc-at-most-training-mean'if r['x'][0]<=f['mean'][0]else'GDPpc-above-training-mean');rr.append(dict(id=r['id'],sourceRow=native['sourceRow'],sourceIndex0=r['index'],plannedRole=native['plannedRole'],role=r['role'],group=group,y=r['y'],raw=raw,prediction=pred,eligible=r['eligible']))\n  cal=[r for r in rr if r['role']=='calibration'and r['prediction']is not None and r['y']is not None]\n  for i,r in enumerate(cal):r['calibrationIndex0']=i;r['score']=(1-r['prediction']if r['y']else r['prediction'])if kind=='company'else abs(r['y']-r['prediction'])\n  ordered=sorted(cal,key=lambda r:(r['score'],r['calibrationIndex0']));rankQ=(len(cal)+1)*(1-alpha);k=(rankQ.numerator+rankQ.denominator-1)//rankQ.denominator;threshold=ordered[k-1]['score']if k<=len(cal)else None;unbounded=threshold is None\n  for j,r in enumerate(ordered,1):outputs['calibration-scores'].append(dict(kind=kind,rank=j,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],calibrationIndex0=r['calibrationIndex0'],score=r['score'],threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded)))\n  for j,name in enumerate(m['names']):outputs['training-coefficients'].append(dict(kind=kind,feature=name,mean=f['mean'][j],scale=f['scales'][j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[0],nativeIntercept=intercept,rank=fit['rank'],unique=int(fit['unique']),lambdaValue=lam,minimumObjective=minimum))\n  for name,value,unit in[('sourceRows',len(rr),'rows'),('trainingRows',n,'rows'),('calibrationScores',len(cal),'unit-count scores'),('testLabeledRows',sum(r['role']=='test'and r['y']is not None for r in rr),'rows'),('excludedRows',sum(r['role']=='excluded'for r in rr),'rows'),('alpha',alpha,'probability'),('ridge',lam,'transformed slope penalty'),('quantileRank',k,'one-based rank'),('threshold','+infinity'if unbounded else threshold,'dimensionless score'if kind=='company'else m['unit']),('minimumObjective',minimum,'('+m['unit']+') squared')]:metric(kind,name,value,unit,'mathematical infinity'if value=='+infinity'else'exact rational')\n  for r in rr:\n   defined=r['prediction']is not None;labeled=defined and r['y']is not None\n   if not defined:lo=hi=width=size=None;labels='';covered=None\n   elif kind=='company':\n    labelsList=[j for j,s in enumerate([r['prediction'],1-r['prediction']])if unbounded or s<=threshold];labels='|'.join(map(str,labelsList));size=len(labelsList);lo=hi=width=None;covered=int(int(r['y'])in labelsList)if labeled else None\n   else:lo='-infinity'if unbounded else r['prediction']-threshold;hi='+infinity'if unbounded else r['prediction']+threshold;width='+infinity'if unbounded else 2*threshold;labels='';size=None;covered=int(unbounded or abs(r['y']-r['prediction'])<=threshold)if labeled else None\n   r.update(defined=defined,labeled=labeled,lower=lo,upper=hi,width=width,labels=labels,size=size,covered=covered)\n   outputs['row-predictions'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],plannedRole=r['plannedRole'],role=r['role'],group=r['group'],actualY=r['y'],rawLinear=r['raw'],prediction=r['prediction'],predictionDefined=int(defined),threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded),lower=lo,upper=hi,width=width,setLabels=labels,setSize=size,covered=covered,labeledPrediction=int(labeled)))\n   outputs['eligibility'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],plannedRole=r['plannedRole'],role=r['role'],requiredComplete=int(r['eligible']),trainingUsed=int(r['role']=='train'and r['eligible']),reason='missing-required-field'if not r['eligible']else''))\n  roles=list(dict.fromkeys(r['role']for r in rr));groups=list(dict.fromkeys(r['group']for r in rr))\n  for role in roles:\n   for group in['all']+groups:\n    use=[r for r in rr if r['role']==role and(group=='all'or r['group']==group)];defined=[r for r in use if r['defined']];scored=[r for r in use if r['labeled']and role not in['excluded','unused']];covered=sum(r['covered']for r in scored);nn=len(defined);nscore=len(scored);unboundedCount=sum(r['width']=='+infinity'for r in defined);size=Q(sum(r['size']for r in defined),nn)if kind=='company'and nn else None;width=('+infinity'if unboundedCount else sum(r['width']for r in defined)/nn)if kind!='company'and nn else None\n    outputs['role-group-coverage'].append(dict(kind=kind,role=role,group=group,originalRows=len(use),definedPredictions=nn,scoredLabels=nscore,coveredRows=covered,coverage=Q(covered,nscore)if nscore else None,meanSetSize=size,meanIntervalWidth=width,unboundedIntervals=unboundedCount))\n  if kind=='company':\n   for role in['train','calibration','test']:\n    use=[dict(p=r['prediction'],y=r['y'])for r in rr if r['role']==role and r['labeled']];bb,mm=bins(use)\n    for row in bb:outputs['reliability-bins'].append(dict(kind=kind,role=role,**row))\n    for name,value in mm.items():metric(kind,role+':'+name,value,'dimensionless'if name=='ECE'else'squared probability')\n    metric(kind,role+':meanLogLoss',meanlog(use),'nats','Decimal60 approximation or genuine infinity')\n return outputs\n\n# Owned ML20 fixed-example adapters. Finite rational calculations; logs approximate.\nfrom fractions import Fraction as Q\nfrom decimal import Decimal,localcontext\nimport math\ndef num(v):return v if isinstance(v,Q)else Q(str(v))\ndef ceilq(q):return-((-q.numerator)//q.denominator)\ndef fixed_quantile(scores,alpha):\n a=num(alpha)\n if not 0<a<1:raise ValueError('alpha-must-be-strictly-between-zero-and-one')\n ordered=sorted([(num(v),i)for i,v in enumerate(scores)if v is not None]);n=len(ordered);k=ceilq((n+1)*(1-a));q=None if k>n else ordered[k-1][0]\n return dict(n=n,k=k,threshold=q,infinite=q is None,ordered=ordered)\ndef fixed_score(rows):\n rr=[dict(p=num(r['p']),y=num(r['y']),w=num(r.get('weight',1)))for r in rows];rr=[r for r in rr if r['w']>0];mass=sum((r['w']for r in rr),Q(0));brier=sum((r['w']*(r['p']-r['y'])**2 for r in rr),Q(0))/mass if mass else None;logs=[];genuine=False\n with localcontext()as ctx:\n  ctx.prec=1800\n  total=Decimal(0)\n  for r in rr:\n   p=r['p']if r['y']else 1-r['p']\n   if not p:genuine=True;logs.append('+infinity');continue\n   loss=-(Decimal(p.numerator)/Decimal(p.denominator)).ln();logs.append(str(loss));w=r['w']/mass;total+=Decimal(w.numerator)/Decimal(w.denominator)*loss\n  display='+infinity'if genuine else None if not mass else repr(float(total));raw='+infinity'if genuine else None if not mass else str(total)\n return dict(rows=rr,mass=mass,Brier=brier,meanLogLoss=display,naturalLogApprox1800=raw,individualLogLoss=logs,genuineInfinite=genuine,BrierPositive=brier is not None and brier>0)\ndef fixed_calibration(rows,B):\n rr=[dict(p=num(r['p']),y=num(r['y']))for r in rows];N=len(rr);yb=sum((r['y']for r in rr),Q(0))/N;groups=[[]for _ in range(B)]\n for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n result=[];ece=rel=res=vp=cp=Q(0)\n for j,g in enumerate(groups):\n  n=len(g);pm=sum((r['p']for r in g),Q(0))/n if n else None;ym=sum((r['y']for r in g),Q(0))/n if n else None;v=sum(((r['p']-pm)**2 for r in g),Q(0))/n if n else None;c=sum(((r['p']-pm)*(r['y']-ym)for r in g),Q(0))/n if n else None;result.append(dict(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c))\n  if n:z=Q(n,N);ece+=z*abs(pm-ym);rel+=z*(pm-ym)**2;res+=z*(ym-yb)**2;vp+=z*v;cp+=z*c\n bs=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/N;u=yb*(1-yb)\n return dict(rows=N,bins=result,Brier=bs,ECE=ece,uncertainty=u,resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=u-res+rel+vp-2*cp)\ndef fixed_predict(a):\n q=fixed_quantile(a['scores'],a['alpha']);out=[];classification=a['mode']=='classification'\n for i,row in enumerate(a['queries']):\n  p=num(row['p']if classification else row['center']);y=None if row.get('y')is None else num(row['y']);threshold=q['threshold'];unbounded=q['infinite']\n  if classification:labels=[v for v,s in[(0,p),(1,1-p)]if unbounded or s<=threshold];lo=hi=width=None;size=len(labels);covered=None if y is None else int(int(y)in labels)\n  else:labels=None;size=None;lo='-infinity'if unbounded else p-threshold;hi='+infinity'if unbounded else p+threshold;width='+infinity'if unbounded else 2*threshold;covered=None if y is None else int(unbounded or abs(y-p)<=threshold)\n  out.append(dict(id=row.get('id',str(i)),prediction=p,actualY=y,labels=labels,size=size,lower=lo,upper=hi,width=width,covered=covered))\n scored=[r for r in out if r['covered']is not None];coverage=Q(sum(r['covered']for r in scored),len(scored))if scored else None;meanSize=Q(sum(r['size']for r in out),len(out))if classification and out else None;meanWidth=('+infinity'if q['infinite']else 2*q['threshold'])if not classification and out else None\n return dict(quantile=q,rows=out,scoredLabels=len(scored),coverage=coverage,meanSetSize=meanSize,meanWidth=meanWidth)\ndef fixed_ranklaw(a):\n scores=list(map(num,a['scores']));trials=[]\n for i,y in enumerate(scores):q=fixed_quantile(scores[:i]+scores[i+1:],a['alpha']);trials.append(dict(heldout=i,score=y,k=q['k'],threshold=q['threshold'],infinite=q['infinite'],covered=int(q['infinite']or y<=q['threshold'])))\n return dict(N=len(scores),distinct=len(set(scores))==len(scores),trials=trials,coverage=Q(sum(t['covered']for t in trials),len(trials)))\ndef fixed_operation(api,a):\n return fixed_score(a['rows'])if api=='score'else fixed_calibration(a['rows'],a['bins'])if api=='calibration'else fixed_quantile(a['scores'],a['alpha'])if api=='quantile'else fixed_predict(a)if api=='predict'else fixed_ranklaw(a)if api=='ranklaw'else fixed_source(a['kind'])\ndef report_values(api,z):\n summary=[];series=[]\n def add(k,v,u):summary.append((k,v,u))\n if api=='score':\n  for k,u in[('mass','analysis weight'),('Brier','squared probability'),('meanLogLoss','nats; numerical logarithm'),('genuineInfinite','indicator'),('BrierPositive','mathematical indicator')]:add(k,z[k],u)\n  series=[('squared error',[(i,(r['p']-r['y'])**2)for i,r in enumerate(z['rows'])])]\n elif api=='calibration':\n  for k in['Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity']:add(k,z[k],'probability'if k=='ECE'else'squared probability')\n  series=[('bin probability',[(r['bin'],r['meanP'])for r in z['bins']]),('bin outcome frequency',[(r['bin'],r['frequency'])for r in z['bins']])]\n elif api=='quantile':\n  for k,u in[('n','scores'),('k','one-based rank'),('infinite','mathematical indicator')]:add(k,z[k],u)\n  add('threshold','+infinity'if z['infinite']else z['threshold'],'score units');series=[('sorted score',[(i+1,v)for i,(v,index)in enumerate(z['ordered'])])]\n elif api=='predict':\n  for k,u in[('scoredLabels','labels'),('coverage','fraction'),('meanSetSize','classes'),('meanWidth','outcome units')]:add(k,z[k],u)\n  add('thresholdInfinite',z['quantile']['infinite'],'mathematical indicator');series=[('predicted center or probability',[(i,r['prediction'])for i,r in enumerate(z['rows'])]),('observed label or outcome',[(i,r['actualY'])for i,r in enumerate(z['rows'])])]\n elif api=='ranklaw':\n  for k,u in[('N','scores'),('distinct','indicator'),('coverage','fraction')]:add(k,z[k],u)\n  series=[('held-out coverage',[(r['heldout'],r['covered'])for r in z['trials']])]\n else:\n  mt={r['metric']:r for r in z['study-metrics']};cv=next(r for r in z['role-group-coverage']if r['role']=='test'and r['group']=='all')\n  for k in['sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold']:add(k,mt[k]['value'],mt[k]['unit'])\n  for k,u in[('coverage','fraction'),('meanSetSize','classes'),('meanIntervalWidth','outcome units')]:add(k,cv[k],u)\n  series=[('all calibration scores',[(r['rank'],r['score'])for r in z['calibration-scores']])]\n return summary,series\n\nnumber=num\n\nFIXED={'api': 'calibration', 'variant': 'bins-4', 'title': 'Same observations, 4 probability bins', 'input': {'rows': [{'p': '1/10', 'y': '0'}, {'p': '1/5', 'y': '1'}, {'p': '4/5', 'y': '1'}, {'p': '9/10', 'y': '1'}], 'bins': 4}, 'expectedFailure': False}\n\ndef fixed_svg(points,title):\n good=[p for p in points if p['y'] is not None];xx=[float(p['x'])for p in good];yy=[float(p['y'])for p in good];xmin=min(xx)if xx else 0;xmax=max(xx)if xx else 1;ymin=min([0]+yy);ymax=max([0]+yy)\n if xmin==xmax:xmin-=.5;xmax+=.5\n if ymin==ymax:ymin-=.5;ymax+=.5\n pad=(ymax-ymin)*.08;ymin-=pad;ymax+=pad;X=lambda x:82+(float(x)-xmin)/(xmax-xmin)*608;Y=lambda y:354-(float(y)-ymin)/(ymax-ymin)*290;e=html.escape\n out=['<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"'+e(title)+'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">'+e(title)+'</text>']\n for j in range(5):\n  y=ymin+(ymax-ymin)*j/4;x=xmin+(xmax-xmin)*j/4;out.append('<line x1=\"82\" y1=\"'+str(Y(y))+'\" x2=\"690\" y2=\"'+str(Y(y))+'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"'+str(Y(y)+4)+'\" text-anchor=\"end\">'+format(y,'.3g')+'</text><text x=\"'+str(X(x))+'\" y=\"380\" text-anchor=\"middle\">'+format(x,'.3g')+'</text>')\n series=list(dict.fromkeys(p['series']for p in good))\n for j,s in enumerate(series):\n  pp=[p for p in good if p['series']==s];color=['#0f766e','#c76622','#4f46e5','#b23857'][j%4];out.append('<polyline fill=\"none\" stroke=\"'+color+'\" stroke-width=\"1.5\" points=\"'+' '.join(format(X(p['x']),'.6f')+','+format(Y(p['y']),'.6f')for p in pp)+'\"/>')\n  for p in pp:out.append('<circle cx=\"'+format(X(p['x']),'.6f')+'\" cy=\"'+format(Y(p['y']),'.6f')+'\" r=\"2.6\" fill=\"'+color+'\"><title>'+e(s+': '+str(p['y']))+'</title></circle>')\n  out.append('<text x=\"'+str(82+(j%2)*310)+'\" y=\"'+str(432+(j//2)*23)+'\" fill=\"'+color+'\">'+e(s)+'</text>')\n out.append('<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>');return''.join(out)\n\nOUT=Path(sys.argv[1]);OUT.mkdir(parents=True,exist_ok=False)\nresult=fixed_operation(FIXED['api'],FIXED['input']);summary,series=report_values(FIXED['api'],result)\ndef encode(v):\n if isinstance(v,Q):return str(v)\n if isinstance(v,dict):return{k:encode(x)for k,x in v.items()}\n if isinstance(v,(list,tuple)):return[encode(x)for x in v]\n return v\n(OUT/'full.json').write_text(json.dumps(dict(arithmetic='Exact finite Fraction algebra except approximate natural logs; declared fixed examples, no exchangeability certification',result=encode(result)),ensure_ascii=False,indent=2)+'\\n',encoding='utf8')\nsummaryRows=[dict(metric=m,value=''if v is None else str(int(v))if isinstance(v,bool)else str(v),unit=u,defined=int(v is not None))for m,v,u in summary]\npoints=[dict(series=name,index=i,x=str(x),y=''if y is None else str(y),defined=int(y is not None))for name,pp in series for i,(x,y)in enumerate(pp)]\nfor name,rows in [('summary',summaryRows),('plot-points',points)]:\n with(OUT/(name+'.csv')).open('w',encoding='utf8',newline='')as f:writer=csv.DictWriter(f,fieldnames=list(rows[0]));writer.writeheader();writer.writerows(rows)\n(OUT/'plot.svg').write_text(fixed_svg([dict(p,x=number(p['x']),y=None if not p['defined']else number(p['y']))for p in points],FIXED['title']),encoding='utf8');print(FIXED['api']+'/'+FIXED['variant'])\n",
        "returnCode": 0,
        "stdout": "calibration/bins-4\r\n",
        "stderr": "",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/python-calibration-bins-4-result",
        "kind": null,
        "inputFiles": [],
        "files": [
          {
            "file": "ml20-code/python-calibration-bins-4-result/full.json",
            "sha256": "1d6afa534557b517019a7a7d95ed9ead2f53edc1592dc28223e7183ff80b682b",
            "bytes": 1128
          },
          {
            "file": "ml20-code/python-calibration-bins-4-result/plot-points.csv",
            "sha256": "e893315329142f6442cc88262b5eb5662a70bd44ef97d1c310f325d50df59a60",
            "bytes": 255
          },
          {
            "file": "ml20-code/python-calibration-bins-4-result/plot.svg",
            "sha256": "b73d87cb917996b6f639760b1148f291b0ebe50dfdf7b6e40fa10ca442086360",
            "bytes": 2080
          },
          {
            "file": "ml20-code/python-calibration-bins-4-result/summary.csv",
            "sha256": "e627618c8cbda2b71feeff034c9adf729fcabe80d810bee0c7745571d76441fd",
            "bytes": 331
          },
          {
            "file": "ml20-code/python-calibration-bins-4-result/stdout.txt",
            "sha256": "aad81de2791162575dfc021506d01d0d93a207c8de0c37412404b22721c43b63",
            "bytes": 20
          },
          {
            "file": "ml20-code/python-calibration-bins-4-result/stderr.txt",
            "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
            "bytes": 0
          }
        ],
        "summaryRows": [
          {
            "metric": "Brier",
            "value": "0.175",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "7/40",
            "rawValue": "7/40",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "ECE",
            "value": "0.25",
            "unit": "probability",
            "defined": "true",
            "exactFraction": "1/4",
            "rawValue": "1/4",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "uncertainty",
            "value": "0.1875",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "3/16",
            "rawValue": "3/16",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "resolution",
            "value": "0.0625",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "1/16",
            "rawValue": "1/16",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "reliability",
            "value": "0.0725",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "29/400",
            "rawValue": "29/400",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "withinVariance",
            "value": "0.0025",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "1/400",
            "rawValue": "1/400",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "withinCovariance",
            "value": "0.0125",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "1/80",
            "rawValue": "1/80",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "identity",
            "value": "0.175",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "7/40",
            "rawValue": "7/40",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          }
        ],
        "plotRows": [
          {
            "series": "bin probability",
            "index": 0,
            "x": "0",
            "y": "0.14999999999999999",
            "defined": true,
            "xExact": "0",
            "yExact": "3/20"
          },
          {
            "series": "bin probability",
            "index": 1,
            "x": "1",
            "y": "",
            "defined": false,
            "xExact": "1",
            "yExact": ""
          },
          {
            "series": "bin probability",
            "index": 2,
            "x": "2",
            "y": "",
            "defined": false,
            "xExact": "2",
            "yExact": ""
          },
          {
            "series": "bin probability",
            "index": 3,
            "x": "3",
            "y": "0.84999999999999998",
            "defined": true,
            "xExact": "3",
            "yExact": "17/20"
          },
          {
            "series": "bin outcome frequency",
            "index": 0,
            "x": "0",
            "y": "0.5",
            "defined": true,
            "xExact": "0",
            "yExact": "1/2"
          },
          {
            "series": "bin outcome frequency",
            "index": 1,
            "x": "1",
            "y": "",
            "defined": false,
            "xExact": "1",
            "yExact": ""
          },
          {
            "series": "bin outcome frequency",
            "index": 2,
            "x": "2",
            "y": "",
            "defined": false,
            "xExact": "2",
            "yExact": ""
          },
          {
            "series": "bin outcome frequency",
            "index": 3,
            "x": "3",
            "y": "1",
            "defined": true,
            "xExact": "3",
            "yExact": "1"
          }
        ],
        "plotFile": "ml20-code/python-calibration-bins-4-result/plot.svg",
        "fullResultFile": "ml20-code/python-calibration-bins-4-result/full.json",
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      }
    },
    "r": {
      "bins-2": {
        "api": "calibration",
        "variant": "bins-2",
        "language": "r",
        "title": "Same observations, 2 probability bins",
        "input": {
          "rows": [
            {
              "p": "1/10",
              "y": "0"
            },
            {
              "p": "1/5",
              "y": "1"
            },
            {
              "p": "4/5",
              "y": "1"
            },
            {
              "p": "9/10",
              "y": "1"
            }
          ],
          "bins": 2
        },
        "expectedFailure": false,
        "codeFile": "ml20-code/calibration-bins-2.R",
        "codeSHA256": "c14d86e371aa1e0ac7954d5cfb0db9d536fb52d89d89a0df657511ddb281069a",
        "code": "# ML20 complete standalone numerical fixed examples, no browser/model/results.\n# Base-R QR1e-12/membership1e-12; tiny log loss uses log-domain normalized\n# weights to avoid early underflow. This is an approximate counterpart, not\n# a general exact-rational numeric-token validator. Fixed alpha uses small fractions.\noptions(digits=17)\nfixedSource<-function(kind){\n src<-file.path(dirname(sub(\"^--file=\",\"\",grep(\"^--file=\",commandArgs(),value=TRUE)[1])),\"data\")\nreadnative<-function(n)read.csv(file.path(src,n),check.names=FALSE,colClasses='character',na.strings=NULL,stringsAsFactors=FALSE)\nnum<-function(x){a<-suppressWarnings(as.numeric(x));a[x%in%c('','.')] <- NA_real_;a}\nroles<-function(d){n<-nrow(d);rank<-as.integer(d$splitRank);if(!identical(sort(rank),0:(n-1)))stop('splitRank permutation');planned<-c('test','calibration','train','train')[rank%%4+1];if(any(planned!=d$plannedRole))stop('planned roles');list(rank=rank,planned=planned)}\noriginal<-readnative('actual48-country-revised-original-2023-2024.csv');derived<-readnative('derived16-country-features-and-roles.csv');isos<-sort(unique(original$countryISO3));lookup<-function(iso,code,year){r<-original[original$countryISO3==iso&original$indicatorID==code&original$date==year,,drop=FALSE];if(nrow(r)!=1)stop('country identity');num(r$originalValueToken)}\ncr<-roles(derived);if(!identical(isos,derived$countryISO3))stop('country order');country<-list(id=paste0(isos,':2024'),sourceRow=isos,x=cbind(vapply(isos,lookup,numeric(1),code='NY.GDP.PCAP.KD',year='2023')/10000,vapply(isos,lookup,numeric(1),code='FP.CPI.TOTL.ZG',year='2023')/10),y=vapply(isos,lookup,numeric(1),code='NY.GDP.MKTP.KD.ZG',year='2024'),rank=cr$rank,planned=cr$planned,names=c('g','pi'),unit='annual GDP growth percentage points')\npd<-readnative('actual3613-NLS-original52-fields-and-conformal-frame.csv');pr<-roles(pd);person<-list(id=paste0('person-row:',pd$sourceRow),sourceRow=pd$sourceRow,x=cbind(num(pd$ed76),num(pd$age76)),y=num(pd$lwage76),rank=pr$rank,planned=pr$planned,names=c('ed76','age76'),unit='native trimmed1976log hourly wage')\ncd<-readnative('actual3150-churn-original14-fields-and-conformal-frame.csv');rr<-roles(cd);company<-list(id=paste0('customer-row:',cd$sourceRow),sourceRow=cd$sourceRow,x=cbind(num(cd[['Call  Failure']]),num(cd[['Seconds of Use']])),y=num(cd$Churn),rank=rr$rank,planned=rr$planned,names=c('CallFailure','SecondsUse'),unit='native Churn0/1')\nmodels<-list(country=country,person=person,company=company)\n\nmodels<-models[kind]\nalphaToken<-\"1/5\";ridgeToken<-\"1/100\"\nqnum<-function(s){v<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(v)==2)as.numeric(v[1])/as.numeric(v[2])else as.numeric(v)}\nalphaParts<-function(s){v<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(v)==2&&all(grepl('^[0-9]+$',v))){a<-as.numeric(v[1]);b<-as.numeric(v[2])}else if(grepl('^[0-9]+([.][0-9]{1,6})?$',s)){n<-if(grepl('.',s,fixed=TRUE))nchar(sub('^[^.]*[.]','',s))else 0;a<-as.numeric(gsub('.','',s,fixed=TRUE));b<-10^n}else stop('Base-R alpha needs small integer fraction or <=6decimal places');if(a<=0||a>=b||b>1e6)stop('Require0<alpha<1 with denominator<=1e6');c(a,b)}\nap<-alphaParts(alphaToken);alpha<-ap[1]/ap[2];lambda<-qnum(ridgeToken);if(!is.finite(lambda)||lambda<0)stop('nonnegative finite ridge required')\nnamesOut<-c('study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins');outputs<-setNames(lapply(namesOut,function(n)list()),namesOut)\nemit<-function(name,row)outputs[[name]][[length(outputs[[name]])+1L]]<<-row\nmetric<-function(kind,name,value,unit,arithmetic='binary64 approximation'){emit('study-metrics',list(kind=kind,metric=name,value=if(is.null(value))NA else value,unit=unit,defined=as.integer(!is.null(value)&&!is.na(value)),arithmetic=arithmetic))}\nfor(kind in names(models)){\n m<-models[[kind]];complete<-rowSums(is.na(m$x))==0&!is.na(m$y);role<-ifelse(complete,m$planned,'excluded');train<-which(role=='train');n<-length(train);stopifnot(n>0);meanX<-colMeans(m$x[train,,drop=FALSE]);scale<-apply(m$x[train,,drop=FALSE],2,function(x)diff(range(x)));scale[scale==0]<-1;Z<-cbind(1,sweep(sweep(m$x,2,meanX,'-'),2,scale,'/'));H<-crossprod(Z[train,,drop=FALSE])/n+diag(c(0,lambda,lambda));b<-as.vector(crossprod(Z[train,,drop=FALSE],m$y[train]))/n;qrfit<-qr(H,tol=1e-12,LAPACK=FALSE);theta<-qr.coef(qrfit,b);theta[is.na(theta)]<-0;minimum<-as.numeric(crossprod(theta,H%*%theta)/2-sum(theta*b)+sum(m$y[train]^2)/(2*n));beta<-theta[-1]/scale;intercept<-theta[1]-sum(beta*meanX);raw<-as.vector(Z%*%theta);pred<-if(kind=='company')pmax(0,pmin(1,raw))else raw;defined<-!is.na(pred);group<-if(kind=='person')ifelse(m$x[,1]<=12,'schooling-at-most12','schooling-over12')else if(kind=='company')ifelse(m$x[,1]==0,'zero-call-failures','positive-call-failures')else ifelse(m$x[,1]<=meanX[1],'GDPpc-at-most-training-mean','GDPpc-above-training-mean');group[is.na(raw)]<-'missing-X';cal<-which(role=='calibration'&defined&!is.na(m$y));score<-if(kind=='company')ifelse(m$y[cal]==1,1-pred[cal],pred[cal])else abs(m$y[cal]-pred[cal]);ordered<-order(score,seq_along(score));k<-ceiling((length(cal)+1)*(ap[2]-ap[1])/ap[2]);threshold<-if(k<=length(cal))score[ordered[k]]else Inf;unbounded<-is.infinite(threshold)\n for(j in seq_along(ordered)){slot<-ordered[j];i<-cal[slot];emit('calibration-scores',list(kind=kind,rank=j,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,calibrationIndex0=slot-1,score=score[slot],threshold=threshold,thresholdInfinite=as.integer(unbounded)))}\n for(j in 1:2)emit('training-coefficients',list(kind=kind,feature=m$names[j],mean=meanX[j],scale=scale[j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[1],nativeIntercept=intercept,rank=qrfit$rank,unique=as.integer(qrfit$rank==3),lambdaValue=lambda,minimumObjective=minimum))\n metrics<-list(sourceRows=length(role),trainingRows=n,calibrationScores=length(cal),testLabeledRows=sum(role=='test'&!is.na(m$y)),excludedRows=sum(role=='excluded'),alpha=alpha,ridge=lambda,quantileRank=k,threshold=threshold,minimumObjective=minimum);units<-c('rows','rows','unit-count scores','rows','rows','probability','transformed slope penalty','one-based rank',if(kind=='company')'dimensionless score'else m$unit,paste0('(',m$unit,') squared'))\n for(j in seq_along(metrics))metric(kind,names(metrics)[j],metrics[[j]],units[j],if(is.infinite(metrics[[j]]))'mathematical infinity'else if(j%in%c(1:5,8))'integer count'else'binary64 approximation')\n labeled<-defined&!is.na(m$y);covered<-rep(NA_integer_,length(role));lo<-hi<-width<-rep(NA_real_,length(role));setSize<-rep(NA_integer_,length(role));setLabels<-rep('',length(role))\n if(kind=='company'){\n  zero<-defined&(unbounded|pred<=threshold+1e-12);one<-defined&(unbounded|1-pred<=threshold+1e-12);setSize[defined]<-as.integer(zero[defined])+as.integer(one[defined]);setLabels[zero&!one]<-'0';setLabels[!zero&one]<-'1';setLabels[zero&one]<-'0|1';covered[labeled]<-as.integer((m$y[labeled]==0&zero[labeled])|(m$y[labeled]==1&one[labeled]))\n }else{lo[defined]<-pred[defined]-threshold;hi[defined]<-pred[defined]+threshold;width[defined]<-2*threshold;tol<-1e-12*pmax(1,abs(m$y[labeled]),abs(pred[labeled]),if(is.finite(threshold))abs(threshold)else 1);covered[labeled]<-as.integer(unbounded|abs(m$y[labeled]-pred[labeled])<=threshold+tol)}\n for(i in seq_along(role)){\n  emit('row-predictions',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,plannedRole=m$planned[i],role=role[i],group=group[i],actualY=m$y[i],rawLinear=raw[i],prediction=pred[i],predictionDefined=as.integer(defined[i]),threshold=threshold,thresholdInfinite=as.integer(unbounded),lower=lo[i],upper=hi[i],width=width[i],setLabels=setLabels[i],setSize=setSize[i],covered=covered[i],labeledPrediction=as.integer(labeled[i])))\n  emit('eligibility',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],plannedRole=m$planned[i],role=role[i],requiredComplete=as.integer(complete[i]),trainingUsed=as.integer(role[i]=='train'&complete[i]),reason=if(complete[i])''else'missing-required-field'))\n }\n for(rol in unique(role))for(gr in c('all',unique(group))){use<-which(role==rol&(gr=='all'|group==gr));def<-use[defined[use]];scored<-use[labeled[use]&!role[use]%in%c('excluded','unused')];nn<-length(def);ns<-length(scored);cv<-sum(covered[scored]);ub<-if(kind=='company')0 else sum(is.infinite(width[def]));emit('role-group-coverage',list(kind=kind,role=rol,group=gr,originalRows=length(use),definedPredictions=nn,scoredLabels=ns,coveredRows=cv,coverage=if(ns)cv/ns else NA_real_,meanSetSize=if(kind=='company'&&nn)mean(setSize[def])else NA_real_,meanIntervalWidth=if(kind!='company'&&nn)mean(width[def])else NA_real_,unboundedIntervals=ub))}\n if(kind=='company')for(rol in c('train','calibration','test')){\n  ix<-which(role==rol&labeled);pp<-pred[ix];yy<-m$y[ix];N<-length(ix);bin<-pmin(4,floor(pp*5));yb<-if(N)mean(yy)else NA_real_;ece<-rel<-res<-vp<-cp<-0\n  for(j in 0:4){take<-which(bin==j);nb<-length(take);pm<-if(nb)mean(pp[take])else NA_real_;ym<-if(nb)mean(yy[take])else NA_real_;v<-if(nb)mean((pp[take]-pm)^2)else NA_real_;co<-if(nb)mean((pp[take]-pm)*(yy[take]-ym))else NA_real_;emit('reliability-bins',list(kind=kind,role=rol,bin=j,lower=j/5,upper=(j+1)/5,rightClosed=as.integer(j==4),rows=nb,meanP=pm,frequencyY1=ym,gap=pm-ym,withinVarianceP=v,withinCovariancePY=co));if(nb){z<-nb/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*co}}\n  mm<-list(ECE=if(N)ece else NA_real_,Brier=if(N)mean((pp-yy)^2)else NA_real_,uncertainty=yb*(1-yb),resolution=if(N)res else NA_real_,reliability=if(N)rel else NA_real_,withinVarianceP=if(N)vp else NA_real_,withinCovariancePY=if(N)cp else NA_real_);for(name in names(mm))metric(kind,paste0(rol,':',name),mm[[name]],if(name=='ECE')'dimensionless'else'squared probability');prob<-ifelse(yy==1,pp,1-pp);ll<-if(!N)NA_real_ else if(any(prob==0))Inf else-mean(log(prob));metric(kind,paste0(rol,':meanLogLoss'),ll,'nats','binary64 approximation or genuine infinity')\n }\n}\n\noutputs\n}\n\n# New fixed-example numerical adapters. Not arbitrary exact-input validators.\nnum20<-function(v){s<-as.character(v);a<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(a)==2)as.numeric(a[1])/as.numeric(a[2])else as.numeric(s)}\nalpha20<-function(s){a<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(a)==2){n<-as.numeric(a[1]);d<-as.numeric(a[2])}else{n<-as.numeric(a[1]);d<-1};if(n<=0||n>=d)stop('alpha-must-be-strictly-between-zero-and-one');c(n,d)}\nquantile20<-function(scores,alpha){ap<-alpha20(alpha);keep<-which(!vapply(scores,is.null,logical(1)));vv<-vapply(scores[keep],num20,numeric(1));ix<-order(vv,keep);n<-length(vv);k<-((n+1)*(ap[2]-ap[1])+ap[2]-1)%/%ap[2];list(n=n,k=k,threshold=if(k>n)NULL else vv[ix[k]],infinite=k>n,ordered=lapply(ix,function(j)list(score=vv[j],index=keep[j]-1)))}\nlogPositive20<-function(v){s<-tolower(as.character(v));part<-strsplit(s,'e',fixed=TRUE)[[1]];mantissa<-as.numeric(part[1]);power<-if(length(part)==2)as.numeric(part[2])else 0;if(mantissa<=0)stop('fixed positive weight required');log(mantissa)+power*log(10)}\nscore20<-function(rows){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));lw<-vapply(rows,function(r)logPositive20(if(is.null(r$weight))1 else r$weight),numeric(1));mx<-max(lw);lm<-mx+log(sum(exp(lw-mx)));mass<-exp(lm);w<-exp(lw-lm);observed<-ifelse(y==1,p,1-p);genuine<-any(observed==0);loss<-ifelse(observed==1,0,-log(observed));terms<-lw-lm+log(loss);finite<-terms[is.finite(terms)];ll<-if(genuine)'+infinity'else if(length(finite)){top<-max(finite);exp(top+log(sum(exp(finite-top))))}else 0;bs<-sum(w*(p-y)^2);list(rows=lapply(seq_along(rows),function(i)list(p=p[i],y=y[i],w=w[i])),mass=mass,Brier=bs,meanLogLoss=ll,genuineInfinite=genuine,BrierPositive=any(p!=y))}\ncalibration20<-function(rows,B){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));N<-length(p);bin<-pmin(B-1,floor(p*B));yb<-mean(y);ece<-rel<-res<-vp<-cp<-0;out<-list()\n for(j in 0:(B-1)){ix<-which(bin==j);n<-length(ix);pm<-if(n)mean(p[ix])else NULL;ym<-if(n)mean(y[ix])else NULL;v<-if(n)mean((p[ix]-pm)^2)else NULL;c<-if(n)mean((p[ix]-pm)*(y[ix]-ym))else NULL;out[[j+1]]<-list(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c);if(n){z<-n/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*c}}\n list(rows=N,bins=out,Brier=mean((p-y)^2),ECE=ece,uncertainty=yb*(1-yb),resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=yb*(1-yb)-res+rel+vp-2*cp)}\npredict20<-function(a){q<-quantile20(a$scores,a$alpha);classification<-a$mode=='classification';rows<-list()\n for(i in seq_along(a$queries)){r<-a$queries[[i]];p<-num20(if(classification)r$p else r$center);y<-if(is.null(r$y))NULL else num20(r$y)\n  if(classification){labels<-if(q$infinite)0:1 else which(c(p,1-p)<=q$threshold)-1;lo<-hi<-width<-NULL;size<-length(labels);covered<-if(is.null(y))NULL else as.integer(y%in%labels)}else{labels<-NULL;size<-NULL;lo<-if(q$infinite)'-infinity'else p-q$threshold;hi<-if(q$infinite)'+infinity'else p+q$threshold;width<-if(q$infinite)'+infinity'else 2*q$threshold;covered<-if(is.null(y))NULL else as.integer(q$infinite||abs(y-p)<=q$threshold+1e-12)}\n  rows[[i]]<-list(id=if(is.null(r$id))as.character(i-1)else r$id,prediction=p,actualY=y,labels=as.list(labels),size=size,lower=lo,upper=hi,width=width,covered=covered)\n };scored<-Filter(function(r)!is.null(r$covered),rows);coverage<-if(length(scored))mean(vapply(scored,`[[`,numeric(1),'covered'))else NULL;list(quantile=q,rows=rows,scoredLabels=length(scored),coverage=coverage,meanSetSize=if(classification&&length(rows))mean(vapply(rows,`[[`,numeric(1),'size'))else NULL,meanWidth=if(!classification&&length(rows))if(q$infinite)'+infinity'else 2*q$threshold else NULL)}\nranklaw20<-function(a){v<-vapply(a$scores,num20,numeric(1));trials<-lapply(seq_along(v),function(i){q<-quantile20(as.list(v[-i]),a$alpha);list(heldout=i-1,score=v[i],k=q$k,threshold=q$threshold,infinite=q$infinite,covered=as.integer(q$infinite||v[i]<=q$threshold))});list(N=length(v),distinct=length(unique(v))==length(v),trials=trials,coverage=mean(vapply(trials,`[[`,numeric(1),'covered')))}\nfixedOperation<-function(api,a)switch(api,score=score20(a$rows),calibration=calibration20(a$rows,a$bins),quantile=quantile20(a$scores,a$alpha),predict=predict20(a),ranklaw=ranklaw20(a),realdata=fixedSource(a$kind))\nreportValues<-function(api,z){summary<-list();points<-list();add<-function(k,v,u)summary[[length(summary)+1]]<<-list(metric=k,value=if(is.null(v)||length(v)==0||anyNA(v))NULL else unname(v),unit=u);pt<-function(s,i,x,y)points[[length(points)+1]]<<-list(series=s,index=i,x=x,y=y)\n if(api=='score'){for(k in c('mass','Brier','meanLogLoss','genuineInfinite','BrierPositive'))add(k,z[[k]],switch(k,mass='analysis weight',Brier='squared probability',meanLogLoss='nats; numerical logarithm',genuineInfinite='indicator',BrierPositive='mathematical indicator'));for(i in seq_along(z$rows)){r<-z$rows[[i]];pt('squared error',i-1,i-1,(r$p-r$y)^2)}\n }else if(api=='calibration'){for(k in c('Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity'))add(k,z[[k]],if(k=='ECE')'probability'else'squared probability');for(r in z$bins){pt('bin probability',r$bin,r$bin,r$meanP);pt('bin outcome frequency',r$bin,r$bin,r$frequency)}\n }else if(api=='quantile'){add('n',z$n,'scores');add('k',z$k,'one-based rank');add('infinite',z$infinite,'mathematical indicator');add('threshold',if(z$infinite)'+infinity'else z$threshold,'score units');for(i in seq_along(z$ordered))pt('sorted score',i-1,i,z$ordered[[i]]$score)\n }else if(api=='predict'){for(k in c('scoredLabels','coverage','meanSetSize','meanWidth'))add(k,z[[k]],switch(k,scoredLabels='labels',coverage='fraction',meanSetSize='classes',meanWidth='outcome units'));add('thresholdInfinite',z$quantile$infinite,'mathematical indicator');for(i in seq_along(z$rows)){pt('predicted center or probability',i-1,i-1,z$rows[[i]]$prediction);pt('observed label or outcome',i-1,i-1,z$rows[[i]]$actualY)}\n }else if(api=='ranklaw'){add('N',z$N,'scores');add('distinct',z$distinct,'indicator');add('coverage',z$coverage,'fraction');for(r in z$trials)pt('held-out coverage',r$heldout,r$heldout,r$covered)\n }else{for(k in c('sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold')){r<-Filter(function(r)r$metric==k,z[['study-metrics']])[[1]];add(k,r$value,r$unit)};cv<-Filter(function(r)r$role=='test'&&r$group=='all',z[['role-group-coverage']])[[1]];for(k in c('coverage','meanSetSize','meanIntervalWidth'))add(k,cv[[k]],switch(k,coverage='fraction',meanSetSize='classes',meanIntervalWidth='outcome units'));for(i in seq_along(z[['calibration-scores']])){r<-z[['calibration-scores']][[i]];pt('all calibration scores',i-1,r$rank,r$score)}}\n list(summary=summary,points=points)}\n\nescapeXML<-function(s){s<-gsub('&','&amp;',s,fixed=TRUE);s<-gsub('<','&lt;',s,fixed=TRUE);s<-gsub('>','&gt;',s,fixed=TRUE);gsub('\"','&quot;',s,fixed=TRUE)}\nsvgPlot<-function(pp,title){\n xx<-vapply(pp,function(p)as.numeric(p$x),numeric(1));yy<-vapply(pp,function(p)as.numeric(p$y),numeric(1));xmin<-if(length(xx))min(xx)else 0;xmax<-if(length(xx))max(xx)else 1;ymin<-min(c(0,yy));ymax<-max(c(0,yy));if(xmin==xmax){xmin<-xmin-.5;xmax<-xmax+.5};if(ymin==ymax){ymin<-ymin-.5;ymax<-ymax+.5};pad<-(ymax-ymin)*.08;ymin<-ymin-pad;ymax<-ymax+pad;X<-function(x)82+(as.numeric(x)-xmin)/(xmax-xmin)*608;Y<-function(y)354-(as.numeric(y)-ymin)/(ymax-ymin)*290\n out<-paste0('<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"',escapeXML(title),'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">',escapeXML(title),'</text>')\n for(j in 0:4){y<-ymin+(ymax-ymin)*j/4;x<-xmin+(xmax-xmin)*j/4;out<-paste0(out,'<line x1=\"82\" y1=\"',Y(y),'\" x2=\"690\" y2=\"',Y(y),'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"',Y(y)+4,'\" text-anchor=\"end\">',sprintf('%.3g',y),'</text><text x=\"',X(x),'\" y=\"380\" text-anchor=\"middle\">',sprintf('%.3g',x),'</text>')}\n ss<-unique(vapply(pp,`[[`,character(1),'series'));cols<-c('#0f766e','#c76622','#4f46e5','#b23857')\n for(j in seq_along(ss)){rr<-Filter(function(p)p$series==ss[j],pp);xy<-vapply(rr,function(p)sprintf('%.6f,%.6f',X(p$x),Y(p$y)),character(1));col<-cols[(j-1)%%4+1];out<-paste0(out,'<polyline fill=\"none\" stroke=\"',col,'\" stroke-width=\"1.5\" points=\"',paste(xy,collapse=' '),'\"/>');for(p in rr)out<-paste0(out,'<circle cx=\"',sprintf('%.6f',X(p$x)),'\" cy=\"',sprintf('%.6f',Y(p$y)),'\" r=\"2.6\" fill=\"',col,'\"><title>',escapeXML(ss[j]),': ',escapeXML(p$y),'</title></circle>');out<-paste0(out,'<text x=\"',82+((j-1)%%2)*310,'\" y=\"',432+floor((j-1)/2)*23,'\" fill=\"',col,'\">',escapeXML(ss[j]),'</text>')}\n paste0(out,'<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>')\n}\n\ntoJSON<-function(x){\n if(is.null(x))return('null');if(is.list(x)){v<-vapply(x,toJSON,character(1));if(!is.null(names(x)))paste0('{',paste(paste0(vapply(names(x),toJSON,character(1)),':',v),collapse=','),'}')else paste0('[',paste(v,collapse=','),']')}\n else if(length(x)!=1){if(!is.null(names(x)))toJSON(as.list(x))else paste0('[',paste(vapply(as.list(x),toJSON,character(1)),collapse=','),']')}\n else if(is.na(x))'null'else if(is.logical(x))if(x)'true'else'false'else if(is.numeric(x))if(is.finite(x))sprintf('%.17g',x)else'null'else paste0('\"',gsub('\\n','\\\\n',gsub('\"','\\\\\"',gsub('\\\\','\\\\\\\\',x,fixed=TRUE),fixed=TRUE),fixed=TRUE),'\"')\n}\n\nFIXED<-list(\"api\"=\"calibration\",\"variant\"=\"bins-2\",\"title\"=\"Same observations, 2 probability bins\",\"input\"=list(\"rows\"=list(list(\"p\"=\"1/10\",\"y\"=\"0\"),list(\"p\"=\"1/5\",\"y\"=\"1\"),list(\"p\"=\"4/5\",\"y\"=\"1\"),list(\"p\"=\"9/10\",\"y\"=\"1\")),\"bins\"=2),\"expectedFailure\"=FALSE)\n\nargs<-commandArgs(trailingOnly=TRUE);out<-if(length(args))args[1]else stop('NEW output directory required');if(dir.exists(out))stop('Preserve previous output directory');dir.create(out,recursive=TRUE)\nz<-fixedOperation(FIXED$api,FIXED$input);rr<-reportValues(FIXED$api,z)\nwriteLines(toJSON(list(arithmetic='BaseR numerical counterpart; QR and membership1e-12, log-domain tiny weights; source splitRank read from factualCSV',result=z)),file.path(out,'full.json'),useBytes=TRUE)\nsums<-do.call(rbind,lapply(rr$summary,function(row)data.frame(metric=row$metric,value=if(is.null(row$value))''else if(is.logical(row$value))as.character(as.integer(row$value))else format(row$value,digits=17,scientific=NA,trim=TRUE),unit=row$unit,defined=as.integer(!is.null(row$value)),stringsAsFactors=FALSE)))\npoints<-do.call(rbind,lapply(rr$points,function(p)data.frame(series=p$series,index=p$index,x=p$x,y=if(is.null(p$y))NA_real_ else p$y,defined=as.integer(!is.null(p$y)),stringsAsFactors=FALSE)))\nwrite.csv(sums,file.path(out,'summary.csv'),row.names=FALSE,na='');write.csv(points,file.path(out,'plot-points.csv'),row.names=FALSE,na='');writeLines(svgPlot(Filter(function(p)!is.null(p$y),rr$points),FIXED$title),file.path(out,'plot.svg'),useBytes=TRUE);cat(FIXED$api,'/',FIXED$variant,'\\n',sep='')\n",
        "returnCode": 0,
        "stdout": "calibration/bins-2\r\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed ",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/r-calibration-bins-2-result",
        "kind": null,
        "inputFiles": [],
        "files": [
          {
            "file": "ml20-code/r-calibration-bins-2-result/full.json",
            "sha256": "76b6960f91071112c0d78252ceb9cdb41c1d9f2c260f06d9baf5af52dbfee7a7",
            "bytes": 660
          },
          {
            "file": "ml20-code/r-calibration-bins-2-result/plot-points.csv",
            "sha256": "4c11a66c8d51c113982878b10a73de722d987efd87f149e8c52e90347a7af073",
            "bytes": 164
          },
          {
            "file": "ml20-code/r-calibration-bins-2-result/plot.svg",
            "sha256": "60841184f1e047f7ca9f55b2c5bebfeda706d61db04df496814de47dc5b32c19",
            "bytes": 2053
          },
          {
            "file": "ml20-code/r-calibration-bins-2-result/summary.csv",
            "sha256": "ad5969a0c4fecbcb345c1b11896a91d79b86b5fb572147230596a406f5144bc6",
            "bytes": 483
          },
          {
            "file": "ml20-code/r-calibration-bins-2-result/stdout.txt",
            "sha256": "34cecbafe7ff99d0de24fec61b744e8c8f7120896579c753c91eeab0e4d0d45f",
            "bytes": 20
          },
          {
            "file": "ml20-code/r-calibration-bins-2-result/stderr.txt",
            "sha256": "b807bd2d0f7060ea384b0ac2317cda2d63a4f59f63b4a901b9e665fead79627d",
            "bytes": 182
          }
        ],
        "summaryRows": [
          {
            "metric": "Brier",
            "value": "0.175",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.17500000000000002",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "ECE",
            "value": "0.25",
            "unit": "probability",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.24999999999999994",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "uncertainty",
            "value": "0.1875",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.1875",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "resolution",
            "value": "0.0625",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.0625",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "reliability",
            "value": "0.0725",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.072499999999999981",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "withinVariance",
            "value": "0.0025",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.0024999999999999996",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "withinCovariance",
            "value": "0.0125",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.012500000000000001",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "identity",
            "value": "0.175",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.17499999999999999",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          }
        ],
        "plotRows": [
          {
            "series": "bin probability",
            "index": 0,
            "x": "0",
            "y": "0.14999999999999999",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "bin outcome frequency",
            "index": 0,
            "x": "0",
            "y": "0.5",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "bin probability",
            "index": 1,
            "x": "1",
            "y": "0.84999999999999998",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "bin outcome frequency",
            "index": 1,
            "x": "1",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          }
        ],
        "plotFile": "ml20-code/r-calibration-bins-2-result/plot.svg",
        "fullResultFile": "ml20-code/r-calibration-bins-2-result/full.json",
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      },
      "bins-4": {
        "api": "calibration",
        "variant": "bins-4",
        "language": "r",
        "title": "Same observations, 4 probability bins",
        "input": {
          "rows": [
            {
              "p": "1/10",
              "y": "0"
            },
            {
              "p": "1/5",
              "y": "1"
            },
            {
              "p": "4/5",
              "y": "1"
            },
            {
              "p": "9/10",
              "y": "1"
            }
          ],
          "bins": 4
        },
        "expectedFailure": false,
        "codeFile": "ml20-code/calibration-bins-4.R",
        "codeSHA256": "1efb0d17020072a64b9bc3280068fabfb4ea6f0a22da7b2baeb5dcc026106816",
        "code": "# ML20 complete standalone numerical fixed examples, no browser/model/results.\n# Base-R QR1e-12/membership1e-12; tiny log loss uses log-domain normalized\n# weights to avoid early underflow. This is an approximate counterpart, not\n# a general exact-rational numeric-token validator. Fixed alpha uses small fractions.\noptions(digits=17)\nfixedSource<-function(kind){\n src<-file.path(dirname(sub(\"^--file=\",\"\",grep(\"^--file=\",commandArgs(),value=TRUE)[1])),\"data\")\nreadnative<-function(n)read.csv(file.path(src,n),check.names=FALSE,colClasses='character',na.strings=NULL,stringsAsFactors=FALSE)\nnum<-function(x){a<-suppressWarnings(as.numeric(x));a[x%in%c('','.')] <- NA_real_;a}\nroles<-function(d){n<-nrow(d);rank<-as.integer(d$splitRank);if(!identical(sort(rank),0:(n-1)))stop('splitRank permutation');planned<-c('test','calibration','train','train')[rank%%4+1];if(any(planned!=d$plannedRole))stop('planned roles');list(rank=rank,planned=planned)}\noriginal<-readnative('actual48-country-revised-original-2023-2024.csv');derived<-readnative('derived16-country-features-and-roles.csv');isos<-sort(unique(original$countryISO3));lookup<-function(iso,code,year){r<-original[original$countryISO3==iso&original$indicatorID==code&original$date==year,,drop=FALSE];if(nrow(r)!=1)stop('country identity');num(r$originalValueToken)}\ncr<-roles(derived);if(!identical(isos,derived$countryISO3))stop('country order');country<-list(id=paste0(isos,':2024'),sourceRow=isos,x=cbind(vapply(isos,lookup,numeric(1),code='NY.GDP.PCAP.KD',year='2023')/10000,vapply(isos,lookup,numeric(1),code='FP.CPI.TOTL.ZG',year='2023')/10),y=vapply(isos,lookup,numeric(1),code='NY.GDP.MKTP.KD.ZG',year='2024'),rank=cr$rank,planned=cr$planned,names=c('g','pi'),unit='annual GDP growth percentage points')\npd<-readnative('actual3613-NLS-original52-fields-and-conformal-frame.csv');pr<-roles(pd);person<-list(id=paste0('person-row:',pd$sourceRow),sourceRow=pd$sourceRow,x=cbind(num(pd$ed76),num(pd$age76)),y=num(pd$lwage76),rank=pr$rank,planned=pr$planned,names=c('ed76','age76'),unit='native trimmed1976log hourly wage')\ncd<-readnative('actual3150-churn-original14-fields-and-conformal-frame.csv');rr<-roles(cd);company<-list(id=paste0('customer-row:',cd$sourceRow),sourceRow=cd$sourceRow,x=cbind(num(cd[['Call  Failure']]),num(cd[['Seconds of Use']])),y=num(cd$Churn),rank=rr$rank,planned=rr$planned,names=c('CallFailure','SecondsUse'),unit='native Churn0/1')\nmodels<-list(country=country,person=person,company=company)\n\nmodels<-models[kind]\nalphaToken<-\"1/5\";ridgeToken<-\"1/100\"\nqnum<-function(s){v<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(v)==2)as.numeric(v[1])/as.numeric(v[2])else as.numeric(v)}\nalphaParts<-function(s){v<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(v)==2&&all(grepl('^[0-9]+$',v))){a<-as.numeric(v[1]);b<-as.numeric(v[2])}else if(grepl('^[0-9]+([.][0-9]{1,6})?$',s)){n<-if(grepl('.',s,fixed=TRUE))nchar(sub('^[^.]*[.]','',s))else 0;a<-as.numeric(gsub('.','',s,fixed=TRUE));b<-10^n}else stop('Base-R alpha needs small integer fraction or <=6decimal places');if(a<=0||a>=b||b>1e6)stop('Require0<alpha<1 with denominator<=1e6');c(a,b)}\nap<-alphaParts(alphaToken);alpha<-ap[1]/ap[2];lambda<-qnum(ridgeToken);if(!is.finite(lambda)||lambda<0)stop('nonnegative finite ridge required')\nnamesOut<-c('study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins');outputs<-setNames(lapply(namesOut,function(n)list()),namesOut)\nemit<-function(name,row)outputs[[name]][[length(outputs[[name]])+1L]]<<-row\nmetric<-function(kind,name,value,unit,arithmetic='binary64 approximation'){emit('study-metrics',list(kind=kind,metric=name,value=if(is.null(value))NA else value,unit=unit,defined=as.integer(!is.null(value)&&!is.na(value)),arithmetic=arithmetic))}\nfor(kind in names(models)){\n m<-models[[kind]];complete<-rowSums(is.na(m$x))==0&!is.na(m$y);role<-ifelse(complete,m$planned,'excluded');train<-which(role=='train');n<-length(train);stopifnot(n>0);meanX<-colMeans(m$x[train,,drop=FALSE]);scale<-apply(m$x[train,,drop=FALSE],2,function(x)diff(range(x)));scale[scale==0]<-1;Z<-cbind(1,sweep(sweep(m$x,2,meanX,'-'),2,scale,'/'));H<-crossprod(Z[train,,drop=FALSE])/n+diag(c(0,lambda,lambda));b<-as.vector(crossprod(Z[train,,drop=FALSE],m$y[train]))/n;qrfit<-qr(H,tol=1e-12,LAPACK=FALSE);theta<-qr.coef(qrfit,b);theta[is.na(theta)]<-0;minimum<-as.numeric(crossprod(theta,H%*%theta)/2-sum(theta*b)+sum(m$y[train]^2)/(2*n));beta<-theta[-1]/scale;intercept<-theta[1]-sum(beta*meanX);raw<-as.vector(Z%*%theta);pred<-if(kind=='company')pmax(0,pmin(1,raw))else raw;defined<-!is.na(pred);group<-if(kind=='person')ifelse(m$x[,1]<=12,'schooling-at-most12','schooling-over12')else if(kind=='company')ifelse(m$x[,1]==0,'zero-call-failures','positive-call-failures')else ifelse(m$x[,1]<=meanX[1],'GDPpc-at-most-training-mean','GDPpc-above-training-mean');group[is.na(raw)]<-'missing-X';cal<-which(role=='calibration'&defined&!is.na(m$y));score<-if(kind=='company')ifelse(m$y[cal]==1,1-pred[cal],pred[cal])else abs(m$y[cal]-pred[cal]);ordered<-order(score,seq_along(score));k<-ceiling((length(cal)+1)*(ap[2]-ap[1])/ap[2]);threshold<-if(k<=length(cal))score[ordered[k]]else Inf;unbounded<-is.infinite(threshold)\n for(j in seq_along(ordered)){slot<-ordered[j];i<-cal[slot];emit('calibration-scores',list(kind=kind,rank=j,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,calibrationIndex0=slot-1,score=score[slot],threshold=threshold,thresholdInfinite=as.integer(unbounded)))}\n for(j in 1:2)emit('training-coefficients',list(kind=kind,feature=m$names[j],mean=meanX[j],scale=scale[j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[1],nativeIntercept=intercept,rank=qrfit$rank,unique=as.integer(qrfit$rank==3),lambdaValue=lambda,minimumObjective=minimum))\n metrics<-list(sourceRows=length(role),trainingRows=n,calibrationScores=length(cal),testLabeledRows=sum(role=='test'&!is.na(m$y)),excludedRows=sum(role=='excluded'),alpha=alpha,ridge=lambda,quantileRank=k,threshold=threshold,minimumObjective=minimum);units<-c('rows','rows','unit-count scores','rows','rows','probability','transformed slope penalty','one-based rank',if(kind=='company')'dimensionless score'else m$unit,paste0('(',m$unit,') squared'))\n for(j in seq_along(metrics))metric(kind,names(metrics)[j],metrics[[j]],units[j],if(is.infinite(metrics[[j]]))'mathematical infinity'else if(j%in%c(1:5,8))'integer count'else'binary64 approximation')\n labeled<-defined&!is.na(m$y);covered<-rep(NA_integer_,length(role));lo<-hi<-width<-rep(NA_real_,length(role));setSize<-rep(NA_integer_,length(role));setLabels<-rep('',length(role))\n if(kind=='company'){\n  zero<-defined&(unbounded|pred<=threshold+1e-12);one<-defined&(unbounded|1-pred<=threshold+1e-12);setSize[defined]<-as.integer(zero[defined])+as.integer(one[defined]);setLabels[zero&!one]<-'0';setLabels[!zero&one]<-'1';setLabels[zero&one]<-'0|1';covered[labeled]<-as.integer((m$y[labeled]==0&zero[labeled])|(m$y[labeled]==1&one[labeled]))\n }else{lo[defined]<-pred[defined]-threshold;hi[defined]<-pred[defined]+threshold;width[defined]<-2*threshold;tol<-1e-12*pmax(1,abs(m$y[labeled]),abs(pred[labeled]),if(is.finite(threshold))abs(threshold)else 1);covered[labeled]<-as.integer(unbounded|abs(m$y[labeled]-pred[labeled])<=threshold+tol)}\n for(i in seq_along(role)){\n  emit('row-predictions',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,plannedRole=m$planned[i],role=role[i],group=group[i],actualY=m$y[i],rawLinear=raw[i],prediction=pred[i],predictionDefined=as.integer(defined[i]),threshold=threshold,thresholdInfinite=as.integer(unbounded),lower=lo[i],upper=hi[i],width=width[i],setLabels=setLabels[i],setSize=setSize[i],covered=covered[i],labeledPrediction=as.integer(labeled[i])))\n  emit('eligibility',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],plannedRole=m$planned[i],role=role[i],requiredComplete=as.integer(complete[i]),trainingUsed=as.integer(role[i]=='train'&complete[i]),reason=if(complete[i])''else'missing-required-field'))\n }\n for(rol in unique(role))for(gr in c('all',unique(group))){use<-which(role==rol&(gr=='all'|group==gr));def<-use[defined[use]];scored<-use[labeled[use]&!role[use]%in%c('excluded','unused')];nn<-length(def);ns<-length(scored);cv<-sum(covered[scored]);ub<-if(kind=='company')0 else sum(is.infinite(width[def]));emit('role-group-coverage',list(kind=kind,role=rol,group=gr,originalRows=length(use),definedPredictions=nn,scoredLabels=ns,coveredRows=cv,coverage=if(ns)cv/ns else NA_real_,meanSetSize=if(kind=='company'&&nn)mean(setSize[def])else NA_real_,meanIntervalWidth=if(kind!='company'&&nn)mean(width[def])else NA_real_,unboundedIntervals=ub))}\n if(kind=='company')for(rol in c('train','calibration','test')){\n  ix<-which(role==rol&labeled);pp<-pred[ix];yy<-m$y[ix];N<-length(ix);bin<-pmin(4,floor(pp*5));yb<-if(N)mean(yy)else NA_real_;ece<-rel<-res<-vp<-cp<-0\n  for(j in 0:4){take<-which(bin==j);nb<-length(take);pm<-if(nb)mean(pp[take])else NA_real_;ym<-if(nb)mean(yy[take])else NA_real_;v<-if(nb)mean((pp[take]-pm)^2)else NA_real_;co<-if(nb)mean((pp[take]-pm)*(yy[take]-ym))else NA_real_;emit('reliability-bins',list(kind=kind,role=rol,bin=j,lower=j/5,upper=(j+1)/5,rightClosed=as.integer(j==4),rows=nb,meanP=pm,frequencyY1=ym,gap=pm-ym,withinVarianceP=v,withinCovariancePY=co));if(nb){z<-nb/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*co}}\n  mm<-list(ECE=if(N)ece else NA_real_,Brier=if(N)mean((pp-yy)^2)else NA_real_,uncertainty=yb*(1-yb),resolution=if(N)res else NA_real_,reliability=if(N)rel else NA_real_,withinVarianceP=if(N)vp else NA_real_,withinCovariancePY=if(N)cp else NA_real_);for(name in names(mm))metric(kind,paste0(rol,':',name),mm[[name]],if(name=='ECE')'dimensionless'else'squared probability');prob<-ifelse(yy==1,pp,1-pp);ll<-if(!N)NA_real_ else if(any(prob==0))Inf else-mean(log(prob));metric(kind,paste0(rol,':meanLogLoss'),ll,'nats','binary64 approximation or genuine infinity')\n }\n}\n\noutputs\n}\n\n# New fixed-example numerical adapters. Not arbitrary exact-input validators.\nnum20<-function(v){s<-as.character(v);a<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(a)==2)as.numeric(a[1])/as.numeric(a[2])else as.numeric(s)}\nalpha20<-function(s){a<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(a)==2){n<-as.numeric(a[1]);d<-as.numeric(a[2])}else{n<-as.numeric(a[1]);d<-1};if(n<=0||n>=d)stop('alpha-must-be-strictly-between-zero-and-one');c(n,d)}\nquantile20<-function(scores,alpha){ap<-alpha20(alpha);keep<-which(!vapply(scores,is.null,logical(1)));vv<-vapply(scores[keep],num20,numeric(1));ix<-order(vv,keep);n<-length(vv);k<-((n+1)*(ap[2]-ap[1])+ap[2]-1)%/%ap[2];list(n=n,k=k,threshold=if(k>n)NULL else vv[ix[k]],infinite=k>n,ordered=lapply(ix,function(j)list(score=vv[j],index=keep[j]-1)))}\nlogPositive20<-function(v){s<-tolower(as.character(v));part<-strsplit(s,'e',fixed=TRUE)[[1]];mantissa<-as.numeric(part[1]);power<-if(length(part)==2)as.numeric(part[2])else 0;if(mantissa<=0)stop('fixed positive weight required');log(mantissa)+power*log(10)}\nscore20<-function(rows){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));lw<-vapply(rows,function(r)logPositive20(if(is.null(r$weight))1 else r$weight),numeric(1));mx<-max(lw);lm<-mx+log(sum(exp(lw-mx)));mass<-exp(lm);w<-exp(lw-lm);observed<-ifelse(y==1,p,1-p);genuine<-any(observed==0);loss<-ifelse(observed==1,0,-log(observed));terms<-lw-lm+log(loss);finite<-terms[is.finite(terms)];ll<-if(genuine)'+infinity'else if(length(finite)){top<-max(finite);exp(top+log(sum(exp(finite-top))))}else 0;bs<-sum(w*(p-y)^2);list(rows=lapply(seq_along(rows),function(i)list(p=p[i],y=y[i],w=w[i])),mass=mass,Brier=bs,meanLogLoss=ll,genuineInfinite=genuine,BrierPositive=any(p!=y))}\ncalibration20<-function(rows,B){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));N<-length(p);bin<-pmin(B-1,floor(p*B));yb<-mean(y);ece<-rel<-res<-vp<-cp<-0;out<-list()\n for(j in 0:(B-1)){ix<-which(bin==j);n<-length(ix);pm<-if(n)mean(p[ix])else NULL;ym<-if(n)mean(y[ix])else NULL;v<-if(n)mean((p[ix]-pm)^2)else NULL;c<-if(n)mean((p[ix]-pm)*(y[ix]-ym))else NULL;out[[j+1]]<-list(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c);if(n){z<-n/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*c}}\n list(rows=N,bins=out,Brier=mean((p-y)^2),ECE=ece,uncertainty=yb*(1-yb),resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=yb*(1-yb)-res+rel+vp-2*cp)}\npredict20<-function(a){q<-quantile20(a$scores,a$alpha);classification<-a$mode=='classification';rows<-list()\n for(i in seq_along(a$queries)){r<-a$queries[[i]];p<-num20(if(classification)r$p else r$center);y<-if(is.null(r$y))NULL else num20(r$y)\n  if(classification){labels<-if(q$infinite)0:1 else which(c(p,1-p)<=q$threshold)-1;lo<-hi<-width<-NULL;size<-length(labels);covered<-if(is.null(y))NULL else as.integer(y%in%labels)}else{labels<-NULL;size<-NULL;lo<-if(q$infinite)'-infinity'else p-q$threshold;hi<-if(q$infinite)'+infinity'else p+q$threshold;width<-if(q$infinite)'+infinity'else 2*q$threshold;covered<-if(is.null(y))NULL else as.integer(q$infinite||abs(y-p)<=q$threshold+1e-12)}\n  rows[[i]]<-list(id=if(is.null(r$id))as.character(i-1)else r$id,prediction=p,actualY=y,labels=as.list(labels),size=size,lower=lo,upper=hi,width=width,covered=covered)\n };scored<-Filter(function(r)!is.null(r$covered),rows);coverage<-if(length(scored))mean(vapply(scored,`[[`,numeric(1),'covered'))else NULL;list(quantile=q,rows=rows,scoredLabels=length(scored),coverage=coverage,meanSetSize=if(classification&&length(rows))mean(vapply(rows,`[[`,numeric(1),'size'))else NULL,meanWidth=if(!classification&&length(rows))if(q$infinite)'+infinity'else 2*q$threshold else NULL)}\nranklaw20<-function(a){v<-vapply(a$scores,num20,numeric(1));trials<-lapply(seq_along(v),function(i){q<-quantile20(as.list(v[-i]),a$alpha);list(heldout=i-1,score=v[i],k=q$k,threshold=q$threshold,infinite=q$infinite,covered=as.integer(q$infinite||v[i]<=q$threshold))});list(N=length(v),distinct=length(unique(v))==length(v),trials=trials,coverage=mean(vapply(trials,`[[`,numeric(1),'covered')))}\nfixedOperation<-function(api,a)switch(api,score=score20(a$rows),calibration=calibration20(a$rows,a$bins),quantile=quantile20(a$scores,a$alpha),predict=predict20(a),ranklaw=ranklaw20(a),realdata=fixedSource(a$kind))\nreportValues<-function(api,z){summary<-list();points<-list();add<-function(k,v,u)summary[[length(summary)+1]]<<-list(metric=k,value=if(is.null(v)||length(v)==0||anyNA(v))NULL else unname(v),unit=u);pt<-function(s,i,x,y)points[[length(points)+1]]<<-list(series=s,index=i,x=x,y=y)\n if(api=='score'){for(k in c('mass','Brier','meanLogLoss','genuineInfinite','BrierPositive'))add(k,z[[k]],switch(k,mass='analysis weight',Brier='squared probability',meanLogLoss='nats; numerical logarithm',genuineInfinite='indicator',BrierPositive='mathematical indicator'));for(i in seq_along(z$rows)){r<-z$rows[[i]];pt('squared error',i-1,i-1,(r$p-r$y)^2)}\n }else if(api=='calibration'){for(k in c('Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity'))add(k,z[[k]],if(k=='ECE')'probability'else'squared probability');for(r in z$bins){pt('bin probability',r$bin,r$bin,r$meanP);pt('bin outcome frequency',r$bin,r$bin,r$frequency)}\n }else if(api=='quantile'){add('n',z$n,'scores');add('k',z$k,'one-based rank');add('infinite',z$infinite,'mathematical indicator');add('threshold',if(z$infinite)'+infinity'else z$threshold,'score units');for(i in seq_along(z$ordered))pt('sorted score',i-1,i,z$ordered[[i]]$score)\n }else if(api=='predict'){for(k in c('scoredLabels','coverage','meanSetSize','meanWidth'))add(k,z[[k]],switch(k,scoredLabels='labels',coverage='fraction',meanSetSize='classes',meanWidth='outcome units'));add('thresholdInfinite',z$quantile$infinite,'mathematical indicator');for(i in seq_along(z$rows)){pt('predicted center or probability',i-1,i-1,z$rows[[i]]$prediction);pt('observed label or outcome',i-1,i-1,z$rows[[i]]$actualY)}\n }else if(api=='ranklaw'){add('N',z$N,'scores');add('distinct',z$distinct,'indicator');add('coverage',z$coverage,'fraction');for(r in z$trials)pt('held-out coverage',r$heldout,r$heldout,r$covered)\n }else{for(k in c('sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold')){r<-Filter(function(r)r$metric==k,z[['study-metrics']])[[1]];add(k,r$value,r$unit)};cv<-Filter(function(r)r$role=='test'&&r$group=='all',z[['role-group-coverage']])[[1]];for(k in c('coverage','meanSetSize','meanIntervalWidth'))add(k,cv[[k]],switch(k,coverage='fraction',meanSetSize='classes',meanIntervalWidth='outcome units'));for(i in seq_along(z[['calibration-scores']])){r<-z[['calibration-scores']][[i]];pt('all calibration scores',i-1,r$rank,r$score)}}\n list(summary=summary,points=points)}\n\nescapeXML<-function(s){s<-gsub('&','&amp;',s,fixed=TRUE);s<-gsub('<','&lt;',s,fixed=TRUE);s<-gsub('>','&gt;',s,fixed=TRUE);gsub('\"','&quot;',s,fixed=TRUE)}\nsvgPlot<-function(pp,title){\n xx<-vapply(pp,function(p)as.numeric(p$x),numeric(1));yy<-vapply(pp,function(p)as.numeric(p$y),numeric(1));xmin<-if(length(xx))min(xx)else 0;xmax<-if(length(xx))max(xx)else 1;ymin<-min(c(0,yy));ymax<-max(c(0,yy));if(xmin==xmax){xmin<-xmin-.5;xmax<-xmax+.5};if(ymin==ymax){ymin<-ymin-.5;ymax<-ymax+.5};pad<-(ymax-ymin)*.08;ymin<-ymin-pad;ymax<-ymax+pad;X<-function(x)82+(as.numeric(x)-xmin)/(xmax-xmin)*608;Y<-function(y)354-(as.numeric(y)-ymin)/(ymax-ymin)*290\n out<-paste0('<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"',escapeXML(title),'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">',escapeXML(title),'</text>')\n for(j in 0:4){y<-ymin+(ymax-ymin)*j/4;x<-xmin+(xmax-xmin)*j/4;out<-paste0(out,'<line x1=\"82\" y1=\"',Y(y),'\" x2=\"690\" y2=\"',Y(y),'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"',Y(y)+4,'\" text-anchor=\"end\">',sprintf('%.3g',y),'</text><text x=\"',X(x),'\" y=\"380\" text-anchor=\"middle\">',sprintf('%.3g',x),'</text>')}\n ss<-unique(vapply(pp,`[[`,character(1),'series'));cols<-c('#0f766e','#c76622','#4f46e5','#b23857')\n for(j in seq_along(ss)){rr<-Filter(function(p)p$series==ss[j],pp);xy<-vapply(rr,function(p)sprintf('%.6f,%.6f',X(p$x),Y(p$y)),character(1));col<-cols[(j-1)%%4+1];out<-paste0(out,'<polyline fill=\"none\" stroke=\"',col,'\" stroke-width=\"1.5\" points=\"',paste(xy,collapse=' '),'\"/>');for(p in rr)out<-paste0(out,'<circle cx=\"',sprintf('%.6f',X(p$x)),'\" cy=\"',sprintf('%.6f',Y(p$y)),'\" r=\"2.6\" fill=\"',col,'\"><title>',escapeXML(ss[j]),': ',escapeXML(p$y),'</title></circle>');out<-paste0(out,'<text x=\"',82+((j-1)%%2)*310,'\" y=\"',432+floor((j-1)/2)*23,'\" fill=\"',col,'\">',escapeXML(ss[j]),'</text>')}\n paste0(out,'<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>')\n}\n\ntoJSON<-function(x){\n if(is.null(x))return('null');if(is.list(x)){v<-vapply(x,toJSON,character(1));if(!is.null(names(x)))paste0('{',paste(paste0(vapply(names(x),toJSON,character(1)),':',v),collapse=','),'}')else paste0('[',paste(v,collapse=','),']')}\n else if(length(x)!=1){if(!is.null(names(x)))toJSON(as.list(x))else paste0('[',paste(vapply(as.list(x),toJSON,character(1)),collapse=','),']')}\n else if(is.na(x))'null'else if(is.logical(x))if(x)'true'else'false'else if(is.numeric(x))if(is.finite(x))sprintf('%.17g',x)else'null'else paste0('\"',gsub('\\n','\\\\n',gsub('\"','\\\\\"',gsub('\\\\','\\\\\\\\',x,fixed=TRUE),fixed=TRUE),fixed=TRUE),'\"')\n}\n\nFIXED<-list(\"api\"=\"calibration\",\"variant\"=\"bins-4\",\"title\"=\"Same observations, 4 probability bins\",\"input\"=list(\"rows\"=list(list(\"p\"=\"1/10\",\"y\"=\"0\"),list(\"p\"=\"1/5\",\"y\"=\"1\"),list(\"p\"=\"4/5\",\"y\"=\"1\"),list(\"p\"=\"9/10\",\"y\"=\"1\")),\"bins\"=4),\"expectedFailure\"=FALSE)\n\nargs<-commandArgs(trailingOnly=TRUE);out<-if(length(args))args[1]else stop('NEW output directory required');if(dir.exists(out))stop('Preserve previous output directory');dir.create(out,recursive=TRUE)\nz<-fixedOperation(FIXED$api,FIXED$input);rr<-reportValues(FIXED$api,z)\nwriteLines(toJSON(list(arithmetic='BaseR numerical counterpart; QR and membership1e-12, log-domain tiny weights; source splitRank read from factualCSV',result=z)),file.path(out,'full.json'),useBytes=TRUE)\nsums<-do.call(rbind,lapply(rr$summary,function(row)data.frame(metric=row$metric,value=if(is.null(row$value))''else if(is.logical(row$value))as.character(as.integer(row$value))else format(row$value,digits=17,scientific=NA,trim=TRUE),unit=row$unit,defined=as.integer(!is.null(row$value)),stringsAsFactors=FALSE)))\npoints<-do.call(rbind,lapply(rr$points,function(p)data.frame(series=p$series,index=p$index,x=p$x,y=if(is.null(p$y))NA_real_ else p$y,defined=as.integer(!is.null(p$y)),stringsAsFactors=FALSE)))\nwrite.csv(sums,file.path(out,'summary.csv'),row.names=FALSE,na='');write.csv(points,file.path(out,'plot-points.csv'),row.names=FALSE,na='');writeLines(svgPlot(Filter(function(p)!is.null(p$y),rr$points),FIXED$title),file.path(out,'plot.svg'),useBytes=TRUE);cat(FIXED$api,'/',FIXED$variant,'\\n',sep='')\n",
        "returnCode": 0,
        "stdout": "calibration/bins-4\r\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed ",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/r-calibration-bins-4-result",
        "kind": null,
        "inputFiles": [],
        "files": [
          {
            "file": "ml20-code/r-calibration-bins-4-result/full.json",
            "sha256": "b1bdf80f234b3357b137cd2be5628daac122608c1e6151891dff88078957f864",
            "bytes": 844
          },
          {
            "file": "ml20-code/r-calibration-bins-4-result/plot-points.csv",
            "sha256": "f9f89e4375788da1a9edae0967a1d867a6300b0c8c7c4f992b34c06ac613ab0d",
            "bytes": 280
          },
          {
            "file": "ml20-code/r-calibration-bins-4-result/plot.svg",
            "sha256": "014d30012c74bf43e6e8962d7ac4e8b640c4a463d1ce0f70080f4310ee5b7b76",
            "bytes": 2053
          },
          {
            "file": "ml20-code/r-calibration-bins-4-result/summary.csv",
            "sha256": "ad5969a0c4fecbcb345c1b11896a91d79b86b5fb572147230596a406f5144bc6",
            "bytes": 483
          },
          {
            "file": "ml20-code/r-calibration-bins-4-result/stdout.txt",
            "sha256": "aad81de2791162575dfc021506d01d0d93a207c8de0c37412404b22721c43b63",
            "bytes": 20
          },
          {
            "file": "ml20-code/r-calibration-bins-4-result/stderr.txt",
            "sha256": "b807bd2d0f7060ea384b0ac2317cda2d63a4f59f63b4a901b9e665fead79627d",
            "bytes": 182
          }
        ],
        "summaryRows": [
          {
            "metric": "Brier",
            "value": "0.175",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.17500000000000002",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "ECE",
            "value": "0.25",
            "unit": "probability",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.24999999999999994",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "uncertainty",
            "value": "0.1875",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.1875",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "resolution",
            "value": "0.0625",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.0625",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "reliability",
            "value": "0.0725",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.072499999999999981",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "withinVariance",
            "value": "0.0025",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.0024999999999999996",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "withinCovariance",
            "value": "0.0125",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.012500000000000001",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "identity",
            "value": "0.175",
            "unit": "squared probability",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.17499999999999999",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          }
        ],
        "plotRows": [
          {
            "series": "bin probability",
            "index": 0,
            "x": "0",
            "y": "0.14999999999999999",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "bin outcome frequency",
            "index": 0,
            "x": "0",
            "y": "0.5",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "bin probability",
            "index": 1,
            "x": "1",
            "y": "",
            "defined": false,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "bin outcome frequency",
            "index": 1,
            "x": "1",
            "y": "",
            "defined": false,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "bin probability",
            "index": 2,
            "x": "2",
            "y": "",
            "defined": false,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "bin outcome frequency",
            "index": 2,
            "x": "2",
            "y": "",
            "defined": false,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "bin probability",
            "index": 3,
            "x": "3",
            "y": "0.84999999999999998",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "bin outcome frequency",
            "index": 3,
            "x": "3",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          }
        ],
        "plotFile": "ml20-code/r-calibration-bins-4-result/plot.svg",
        "fullResultFile": "ml20-code/r-calibration-bins-4-result/full.json",
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      }
    }
  },
  "quantile": {
    "python": {
      "exact-ceiling": {
        "api": "quantile",
        "variant": "exact-ceiling",
        "language": "python",
        "title": "Adjusted rank with exact alpha seven-tenths",
        "input": {
          "scores": [
            "1",
            "2",
            "3",
            "4",
            "5",
            "6",
            "7",
            "8",
            "9"
          ],
          "alpha": "7/10"
        },
        "expectedFailure": false,
        "codeFile": "ml20-code/quantile-exact-ceiling.py",
        "codeSHA256": "72261389dc7c6233da8f05cdd2aff5783989499cdfba8ba6509a4c9d2cc1425b",
        "code": "\"\"\"ML20 standalone fixed example, not an arbitrary-input validator.\nFinite Python Fraction algebra; natural logs use Decimal1800 approximation\nthen a final binary64 display projection. Realdata reads4factual CSVs only,\nreusing the frozen public reader/fit implementation by value; all other inputs\nare complete fixed literals. No engine/model/computed/checker imported.\nRun: python this-file.py NEW-OUTPUT\n\"\"\"\nfrom pathlib import Path\nimport csv,json,hashlib,sys,math,html\nif hasattr(sys,'set_int_max_str_digits'):sys.set_int_max_str_digits(100000)\n\"\"\"Owned standalone exact finite optimization primitives for ML19 public programs.\nThis is an author implementation, never an independent numerical oracle.\n\"\"\"\nfrom fractions import Fraction as Q\ndef number(v):return v if isinstance(v,Q)else Q(str(v))\ndef dot(a,b):return sum((x*y for x,y in zip(a,b)),Q(0))\ndef frame(rows,p=2,scale='range'):\n rr=[]\n for i,r in enumerate(rows):\n  x=[None if v is None else number(v)for v in r['x']];y=None if r['y']is None else number(r['y']);w=number(r.get('weight',1));role=r.get('role','train');rr.append(dict(id=r.get('id','row:'+str(i+1)),index=i,x=x,y=y,w=w,role=role,eligible=y is not None and all(v is not None for v in x)and w>0))\n train=[r for r in rr if r['role']=='train'and r['eligible']];W=sum((r['w']for r in train),Q(0))\n if not W:return dict(defined=False,p=p,rows=rr,train=[],W=W)\n mean=[sum(r['w']*r['x'][j]for r in train)/W for j in range(p)];ranges=[max(r['x'][j]for r in train)-min(r['x'][j]for r in train)or Q(1)for j in range(p)];scales=ranges if scale=='range'else[Q(1)]*p\n for r in rr:r['z']=None if None in r['x']else[Q(1)]+[(r['x'][j]-mean[j])/scales[j]for j in range(p)]\n return dict(defined=True,p=p,rows=rr,train=train,W=W,mean=mean,ranges=ranges,scales=scales,meanY=sum(r['w']*r['y']for r in train)/W)\ndef quadratic(f,lam=Q(0),role='train'):\n rr=[r for r in f['rows']if r['role']==role and r['eligible']];W=sum((r['w']for r in rr),Q(0));n=f['p']+1\n if not W:return None\n H=[[sum(r['w']*r['z'][j]*r['z'][k]for r in rr)/W+(lam if j==k and j else 0)for k in range(n)]for j in range(n)];b=[sum(r['w']*r['y']*r['z'][j]for r in rr)/W for j in range(n)];d=sum(r['w']*r['y']**2 for r in rr)/(2*W);return H,b,d\ndef state(q,theta):\n H,b,d=q;gradient=[dot(row,theta)-bb for row,bb in zip(H,b)];return dict(theta=theta,objective=dot(theta,[dot(row,theta)for row in H])/2-dot(theta,b)+d,gradient=gradient,gradientNormSquared=dot(gradient,gradient))\ndef solve(H,b):\n n=len(b);A=[row[:]+[bb]for row,bb in zip(H,b)];piv=[];row=0\n for j in range(n):\n  k=next((i for i in range(row,n)if A[i][j]),None)\n  if k is None:continue\n  A[row],A[k]=A[k],A[row];z=A[row][j];A[row]=[v/z for v in A[row]]\n  for i in range(n):\n   if i!=row:\n    z=A[i][j];A[i]=[v-z*u for v,u in zip(A[i],A[row])]\n  piv.append(j);row+=1\n  if row==n:break\n assert not any(not any(r[:n])and r[n]for r in A)\n beta=[Q(0)]*n\n for i,j in enumerate(piv):beta[j]=A[i][n]\n nullspace=[]\n for j in range(n):\n  if j not in piv:\n   v=[Q(0)]*n;v[j]=Q(1)\n   for i,k in enumerate(piv):v[k]=-A[i][j]\n   nullspace.append(v)\n return dict(rank=len(piv),particular=beta,nullspace=nullspace,unique=len(piv)==n)\n\n\ndef fixed_source(kind):\n SRC=Path(__file__).resolve().parent/\"data\"\n read=lambda n:list(csv.DictReader((SRC/n).open(encoding='utf8',newline='')))\n def native(v):return None if v in['','.']else v\n\n models={};original=read('actual48-country-revised-original-2023-2024.csv');lookup={(r['countryISO3'],r['indicatorID'],r['date']):r for r in original};rows=[]\n for iso in sorted({r['countryISO3']for r in original}):\n  g=lookup[iso,'NY.GDP.PCAP.KD','2023'];p=lookup[iso,'FP.CPI.TOTL.ZG','2023'];y=lookup[iso,'NY.GDP.MKTP.KD.ZG','2024'];rows.append(dict(id=iso+':2024',x=[None if not g['originalValueToken']else str(number(g['originalValueToken'])/10000),None if not p['originalValueToken']else str(number(p['originalValueToken'])/10)],y=native(y['originalValueToken']),sourceRow=iso))\n models['country']=dict(rows=rows,names=['g','pi'],unit='annual GDP growth percentage points')\n for kind,file,keys,ykey,ID in [('person','actual3613-NLS-original52-fields-and-conformal-frame.csv',['ed76','age76'],'lwage76','person-row:'),('company','actual3150-churn-original14-fields-and-conformal-frame.csv',['Call  Failure','Seconds of Use'],'Churn','customer-row:')]:\n  source=read(file);models[kind]=dict(rows=[dict(id=ID+r['sourceRow'],sourceRow=r['sourceRow'],x=[native(r[k])for k in keys],y=native(r[ykey]))for r in source],names=['ed76','age76']if kind=='person'else['CallFailure','SecondsUse'],unit='native trimmed1976log hourly wage'if kind=='person'else'native Churn0/1')\n for kind,m in models.items():\n  for rank,r in enumerate(sorted(m['rows'],key=lambda r:(hashlib.sha256(('ML20|'+kind+'|'+r['id']).encode()).digest(),r['id']))):r.update(splitRank=rank,plannedRole=['test','calibration','train','train'][rank%4]);r['role']=r['plannedRole']if r['y']is not None and None not in r['x']else'excluded';r['weight']='1'\n  m['trainingIDs']=[r['id']for r in sorted(m['rows'],key=lambda r:r['splitRank'])if r['role']=='train']\n\n models={kind:models[kind]}\n # New public actual-source study; exact finite Fraction fit/rank/membership.\n # Default single declared model, not a hyperparameter Cartesian dump.\n from decimal import Decimal,localcontext\n from collections import Counter\n outputs={k:[]for k in['study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins']}\n alpha=number('1/5');lam=number('1/100')\n if not 0<alpha<1 or lam<0:raise ValueError('Require0<alpha<1 and nonnegative ridge')\n def metric(kind,name,value,unit,arithmetic='exact rational'):\n  outputs['study-metrics'].append(dict(kind=kind,metric=name,value=''if value is None else value,unit=unit,defined=int(value is not None),arithmetic=arithmetic))\n def bins(rr,B=5):\n  groups=[[]for _ in range(B)]\n  for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n  n=len(rr);yb=sum((r['y']for r in rr),Q(0))/n if n else None;ece=rel=res=var=cov=Q(0);result=[]\n  for j,gg in enumerate(groups):\n   nn=len(gg);pm=sum((r['p']for r in gg),Q(0))/nn if nn else None;ym=sum((r['y']for r in gg),Q(0))/nn if nn else None;v=sum(((r['p']-pm)**2 for r in gg),Q(0))/nn if nn else None;co=sum(((r['p']-pm)*(r['y']-ym)for r in gg),Q(0))/nn if nn else None\n   result.append(dict(bin=j,lower=Q(j,B),upper=Q(j+1,B),rightClosed=int(j==B-1),rows=nn,meanP=pm,frequencyY1=ym,gap=None if not nn else pm-ym,withinVarianceP=v,withinCovariancePY=co))\n   if nn:weight=Q(nn,n);ece+=weight*abs(pm-ym);rel+=weight*(pm-ym)**2;res+=weight*(ym-yb)**2;var+=weight*v;cov+=weight*co\n  return result,dict(ECE=ece if n else None,Brier=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/n if n else None,uncertainty=yb*(1-yb)if n else None,resolution=res if n else None,reliability=rel if n else None,withinVarianceP=var if n else None,withinCovariancePY=cov if n else None)\n def meanlog(rr):\n  if not rr:return None\n  pp=[r['p']if r['y']else 1-r['p']for r in rr]\n  if any(not p for p in pp):return'+infinity'\n  with localcontext()as ctx:\n   ctx.prec=60;return str(-sum(((Decimal(p.numerator)/Decimal(p.denominator)).ln()for p in pp),Decimal(0))/len(pp))\n for kind,m in models.items():\n  f=frame(m['rows']);n=len(f['train']);assert n>0;H,b,d=quadratic(f,lam);fit=solve(H,b);theta=fit['particular'];minimum=state((H,b,d),theta)['objective'];beta=[theta[j+1]/f['scales'][j]for j in range(2)];intercept=theta[0]-dot(beta,f['mean']);rr=[]\n  for r in f['rows']:\n   native=m['rows'][r['index']];raw=None if r['z']is None else dot(r['z'],theta);pred=None if raw is None else max(Q(0),min(Q(1),raw))if kind=='company'else raw;group='missing-X'if r['z']is None else('schooling-at-most12'if r['x'][0]<=12 else'schooling-over12')if kind=='person'else('zero-call-failures'if r['x'][0]==0 else'positive-call-failures')if kind=='company'else('GDPpc-at-most-training-mean'if r['x'][0]<=f['mean'][0]else'GDPpc-above-training-mean');rr.append(dict(id=r['id'],sourceRow=native['sourceRow'],sourceIndex0=r['index'],plannedRole=native['plannedRole'],role=r['role'],group=group,y=r['y'],raw=raw,prediction=pred,eligible=r['eligible']))\n  cal=[r for r in rr if r['role']=='calibration'and r['prediction']is not None and r['y']is not None]\n  for i,r in enumerate(cal):r['calibrationIndex0']=i;r['score']=(1-r['prediction']if r['y']else r['prediction'])if kind=='company'else abs(r['y']-r['prediction'])\n  ordered=sorted(cal,key=lambda r:(r['score'],r['calibrationIndex0']));rankQ=(len(cal)+1)*(1-alpha);k=(rankQ.numerator+rankQ.denominator-1)//rankQ.denominator;threshold=ordered[k-1]['score']if k<=len(cal)else None;unbounded=threshold is None\n  for j,r in enumerate(ordered,1):outputs['calibration-scores'].append(dict(kind=kind,rank=j,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],calibrationIndex0=r['calibrationIndex0'],score=r['score'],threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded)))\n  for j,name in enumerate(m['names']):outputs['training-coefficients'].append(dict(kind=kind,feature=name,mean=f['mean'][j],scale=f['scales'][j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[0],nativeIntercept=intercept,rank=fit['rank'],unique=int(fit['unique']),lambdaValue=lam,minimumObjective=minimum))\n  for name,value,unit in[('sourceRows',len(rr),'rows'),('trainingRows',n,'rows'),('calibrationScores',len(cal),'unit-count scores'),('testLabeledRows',sum(r['role']=='test'and r['y']is not None for r in rr),'rows'),('excludedRows',sum(r['role']=='excluded'for r in rr),'rows'),('alpha',alpha,'probability'),('ridge',lam,'transformed slope penalty'),('quantileRank',k,'one-based rank'),('threshold','+infinity'if unbounded else threshold,'dimensionless score'if kind=='company'else m['unit']),('minimumObjective',minimum,'('+m['unit']+') squared')]:metric(kind,name,value,unit,'mathematical infinity'if value=='+infinity'else'exact rational')\n  for r in rr:\n   defined=r['prediction']is not None;labeled=defined and r['y']is not None\n   if not defined:lo=hi=width=size=None;labels='';covered=None\n   elif kind=='company':\n    labelsList=[j for j,s in enumerate([r['prediction'],1-r['prediction']])if unbounded or s<=threshold];labels='|'.join(map(str,labelsList));size=len(labelsList);lo=hi=width=None;covered=int(int(r['y'])in labelsList)if labeled else None\n   else:lo='-infinity'if unbounded else r['prediction']-threshold;hi='+infinity'if unbounded else r['prediction']+threshold;width='+infinity'if unbounded else 2*threshold;labels='';size=None;covered=int(unbounded or abs(r['y']-r['prediction'])<=threshold)if labeled else None\n   r.update(defined=defined,labeled=labeled,lower=lo,upper=hi,width=width,labels=labels,size=size,covered=covered)\n   outputs['row-predictions'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],plannedRole=r['plannedRole'],role=r['role'],group=r['group'],actualY=r['y'],rawLinear=r['raw'],prediction=r['prediction'],predictionDefined=int(defined),threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded),lower=lo,upper=hi,width=width,setLabels=labels,setSize=size,covered=covered,labeledPrediction=int(labeled)))\n   outputs['eligibility'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],plannedRole=r['plannedRole'],role=r['role'],requiredComplete=int(r['eligible']),trainingUsed=int(r['role']=='train'and r['eligible']),reason='missing-required-field'if not r['eligible']else''))\n  roles=list(dict.fromkeys(r['role']for r in rr));groups=list(dict.fromkeys(r['group']for r in rr))\n  for role in roles:\n   for group in['all']+groups:\n    use=[r for r in rr if r['role']==role and(group=='all'or r['group']==group)];defined=[r for r in use if r['defined']];scored=[r for r in use if r['labeled']and role not in['excluded','unused']];covered=sum(r['covered']for r in scored);nn=len(defined);nscore=len(scored);unboundedCount=sum(r['width']=='+infinity'for r in defined);size=Q(sum(r['size']for r in defined),nn)if kind=='company'and nn else None;width=('+infinity'if unboundedCount else sum(r['width']for r in defined)/nn)if kind!='company'and nn else None\n    outputs['role-group-coverage'].append(dict(kind=kind,role=role,group=group,originalRows=len(use),definedPredictions=nn,scoredLabels=nscore,coveredRows=covered,coverage=Q(covered,nscore)if nscore else None,meanSetSize=size,meanIntervalWidth=width,unboundedIntervals=unboundedCount))\n  if kind=='company':\n   for role in['train','calibration','test']:\n    use=[dict(p=r['prediction'],y=r['y'])for r in rr if r['role']==role and r['labeled']];bb,mm=bins(use)\n    for row in bb:outputs['reliability-bins'].append(dict(kind=kind,role=role,**row))\n    for name,value in mm.items():metric(kind,role+':'+name,value,'dimensionless'if name=='ECE'else'squared probability')\n    metric(kind,role+':meanLogLoss',meanlog(use),'nats','Decimal60 approximation or genuine infinity')\n return outputs\n\n# Owned ML20 fixed-example adapters. Finite rational calculations; logs approximate.\nfrom fractions import Fraction as Q\nfrom decimal import Decimal,localcontext\nimport math\ndef num(v):return v if isinstance(v,Q)else Q(str(v))\ndef ceilq(q):return-((-q.numerator)//q.denominator)\ndef fixed_quantile(scores,alpha):\n a=num(alpha)\n if not 0<a<1:raise ValueError('alpha-must-be-strictly-between-zero-and-one')\n ordered=sorted([(num(v),i)for i,v in enumerate(scores)if v is not None]);n=len(ordered);k=ceilq((n+1)*(1-a));q=None if k>n else ordered[k-1][0]\n return dict(n=n,k=k,threshold=q,infinite=q is None,ordered=ordered)\ndef fixed_score(rows):\n rr=[dict(p=num(r['p']),y=num(r['y']),w=num(r.get('weight',1)))for r in rows];rr=[r for r in rr if r['w']>0];mass=sum((r['w']for r in rr),Q(0));brier=sum((r['w']*(r['p']-r['y'])**2 for r in rr),Q(0))/mass if mass else None;logs=[];genuine=False\n with localcontext()as ctx:\n  ctx.prec=1800\n  total=Decimal(0)\n  for r in rr:\n   p=r['p']if r['y']else 1-r['p']\n   if not p:genuine=True;logs.append('+infinity');continue\n   loss=-(Decimal(p.numerator)/Decimal(p.denominator)).ln();logs.append(str(loss));w=r['w']/mass;total+=Decimal(w.numerator)/Decimal(w.denominator)*loss\n  display='+infinity'if genuine else None if not mass else repr(float(total));raw='+infinity'if genuine else None if not mass else str(total)\n return dict(rows=rr,mass=mass,Brier=brier,meanLogLoss=display,naturalLogApprox1800=raw,individualLogLoss=logs,genuineInfinite=genuine,BrierPositive=brier is not None and brier>0)\ndef fixed_calibration(rows,B):\n rr=[dict(p=num(r['p']),y=num(r['y']))for r in rows];N=len(rr);yb=sum((r['y']for r in rr),Q(0))/N;groups=[[]for _ in range(B)]\n for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n result=[];ece=rel=res=vp=cp=Q(0)\n for j,g in enumerate(groups):\n  n=len(g);pm=sum((r['p']for r in g),Q(0))/n if n else None;ym=sum((r['y']for r in g),Q(0))/n if n else None;v=sum(((r['p']-pm)**2 for r in g),Q(0))/n if n else None;c=sum(((r['p']-pm)*(r['y']-ym)for r in g),Q(0))/n if n else None;result.append(dict(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c))\n  if n:z=Q(n,N);ece+=z*abs(pm-ym);rel+=z*(pm-ym)**2;res+=z*(ym-yb)**2;vp+=z*v;cp+=z*c\n bs=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/N;u=yb*(1-yb)\n return dict(rows=N,bins=result,Brier=bs,ECE=ece,uncertainty=u,resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=u-res+rel+vp-2*cp)\ndef fixed_predict(a):\n q=fixed_quantile(a['scores'],a['alpha']);out=[];classification=a['mode']=='classification'\n for i,row in enumerate(a['queries']):\n  p=num(row['p']if classification else row['center']);y=None if row.get('y')is None else num(row['y']);threshold=q['threshold'];unbounded=q['infinite']\n  if classification:labels=[v for v,s in[(0,p),(1,1-p)]if unbounded or s<=threshold];lo=hi=width=None;size=len(labels);covered=None if y is None else int(int(y)in labels)\n  else:labels=None;size=None;lo='-infinity'if unbounded else p-threshold;hi='+infinity'if unbounded else p+threshold;width='+infinity'if unbounded else 2*threshold;covered=None if y is None else int(unbounded or abs(y-p)<=threshold)\n  out.append(dict(id=row.get('id',str(i)),prediction=p,actualY=y,labels=labels,size=size,lower=lo,upper=hi,width=width,covered=covered))\n scored=[r for r in out if r['covered']is not None];coverage=Q(sum(r['covered']for r in scored),len(scored))if scored else None;meanSize=Q(sum(r['size']for r in out),len(out))if classification and out else None;meanWidth=('+infinity'if q['infinite']else 2*q['threshold'])if not classification and out else None\n return dict(quantile=q,rows=out,scoredLabels=len(scored),coverage=coverage,meanSetSize=meanSize,meanWidth=meanWidth)\ndef fixed_ranklaw(a):\n scores=list(map(num,a['scores']));trials=[]\n for i,y in enumerate(scores):q=fixed_quantile(scores[:i]+scores[i+1:],a['alpha']);trials.append(dict(heldout=i,score=y,k=q['k'],threshold=q['threshold'],infinite=q['infinite'],covered=int(q['infinite']or y<=q['threshold'])))\n return dict(N=len(scores),distinct=len(set(scores))==len(scores),trials=trials,coverage=Q(sum(t['covered']for t in trials),len(trials)))\ndef fixed_operation(api,a):\n return fixed_score(a['rows'])if api=='score'else fixed_calibration(a['rows'],a['bins'])if api=='calibration'else fixed_quantile(a['scores'],a['alpha'])if api=='quantile'else fixed_predict(a)if api=='predict'else fixed_ranklaw(a)if api=='ranklaw'else fixed_source(a['kind'])\ndef report_values(api,z):\n summary=[];series=[]\n def add(k,v,u):summary.append((k,v,u))\n if api=='score':\n  for k,u in[('mass','analysis weight'),('Brier','squared probability'),('meanLogLoss','nats; numerical logarithm'),('genuineInfinite','indicator'),('BrierPositive','mathematical indicator')]:add(k,z[k],u)\n  series=[('squared error',[(i,(r['p']-r['y'])**2)for i,r in enumerate(z['rows'])])]\n elif api=='calibration':\n  for k in['Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity']:add(k,z[k],'probability'if k=='ECE'else'squared probability')\n  series=[('bin probability',[(r['bin'],r['meanP'])for r in z['bins']]),('bin outcome frequency',[(r['bin'],r['frequency'])for r in z['bins']])]\n elif api=='quantile':\n  for k,u in[('n','scores'),('k','one-based rank'),('infinite','mathematical indicator')]:add(k,z[k],u)\n  add('threshold','+infinity'if z['infinite']else z['threshold'],'score units');series=[('sorted score',[(i+1,v)for i,(v,index)in enumerate(z['ordered'])])]\n elif api=='predict':\n  for k,u in[('scoredLabels','labels'),('coverage','fraction'),('meanSetSize','classes'),('meanWidth','outcome units')]:add(k,z[k],u)\n  add('thresholdInfinite',z['quantile']['infinite'],'mathematical indicator');series=[('predicted center or probability',[(i,r['prediction'])for i,r in enumerate(z['rows'])]),('observed label or outcome',[(i,r['actualY'])for i,r in enumerate(z['rows'])])]\n elif api=='ranklaw':\n  for k,u in[('N','scores'),('distinct','indicator'),('coverage','fraction')]:add(k,z[k],u)\n  series=[('held-out coverage',[(r['heldout'],r['covered'])for r in z['trials']])]\n else:\n  mt={r['metric']:r for r in z['study-metrics']};cv=next(r for r in z['role-group-coverage']if r['role']=='test'and r['group']=='all')\n  for k in['sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold']:add(k,mt[k]['value'],mt[k]['unit'])\n  for k,u in[('coverage','fraction'),('meanSetSize','classes'),('meanIntervalWidth','outcome units')]:add(k,cv[k],u)\n  series=[('all calibration scores',[(r['rank'],r['score'])for r in z['calibration-scores']])]\n return summary,series\n\nnumber=num\n\nFIXED={'api': 'quantile', 'variant': 'exact-ceiling', 'title': 'Adjusted rank with exact alpha seven-tenths', 'input': {'scores': ['1', '2', '3', '4', '5', '6', '7', '8', '9'], 'alpha': '7/10'}, 'expectedFailure': False}\n\ndef fixed_svg(points,title):\n good=[p for p in points if p['y'] is not None];xx=[float(p['x'])for p in good];yy=[float(p['y'])for p in good];xmin=min(xx)if xx else 0;xmax=max(xx)if xx else 1;ymin=min([0]+yy);ymax=max([0]+yy)\n if xmin==xmax:xmin-=.5;xmax+=.5\n if ymin==ymax:ymin-=.5;ymax+=.5\n pad=(ymax-ymin)*.08;ymin-=pad;ymax+=pad;X=lambda x:82+(float(x)-xmin)/(xmax-xmin)*608;Y=lambda y:354-(float(y)-ymin)/(ymax-ymin)*290;e=html.escape\n out=['<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"'+e(title)+'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">'+e(title)+'</text>']\n for j in range(5):\n  y=ymin+(ymax-ymin)*j/4;x=xmin+(xmax-xmin)*j/4;out.append('<line x1=\"82\" y1=\"'+str(Y(y))+'\" x2=\"690\" y2=\"'+str(Y(y))+'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"'+str(Y(y)+4)+'\" text-anchor=\"end\">'+format(y,'.3g')+'</text><text x=\"'+str(X(x))+'\" y=\"380\" text-anchor=\"middle\">'+format(x,'.3g')+'</text>')\n series=list(dict.fromkeys(p['series']for p in good))\n for j,s in enumerate(series):\n  pp=[p for p in good if p['series']==s];color=['#0f766e','#c76622','#4f46e5','#b23857'][j%4];out.append('<polyline fill=\"none\" stroke=\"'+color+'\" stroke-width=\"1.5\" points=\"'+' '.join(format(X(p['x']),'.6f')+','+format(Y(p['y']),'.6f')for p in pp)+'\"/>')\n  for p in pp:out.append('<circle cx=\"'+format(X(p['x']),'.6f')+'\" cy=\"'+format(Y(p['y']),'.6f')+'\" r=\"2.6\" fill=\"'+color+'\"><title>'+e(s+': '+str(p['y']))+'</title></circle>')\n  out.append('<text x=\"'+str(82+(j%2)*310)+'\" y=\"'+str(432+(j//2)*23)+'\" fill=\"'+color+'\">'+e(s)+'</text>')\n out.append('<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>');return''.join(out)\n\nOUT=Path(sys.argv[1]);OUT.mkdir(parents=True,exist_ok=False)\nresult=fixed_operation(FIXED['api'],FIXED['input']);summary,series=report_values(FIXED['api'],result)\ndef encode(v):\n if isinstance(v,Q):return str(v)\n if isinstance(v,dict):return{k:encode(x)for k,x in v.items()}\n if isinstance(v,(list,tuple)):return[encode(x)for x in v]\n return v\n(OUT/'full.json').write_text(json.dumps(dict(arithmetic='Exact finite Fraction algebra except approximate natural logs; declared fixed examples, no exchangeability certification',result=encode(result)),ensure_ascii=False,indent=2)+'\\n',encoding='utf8')\nsummaryRows=[dict(metric=m,value=''if v is None else str(int(v))if isinstance(v,bool)else str(v),unit=u,defined=int(v is not None))for m,v,u in summary]\npoints=[dict(series=name,index=i,x=str(x),y=''if y is None else str(y),defined=int(y is not None))for name,pp in series for i,(x,y)in enumerate(pp)]\nfor name,rows in [('summary',summaryRows),('plot-points',points)]:\n with(OUT/(name+'.csv')).open('w',encoding='utf8',newline='')as f:writer=csv.DictWriter(f,fieldnames=list(rows[0]));writer.writeheader();writer.writerows(rows)\n(OUT/'plot.svg').write_text(fixed_svg([dict(p,x=number(p['x']),y=None if not p['defined']else number(p['y']))for p in points],FIXED['title']),encoding='utf8');print(FIXED['api']+'/'+FIXED['variant'])\n",
        "returnCode": 0,
        "stdout": "quantile/exact-ceiling\r\n",
        "stderr": "",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/python-quantile-exact-ceiling-result",
        "kind": null,
        "inputFiles": [],
        "files": [
          {
            "file": "ml20-code/python-quantile-exact-ceiling-result/full.json",
            "sha256": "13534b4dfe0caff10f3ad734011f579664ab7d730bc68a16aa77fb9b08417526",
            "bytes": 660
          },
          {
            "file": "ml20-code/python-quantile-exact-ceiling-result/plot-points.csv",
            "sha256": "5d7b46a1a51327ff23f9994a5bcb20b70e5f8e64513d546fc7b3b217163e2acd",
            "bytes": 224
          },
          {
            "file": "ml20-code/python-quantile-exact-ceiling-result/plot.svg",
            "sha256": "5fdefa27ba003ff7139de32d701686896f6ee80ef83b045caa76c12352f6019e",
            "bytes": 2537
          },
          {
            "file": "ml20-code/python-quantile-exact-ceiling-result/summary.csv",
            "sha256": "87dd4ab1de0ab33ba9cdc42abdddac2db070e8a0cdae3ba6264570739ab29b64",
            "bytes": 127
          },
          {
            "file": "ml20-code/python-quantile-exact-ceiling-result/stdout.txt",
            "sha256": "893ef9e2529a0ad0da5ad8040f89e59ba50a6ef35c5fe496fc43141e7eea444f",
            "bytes": 24
          },
          {
            "file": "ml20-code/python-quantile-exact-ceiling-result/stderr.txt",
            "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
            "bytes": 0
          }
        ],
        "summaryRows": [
          {
            "metric": "n",
            "value": "9",
            "unit": "scores",
            "defined": "true",
            "exactFraction": "9",
            "rawValue": "9",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "k",
            "value": "3",
            "unit": "one-based rank",
            "defined": "true",
            "exactFraction": "3",
            "rawValue": "3",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "infinite",
            "value": "0",
            "unit": "mathematical indicator",
            "defined": "true",
            "exactFraction": "0",
            "rawValue": "0",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "threshold",
            "value": "3",
            "unit": "score units",
            "defined": "true",
            "exactFraction": "3",
            "rawValue": "3",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          }
        ],
        "plotRows": [
          {
            "series": "sorted score",
            "index": 0,
            "x": "1",
            "y": "1",
            "defined": true,
            "xExact": "1",
            "yExact": "1"
          },
          {
            "series": "sorted score",
            "index": 1,
            "x": "2",
            "y": "2",
            "defined": true,
            "xExact": "2",
            "yExact": "2"
          },
          {
            "series": "sorted score",
            "index": 2,
            "x": "3",
            "y": "3",
            "defined": true,
            "xExact": "3",
            "yExact": "3"
          },
          {
            "series": "sorted score",
            "index": 3,
            "x": "4",
            "y": "4",
            "defined": true,
            "xExact": "4",
            "yExact": "4"
          },
          {
            "series": "sorted score",
            "index": 4,
            "x": "5",
            "y": "5",
            "defined": true,
            "xExact": "5",
            "yExact": "5"
          },
          {
            "series": "sorted score",
            "index": 5,
            "x": "6",
            "y": "6",
            "defined": true,
            "xExact": "6",
            "yExact": "6"
          },
          {
            "series": "sorted score",
            "index": 6,
            "x": "7",
            "y": "7",
            "defined": true,
            "xExact": "7",
            "yExact": "7"
          },
          {
            "series": "sorted score",
            "index": 7,
            "x": "8",
            "y": "8",
            "defined": true,
            "xExact": "8",
            "yExact": "8"
          },
          {
            "series": "sorted score",
            "index": 8,
            "x": "9",
            "y": "9",
            "defined": true,
            "xExact": "9",
            "yExact": "9"
          }
        ],
        "plotFile": "ml20-code/python-quantile-exact-ceiling-result/plot.svg",
        "fullResultFile": "ml20-code/python-quantile-exact-ceiling-result/full.json",
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      },
      "reject-alpha-one": {
        "api": "quantile",
        "variant": "reject-alpha-one",
        "language": "python",
        "title": "Reject alpha equal to one",
        "input": {
          "scores": [
            "1",
            "2"
          ],
          "alpha": "1"
        },
        "expectedFailure": true,
        "codeFile": "ml20-code/quantile-reject-alpha-one.py",
        "codeSHA256": "13bf1f4ce36a1497aaefc561628cbb1465e42d0c7d93dc6f5c63e32c1267a634",
        "code": "\"\"\"ML20 standalone fixed example, not an arbitrary-input validator.\nFinite Python Fraction algebra; natural logs use Decimal1800 approximation\nthen a final binary64 display projection. Realdata reads4factual CSVs only,\nreusing the frozen public reader/fit implementation by value; all other inputs\nare complete fixed literals. No engine/model/computed/checker imported.\nRun: python this-file.py NEW-OUTPUT\n\"\"\"\nfrom pathlib import Path\nimport csv,json,hashlib,sys,math,html\nif hasattr(sys,'set_int_max_str_digits'):sys.set_int_max_str_digits(100000)\n\"\"\"Owned standalone exact finite optimization primitives for ML19 public programs.\nThis is an author implementation, never an independent numerical oracle.\n\"\"\"\nfrom fractions import Fraction as Q\ndef number(v):return v if isinstance(v,Q)else Q(str(v))\ndef dot(a,b):return sum((x*y for x,y in zip(a,b)),Q(0))\ndef frame(rows,p=2,scale='range'):\n rr=[]\n for i,r in enumerate(rows):\n  x=[None if v is None else number(v)for v in r['x']];y=None if r['y']is None else number(r['y']);w=number(r.get('weight',1));role=r.get('role','train');rr.append(dict(id=r.get('id','row:'+str(i+1)),index=i,x=x,y=y,w=w,role=role,eligible=y is not None and all(v is not None for v in x)and w>0))\n train=[r for r in rr if r['role']=='train'and r['eligible']];W=sum((r['w']for r in train),Q(0))\n if not W:return dict(defined=False,p=p,rows=rr,train=[],W=W)\n mean=[sum(r['w']*r['x'][j]for r in train)/W for j in range(p)];ranges=[max(r['x'][j]for r in train)-min(r['x'][j]for r in train)or Q(1)for j in range(p)];scales=ranges if scale=='range'else[Q(1)]*p\n for r in rr:r['z']=None if None in r['x']else[Q(1)]+[(r['x'][j]-mean[j])/scales[j]for j in range(p)]\n return dict(defined=True,p=p,rows=rr,train=train,W=W,mean=mean,ranges=ranges,scales=scales,meanY=sum(r['w']*r['y']for r in train)/W)\ndef quadratic(f,lam=Q(0),role='train'):\n rr=[r for r in f['rows']if r['role']==role and r['eligible']];W=sum((r['w']for r in rr),Q(0));n=f['p']+1\n if not W:return None\n H=[[sum(r['w']*r['z'][j]*r['z'][k]for r in rr)/W+(lam if j==k and j else 0)for k in range(n)]for j in range(n)];b=[sum(r['w']*r['y']*r['z'][j]for r in rr)/W for j in range(n)];d=sum(r['w']*r['y']**2 for r in rr)/(2*W);return H,b,d\ndef state(q,theta):\n H,b,d=q;gradient=[dot(row,theta)-bb for row,bb in zip(H,b)];return dict(theta=theta,objective=dot(theta,[dot(row,theta)for row in H])/2-dot(theta,b)+d,gradient=gradient,gradientNormSquared=dot(gradient,gradient))\ndef solve(H,b):\n n=len(b);A=[row[:]+[bb]for row,bb in zip(H,b)];piv=[];row=0\n for j in range(n):\n  k=next((i for i in range(row,n)if A[i][j]),None)\n  if k is None:continue\n  A[row],A[k]=A[k],A[row];z=A[row][j];A[row]=[v/z for v in A[row]]\n  for i in range(n):\n   if i!=row:\n    z=A[i][j];A[i]=[v-z*u for v,u in zip(A[i],A[row])]\n  piv.append(j);row+=1\n  if row==n:break\n assert not any(not any(r[:n])and r[n]for r in A)\n beta=[Q(0)]*n\n for i,j in enumerate(piv):beta[j]=A[i][n]\n nullspace=[]\n for j in range(n):\n  if j not in piv:\n   v=[Q(0)]*n;v[j]=Q(1)\n   for i,k in enumerate(piv):v[k]=-A[i][j]\n   nullspace.append(v)\n return dict(rank=len(piv),particular=beta,nullspace=nullspace,unique=len(piv)==n)\n\n\ndef fixed_source(kind):\n SRC=Path(__file__).resolve().parent/\"data\"\n read=lambda n:list(csv.DictReader((SRC/n).open(encoding='utf8',newline='')))\n def native(v):return None if v in['','.']else v\n\n models={};original=read('actual48-country-revised-original-2023-2024.csv');lookup={(r['countryISO3'],r['indicatorID'],r['date']):r for r in original};rows=[]\n for iso in sorted({r['countryISO3']for r in original}):\n  g=lookup[iso,'NY.GDP.PCAP.KD','2023'];p=lookup[iso,'FP.CPI.TOTL.ZG','2023'];y=lookup[iso,'NY.GDP.MKTP.KD.ZG','2024'];rows.append(dict(id=iso+':2024',x=[None if not g['originalValueToken']else str(number(g['originalValueToken'])/10000),None if not p['originalValueToken']else str(number(p['originalValueToken'])/10)],y=native(y['originalValueToken']),sourceRow=iso))\n models['country']=dict(rows=rows,names=['g','pi'],unit='annual GDP growth percentage points')\n for kind,file,keys,ykey,ID in [('person','actual3613-NLS-original52-fields-and-conformal-frame.csv',['ed76','age76'],'lwage76','person-row:'),('company','actual3150-churn-original14-fields-and-conformal-frame.csv',['Call  Failure','Seconds of Use'],'Churn','customer-row:')]:\n  source=read(file);models[kind]=dict(rows=[dict(id=ID+r['sourceRow'],sourceRow=r['sourceRow'],x=[native(r[k])for k in keys],y=native(r[ykey]))for r in source],names=['ed76','age76']if kind=='person'else['CallFailure','SecondsUse'],unit='native trimmed1976log hourly wage'if kind=='person'else'native Churn0/1')\n for kind,m in models.items():\n  for rank,r in enumerate(sorted(m['rows'],key=lambda r:(hashlib.sha256(('ML20|'+kind+'|'+r['id']).encode()).digest(),r['id']))):r.update(splitRank=rank,plannedRole=['test','calibration','train','train'][rank%4]);r['role']=r['plannedRole']if r['y']is not None and None not in r['x']else'excluded';r['weight']='1'\n  m['trainingIDs']=[r['id']for r in sorted(m['rows'],key=lambda r:r['splitRank'])if r['role']=='train']\n\n models={kind:models[kind]}\n # New public actual-source study; exact finite Fraction fit/rank/membership.\n # Default single declared model, not a hyperparameter Cartesian dump.\n from decimal import Decimal,localcontext\n from collections import Counter\n outputs={k:[]for k in['study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins']}\n alpha=number('1/5');lam=number('1/100')\n if not 0<alpha<1 or lam<0:raise ValueError('Require0<alpha<1 and nonnegative ridge')\n def metric(kind,name,value,unit,arithmetic='exact rational'):\n  outputs['study-metrics'].append(dict(kind=kind,metric=name,value=''if value is None else value,unit=unit,defined=int(value is not None),arithmetic=arithmetic))\n def bins(rr,B=5):\n  groups=[[]for _ in range(B)]\n  for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n  n=len(rr);yb=sum((r['y']for r in rr),Q(0))/n if n else None;ece=rel=res=var=cov=Q(0);result=[]\n  for j,gg in enumerate(groups):\n   nn=len(gg);pm=sum((r['p']for r in gg),Q(0))/nn if nn else None;ym=sum((r['y']for r in gg),Q(0))/nn if nn else None;v=sum(((r['p']-pm)**2 for r in gg),Q(0))/nn if nn else None;co=sum(((r['p']-pm)*(r['y']-ym)for r in gg),Q(0))/nn if nn else None\n   result.append(dict(bin=j,lower=Q(j,B),upper=Q(j+1,B),rightClosed=int(j==B-1),rows=nn,meanP=pm,frequencyY1=ym,gap=None if not nn else pm-ym,withinVarianceP=v,withinCovariancePY=co))\n   if nn:weight=Q(nn,n);ece+=weight*abs(pm-ym);rel+=weight*(pm-ym)**2;res+=weight*(ym-yb)**2;var+=weight*v;cov+=weight*co\n  return result,dict(ECE=ece if n else None,Brier=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/n if n else None,uncertainty=yb*(1-yb)if n else None,resolution=res if n else None,reliability=rel if n else None,withinVarianceP=var if n else None,withinCovariancePY=cov if n else None)\n def meanlog(rr):\n  if not rr:return None\n  pp=[r['p']if r['y']else 1-r['p']for r in rr]\n  if any(not p for p in pp):return'+infinity'\n  with localcontext()as ctx:\n   ctx.prec=60;return str(-sum(((Decimal(p.numerator)/Decimal(p.denominator)).ln()for p in pp),Decimal(0))/len(pp))\n for kind,m in models.items():\n  f=frame(m['rows']);n=len(f['train']);assert n>0;H,b,d=quadratic(f,lam);fit=solve(H,b);theta=fit['particular'];minimum=state((H,b,d),theta)['objective'];beta=[theta[j+1]/f['scales'][j]for j in range(2)];intercept=theta[0]-dot(beta,f['mean']);rr=[]\n  for r in f['rows']:\n   native=m['rows'][r['index']];raw=None if r['z']is None else dot(r['z'],theta);pred=None if raw is None else max(Q(0),min(Q(1),raw))if kind=='company'else raw;group='missing-X'if r['z']is None else('schooling-at-most12'if r['x'][0]<=12 else'schooling-over12')if kind=='person'else('zero-call-failures'if r['x'][0]==0 else'positive-call-failures')if kind=='company'else('GDPpc-at-most-training-mean'if r['x'][0]<=f['mean'][0]else'GDPpc-above-training-mean');rr.append(dict(id=r['id'],sourceRow=native['sourceRow'],sourceIndex0=r['index'],plannedRole=native['plannedRole'],role=r['role'],group=group,y=r['y'],raw=raw,prediction=pred,eligible=r['eligible']))\n  cal=[r for r in rr if r['role']=='calibration'and r['prediction']is not None and r['y']is not None]\n  for i,r in enumerate(cal):r['calibrationIndex0']=i;r['score']=(1-r['prediction']if r['y']else r['prediction'])if kind=='company'else abs(r['y']-r['prediction'])\n  ordered=sorted(cal,key=lambda r:(r['score'],r['calibrationIndex0']));rankQ=(len(cal)+1)*(1-alpha);k=(rankQ.numerator+rankQ.denominator-1)//rankQ.denominator;threshold=ordered[k-1]['score']if k<=len(cal)else None;unbounded=threshold is None\n  for j,r in enumerate(ordered,1):outputs['calibration-scores'].append(dict(kind=kind,rank=j,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],calibrationIndex0=r['calibrationIndex0'],score=r['score'],threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded)))\n  for j,name in enumerate(m['names']):outputs['training-coefficients'].append(dict(kind=kind,feature=name,mean=f['mean'][j],scale=f['scales'][j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[0],nativeIntercept=intercept,rank=fit['rank'],unique=int(fit['unique']),lambdaValue=lam,minimumObjective=minimum))\n  for name,value,unit in[('sourceRows',len(rr),'rows'),('trainingRows',n,'rows'),('calibrationScores',len(cal),'unit-count scores'),('testLabeledRows',sum(r['role']=='test'and r['y']is not None for r in rr),'rows'),('excludedRows',sum(r['role']=='excluded'for r in rr),'rows'),('alpha',alpha,'probability'),('ridge',lam,'transformed slope penalty'),('quantileRank',k,'one-based rank'),('threshold','+infinity'if unbounded else threshold,'dimensionless score'if kind=='company'else m['unit']),('minimumObjective',minimum,'('+m['unit']+') squared')]:metric(kind,name,value,unit,'mathematical infinity'if value=='+infinity'else'exact rational')\n  for r in rr:\n   defined=r['prediction']is not None;labeled=defined and r['y']is not None\n   if not defined:lo=hi=width=size=None;labels='';covered=None\n   elif kind=='company':\n    labelsList=[j for j,s in enumerate([r['prediction'],1-r['prediction']])if unbounded or s<=threshold];labels='|'.join(map(str,labelsList));size=len(labelsList);lo=hi=width=None;covered=int(int(r['y'])in labelsList)if labeled else None\n   else:lo='-infinity'if unbounded else r['prediction']-threshold;hi='+infinity'if unbounded else r['prediction']+threshold;width='+infinity'if unbounded else 2*threshold;labels='';size=None;covered=int(unbounded or abs(r['y']-r['prediction'])<=threshold)if labeled else None\n   r.update(defined=defined,labeled=labeled,lower=lo,upper=hi,width=width,labels=labels,size=size,covered=covered)\n   outputs['row-predictions'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],plannedRole=r['plannedRole'],role=r['role'],group=r['group'],actualY=r['y'],rawLinear=r['raw'],prediction=r['prediction'],predictionDefined=int(defined),threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded),lower=lo,upper=hi,width=width,setLabels=labels,setSize=size,covered=covered,labeledPrediction=int(labeled)))\n   outputs['eligibility'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],plannedRole=r['plannedRole'],role=r['role'],requiredComplete=int(r['eligible']),trainingUsed=int(r['role']=='train'and r['eligible']),reason='missing-required-field'if not r['eligible']else''))\n  roles=list(dict.fromkeys(r['role']for r in rr));groups=list(dict.fromkeys(r['group']for r in rr))\n  for role in roles:\n   for group in['all']+groups:\n    use=[r for r in rr if r['role']==role and(group=='all'or r['group']==group)];defined=[r for r in use if r['defined']];scored=[r for r in use if r['labeled']and role not in['excluded','unused']];covered=sum(r['covered']for r in scored);nn=len(defined);nscore=len(scored);unboundedCount=sum(r['width']=='+infinity'for r in defined);size=Q(sum(r['size']for r in defined),nn)if kind=='company'and nn else None;width=('+infinity'if unboundedCount else sum(r['width']for r in defined)/nn)if kind!='company'and nn else None\n    outputs['role-group-coverage'].append(dict(kind=kind,role=role,group=group,originalRows=len(use),definedPredictions=nn,scoredLabels=nscore,coveredRows=covered,coverage=Q(covered,nscore)if nscore else None,meanSetSize=size,meanIntervalWidth=width,unboundedIntervals=unboundedCount))\n  if kind=='company':\n   for role in['train','calibration','test']:\n    use=[dict(p=r['prediction'],y=r['y'])for r in rr if r['role']==role and r['labeled']];bb,mm=bins(use)\n    for row in bb:outputs['reliability-bins'].append(dict(kind=kind,role=role,**row))\n    for name,value in mm.items():metric(kind,role+':'+name,value,'dimensionless'if name=='ECE'else'squared probability')\n    metric(kind,role+':meanLogLoss',meanlog(use),'nats','Decimal60 approximation or genuine infinity')\n return outputs\n\n# Owned ML20 fixed-example adapters. Finite rational calculations; logs approximate.\nfrom fractions import Fraction as Q\nfrom decimal import Decimal,localcontext\nimport math\ndef num(v):return v if isinstance(v,Q)else Q(str(v))\ndef ceilq(q):return-((-q.numerator)//q.denominator)\ndef fixed_quantile(scores,alpha):\n a=num(alpha)\n if not 0<a<1:raise ValueError('alpha-must-be-strictly-between-zero-and-one')\n ordered=sorted([(num(v),i)for i,v in enumerate(scores)if v is not None]);n=len(ordered);k=ceilq((n+1)*(1-a));q=None if k>n else ordered[k-1][0]\n return dict(n=n,k=k,threshold=q,infinite=q is None,ordered=ordered)\ndef fixed_score(rows):\n rr=[dict(p=num(r['p']),y=num(r['y']),w=num(r.get('weight',1)))for r in rows];rr=[r for r in rr if r['w']>0];mass=sum((r['w']for r in rr),Q(0));brier=sum((r['w']*(r['p']-r['y'])**2 for r in rr),Q(0))/mass if mass else None;logs=[];genuine=False\n with localcontext()as ctx:\n  ctx.prec=1800\n  total=Decimal(0)\n  for r in rr:\n   p=r['p']if r['y']else 1-r['p']\n   if not p:genuine=True;logs.append('+infinity');continue\n   loss=-(Decimal(p.numerator)/Decimal(p.denominator)).ln();logs.append(str(loss));w=r['w']/mass;total+=Decimal(w.numerator)/Decimal(w.denominator)*loss\n  display='+infinity'if genuine else None if not mass else repr(float(total));raw='+infinity'if genuine else None if not mass else str(total)\n return dict(rows=rr,mass=mass,Brier=brier,meanLogLoss=display,naturalLogApprox1800=raw,individualLogLoss=logs,genuineInfinite=genuine,BrierPositive=brier is not None and brier>0)\ndef fixed_calibration(rows,B):\n rr=[dict(p=num(r['p']),y=num(r['y']))for r in rows];N=len(rr);yb=sum((r['y']for r in rr),Q(0))/N;groups=[[]for _ in range(B)]\n for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n result=[];ece=rel=res=vp=cp=Q(0)\n for j,g in enumerate(groups):\n  n=len(g);pm=sum((r['p']for r in g),Q(0))/n if n else None;ym=sum((r['y']for r in g),Q(0))/n if n else None;v=sum(((r['p']-pm)**2 for r in g),Q(0))/n if n else None;c=sum(((r['p']-pm)*(r['y']-ym)for r in g),Q(0))/n if n else None;result.append(dict(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c))\n  if n:z=Q(n,N);ece+=z*abs(pm-ym);rel+=z*(pm-ym)**2;res+=z*(ym-yb)**2;vp+=z*v;cp+=z*c\n bs=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/N;u=yb*(1-yb)\n return dict(rows=N,bins=result,Brier=bs,ECE=ece,uncertainty=u,resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=u-res+rel+vp-2*cp)\ndef fixed_predict(a):\n q=fixed_quantile(a['scores'],a['alpha']);out=[];classification=a['mode']=='classification'\n for i,row in enumerate(a['queries']):\n  p=num(row['p']if classification else row['center']);y=None if row.get('y')is None else num(row['y']);threshold=q['threshold'];unbounded=q['infinite']\n  if classification:labels=[v for v,s in[(0,p),(1,1-p)]if unbounded or s<=threshold];lo=hi=width=None;size=len(labels);covered=None if y is None else int(int(y)in labels)\n  else:labels=None;size=None;lo='-infinity'if unbounded else p-threshold;hi='+infinity'if unbounded else p+threshold;width='+infinity'if unbounded else 2*threshold;covered=None if y is None else int(unbounded or abs(y-p)<=threshold)\n  out.append(dict(id=row.get('id',str(i)),prediction=p,actualY=y,labels=labels,size=size,lower=lo,upper=hi,width=width,covered=covered))\n scored=[r for r in out if r['covered']is not None];coverage=Q(sum(r['covered']for r in scored),len(scored))if scored else None;meanSize=Q(sum(r['size']for r in out),len(out))if classification and out else None;meanWidth=('+infinity'if q['infinite']else 2*q['threshold'])if not classification and out else None\n return dict(quantile=q,rows=out,scoredLabels=len(scored),coverage=coverage,meanSetSize=meanSize,meanWidth=meanWidth)\ndef fixed_ranklaw(a):\n scores=list(map(num,a['scores']));trials=[]\n for i,y in enumerate(scores):q=fixed_quantile(scores[:i]+scores[i+1:],a['alpha']);trials.append(dict(heldout=i,score=y,k=q['k'],threshold=q['threshold'],infinite=q['infinite'],covered=int(q['infinite']or y<=q['threshold'])))\n return dict(N=len(scores),distinct=len(set(scores))==len(scores),trials=trials,coverage=Q(sum(t['covered']for t in trials),len(trials)))\ndef fixed_operation(api,a):\n return fixed_score(a['rows'])if api=='score'else fixed_calibration(a['rows'],a['bins'])if api=='calibration'else fixed_quantile(a['scores'],a['alpha'])if api=='quantile'else fixed_predict(a)if api=='predict'else fixed_ranklaw(a)if api=='ranklaw'else fixed_source(a['kind'])\ndef report_values(api,z):\n summary=[];series=[]\n def add(k,v,u):summary.append((k,v,u))\n if api=='score':\n  for k,u in[('mass','analysis weight'),('Brier','squared probability'),('meanLogLoss','nats; numerical logarithm'),('genuineInfinite','indicator'),('BrierPositive','mathematical indicator')]:add(k,z[k],u)\n  series=[('squared error',[(i,(r['p']-r['y'])**2)for i,r in enumerate(z['rows'])])]\n elif api=='calibration':\n  for k in['Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity']:add(k,z[k],'probability'if k=='ECE'else'squared probability')\n  series=[('bin probability',[(r['bin'],r['meanP'])for r in z['bins']]),('bin outcome frequency',[(r['bin'],r['frequency'])for r in z['bins']])]\n elif api=='quantile':\n  for k,u in[('n','scores'),('k','one-based rank'),('infinite','mathematical indicator')]:add(k,z[k],u)\n  add('threshold','+infinity'if z['infinite']else z['threshold'],'score units');series=[('sorted score',[(i+1,v)for i,(v,index)in enumerate(z['ordered'])])]\n elif api=='predict':\n  for k,u in[('scoredLabels','labels'),('coverage','fraction'),('meanSetSize','classes'),('meanWidth','outcome units')]:add(k,z[k],u)\n  add('thresholdInfinite',z['quantile']['infinite'],'mathematical indicator');series=[('predicted center or probability',[(i,r['prediction'])for i,r in enumerate(z['rows'])]),('observed label or outcome',[(i,r['actualY'])for i,r in enumerate(z['rows'])])]\n elif api=='ranklaw':\n  for k,u in[('N','scores'),('distinct','indicator'),('coverage','fraction')]:add(k,z[k],u)\n  series=[('held-out coverage',[(r['heldout'],r['covered'])for r in z['trials']])]\n else:\n  mt={r['metric']:r for r in z['study-metrics']};cv=next(r for r in z['role-group-coverage']if r['role']=='test'and r['group']=='all')\n  for k in['sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold']:add(k,mt[k]['value'],mt[k]['unit'])\n  for k,u in[('coverage','fraction'),('meanSetSize','classes'),('meanIntervalWidth','outcome units')]:add(k,cv[k],u)\n  series=[('all calibration scores',[(r['rank'],r['score'])for r in z['calibration-scores']])]\n return summary,series\n\nnumber=num\n\nFIXED={'api': 'quantile', 'variant': 'reject-alpha-one', 'title': 'Reject alpha equal to one', 'input': {'scores': ['1', '2'], 'alpha': '1'}, 'expectedFailure': True}\n\ndef fixed_svg(points,title):\n good=[p for p in points if p['y'] is not None];xx=[float(p['x'])for p in good];yy=[float(p['y'])for p in good];xmin=min(xx)if xx else 0;xmax=max(xx)if xx else 1;ymin=min([0]+yy);ymax=max([0]+yy)\n if xmin==xmax:xmin-=.5;xmax+=.5\n if ymin==ymax:ymin-=.5;ymax+=.5\n pad=(ymax-ymin)*.08;ymin-=pad;ymax+=pad;X=lambda x:82+(float(x)-xmin)/(xmax-xmin)*608;Y=lambda y:354-(float(y)-ymin)/(ymax-ymin)*290;e=html.escape\n out=['<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"'+e(title)+'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">'+e(title)+'</text>']\n for j in range(5):\n  y=ymin+(ymax-ymin)*j/4;x=xmin+(xmax-xmin)*j/4;out.append('<line x1=\"82\" y1=\"'+str(Y(y))+'\" x2=\"690\" y2=\"'+str(Y(y))+'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"'+str(Y(y)+4)+'\" text-anchor=\"end\">'+format(y,'.3g')+'</text><text x=\"'+str(X(x))+'\" y=\"380\" text-anchor=\"middle\">'+format(x,'.3g')+'</text>')\n series=list(dict.fromkeys(p['series']for p in good))\n for j,s in enumerate(series):\n  pp=[p for p in good if p['series']==s];color=['#0f766e','#c76622','#4f46e5','#b23857'][j%4];out.append('<polyline fill=\"none\" stroke=\"'+color+'\" stroke-width=\"1.5\" points=\"'+' '.join(format(X(p['x']),'.6f')+','+format(Y(p['y']),'.6f')for p in pp)+'\"/>')\n  for p in pp:out.append('<circle cx=\"'+format(X(p['x']),'.6f')+'\" cy=\"'+format(Y(p['y']),'.6f')+'\" r=\"2.6\" fill=\"'+color+'\"><title>'+e(s+': '+str(p['y']))+'</title></circle>')\n  out.append('<text x=\"'+str(82+(j%2)*310)+'\" y=\"'+str(432+(j//2)*23)+'\" fill=\"'+color+'\">'+e(s)+'</text>')\n out.append('<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>');return''.join(out)\n\nOUT=Path(sys.argv[1]);OUT.mkdir(parents=True,exist_ok=False)\nresult=fixed_operation(FIXED['api'],FIXED['input']);summary,series=report_values(FIXED['api'],result)\ndef encode(v):\n if isinstance(v,Q):return str(v)\n if isinstance(v,dict):return{k:encode(x)for k,x in v.items()}\n if isinstance(v,(list,tuple)):return[encode(x)for x in v]\n return v\n(OUT/'full.json').write_text(json.dumps(dict(arithmetic='Exact finite Fraction algebra except approximate natural logs; declared fixed examples, no exchangeability certification',result=encode(result)),ensure_ascii=False,indent=2)+'\\n',encoding='utf8')\nsummaryRows=[dict(metric=m,value=''if v is None else str(int(v))if isinstance(v,bool)else str(v),unit=u,defined=int(v is not None))for m,v,u in summary]\npoints=[dict(series=name,index=i,x=str(x),y=''if y is None else str(y),defined=int(y is not None))for name,pp in series for i,(x,y)in enumerate(pp)]\nfor name,rows in [('summary',summaryRows),('plot-points',points)]:\n with(OUT/(name+'.csv')).open('w',encoding='utf8',newline='')as f:writer=csv.DictWriter(f,fieldnames=list(rows[0]));writer.writeheader();writer.writerows(rows)\n(OUT/'plot.svg').write_text(fixed_svg([dict(p,x=number(p['x']),y=None if not p['defined']else number(p['y']))for p in points],FIXED['title']),encoding='utf8');print(FIXED['api']+'/'+FIXED['variant'])\n",
        "returnCode": 1,
        "stdout": "",
        "stderr": "    result=fixed_operation(FIXED['api'],FIXED['input']);summary,series=report_values(FIXED['api'],result)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n    return fixed_score(a['rows'])if api=='score'else fixed_calibration(a['rows'],a['bins'])if api=='calibration'else fixed_quantile(a['scores'],a['alpha'])if api=='quantile'else fixed_predict(a)if api=='predict'else fixed_ranklaw(a)if api=='ranklaw'else fixed_source(a['kind'])\n                                                                                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n    if not 0<a<1:raise ValueError('alpha-must-be-strictly-between-zero-and-one')\n                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nValueError: alpha-must-be-strictly-between-zero-and-one",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/python-quantile-reject-alpha-one-result",
        "kind": null,
        "inputFiles": [],
        "files": [
          {
            "file": "ml20-code/python-quantile-reject-alpha-one-result/stdout.txt",
            "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
            "bytes": 0
          },
          {
            "file": "ml20-code/python-quantile-reject-alpha-one-result/stderr.txt",
            "sha256": "0d2cb6c08a87e4ba4be8ab6c35508be9ce5fe76496d6eff65eb94019b4b61214",
            "bytes": 813
          }
        ],
        "summaryRows": [],
        "plotRows": [],
        "plotFile": null,
        "fullResultFile": null,
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      }
    },
    "r": {
      "exact-ceiling": {
        "api": "quantile",
        "variant": "exact-ceiling",
        "language": "r",
        "title": "Adjusted rank with exact alpha seven-tenths",
        "input": {
          "scores": [
            "1",
            "2",
            "3",
            "4",
            "5",
            "6",
            "7",
            "8",
            "9"
          ],
          "alpha": "7/10"
        },
        "expectedFailure": false,
        "codeFile": "ml20-code/quantile-exact-ceiling.R",
        "codeSHA256": "f7158ee105b8c03ca2271c0408d6d895f5fadee9b1bd72eee16be18d13735938",
        "code": "# ML20 complete standalone numerical fixed examples, no browser/model/results.\n# Base-R QR1e-12/membership1e-12; tiny log loss uses log-domain normalized\n# weights to avoid early underflow. This is an approximate counterpart, not\n# a general exact-rational numeric-token validator. Fixed alpha uses small fractions.\noptions(digits=17)\nfixedSource<-function(kind){\n src<-file.path(dirname(sub(\"^--file=\",\"\",grep(\"^--file=\",commandArgs(),value=TRUE)[1])),\"data\")\nreadnative<-function(n)read.csv(file.path(src,n),check.names=FALSE,colClasses='character',na.strings=NULL,stringsAsFactors=FALSE)\nnum<-function(x){a<-suppressWarnings(as.numeric(x));a[x%in%c('','.')] <- NA_real_;a}\nroles<-function(d){n<-nrow(d);rank<-as.integer(d$splitRank);if(!identical(sort(rank),0:(n-1)))stop('splitRank permutation');planned<-c('test','calibration','train','train')[rank%%4+1];if(any(planned!=d$plannedRole))stop('planned roles');list(rank=rank,planned=planned)}\noriginal<-readnative('actual48-country-revised-original-2023-2024.csv');derived<-readnative('derived16-country-features-and-roles.csv');isos<-sort(unique(original$countryISO3));lookup<-function(iso,code,year){r<-original[original$countryISO3==iso&original$indicatorID==code&original$date==year,,drop=FALSE];if(nrow(r)!=1)stop('country identity');num(r$originalValueToken)}\ncr<-roles(derived);if(!identical(isos,derived$countryISO3))stop('country order');country<-list(id=paste0(isos,':2024'),sourceRow=isos,x=cbind(vapply(isos,lookup,numeric(1),code='NY.GDP.PCAP.KD',year='2023')/10000,vapply(isos,lookup,numeric(1),code='FP.CPI.TOTL.ZG',year='2023')/10),y=vapply(isos,lookup,numeric(1),code='NY.GDP.MKTP.KD.ZG',year='2024'),rank=cr$rank,planned=cr$planned,names=c('g','pi'),unit='annual GDP growth percentage points')\npd<-readnative('actual3613-NLS-original52-fields-and-conformal-frame.csv');pr<-roles(pd);person<-list(id=paste0('person-row:',pd$sourceRow),sourceRow=pd$sourceRow,x=cbind(num(pd$ed76),num(pd$age76)),y=num(pd$lwage76),rank=pr$rank,planned=pr$planned,names=c('ed76','age76'),unit='native trimmed1976log hourly wage')\ncd<-readnative('actual3150-churn-original14-fields-and-conformal-frame.csv');rr<-roles(cd);company<-list(id=paste0('customer-row:',cd$sourceRow),sourceRow=cd$sourceRow,x=cbind(num(cd[['Call  Failure']]),num(cd[['Seconds of Use']])),y=num(cd$Churn),rank=rr$rank,planned=rr$planned,names=c('CallFailure','SecondsUse'),unit='native Churn0/1')\nmodels<-list(country=country,person=person,company=company)\n\nmodels<-models[kind]\nalphaToken<-\"1/5\";ridgeToken<-\"1/100\"\nqnum<-function(s){v<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(v)==2)as.numeric(v[1])/as.numeric(v[2])else as.numeric(v)}\nalphaParts<-function(s){v<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(v)==2&&all(grepl('^[0-9]+$',v))){a<-as.numeric(v[1]);b<-as.numeric(v[2])}else if(grepl('^[0-9]+([.][0-9]{1,6})?$',s)){n<-if(grepl('.',s,fixed=TRUE))nchar(sub('^[^.]*[.]','',s))else 0;a<-as.numeric(gsub('.','',s,fixed=TRUE));b<-10^n}else stop('Base-R alpha needs small integer fraction or <=6decimal places');if(a<=0||a>=b||b>1e6)stop('Require0<alpha<1 with denominator<=1e6');c(a,b)}\nap<-alphaParts(alphaToken);alpha<-ap[1]/ap[2];lambda<-qnum(ridgeToken);if(!is.finite(lambda)||lambda<0)stop('nonnegative finite ridge required')\nnamesOut<-c('study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins');outputs<-setNames(lapply(namesOut,function(n)list()),namesOut)\nemit<-function(name,row)outputs[[name]][[length(outputs[[name]])+1L]]<<-row\nmetric<-function(kind,name,value,unit,arithmetic='binary64 approximation'){emit('study-metrics',list(kind=kind,metric=name,value=if(is.null(value))NA else value,unit=unit,defined=as.integer(!is.null(value)&&!is.na(value)),arithmetic=arithmetic))}\nfor(kind in names(models)){\n m<-models[[kind]];complete<-rowSums(is.na(m$x))==0&!is.na(m$y);role<-ifelse(complete,m$planned,'excluded');train<-which(role=='train');n<-length(train);stopifnot(n>0);meanX<-colMeans(m$x[train,,drop=FALSE]);scale<-apply(m$x[train,,drop=FALSE],2,function(x)diff(range(x)));scale[scale==0]<-1;Z<-cbind(1,sweep(sweep(m$x,2,meanX,'-'),2,scale,'/'));H<-crossprod(Z[train,,drop=FALSE])/n+diag(c(0,lambda,lambda));b<-as.vector(crossprod(Z[train,,drop=FALSE],m$y[train]))/n;qrfit<-qr(H,tol=1e-12,LAPACK=FALSE);theta<-qr.coef(qrfit,b);theta[is.na(theta)]<-0;minimum<-as.numeric(crossprod(theta,H%*%theta)/2-sum(theta*b)+sum(m$y[train]^2)/(2*n));beta<-theta[-1]/scale;intercept<-theta[1]-sum(beta*meanX);raw<-as.vector(Z%*%theta);pred<-if(kind=='company')pmax(0,pmin(1,raw))else raw;defined<-!is.na(pred);group<-if(kind=='person')ifelse(m$x[,1]<=12,'schooling-at-most12','schooling-over12')else if(kind=='company')ifelse(m$x[,1]==0,'zero-call-failures','positive-call-failures')else ifelse(m$x[,1]<=meanX[1],'GDPpc-at-most-training-mean','GDPpc-above-training-mean');group[is.na(raw)]<-'missing-X';cal<-which(role=='calibration'&defined&!is.na(m$y));score<-if(kind=='company')ifelse(m$y[cal]==1,1-pred[cal],pred[cal])else abs(m$y[cal]-pred[cal]);ordered<-order(score,seq_along(score));k<-ceiling((length(cal)+1)*(ap[2]-ap[1])/ap[2]);threshold<-if(k<=length(cal))score[ordered[k]]else Inf;unbounded<-is.infinite(threshold)\n for(j in seq_along(ordered)){slot<-ordered[j];i<-cal[slot];emit('calibration-scores',list(kind=kind,rank=j,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,calibrationIndex0=slot-1,score=score[slot],threshold=threshold,thresholdInfinite=as.integer(unbounded)))}\n for(j in 1:2)emit('training-coefficients',list(kind=kind,feature=m$names[j],mean=meanX[j],scale=scale[j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[1],nativeIntercept=intercept,rank=qrfit$rank,unique=as.integer(qrfit$rank==3),lambdaValue=lambda,minimumObjective=minimum))\n metrics<-list(sourceRows=length(role),trainingRows=n,calibrationScores=length(cal),testLabeledRows=sum(role=='test'&!is.na(m$y)),excludedRows=sum(role=='excluded'),alpha=alpha,ridge=lambda,quantileRank=k,threshold=threshold,minimumObjective=minimum);units<-c('rows','rows','unit-count scores','rows','rows','probability','transformed slope penalty','one-based rank',if(kind=='company')'dimensionless score'else m$unit,paste0('(',m$unit,') squared'))\n for(j in seq_along(metrics))metric(kind,names(metrics)[j],metrics[[j]],units[j],if(is.infinite(metrics[[j]]))'mathematical infinity'else if(j%in%c(1:5,8))'integer count'else'binary64 approximation')\n labeled<-defined&!is.na(m$y);covered<-rep(NA_integer_,length(role));lo<-hi<-width<-rep(NA_real_,length(role));setSize<-rep(NA_integer_,length(role));setLabels<-rep('',length(role))\n if(kind=='company'){\n  zero<-defined&(unbounded|pred<=threshold+1e-12);one<-defined&(unbounded|1-pred<=threshold+1e-12);setSize[defined]<-as.integer(zero[defined])+as.integer(one[defined]);setLabels[zero&!one]<-'0';setLabels[!zero&one]<-'1';setLabels[zero&one]<-'0|1';covered[labeled]<-as.integer((m$y[labeled]==0&zero[labeled])|(m$y[labeled]==1&one[labeled]))\n }else{lo[defined]<-pred[defined]-threshold;hi[defined]<-pred[defined]+threshold;width[defined]<-2*threshold;tol<-1e-12*pmax(1,abs(m$y[labeled]),abs(pred[labeled]),if(is.finite(threshold))abs(threshold)else 1);covered[labeled]<-as.integer(unbounded|abs(m$y[labeled]-pred[labeled])<=threshold+tol)}\n for(i in seq_along(role)){\n  emit('row-predictions',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,plannedRole=m$planned[i],role=role[i],group=group[i],actualY=m$y[i],rawLinear=raw[i],prediction=pred[i],predictionDefined=as.integer(defined[i]),threshold=threshold,thresholdInfinite=as.integer(unbounded),lower=lo[i],upper=hi[i],width=width[i],setLabels=setLabels[i],setSize=setSize[i],covered=covered[i],labeledPrediction=as.integer(labeled[i])))\n  emit('eligibility',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],plannedRole=m$planned[i],role=role[i],requiredComplete=as.integer(complete[i]),trainingUsed=as.integer(role[i]=='train'&complete[i]),reason=if(complete[i])''else'missing-required-field'))\n }\n for(rol in unique(role))for(gr in c('all',unique(group))){use<-which(role==rol&(gr=='all'|group==gr));def<-use[defined[use]];scored<-use[labeled[use]&!role[use]%in%c('excluded','unused')];nn<-length(def);ns<-length(scored);cv<-sum(covered[scored]);ub<-if(kind=='company')0 else sum(is.infinite(width[def]));emit('role-group-coverage',list(kind=kind,role=rol,group=gr,originalRows=length(use),definedPredictions=nn,scoredLabels=ns,coveredRows=cv,coverage=if(ns)cv/ns else NA_real_,meanSetSize=if(kind=='company'&&nn)mean(setSize[def])else NA_real_,meanIntervalWidth=if(kind!='company'&&nn)mean(width[def])else NA_real_,unboundedIntervals=ub))}\n if(kind=='company')for(rol in c('train','calibration','test')){\n  ix<-which(role==rol&labeled);pp<-pred[ix];yy<-m$y[ix];N<-length(ix);bin<-pmin(4,floor(pp*5));yb<-if(N)mean(yy)else NA_real_;ece<-rel<-res<-vp<-cp<-0\n  for(j in 0:4){take<-which(bin==j);nb<-length(take);pm<-if(nb)mean(pp[take])else NA_real_;ym<-if(nb)mean(yy[take])else NA_real_;v<-if(nb)mean((pp[take]-pm)^2)else NA_real_;co<-if(nb)mean((pp[take]-pm)*(yy[take]-ym))else NA_real_;emit('reliability-bins',list(kind=kind,role=rol,bin=j,lower=j/5,upper=(j+1)/5,rightClosed=as.integer(j==4),rows=nb,meanP=pm,frequencyY1=ym,gap=pm-ym,withinVarianceP=v,withinCovariancePY=co));if(nb){z<-nb/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*co}}\n  mm<-list(ECE=if(N)ece else NA_real_,Brier=if(N)mean((pp-yy)^2)else NA_real_,uncertainty=yb*(1-yb),resolution=if(N)res else NA_real_,reliability=if(N)rel else NA_real_,withinVarianceP=if(N)vp else NA_real_,withinCovariancePY=if(N)cp else NA_real_);for(name in names(mm))metric(kind,paste0(rol,':',name),mm[[name]],if(name=='ECE')'dimensionless'else'squared probability');prob<-ifelse(yy==1,pp,1-pp);ll<-if(!N)NA_real_ else if(any(prob==0))Inf else-mean(log(prob));metric(kind,paste0(rol,':meanLogLoss'),ll,'nats','binary64 approximation or genuine infinity')\n }\n}\n\noutputs\n}\n\n# New fixed-example numerical adapters. Not arbitrary exact-input validators.\nnum20<-function(v){s<-as.character(v);a<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(a)==2)as.numeric(a[1])/as.numeric(a[2])else as.numeric(s)}\nalpha20<-function(s){a<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(a)==2){n<-as.numeric(a[1]);d<-as.numeric(a[2])}else{n<-as.numeric(a[1]);d<-1};if(n<=0||n>=d)stop('alpha-must-be-strictly-between-zero-and-one');c(n,d)}\nquantile20<-function(scores,alpha){ap<-alpha20(alpha);keep<-which(!vapply(scores,is.null,logical(1)));vv<-vapply(scores[keep],num20,numeric(1));ix<-order(vv,keep);n<-length(vv);k<-((n+1)*(ap[2]-ap[1])+ap[2]-1)%/%ap[2];list(n=n,k=k,threshold=if(k>n)NULL else vv[ix[k]],infinite=k>n,ordered=lapply(ix,function(j)list(score=vv[j],index=keep[j]-1)))}\nlogPositive20<-function(v){s<-tolower(as.character(v));part<-strsplit(s,'e',fixed=TRUE)[[1]];mantissa<-as.numeric(part[1]);power<-if(length(part)==2)as.numeric(part[2])else 0;if(mantissa<=0)stop('fixed positive weight required');log(mantissa)+power*log(10)}\nscore20<-function(rows){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));lw<-vapply(rows,function(r)logPositive20(if(is.null(r$weight))1 else r$weight),numeric(1));mx<-max(lw);lm<-mx+log(sum(exp(lw-mx)));mass<-exp(lm);w<-exp(lw-lm);observed<-ifelse(y==1,p,1-p);genuine<-any(observed==0);loss<-ifelse(observed==1,0,-log(observed));terms<-lw-lm+log(loss);finite<-terms[is.finite(terms)];ll<-if(genuine)'+infinity'else if(length(finite)){top<-max(finite);exp(top+log(sum(exp(finite-top))))}else 0;bs<-sum(w*(p-y)^2);list(rows=lapply(seq_along(rows),function(i)list(p=p[i],y=y[i],w=w[i])),mass=mass,Brier=bs,meanLogLoss=ll,genuineInfinite=genuine,BrierPositive=any(p!=y))}\ncalibration20<-function(rows,B){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));N<-length(p);bin<-pmin(B-1,floor(p*B));yb<-mean(y);ece<-rel<-res<-vp<-cp<-0;out<-list()\n for(j in 0:(B-1)){ix<-which(bin==j);n<-length(ix);pm<-if(n)mean(p[ix])else NULL;ym<-if(n)mean(y[ix])else NULL;v<-if(n)mean((p[ix]-pm)^2)else NULL;c<-if(n)mean((p[ix]-pm)*(y[ix]-ym))else NULL;out[[j+1]]<-list(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c);if(n){z<-n/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*c}}\n list(rows=N,bins=out,Brier=mean((p-y)^2),ECE=ece,uncertainty=yb*(1-yb),resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=yb*(1-yb)-res+rel+vp-2*cp)}\npredict20<-function(a){q<-quantile20(a$scores,a$alpha);classification<-a$mode=='classification';rows<-list()\n for(i in seq_along(a$queries)){r<-a$queries[[i]];p<-num20(if(classification)r$p else r$center);y<-if(is.null(r$y))NULL else num20(r$y)\n  if(classification){labels<-if(q$infinite)0:1 else which(c(p,1-p)<=q$threshold)-1;lo<-hi<-width<-NULL;size<-length(labels);covered<-if(is.null(y))NULL else as.integer(y%in%labels)}else{labels<-NULL;size<-NULL;lo<-if(q$infinite)'-infinity'else p-q$threshold;hi<-if(q$infinite)'+infinity'else p+q$threshold;width<-if(q$infinite)'+infinity'else 2*q$threshold;covered<-if(is.null(y))NULL else as.integer(q$infinite||abs(y-p)<=q$threshold+1e-12)}\n  rows[[i]]<-list(id=if(is.null(r$id))as.character(i-1)else r$id,prediction=p,actualY=y,labels=as.list(labels),size=size,lower=lo,upper=hi,width=width,covered=covered)\n };scored<-Filter(function(r)!is.null(r$covered),rows);coverage<-if(length(scored))mean(vapply(scored,`[[`,numeric(1),'covered'))else NULL;list(quantile=q,rows=rows,scoredLabels=length(scored),coverage=coverage,meanSetSize=if(classification&&length(rows))mean(vapply(rows,`[[`,numeric(1),'size'))else NULL,meanWidth=if(!classification&&length(rows))if(q$infinite)'+infinity'else 2*q$threshold else NULL)}\nranklaw20<-function(a){v<-vapply(a$scores,num20,numeric(1));trials<-lapply(seq_along(v),function(i){q<-quantile20(as.list(v[-i]),a$alpha);list(heldout=i-1,score=v[i],k=q$k,threshold=q$threshold,infinite=q$infinite,covered=as.integer(q$infinite||v[i]<=q$threshold))});list(N=length(v),distinct=length(unique(v))==length(v),trials=trials,coverage=mean(vapply(trials,`[[`,numeric(1),'covered')))}\nfixedOperation<-function(api,a)switch(api,score=score20(a$rows),calibration=calibration20(a$rows,a$bins),quantile=quantile20(a$scores,a$alpha),predict=predict20(a),ranklaw=ranklaw20(a),realdata=fixedSource(a$kind))\nreportValues<-function(api,z){summary<-list();points<-list();add<-function(k,v,u)summary[[length(summary)+1]]<<-list(metric=k,value=if(is.null(v)||length(v)==0||anyNA(v))NULL else unname(v),unit=u);pt<-function(s,i,x,y)points[[length(points)+1]]<<-list(series=s,index=i,x=x,y=y)\n if(api=='score'){for(k in c('mass','Brier','meanLogLoss','genuineInfinite','BrierPositive'))add(k,z[[k]],switch(k,mass='analysis weight',Brier='squared probability',meanLogLoss='nats; numerical logarithm',genuineInfinite='indicator',BrierPositive='mathematical indicator'));for(i in seq_along(z$rows)){r<-z$rows[[i]];pt('squared error',i-1,i-1,(r$p-r$y)^2)}\n }else if(api=='calibration'){for(k in c('Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity'))add(k,z[[k]],if(k=='ECE')'probability'else'squared probability');for(r in z$bins){pt('bin probability',r$bin,r$bin,r$meanP);pt('bin outcome frequency',r$bin,r$bin,r$frequency)}\n }else if(api=='quantile'){add('n',z$n,'scores');add('k',z$k,'one-based rank');add('infinite',z$infinite,'mathematical indicator');add('threshold',if(z$infinite)'+infinity'else z$threshold,'score units');for(i in seq_along(z$ordered))pt('sorted score',i-1,i,z$ordered[[i]]$score)\n }else if(api=='predict'){for(k in c('scoredLabels','coverage','meanSetSize','meanWidth'))add(k,z[[k]],switch(k,scoredLabels='labels',coverage='fraction',meanSetSize='classes',meanWidth='outcome units'));add('thresholdInfinite',z$quantile$infinite,'mathematical indicator');for(i in seq_along(z$rows)){pt('predicted center or probability',i-1,i-1,z$rows[[i]]$prediction);pt('observed label or outcome',i-1,i-1,z$rows[[i]]$actualY)}\n }else if(api=='ranklaw'){add('N',z$N,'scores');add('distinct',z$distinct,'indicator');add('coverage',z$coverage,'fraction');for(r in z$trials)pt('held-out coverage',r$heldout,r$heldout,r$covered)\n }else{for(k in c('sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold')){r<-Filter(function(r)r$metric==k,z[['study-metrics']])[[1]];add(k,r$value,r$unit)};cv<-Filter(function(r)r$role=='test'&&r$group=='all',z[['role-group-coverage']])[[1]];for(k in c('coverage','meanSetSize','meanIntervalWidth'))add(k,cv[[k]],switch(k,coverage='fraction',meanSetSize='classes',meanIntervalWidth='outcome units'));for(i in seq_along(z[['calibration-scores']])){r<-z[['calibration-scores']][[i]];pt('all calibration scores',i-1,r$rank,r$score)}}\n list(summary=summary,points=points)}\n\nescapeXML<-function(s){s<-gsub('&','&amp;',s,fixed=TRUE);s<-gsub('<','&lt;',s,fixed=TRUE);s<-gsub('>','&gt;',s,fixed=TRUE);gsub('\"','&quot;',s,fixed=TRUE)}\nsvgPlot<-function(pp,title){\n xx<-vapply(pp,function(p)as.numeric(p$x),numeric(1));yy<-vapply(pp,function(p)as.numeric(p$y),numeric(1));xmin<-if(length(xx))min(xx)else 0;xmax<-if(length(xx))max(xx)else 1;ymin<-min(c(0,yy));ymax<-max(c(0,yy));if(xmin==xmax){xmin<-xmin-.5;xmax<-xmax+.5};if(ymin==ymax){ymin<-ymin-.5;ymax<-ymax+.5};pad<-(ymax-ymin)*.08;ymin<-ymin-pad;ymax<-ymax+pad;X<-function(x)82+(as.numeric(x)-xmin)/(xmax-xmin)*608;Y<-function(y)354-(as.numeric(y)-ymin)/(ymax-ymin)*290\n out<-paste0('<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"',escapeXML(title),'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">',escapeXML(title),'</text>')\n for(j in 0:4){y<-ymin+(ymax-ymin)*j/4;x<-xmin+(xmax-xmin)*j/4;out<-paste0(out,'<line x1=\"82\" y1=\"',Y(y),'\" x2=\"690\" y2=\"',Y(y),'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"',Y(y)+4,'\" text-anchor=\"end\">',sprintf('%.3g',y),'</text><text x=\"',X(x),'\" y=\"380\" text-anchor=\"middle\">',sprintf('%.3g',x),'</text>')}\n ss<-unique(vapply(pp,`[[`,character(1),'series'));cols<-c('#0f766e','#c76622','#4f46e5','#b23857')\n for(j in seq_along(ss)){rr<-Filter(function(p)p$series==ss[j],pp);xy<-vapply(rr,function(p)sprintf('%.6f,%.6f',X(p$x),Y(p$y)),character(1));col<-cols[(j-1)%%4+1];out<-paste0(out,'<polyline fill=\"none\" stroke=\"',col,'\" stroke-width=\"1.5\" points=\"',paste(xy,collapse=' '),'\"/>');for(p in rr)out<-paste0(out,'<circle cx=\"',sprintf('%.6f',X(p$x)),'\" cy=\"',sprintf('%.6f',Y(p$y)),'\" r=\"2.6\" fill=\"',col,'\"><title>',escapeXML(ss[j]),': ',escapeXML(p$y),'</title></circle>');out<-paste0(out,'<text x=\"',82+((j-1)%%2)*310,'\" y=\"',432+floor((j-1)/2)*23,'\" fill=\"',col,'\">',escapeXML(ss[j]),'</text>')}\n paste0(out,'<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>')\n}\n\ntoJSON<-function(x){\n if(is.null(x))return('null');if(is.list(x)){v<-vapply(x,toJSON,character(1));if(!is.null(names(x)))paste0('{',paste(paste0(vapply(names(x),toJSON,character(1)),':',v),collapse=','),'}')else paste0('[',paste(v,collapse=','),']')}\n else if(length(x)!=1){if(!is.null(names(x)))toJSON(as.list(x))else paste0('[',paste(vapply(as.list(x),toJSON,character(1)),collapse=','),']')}\n else if(is.na(x))'null'else if(is.logical(x))if(x)'true'else'false'else if(is.numeric(x))if(is.finite(x))sprintf('%.17g',x)else'null'else paste0('\"',gsub('\\n','\\\\n',gsub('\"','\\\\\"',gsub('\\\\','\\\\\\\\',x,fixed=TRUE),fixed=TRUE),fixed=TRUE),'\"')\n}\n\nFIXED<-list(\"api\"=\"quantile\",\"variant\"=\"exact-ceiling\",\"title\"=\"Adjusted rank with exact alpha seven-tenths\",\"input\"=list(\"scores\"=list(\"1\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\"),\"alpha\"=\"7/10\"),\"expectedFailure\"=FALSE)\n\nargs<-commandArgs(trailingOnly=TRUE);out<-if(length(args))args[1]else stop('NEW output directory required');if(dir.exists(out))stop('Preserve previous output directory');dir.create(out,recursive=TRUE)\nz<-fixedOperation(FIXED$api,FIXED$input);rr<-reportValues(FIXED$api,z)\nwriteLines(toJSON(list(arithmetic='BaseR numerical counterpart; QR and membership1e-12, log-domain tiny weights; source splitRank read from factualCSV',result=z)),file.path(out,'full.json'),useBytes=TRUE)\nsums<-do.call(rbind,lapply(rr$summary,function(row)data.frame(metric=row$metric,value=if(is.null(row$value))''else if(is.logical(row$value))as.character(as.integer(row$value))else format(row$value,digits=17,scientific=NA,trim=TRUE),unit=row$unit,defined=as.integer(!is.null(row$value)),stringsAsFactors=FALSE)))\npoints<-do.call(rbind,lapply(rr$points,function(p)data.frame(series=p$series,index=p$index,x=p$x,y=if(is.null(p$y))NA_real_ else p$y,defined=as.integer(!is.null(p$y)),stringsAsFactors=FALSE)))\nwrite.csv(sums,file.path(out,'summary.csv'),row.names=FALSE,na='');write.csv(points,file.path(out,'plot-points.csv'),row.names=FALSE,na='');writeLines(svgPlot(Filter(function(p)!is.null(p$y),rr$points),FIXED$title),file.path(out,'plot.svg'),useBytes=TRUE);cat(FIXED$api,'/',FIXED$variant,'\\n',sep='')\n",
        "returnCode": 0,
        "stdout": "quantile/exact-ceiling\r\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed ",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/r-quantile-exact-ceiling-result",
        "kind": null,
        "inputFiles": [],
        "files": [
          {
            "file": "ml20-code/r-quantile-exact-ceiling-result/full.json",
            "sha256": "d0a8a5d84cfcd9de7970d8ec0a3337b8fef97ea69aa5d5f3070926d555eaf871",
            "bytes": 398
          },
          {
            "file": "ml20-code/r-quantile-exact-ceiling-result/plot-points.csv",
            "sha256": "ef5ed0d8fdb10b5cd79640654c207268fe076c17f6a92cfad6cdbc77d4a8f51a",
            "bytes": 252
          },
          {
            "file": "ml20-code/r-quantile-exact-ceiling-result/plot.svg",
            "sha256": "235584a648cc797802cf98371251cab91c12d27fef7da52a4c10720fd927c309",
            "bytes": 2511
          },
          {
            "file": "ml20-code/r-quantile-exact-ceiling-result/summary.csv",
            "sha256": "5bb6525cc3b85b2f436475fba672ab7f49f452b661463305364704e05e94c79d",
            "bytes": 159
          },
          {
            "file": "ml20-code/r-quantile-exact-ceiling-result/stdout.txt",
            "sha256": "893ef9e2529a0ad0da5ad8040f89e59ba50a6ef35c5fe496fc43141e7eea444f",
            "bytes": 24
          },
          {
            "file": "ml20-code/r-quantile-exact-ceiling-result/stderr.txt",
            "sha256": "b807bd2d0f7060ea384b0ac2317cda2d63a4f59f63b4a901b9e665fead79627d",
            "bytes": 182
          }
        ],
        "summaryRows": [
          {
            "metric": "n",
            "value": "9",
            "unit": "scores",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "9",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "k",
            "value": "3",
            "unit": "one-based rank",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "3",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "infinite",
            "value": "0",
            "unit": "mathematical indicator",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "threshold",
            "value": "3",
            "unit": "score units",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "3",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          }
        ],
        "plotRows": [
          {
            "series": "sorted score",
            "index": 0,
            "x": "1",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "sorted score",
            "index": 1,
            "x": "2",
            "y": "2",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "sorted score",
            "index": 2,
            "x": "3",
            "y": "3",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "sorted score",
            "index": 3,
            "x": "4",
            "y": "4",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "sorted score",
            "index": 4,
            "x": "5",
            "y": "5",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "sorted score",
            "index": 5,
            "x": "6",
            "y": "6",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "sorted score",
            "index": 6,
            "x": "7",
            "y": "7",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "sorted score",
            "index": 7,
            "x": "8",
            "y": "8",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "sorted score",
            "index": 8,
            "x": "9",
            "y": "9",
            "defined": true,
            "xExact": "",
            "yExact": ""
          }
        ],
        "plotFile": "ml20-code/r-quantile-exact-ceiling-result/plot.svg",
        "fullResultFile": "ml20-code/r-quantile-exact-ceiling-result/full.json",
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      },
      "reject-alpha-one": {
        "api": "quantile",
        "variant": "reject-alpha-one",
        "language": "r",
        "title": "Reject alpha equal to one",
        "input": {
          "scores": [
            "1",
            "2"
          ],
          "alpha": "1"
        },
        "expectedFailure": true,
        "codeFile": "ml20-code/quantile-reject-alpha-one.R",
        "codeSHA256": "42499595d8edd75b9b8e4acd4115ccc1585518f4acc4489061e277d403bd8ada",
        "code": "# ML20 complete standalone numerical fixed examples, no browser/model/results.\n# Base-R QR1e-12/membership1e-12; tiny log loss uses log-domain normalized\n# weights to avoid early underflow. This is an approximate counterpart, not\n# a general exact-rational numeric-token validator. Fixed alpha uses small fractions.\noptions(digits=17)\nfixedSource<-function(kind){\n src<-file.path(dirname(sub(\"^--file=\",\"\",grep(\"^--file=\",commandArgs(),value=TRUE)[1])),\"data\")\nreadnative<-function(n)read.csv(file.path(src,n),check.names=FALSE,colClasses='character',na.strings=NULL,stringsAsFactors=FALSE)\nnum<-function(x){a<-suppressWarnings(as.numeric(x));a[x%in%c('','.')] <- NA_real_;a}\nroles<-function(d){n<-nrow(d);rank<-as.integer(d$splitRank);if(!identical(sort(rank),0:(n-1)))stop('splitRank permutation');planned<-c('test','calibration','train','train')[rank%%4+1];if(any(planned!=d$plannedRole))stop('planned roles');list(rank=rank,planned=planned)}\noriginal<-readnative('actual48-country-revised-original-2023-2024.csv');derived<-readnative('derived16-country-features-and-roles.csv');isos<-sort(unique(original$countryISO3));lookup<-function(iso,code,year){r<-original[original$countryISO3==iso&original$indicatorID==code&original$date==year,,drop=FALSE];if(nrow(r)!=1)stop('country identity');num(r$originalValueToken)}\ncr<-roles(derived);if(!identical(isos,derived$countryISO3))stop('country order');country<-list(id=paste0(isos,':2024'),sourceRow=isos,x=cbind(vapply(isos,lookup,numeric(1),code='NY.GDP.PCAP.KD',year='2023')/10000,vapply(isos,lookup,numeric(1),code='FP.CPI.TOTL.ZG',year='2023')/10),y=vapply(isos,lookup,numeric(1),code='NY.GDP.MKTP.KD.ZG',year='2024'),rank=cr$rank,planned=cr$planned,names=c('g','pi'),unit='annual GDP growth percentage points')\npd<-readnative('actual3613-NLS-original52-fields-and-conformal-frame.csv');pr<-roles(pd);person<-list(id=paste0('person-row:',pd$sourceRow),sourceRow=pd$sourceRow,x=cbind(num(pd$ed76),num(pd$age76)),y=num(pd$lwage76),rank=pr$rank,planned=pr$planned,names=c('ed76','age76'),unit='native trimmed1976log hourly wage')\ncd<-readnative('actual3150-churn-original14-fields-and-conformal-frame.csv');rr<-roles(cd);company<-list(id=paste0('customer-row:',cd$sourceRow),sourceRow=cd$sourceRow,x=cbind(num(cd[['Call  Failure']]),num(cd[['Seconds of Use']])),y=num(cd$Churn),rank=rr$rank,planned=rr$planned,names=c('CallFailure','SecondsUse'),unit='native Churn0/1')\nmodels<-list(country=country,person=person,company=company)\n\nmodels<-models[kind]\nalphaToken<-\"1/5\";ridgeToken<-\"1/100\"\nqnum<-function(s){v<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(v)==2)as.numeric(v[1])/as.numeric(v[2])else as.numeric(v)}\nalphaParts<-function(s){v<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(v)==2&&all(grepl('^[0-9]+$',v))){a<-as.numeric(v[1]);b<-as.numeric(v[2])}else if(grepl('^[0-9]+([.][0-9]{1,6})?$',s)){n<-if(grepl('.',s,fixed=TRUE))nchar(sub('^[^.]*[.]','',s))else 0;a<-as.numeric(gsub('.','',s,fixed=TRUE));b<-10^n}else stop('Base-R alpha needs small integer fraction or <=6decimal places');if(a<=0||a>=b||b>1e6)stop('Require0<alpha<1 with denominator<=1e6');c(a,b)}\nap<-alphaParts(alphaToken);alpha<-ap[1]/ap[2];lambda<-qnum(ridgeToken);if(!is.finite(lambda)||lambda<0)stop('nonnegative finite ridge required')\nnamesOut<-c('study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins');outputs<-setNames(lapply(namesOut,function(n)list()),namesOut)\nemit<-function(name,row)outputs[[name]][[length(outputs[[name]])+1L]]<<-row\nmetric<-function(kind,name,value,unit,arithmetic='binary64 approximation'){emit('study-metrics',list(kind=kind,metric=name,value=if(is.null(value))NA else value,unit=unit,defined=as.integer(!is.null(value)&&!is.na(value)),arithmetic=arithmetic))}\nfor(kind in names(models)){\n m<-models[[kind]];complete<-rowSums(is.na(m$x))==0&!is.na(m$y);role<-ifelse(complete,m$planned,'excluded');train<-which(role=='train');n<-length(train);stopifnot(n>0);meanX<-colMeans(m$x[train,,drop=FALSE]);scale<-apply(m$x[train,,drop=FALSE],2,function(x)diff(range(x)));scale[scale==0]<-1;Z<-cbind(1,sweep(sweep(m$x,2,meanX,'-'),2,scale,'/'));H<-crossprod(Z[train,,drop=FALSE])/n+diag(c(0,lambda,lambda));b<-as.vector(crossprod(Z[train,,drop=FALSE],m$y[train]))/n;qrfit<-qr(H,tol=1e-12,LAPACK=FALSE);theta<-qr.coef(qrfit,b);theta[is.na(theta)]<-0;minimum<-as.numeric(crossprod(theta,H%*%theta)/2-sum(theta*b)+sum(m$y[train]^2)/(2*n));beta<-theta[-1]/scale;intercept<-theta[1]-sum(beta*meanX);raw<-as.vector(Z%*%theta);pred<-if(kind=='company')pmax(0,pmin(1,raw))else raw;defined<-!is.na(pred);group<-if(kind=='person')ifelse(m$x[,1]<=12,'schooling-at-most12','schooling-over12')else if(kind=='company')ifelse(m$x[,1]==0,'zero-call-failures','positive-call-failures')else ifelse(m$x[,1]<=meanX[1],'GDPpc-at-most-training-mean','GDPpc-above-training-mean');group[is.na(raw)]<-'missing-X';cal<-which(role=='calibration'&defined&!is.na(m$y));score<-if(kind=='company')ifelse(m$y[cal]==1,1-pred[cal],pred[cal])else abs(m$y[cal]-pred[cal]);ordered<-order(score,seq_along(score));k<-ceiling((length(cal)+1)*(ap[2]-ap[1])/ap[2]);threshold<-if(k<=length(cal))score[ordered[k]]else Inf;unbounded<-is.infinite(threshold)\n for(j in seq_along(ordered)){slot<-ordered[j];i<-cal[slot];emit('calibration-scores',list(kind=kind,rank=j,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,calibrationIndex0=slot-1,score=score[slot],threshold=threshold,thresholdInfinite=as.integer(unbounded)))}\n for(j in 1:2)emit('training-coefficients',list(kind=kind,feature=m$names[j],mean=meanX[j],scale=scale[j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[1],nativeIntercept=intercept,rank=qrfit$rank,unique=as.integer(qrfit$rank==3),lambdaValue=lambda,minimumObjective=minimum))\n metrics<-list(sourceRows=length(role),trainingRows=n,calibrationScores=length(cal),testLabeledRows=sum(role=='test'&!is.na(m$y)),excludedRows=sum(role=='excluded'),alpha=alpha,ridge=lambda,quantileRank=k,threshold=threshold,minimumObjective=minimum);units<-c('rows','rows','unit-count scores','rows','rows','probability','transformed slope penalty','one-based rank',if(kind=='company')'dimensionless score'else m$unit,paste0('(',m$unit,') squared'))\n for(j in seq_along(metrics))metric(kind,names(metrics)[j],metrics[[j]],units[j],if(is.infinite(metrics[[j]]))'mathematical infinity'else if(j%in%c(1:5,8))'integer count'else'binary64 approximation')\n labeled<-defined&!is.na(m$y);covered<-rep(NA_integer_,length(role));lo<-hi<-width<-rep(NA_real_,length(role));setSize<-rep(NA_integer_,length(role));setLabels<-rep('',length(role))\n if(kind=='company'){\n  zero<-defined&(unbounded|pred<=threshold+1e-12);one<-defined&(unbounded|1-pred<=threshold+1e-12);setSize[defined]<-as.integer(zero[defined])+as.integer(one[defined]);setLabels[zero&!one]<-'0';setLabels[!zero&one]<-'1';setLabels[zero&one]<-'0|1';covered[labeled]<-as.integer((m$y[labeled]==0&zero[labeled])|(m$y[labeled]==1&one[labeled]))\n }else{lo[defined]<-pred[defined]-threshold;hi[defined]<-pred[defined]+threshold;width[defined]<-2*threshold;tol<-1e-12*pmax(1,abs(m$y[labeled]),abs(pred[labeled]),if(is.finite(threshold))abs(threshold)else 1);covered[labeled]<-as.integer(unbounded|abs(m$y[labeled]-pred[labeled])<=threshold+tol)}\n for(i in seq_along(role)){\n  emit('row-predictions',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,plannedRole=m$planned[i],role=role[i],group=group[i],actualY=m$y[i],rawLinear=raw[i],prediction=pred[i],predictionDefined=as.integer(defined[i]),threshold=threshold,thresholdInfinite=as.integer(unbounded),lower=lo[i],upper=hi[i],width=width[i],setLabels=setLabels[i],setSize=setSize[i],covered=covered[i],labeledPrediction=as.integer(labeled[i])))\n  emit('eligibility',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],plannedRole=m$planned[i],role=role[i],requiredComplete=as.integer(complete[i]),trainingUsed=as.integer(role[i]=='train'&complete[i]),reason=if(complete[i])''else'missing-required-field'))\n }\n for(rol in unique(role))for(gr in c('all',unique(group))){use<-which(role==rol&(gr=='all'|group==gr));def<-use[defined[use]];scored<-use[labeled[use]&!role[use]%in%c('excluded','unused')];nn<-length(def);ns<-length(scored);cv<-sum(covered[scored]);ub<-if(kind=='company')0 else sum(is.infinite(width[def]));emit('role-group-coverage',list(kind=kind,role=rol,group=gr,originalRows=length(use),definedPredictions=nn,scoredLabels=ns,coveredRows=cv,coverage=if(ns)cv/ns else NA_real_,meanSetSize=if(kind=='company'&&nn)mean(setSize[def])else NA_real_,meanIntervalWidth=if(kind!='company'&&nn)mean(width[def])else NA_real_,unboundedIntervals=ub))}\n if(kind=='company')for(rol in c('train','calibration','test')){\n  ix<-which(role==rol&labeled);pp<-pred[ix];yy<-m$y[ix];N<-length(ix);bin<-pmin(4,floor(pp*5));yb<-if(N)mean(yy)else NA_real_;ece<-rel<-res<-vp<-cp<-0\n  for(j in 0:4){take<-which(bin==j);nb<-length(take);pm<-if(nb)mean(pp[take])else NA_real_;ym<-if(nb)mean(yy[take])else NA_real_;v<-if(nb)mean((pp[take]-pm)^2)else NA_real_;co<-if(nb)mean((pp[take]-pm)*(yy[take]-ym))else NA_real_;emit('reliability-bins',list(kind=kind,role=rol,bin=j,lower=j/5,upper=(j+1)/5,rightClosed=as.integer(j==4),rows=nb,meanP=pm,frequencyY1=ym,gap=pm-ym,withinVarianceP=v,withinCovariancePY=co));if(nb){z<-nb/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*co}}\n  mm<-list(ECE=if(N)ece else NA_real_,Brier=if(N)mean((pp-yy)^2)else NA_real_,uncertainty=yb*(1-yb),resolution=if(N)res else NA_real_,reliability=if(N)rel else NA_real_,withinVarianceP=if(N)vp else NA_real_,withinCovariancePY=if(N)cp else NA_real_);for(name in names(mm))metric(kind,paste0(rol,':',name),mm[[name]],if(name=='ECE')'dimensionless'else'squared probability');prob<-ifelse(yy==1,pp,1-pp);ll<-if(!N)NA_real_ else if(any(prob==0))Inf else-mean(log(prob));metric(kind,paste0(rol,':meanLogLoss'),ll,'nats','binary64 approximation or genuine infinity')\n }\n}\n\noutputs\n}\n\n# New fixed-example numerical adapters. Not arbitrary exact-input validators.\nnum20<-function(v){s<-as.character(v);a<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(a)==2)as.numeric(a[1])/as.numeric(a[2])else as.numeric(s)}\nalpha20<-function(s){a<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(a)==2){n<-as.numeric(a[1]);d<-as.numeric(a[2])}else{n<-as.numeric(a[1]);d<-1};if(n<=0||n>=d)stop('alpha-must-be-strictly-between-zero-and-one');c(n,d)}\nquantile20<-function(scores,alpha){ap<-alpha20(alpha);keep<-which(!vapply(scores,is.null,logical(1)));vv<-vapply(scores[keep],num20,numeric(1));ix<-order(vv,keep);n<-length(vv);k<-((n+1)*(ap[2]-ap[1])+ap[2]-1)%/%ap[2];list(n=n,k=k,threshold=if(k>n)NULL else vv[ix[k]],infinite=k>n,ordered=lapply(ix,function(j)list(score=vv[j],index=keep[j]-1)))}\nlogPositive20<-function(v){s<-tolower(as.character(v));part<-strsplit(s,'e',fixed=TRUE)[[1]];mantissa<-as.numeric(part[1]);power<-if(length(part)==2)as.numeric(part[2])else 0;if(mantissa<=0)stop('fixed positive weight required');log(mantissa)+power*log(10)}\nscore20<-function(rows){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));lw<-vapply(rows,function(r)logPositive20(if(is.null(r$weight))1 else r$weight),numeric(1));mx<-max(lw);lm<-mx+log(sum(exp(lw-mx)));mass<-exp(lm);w<-exp(lw-lm);observed<-ifelse(y==1,p,1-p);genuine<-any(observed==0);loss<-ifelse(observed==1,0,-log(observed));terms<-lw-lm+log(loss);finite<-terms[is.finite(terms)];ll<-if(genuine)'+infinity'else if(length(finite)){top<-max(finite);exp(top+log(sum(exp(finite-top))))}else 0;bs<-sum(w*(p-y)^2);list(rows=lapply(seq_along(rows),function(i)list(p=p[i],y=y[i],w=w[i])),mass=mass,Brier=bs,meanLogLoss=ll,genuineInfinite=genuine,BrierPositive=any(p!=y))}\ncalibration20<-function(rows,B){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));N<-length(p);bin<-pmin(B-1,floor(p*B));yb<-mean(y);ece<-rel<-res<-vp<-cp<-0;out<-list()\n for(j in 0:(B-1)){ix<-which(bin==j);n<-length(ix);pm<-if(n)mean(p[ix])else NULL;ym<-if(n)mean(y[ix])else NULL;v<-if(n)mean((p[ix]-pm)^2)else NULL;c<-if(n)mean((p[ix]-pm)*(y[ix]-ym))else NULL;out[[j+1]]<-list(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c);if(n){z<-n/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*c}}\n list(rows=N,bins=out,Brier=mean((p-y)^2),ECE=ece,uncertainty=yb*(1-yb),resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=yb*(1-yb)-res+rel+vp-2*cp)}\npredict20<-function(a){q<-quantile20(a$scores,a$alpha);classification<-a$mode=='classification';rows<-list()\n for(i in seq_along(a$queries)){r<-a$queries[[i]];p<-num20(if(classification)r$p else r$center);y<-if(is.null(r$y))NULL else num20(r$y)\n  if(classification){labels<-if(q$infinite)0:1 else which(c(p,1-p)<=q$threshold)-1;lo<-hi<-width<-NULL;size<-length(labels);covered<-if(is.null(y))NULL else as.integer(y%in%labels)}else{labels<-NULL;size<-NULL;lo<-if(q$infinite)'-infinity'else p-q$threshold;hi<-if(q$infinite)'+infinity'else p+q$threshold;width<-if(q$infinite)'+infinity'else 2*q$threshold;covered<-if(is.null(y))NULL else as.integer(q$infinite||abs(y-p)<=q$threshold+1e-12)}\n  rows[[i]]<-list(id=if(is.null(r$id))as.character(i-1)else r$id,prediction=p,actualY=y,labels=as.list(labels),size=size,lower=lo,upper=hi,width=width,covered=covered)\n };scored<-Filter(function(r)!is.null(r$covered),rows);coverage<-if(length(scored))mean(vapply(scored,`[[`,numeric(1),'covered'))else NULL;list(quantile=q,rows=rows,scoredLabels=length(scored),coverage=coverage,meanSetSize=if(classification&&length(rows))mean(vapply(rows,`[[`,numeric(1),'size'))else NULL,meanWidth=if(!classification&&length(rows))if(q$infinite)'+infinity'else 2*q$threshold else NULL)}\nranklaw20<-function(a){v<-vapply(a$scores,num20,numeric(1));trials<-lapply(seq_along(v),function(i){q<-quantile20(as.list(v[-i]),a$alpha);list(heldout=i-1,score=v[i],k=q$k,threshold=q$threshold,infinite=q$infinite,covered=as.integer(q$infinite||v[i]<=q$threshold))});list(N=length(v),distinct=length(unique(v))==length(v),trials=trials,coverage=mean(vapply(trials,`[[`,numeric(1),'covered')))}\nfixedOperation<-function(api,a)switch(api,score=score20(a$rows),calibration=calibration20(a$rows,a$bins),quantile=quantile20(a$scores,a$alpha),predict=predict20(a),ranklaw=ranklaw20(a),realdata=fixedSource(a$kind))\nreportValues<-function(api,z){summary<-list();points<-list();add<-function(k,v,u)summary[[length(summary)+1]]<<-list(metric=k,value=if(is.null(v)||length(v)==0||anyNA(v))NULL else unname(v),unit=u);pt<-function(s,i,x,y)points[[length(points)+1]]<<-list(series=s,index=i,x=x,y=y)\n if(api=='score'){for(k in c('mass','Brier','meanLogLoss','genuineInfinite','BrierPositive'))add(k,z[[k]],switch(k,mass='analysis weight',Brier='squared probability',meanLogLoss='nats; numerical logarithm',genuineInfinite='indicator',BrierPositive='mathematical indicator'));for(i in seq_along(z$rows)){r<-z$rows[[i]];pt('squared error',i-1,i-1,(r$p-r$y)^2)}\n }else if(api=='calibration'){for(k in c('Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity'))add(k,z[[k]],if(k=='ECE')'probability'else'squared probability');for(r in z$bins){pt('bin probability',r$bin,r$bin,r$meanP);pt('bin outcome frequency',r$bin,r$bin,r$frequency)}\n }else if(api=='quantile'){add('n',z$n,'scores');add('k',z$k,'one-based rank');add('infinite',z$infinite,'mathematical indicator');add('threshold',if(z$infinite)'+infinity'else z$threshold,'score units');for(i in seq_along(z$ordered))pt('sorted score',i-1,i,z$ordered[[i]]$score)\n }else if(api=='predict'){for(k in c('scoredLabels','coverage','meanSetSize','meanWidth'))add(k,z[[k]],switch(k,scoredLabels='labels',coverage='fraction',meanSetSize='classes',meanWidth='outcome units'));add('thresholdInfinite',z$quantile$infinite,'mathematical indicator');for(i in seq_along(z$rows)){pt('predicted center or probability',i-1,i-1,z$rows[[i]]$prediction);pt('observed label or outcome',i-1,i-1,z$rows[[i]]$actualY)}\n }else if(api=='ranklaw'){add('N',z$N,'scores');add('distinct',z$distinct,'indicator');add('coverage',z$coverage,'fraction');for(r in z$trials)pt('held-out coverage',r$heldout,r$heldout,r$covered)\n }else{for(k in c('sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold')){r<-Filter(function(r)r$metric==k,z[['study-metrics']])[[1]];add(k,r$value,r$unit)};cv<-Filter(function(r)r$role=='test'&&r$group=='all',z[['role-group-coverage']])[[1]];for(k in c('coverage','meanSetSize','meanIntervalWidth'))add(k,cv[[k]],switch(k,coverage='fraction',meanSetSize='classes',meanIntervalWidth='outcome units'));for(i in seq_along(z[['calibration-scores']])){r<-z[['calibration-scores']][[i]];pt('all calibration scores',i-1,r$rank,r$score)}}\n list(summary=summary,points=points)}\n\nescapeXML<-function(s){s<-gsub('&','&amp;',s,fixed=TRUE);s<-gsub('<','&lt;',s,fixed=TRUE);s<-gsub('>','&gt;',s,fixed=TRUE);gsub('\"','&quot;',s,fixed=TRUE)}\nsvgPlot<-function(pp,title){\n xx<-vapply(pp,function(p)as.numeric(p$x),numeric(1));yy<-vapply(pp,function(p)as.numeric(p$y),numeric(1));xmin<-if(length(xx))min(xx)else 0;xmax<-if(length(xx))max(xx)else 1;ymin<-min(c(0,yy));ymax<-max(c(0,yy));if(xmin==xmax){xmin<-xmin-.5;xmax<-xmax+.5};if(ymin==ymax){ymin<-ymin-.5;ymax<-ymax+.5};pad<-(ymax-ymin)*.08;ymin<-ymin-pad;ymax<-ymax+pad;X<-function(x)82+(as.numeric(x)-xmin)/(xmax-xmin)*608;Y<-function(y)354-(as.numeric(y)-ymin)/(ymax-ymin)*290\n out<-paste0('<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"',escapeXML(title),'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">',escapeXML(title),'</text>')\n for(j in 0:4){y<-ymin+(ymax-ymin)*j/4;x<-xmin+(xmax-xmin)*j/4;out<-paste0(out,'<line x1=\"82\" y1=\"',Y(y),'\" x2=\"690\" y2=\"',Y(y),'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"',Y(y)+4,'\" text-anchor=\"end\">',sprintf('%.3g',y),'</text><text x=\"',X(x),'\" y=\"380\" text-anchor=\"middle\">',sprintf('%.3g',x),'</text>')}\n ss<-unique(vapply(pp,`[[`,character(1),'series'));cols<-c('#0f766e','#c76622','#4f46e5','#b23857')\n for(j in seq_along(ss)){rr<-Filter(function(p)p$series==ss[j],pp);xy<-vapply(rr,function(p)sprintf('%.6f,%.6f',X(p$x),Y(p$y)),character(1));col<-cols[(j-1)%%4+1];out<-paste0(out,'<polyline fill=\"none\" stroke=\"',col,'\" stroke-width=\"1.5\" points=\"',paste(xy,collapse=' '),'\"/>');for(p in rr)out<-paste0(out,'<circle cx=\"',sprintf('%.6f',X(p$x)),'\" cy=\"',sprintf('%.6f',Y(p$y)),'\" r=\"2.6\" fill=\"',col,'\"><title>',escapeXML(ss[j]),': ',escapeXML(p$y),'</title></circle>');out<-paste0(out,'<text x=\"',82+((j-1)%%2)*310,'\" y=\"',432+floor((j-1)/2)*23,'\" fill=\"',col,'\">',escapeXML(ss[j]),'</text>')}\n paste0(out,'<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>')\n}\n\ntoJSON<-function(x){\n if(is.null(x))return('null');if(is.list(x)){v<-vapply(x,toJSON,character(1));if(!is.null(names(x)))paste0('{',paste(paste0(vapply(names(x),toJSON,character(1)),':',v),collapse=','),'}')else paste0('[',paste(v,collapse=','),']')}\n else if(length(x)!=1){if(!is.null(names(x)))toJSON(as.list(x))else paste0('[',paste(vapply(as.list(x),toJSON,character(1)),collapse=','),']')}\n else if(is.na(x))'null'else if(is.logical(x))if(x)'true'else'false'else if(is.numeric(x))if(is.finite(x))sprintf('%.17g',x)else'null'else paste0('\"',gsub('\\n','\\\\n',gsub('\"','\\\\\"',gsub('\\\\','\\\\\\\\',x,fixed=TRUE),fixed=TRUE),fixed=TRUE),'\"')\n}\n\nFIXED<-list(\"api\"=\"quantile\",\"variant\"=\"reject-alpha-one\",\"title\"=\"Reject alpha equal to one\",\"input\"=list(\"scores\"=list(\"1\",\"2\"),\"alpha\"=\"1\"),\"expectedFailure\"=TRUE)\n\nargs<-commandArgs(trailingOnly=TRUE);out<-if(length(args))args[1]else stop('NEW output directory required');if(dir.exists(out))stop('Preserve previous output directory');dir.create(out,recursive=TRUE)\nz<-fixedOperation(FIXED$api,FIXED$input);rr<-reportValues(FIXED$api,z)\nwriteLines(toJSON(list(arithmetic='BaseR numerical counterpart; QR and membership1e-12, log-domain tiny weights; source splitRank read from factualCSV',result=z)),file.path(out,'full.json'),useBytes=TRUE)\nsums<-do.call(rbind,lapply(rr$summary,function(row)data.frame(metric=row$metric,value=if(is.null(row$value))''else if(is.logical(row$value))as.character(as.integer(row$value))else format(row$value,digits=17,scientific=NA,trim=TRUE),unit=row$unit,defined=as.integer(!is.null(row$value)),stringsAsFactors=FALSE)))\npoints<-do.call(rbind,lapply(rr$points,function(p)data.frame(series=p$series,index=p$index,x=p$x,y=if(is.null(p$y))NA_real_ else p$y,defined=as.integer(!is.null(p$y)),stringsAsFactors=FALSE)))\nwrite.csv(sums,file.path(out,'summary.csv'),row.names=FALSE,na='');write.csv(points,file.path(out,'plot-points.csv'),row.names=FALSE,na='');writeLines(svgPlot(Filter(function(p)!is.null(p$y),rr$points),FIXED$title),file.path(out,'plot.svg'),useBytes=TRUE);cat(FIXED$api,'/',FIXED$variant,'\\n',sep='')\n",
        "returnCode": 1,
        "stdout": "",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed \nError in alpha20(alpha) : alpha-must-be-strictly-between-zero-and-one\nCalls: fixedOperation -> quantile20 -> alpha20",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/r-quantile-reject-alpha-one-result",
        "kind": null,
        "inputFiles": [],
        "files": [
          {
            "file": "ml20-code/r-quantile-reject-alpha-one-result/stdout.txt",
            "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
            "bytes": 0
          },
          {
            "file": "ml20-code/r-quantile-reject-alpha-one-result/stderr.txt",
            "sha256": "a4aabaab0488f7e6d1ab43da2de4c337e035c9ebdf158a98a4e362f793f4bdf3",
            "bytes": 299
          }
        ],
        "summaryRows": [],
        "plotRows": [],
        "plotFile": null,
        "fullResultFile": null,
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      }
    }
  },
  "predict": {
    "python": {
      "regression-boundary": {
        "api": "predict",
        "variant": "regression-boundary",
        "language": "python",
        "title": "Inclusive interval boundaries and missing labels",
        "input": {
          "mode": "regression",
          "scores": [
            "1",
            "2",
            "3",
            "4"
          ],
          "alpha": "2/5",
          "queries": [
            {
              "center": "0",
              "y": "3"
            },
            {
              "center": "2",
              "y": "-1"
            },
            {
              "center": "1",
              "y": null
            }
          ]
        },
        "expectedFailure": false,
        "codeFile": "ml20-code/predict-regression-boundary.py",
        "codeSHA256": "775f29196cad33ca48c759c82f3e112bef234b86bbd02d518e3c168ebd51fd7b",
        "code": "\"\"\"ML20 standalone fixed example, not an arbitrary-input validator.\nFinite Python Fraction algebra; natural logs use Decimal1800 approximation\nthen a final binary64 display projection. Realdata reads4factual CSVs only,\nreusing the frozen public reader/fit implementation by value; all other inputs\nare complete fixed literals. No engine/model/computed/checker imported.\nRun: python this-file.py NEW-OUTPUT\n\"\"\"\nfrom pathlib import Path\nimport csv,json,hashlib,sys,math,html\nif hasattr(sys,'set_int_max_str_digits'):sys.set_int_max_str_digits(100000)\n\"\"\"Owned standalone exact finite optimization primitives for ML19 public programs.\nThis is an author implementation, never an independent numerical oracle.\n\"\"\"\nfrom fractions import Fraction as Q\ndef number(v):return v if isinstance(v,Q)else Q(str(v))\ndef dot(a,b):return sum((x*y for x,y in zip(a,b)),Q(0))\ndef frame(rows,p=2,scale='range'):\n rr=[]\n for i,r in enumerate(rows):\n  x=[None if v is None else number(v)for v in r['x']];y=None if r['y']is None else number(r['y']);w=number(r.get('weight',1));role=r.get('role','train');rr.append(dict(id=r.get('id','row:'+str(i+1)),index=i,x=x,y=y,w=w,role=role,eligible=y is not None and all(v is not None for v in x)and w>0))\n train=[r for r in rr if r['role']=='train'and r['eligible']];W=sum((r['w']for r in train),Q(0))\n if not W:return dict(defined=False,p=p,rows=rr,train=[],W=W)\n mean=[sum(r['w']*r['x'][j]for r in train)/W for j in range(p)];ranges=[max(r['x'][j]for r in train)-min(r['x'][j]for r in train)or Q(1)for j in range(p)];scales=ranges if scale=='range'else[Q(1)]*p\n for r in rr:r['z']=None if None in r['x']else[Q(1)]+[(r['x'][j]-mean[j])/scales[j]for j in range(p)]\n return dict(defined=True,p=p,rows=rr,train=train,W=W,mean=mean,ranges=ranges,scales=scales,meanY=sum(r['w']*r['y']for r in train)/W)\ndef quadratic(f,lam=Q(0),role='train'):\n rr=[r for r in f['rows']if r['role']==role and r['eligible']];W=sum((r['w']for r in rr),Q(0));n=f['p']+1\n if not W:return None\n H=[[sum(r['w']*r['z'][j]*r['z'][k]for r in rr)/W+(lam if j==k and j else 0)for k in range(n)]for j in range(n)];b=[sum(r['w']*r['y']*r['z'][j]for r in rr)/W for j in range(n)];d=sum(r['w']*r['y']**2 for r in rr)/(2*W);return H,b,d\ndef state(q,theta):\n H,b,d=q;gradient=[dot(row,theta)-bb for row,bb in zip(H,b)];return dict(theta=theta,objective=dot(theta,[dot(row,theta)for row in H])/2-dot(theta,b)+d,gradient=gradient,gradientNormSquared=dot(gradient,gradient))\ndef solve(H,b):\n n=len(b);A=[row[:]+[bb]for row,bb in zip(H,b)];piv=[];row=0\n for j in range(n):\n  k=next((i for i in range(row,n)if A[i][j]),None)\n  if k is None:continue\n  A[row],A[k]=A[k],A[row];z=A[row][j];A[row]=[v/z for v in A[row]]\n  for i in range(n):\n   if i!=row:\n    z=A[i][j];A[i]=[v-z*u for v,u in zip(A[i],A[row])]\n  piv.append(j);row+=1\n  if row==n:break\n assert not any(not any(r[:n])and r[n]for r in A)\n beta=[Q(0)]*n\n for i,j in enumerate(piv):beta[j]=A[i][n]\n nullspace=[]\n for j in range(n):\n  if j not in piv:\n   v=[Q(0)]*n;v[j]=Q(1)\n   for i,k in enumerate(piv):v[k]=-A[i][j]\n   nullspace.append(v)\n return dict(rank=len(piv),particular=beta,nullspace=nullspace,unique=len(piv)==n)\n\n\ndef fixed_source(kind):\n SRC=Path(__file__).resolve().parent/\"data\"\n read=lambda n:list(csv.DictReader((SRC/n).open(encoding='utf8',newline='')))\n def native(v):return None if v in['','.']else v\n\n models={};original=read('actual48-country-revised-original-2023-2024.csv');lookup={(r['countryISO3'],r['indicatorID'],r['date']):r for r in original};rows=[]\n for iso in sorted({r['countryISO3']for r in original}):\n  g=lookup[iso,'NY.GDP.PCAP.KD','2023'];p=lookup[iso,'FP.CPI.TOTL.ZG','2023'];y=lookup[iso,'NY.GDP.MKTP.KD.ZG','2024'];rows.append(dict(id=iso+':2024',x=[None if not g['originalValueToken']else str(number(g['originalValueToken'])/10000),None if not p['originalValueToken']else str(number(p['originalValueToken'])/10)],y=native(y['originalValueToken']),sourceRow=iso))\n models['country']=dict(rows=rows,names=['g','pi'],unit='annual GDP growth percentage points')\n for kind,file,keys,ykey,ID in [('person','actual3613-NLS-original52-fields-and-conformal-frame.csv',['ed76','age76'],'lwage76','person-row:'),('company','actual3150-churn-original14-fields-and-conformal-frame.csv',['Call  Failure','Seconds of Use'],'Churn','customer-row:')]:\n  source=read(file);models[kind]=dict(rows=[dict(id=ID+r['sourceRow'],sourceRow=r['sourceRow'],x=[native(r[k])for k in keys],y=native(r[ykey]))for r in source],names=['ed76','age76']if kind=='person'else['CallFailure','SecondsUse'],unit='native trimmed1976log hourly wage'if kind=='person'else'native Churn0/1')\n for kind,m in models.items():\n  for rank,r in enumerate(sorted(m['rows'],key=lambda r:(hashlib.sha256(('ML20|'+kind+'|'+r['id']).encode()).digest(),r['id']))):r.update(splitRank=rank,plannedRole=['test','calibration','train','train'][rank%4]);r['role']=r['plannedRole']if r['y']is not None and None not in r['x']else'excluded';r['weight']='1'\n  m['trainingIDs']=[r['id']for r in sorted(m['rows'],key=lambda r:r['splitRank'])if r['role']=='train']\n\n models={kind:models[kind]}\n # New public actual-source study; exact finite Fraction fit/rank/membership.\n # Default single declared model, not a hyperparameter Cartesian dump.\n from decimal import Decimal,localcontext\n from collections import Counter\n outputs={k:[]for k in['study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins']}\n alpha=number('1/5');lam=number('1/100')\n if not 0<alpha<1 or lam<0:raise ValueError('Require0<alpha<1 and nonnegative ridge')\n def metric(kind,name,value,unit,arithmetic='exact rational'):\n  outputs['study-metrics'].append(dict(kind=kind,metric=name,value=''if value is None else value,unit=unit,defined=int(value is not None),arithmetic=arithmetic))\n def bins(rr,B=5):\n  groups=[[]for _ in range(B)]\n  for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n  n=len(rr);yb=sum((r['y']for r in rr),Q(0))/n if n else None;ece=rel=res=var=cov=Q(0);result=[]\n  for j,gg in enumerate(groups):\n   nn=len(gg);pm=sum((r['p']for r in gg),Q(0))/nn if nn else None;ym=sum((r['y']for r in gg),Q(0))/nn if nn else None;v=sum(((r['p']-pm)**2 for r in gg),Q(0))/nn if nn else None;co=sum(((r['p']-pm)*(r['y']-ym)for r in gg),Q(0))/nn if nn else None\n   result.append(dict(bin=j,lower=Q(j,B),upper=Q(j+1,B),rightClosed=int(j==B-1),rows=nn,meanP=pm,frequencyY1=ym,gap=None if not nn else pm-ym,withinVarianceP=v,withinCovariancePY=co))\n   if nn:weight=Q(nn,n);ece+=weight*abs(pm-ym);rel+=weight*(pm-ym)**2;res+=weight*(ym-yb)**2;var+=weight*v;cov+=weight*co\n  return result,dict(ECE=ece if n else None,Brier=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/n if n else None,uncertainty=yb*(1-yb)if n else None,resolution=res if n else None,reliability=rel if n else None,withinVarianceP=var if n else None,withinCovariancePY=cov if n else None)\n def meanlog(rr):\n  if not rr:return None\n  pp=[r['p']if r['y']else 1-r['p']for r in rr]\n  if any(not p for p in pp):return'+infinity'\n  with localcontext()as ctx:\n   ctx.prec=60;return str(-sum(((Decimal(p.numerator)/Decimal(p.denominator)).ln()for p in pp),Decimal(0))/len(pp))\n for kind,m in models.items():\n  f=frame(m['rows']);n=len(f['train']);assert n>0;H,b,d=quadratic(f,lam);fit=solve(H,b);theta=fit['particular'];minimum=state((H,b,d),theta)['objective'];beta=[theta[j+1]/f['scales'][j]for j in range(2)];intercept=theta[0]-dot(beta,f['mean']);rr=[]\n  for r in f['rows']:\n   native=m['rows'][r['index']];raw=None if r['z']is None else dot(r['z'],theta);pred=None if raw is None else max(Q(0),min(Q(1),raw))if kind=='company'else raw;group='missing-X'if r['z']is None else('schooling-at-most12'if r['x'][0]<=12 else'schooling-over12')if kind=='person'else('zero-call-failures'if r['x'][0]==0 else'positive-call-failures')if kind=='company'else('GDPpc-at-most-training-mean'if r['x'][0]<=f['mean'][0]else'GDPpc-above-training-mean');rr.append(dict(id=r['id'],sourceRow=native['sourceRow'],sourceIndex0=r['index'],plannedRole=native['plannedRole'],role=r['role'],group=group,y=r['y'],raw=raw,prediction=pred,eligible=r['eligible']))\n  cal=[r for r in rr if r['role']=='calibration'and r['prediction']is not None and r['y']is not None]\n  for i,r in enumerate(cal):r['calibrationIndex0']=i;r['score']=(1-r['prediction']if r['y']else r['prediction'])if kind=='company'else abs(r['y']-r['prediction'])\n  ordered=sorted(cal,key=lambda r:(r['score'],r['calibrationIndex0']));rankQ=(len(cal)+1)*(1-alpha);k=(rankQ.numerator+rankQ.denominator-1)//rankQ.denominator;threshold=ordered[k-1]['score']if k<=len(cal)else None;unbounded=threshold is None\n  for j,r in enumerate(ordered,1):outputs['calibration-scores'].append(dict(kind=kind,rank=j,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],calibrationIndex0=r['calibrationIndex0'],score=r['score'],threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded)))\n  for j,name in enumerate(m['names']):outputs['training-coefficients'].append(dict(kind=kind,feature=name,mean=f['mean'][j],scale=f['scales'][j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[0],nativeIntercept=intercept,rank=fit['rank'],unique=int(fit['unique']),lambdaValue=lam,minimumObjective=minimum))\n  for name,value,unit in[('sourceRows',len(rr),'rows'),('trainingRows',n,'rows'),('calibrationScores',len(cal),'unit-count scores'),('testLabeledRows',sum(r['role']=='test'and r['y']is not None for r in rr),'rows'),('excludedRows',sum(r['role']=='excluded'for r in rr),'rows'),('alpha',alpha,'probability'),('ridge',lam,'transformed slope penalty'),('quantileRank',k,'one-based rank'),('threshold','+infinity'if unbounded else threshold,'dimensionless score'if kind=='company'else m['unit']),('minimumObjective',minimum,'('+m['unit']+') squared')]:metric(kind,name,value,unit,'mathematical infinity'if value=='+infinity'else'exact rational')\n  for r in rr:\n   defined=r['prediction']is not None;labeled=defined and r['y']is not None\n   if not defined:lo=hi=width=size=None;labels='';covered=None\n   elif kind=='company':\n    labelsList=[j for j,s in enumerate([r['prediction'],1-r['prediction']])if unbounded or s<=threshold];labels='|'.join(map(str,labelsList));size=len(labelsList);lo=hi=width=None;covered=int(int(r['y'])in labelsList)if labeled else None\n   else:lo='-infinity'if unbounded else r['prediction']-threshold;hi='+infinity'if unbounded else r['prediction']+threshold;width='+infinity'if unbounded else 2*threshold;labels='';size=None;covered=int(unbounded or abs(r['y']-r['prediction'])<=threshold)if labeled else None\n   r.update(defined=defined,labeled=labeled,lower=lo,upper=hi,width=width,labels=labels,size=size,covered=covered)\n   outputs['row-predictions'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],plannedRole=r['plannedRole'],role=r['role'],group=r['group'],actualY=r['y'],rawLinear=r['raw'],prediction=r['prediction'],predictionDefined=int(defined),threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded),lower=lo,upper=hi,width=width,setLabels=labels,setSize=size,covered=covered,labeledPrediction=int(labeled)))\n   outputs['eligibility'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],plannedRole=r['plannedRole'],role=r['role'],requiredComplete=int(r['eligible']),trainingUsed=int(r['role']=='train'and r['eligible']),reason='missing-required-field'if not r['eligible']else''))\n  roles=list(dict.fromkeys(r['role']for r in rr));groups=list(dict.fromkeys(r['group']for r in rr))\n  for role in roles:\n   for group in['all']+groups:\n    use=[r for r in rr if r['role']==role and(group=='all'or r['group']==group)];defined=[r for r in use if r['defined']];scored=[r for r in use if r['labeled']and role not in['excluded','unused']];covered=sum(r['covered']for r in scored);nn=len(defined);nscore=len(scored);unboundedCount=sum(r['width']=='+infinity'for r in defined);size=Q(sum(r['size']for r in defined),nn)if kind=='company'and nn else None;width=('+infinity'if unboundedCount else sum(r['width']for r in defined)/nn)if kind!='company'and nn else None\n    outputs['role-group-coverage'].append(dict(kind=kind,role=role,group=group,originalRows=len(use),definedPredictions=nn,scoredLabels=nscore,coveredRows=covered,coverage=Q(covered,nscore)if nscore else None,meanSetSize=size,meanIntervalWidth=width,unboundedIntervals=unboundedCount))\n  if kind=='company':\n   for role in['train','calibration','test']:\n    use=[dict(p=r['prediction'],y=r['y'])for r in rr if r['role']==role and r['labeled']];bb,mm=bins(use)\n    for row in bb:outputs['reliability-bins'].append(dict(kind=kind,role=role,**row))\n    for name,value in mm.items():metric(kind,role+':'+name,value,'dimensionless'if name=='ECE'else'squared probability')\n    metric(kind,role+':meanLogLoss',meanlog(use),'nats','Decimal60 approximation or genuine infinity')\n return outputs\n\n# Owned ML20 fixed-example adapters. Finite rational calculations; logs approximate.\nfrom fractions import Fraction as Q\nfrom decimal import Decimal,localcontext\nimport math\ndef num(v):return v if isinstance(v,Q)else Q(str(v))\ndef ceilq(q):return-((-q.numerator)//q.denominator)\ndef fixed_quantile(scores,alpha):\n a=num(alpha)\n if not 0<a<1:raise ValueError('alpha-must-be-strictly-between-zero-and-one')\n ordered=sorted([(num(v),i)for i,v in enumerate(scores)if v is not None]);n=len(ordered);k=ceilq((n+1)*(1-a));q=None if k>n else ordered[k-1][0]\n return dict(n=n,k=k,threshold=q,infinite=q is None,ordered=ordered)\ndef fixed_score(rows):\n rr=[dict(p=num(r['p']),y=num(r['y']),w=num(r.get('weight',1)))for r in rows];rr=[r for r in rr if r['w']>0];mass=sum((r['w']for r in rr),Q(0));brier=sum((r['w']*(r['p']-r['y'])**2 for r in rr),Q(0))/mass if mass else None;logs=[];genuine=False\n with localcontext()as ctx:\n  ctx.prec=1800\n  total=Decimal(0)\n  for r in rr:\n   p=r['p']if r['y']else 1-r['p']\n   if not p:genuine=True;logs.append('+infinity');continue\n   loss=-(Decimal(p.numerator)/Decimal(p.denominator)).ln();logs.append(str(loss));w=r['w']/mass;total+=Decimal(w.numerator)/Decimal(w.denominator)*loss\n  display='+infinity'if genuine else None if not mass else repr(float(total));raw='+infinity'if genuine else None if not mass else str(total)\n return dict(rows=rr,mass=mass,Brier=brier,meanLogLoss=display,naturalLogApprox1800=raw,individualLogLoss=logs,genuineInfinite=genuine,BrierPositive=brier is not None and brier>0)\ndef fixed_calibration(rows,B):\n rr=[dict(p=num(r['p']),y=num(r['y']))for r in rows];N=len(rr);yb=sum((r['y']for r in rr),Q(0))/N;groups=[[]for _ in range(B)]\n for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n result=[];ece=rel=res=vp=cp=Q(0)\n for j,g in enumerate(groups):\n  n=len(g);pm=sum((r['p']for r in g),Q(0))/n if n else None;ym=sum((r['y']for r in g),Q(0))/n if n else None;v=sum(((r['p']-pm)**2 for r in g),Q(0))/n if n else None;c=sum(((r['p']-pm)*(r['y']-ym)for r in g),Q(0))/n if n else None;result.append(dict(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c))\n  if n:z=Q(n,N);ece+=z*abs(pm-ym);rel+=z*(pm-ym)**2;res+=z*(ym-yb)**2;vp+=z*v;cp+=z*c\n bs=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/N;u=yb*(1-yb)\n return dict(rows=N,bins=result,Brier=bs,ECE=ece,uncertainty=u,resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=u-res+rel+vp-2*cp)\ndef fixed_predict(a):\n q=fixed_quantile(a['scores'],a['alpha']);out=[];classification=a['mode']=='classification'\n for i,row in enumerate(a['queries']):\n  p=num(row['p']if classification else row['center']);y=None if row.get('y')is None else num(row['y']);threshold=q['threshold'];unbounded=q['infinite']\n  if classification:labels=[v for v,s in[(0,p),(1,1-p)]if unbounded or s<=threshold];lo=hi=width=None;size=len(labels);covered=None if y is None else int(int(y)in labels)\n  else:labels=None;size=None;lo='-infinity'if unbounded else p-threshold;hi='+infinity'if unbounded else p+threshold;width='+infinity'if unbounded else 2*threshold;covered=None if y is None else int(unbounded or abs(y-p)<=threshold)\n  out.append(dict(id=row.get('id',str(i)),prediction=p,actualY=y,labels=labels,size=size,lower=lo,upper=hi,width=width,covered=covered))\n scored=[r for r in out if r['covered']is not None];coverage=Q(sum(r['covered']for r in scored),len(scored))if scored else None;meanSize=Q(sum(r['size']for r in out),len(out))if classification and out else None;meanWidth=('+infinity'if q['infinite']else 2*q['threshold'])if not classification and out else None\n return dict(quantile=q,rows=out,scoredLabels=len(scored),coverage=coverage,meanSetSize=meanSize,meanWidth=meanWidth)\ndef fixed_ranklaw(a):\n scores=list(map(num,a['scores']));trials=[]\n for i,y in enumerate(scores):q=fixed_quantile(scores[:i]+scores[i+1:],a['alpha']);trials.append(dict(heldout=i,score=y,k=q['k'],threshold=q['threshold'],infinite=q['infinite'],covered=int(q['infinite']or y<=q['threshold'])))\n return dict(N=len(scores),distinct=len(set(scores))==len(scores),trials=trials,coverage=Q(sum(t['covered']for t in trials),len(trials)))\ndef fixed_operation(api,a):\n return fixed_score(a['rows'])if api=='score'else fixed_calibration(a['rows'],a['bins'])if api=='calibration'else fixed_quantile(a['scores'],a['alpha'])if api=='quantile'else fixed_predict(a)if api=='predict'else fixed_ranklaw(a)if api=='ranklaw'else fixed_source(a['kind'])\ndef report_values(api,z):\n summary=[];series=[]\n def add(k,v,u):summary.append((k,v,u))\n if api=='score':\n  for k,u in[('mass','analysis weight'),('Brier','squared probability'),('meanLogLoss','nats; numerical logarithm'),('genuineInfinite','indicator'),('BrierPositive','mathematical indicator')]:add(k,z[k],u)\n  series=[('squared error',[(i,(r['p']-r['y'])**2)for i,r in enumerate(z['rows'])])]\n elif api=='calibration':\n  for k in['Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity']:add(k,z[k],'probability'if k=='ECE'else'squared probability')\n  series=[('bin probability',[(r['bin'],r['meanP'])for r in z['bins']]),('bin outcome frequency',[(r['bin'],r['frequency'])for r in z['bins']])]\n elif api=='quantile':\n  for k,u in[('n','scores'),('k','one-based rank'),('infinite','mathematical indicator')]:add(k,z[k],u)\n  add('threshold','+infinity'if z['infinite']else z['threshold'],'score units');series=[('sorted score',[(i+1,v)for i,(v,index)in enumerate(z['ordered'])])]\n elif api=='predict':\n  for k,u in[('scoredLabels','labels'),('coverage','fraction'),('meanSetSize','classes'),('meanWidth','outcome units')]:add(k,z[k],u)\n  add('thresholdInfinite',z['quantile']['infinite'],'mathematical indicator');series=[('predicted center or probability',[(i,r['prediction'])for i,r in enumerate(z['rows'])]),('observed label or outcome',[(i,r['actualY'])for i,r in enumerate(z['rows'])])]\n elif api=='ranklaw':\n  for k,u in[('N','scores'),('distinct','indicator'),('coverage','fraction')]:add(k,z[k],u)\n  series=[('held-out coverage',[(r['heldout'],r['covered'])for r in z['trials']])]\n else:\n  mt={r['metric']:r for r in z['study-metrics']};cv=next(r for r in z['role-group-coverage']if r['role']=='test'and r['group']=='all')\n  for k in['sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold']:add(k,mt[k]['value'],mt[k]['unit'])\n  for k,u in[('coverage','fraction'),('meanSetSize','classes'),('meanIntervalWidth','outcome units')]:add(k,cv[k],u)\n  series=[('all calibration scores',[(r['rank'],r['score'])for r in z['calibration-scores']])]\n return summary,series\n\nnumber=num\n\nFIXED={'api': 'predict', 'variant': 'regression-boundary', 'title': 'Inclusive interval boundaries and missing labels', 'input': {'mode': 'regression', 'scores': ['1', '2', '3', '4'], 'alpha': '2/5', 'queries': [{'center': '0', 'y': '3'}, {'center': '2', 'y': '-1'}, {'center': '1', 'y': None}]}, 'expectedFailure': False}\n\ndef fixed_svg(points,title):\n good=[p for p in points if p['y'] is not None];xx=[float(p['x'])for p in good];yy=[float(p['y'])for p in good];xmin=min(xx)if xx else 0;xmax=max(xx)if xx else 1;ymin=min([0]+yy);ymax=max([0]+yy)\n if xmin==xmax:xmin-=.5;xmax+=.5\n if ymin==ymax:ymin-=.5;ymax+=.5\n pad=(ymax-ymin)*.08;ymin-=pad;ymax+=pad;X=lambda x:82+(float(x)-xmin)/(xmax-xmin)*608;Y=lambda y:354-(float(y)-ymin)/(ymax-ymin)*290;e=html.escape\n out=['<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"'+e(title)+'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">'+e(title)+'</text>']\n for j in range(5):\n  y=ymin+(ymax-ymin)*j/4;x=xmin+(xmax-xmin)*j/4;out.append('<line x1=\"82\" y1=\"'+str(Y(y))+'\" x2=\"690\" y2=\"'+str(Y(y))+'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"'+str(Y(y)+4)+'\" text-anchor=\"end\">'+format(y,'.3g')+'</text><text x=\"'+str(X(x))+'\" y=\"380\" text-anchor=\"middle\">'+format(x,'.3g')+'</text>')\n series=list(dict.fromkeys(p['series']for p in good))\n for j,s in enumerate(series):\n  pp=[p for p in good if p['series']==s];color=['#0f766e','#c76622','#4f46e5','#b23857'][j%4];out.append('<polyline fill=\"none\" stroke=\"'+color+'\" stroke-width=\"1.5\" points=\"'+' '.join(format(X(p['x']),'.6f')+','+format(Y(p['y']),'.6f')for p in pp)+'\"/>')\n  for p in pp:out.append('<circle cx=\"'+format(X(p['x']),'.6f')+'\" cy=\"'+format(Y(p['y']),'.6f')+'\" r=\"2.6\" fill=\"'+color+'\"><title>'+e(s+': '+str(p['y']))+'</title></circle>')\n  out.append('<text x=\"'+str(82+(j%2)*310)+'\" y=\"'+str(432+(j//2)*23)+'\" fill=\"'+color+'\">'+e(s)+'</text>')\n out.append('<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>');return''.join(out)\n\nOUT=Path(sys.argv[1]);OUT.mkdir(parents=True,exist_ok=False)\nresult=fixed_operation(FIXED['api'],FIXED['input']);summary,series=report_values(FIXED['api'],result)\ndef encode(v):\n if isinstance(v,Q):return str(v)\n if isinstance(v,dict):return{k:encode(x)for k,x in v.items()}\n if isinstance(v,(list,tuple)):return[encode(x)for x in v]\n return v\n(OUT/'full.json').write_text(json.dumps(dict(arithmetic='Exact finite Fraction algebra except approximate natural logs; declared fixed examples, no exchangeability certification',result=encode(result)),ensure_ascii=False,indent=2)+'\\n',encoding='utf8')\nsummaryRows=[dict(metric=m,value=''if v is None else str(int(v))if isinstance(v,bool)else str(v),unit=u,defined=int(v is not None))for m,v,u in summary]\npoints=[dict(series=name,index=i,x=str(x),y=''if y is None else str(y),defined=int(y is not None))for name,pp in series for i,(x,y)in enumerate(pp)]\nfor name,rows in [('summary',summaryRows),('plot-points',points)]:\n with(OUT/(name+'.csv')).open('w',encoding='utf8',newline='')as f:writer=csv.DictWriter(f,fieldnames=list(rows[0]));writer.writeheader();writer.writerows(rows)\n(OUT/'plot.svg').write_text(fixed_svg([dict(p,x=number(p['x']),y=None if not p['defined']else number(p['y']))for p in points],FIXED['title']),encoding='utf8');print(FIXED['api']+'/'+FIXED['variant'])\n",
        "returnCode": 0,
        "stdout": "predict/regression-boundary\r\n",
        "stderr": "",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/python-predict-regression-boundary-result",
        "kind": null,
        "inputFiles": [],
        "files": [
          {
            "file": "ml20-code/python-predict-regression-boundary-result/full.json",
            "sha256": "d7c8552b3bd6e3d8dd74405c81367188f09f7356a88d1867cb03b898b7200134",
            "bytes": 1328
          },
          {
            "file": "ml20-code/python-predict-regression-boundary-result/plot-points.csv",
            "sha256": "110a1af92589104a1f7b0ab3bee3edfebaae74d3a9bf003fd21bc8ca3a87bbdd",
            "bytes": 254
          },
          {
            "file": "ml20-code/python-predict-regression-boundary-result/plot.svg",
            "sha256": "7bfa51567581a21be541706a58972bb3f0fc50713f01ec5429d80295d2859f17",
            "bytes": 2292
          },
          {
            "file": "ml20-code/python-predict-regression-boundary-result/summary.csv",
            "sha256": "d36b21f1b41f92a35802f2eb10804a33a8f92ef244ac1a48cf5663dc92f3a093",
            "bytes": 174
          },
          {
            "file": "ml20-code/python-predict-regression-boundary-result/stdout.txt",
            "sha256": "e1016ab6775589c926fa2024ac808d64cbc18161842fa1683c5d96e518015dba",
            "bytes": 29
          },
          {
            "file": "ml20-code/python-predict-regression-boundary-result/stderr.txt",
            "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
            "bytes": 0
          }
        ],
        "summaryRows": [
          {
            "metric": "scoredLabels",
            "value": "2",
            "unit": "labels",
            "defined": "true",
            "exactFraction": "2",
            "rawValue": "2",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "coverage",
            "value": "1",
            "unit": "fraction",
            "defined": "true",
            "exactFraction": "1",
            "rawValue": "1",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "meanSetSize",
            "value": "undefined",
            "unit": "classes",
            "defined": "false",
            "exactFraction": "",
            "rawValue": "",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "meanWidth",
            "value": "6",
            "unit": "outcome units",
            "defined": "true",
            "exactFraction": "6",
            "rawValue": "6",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "thresholdInfinite",
            "value": "0",
            "unit": "mathematical indicator",
            "defined": "true",
            "exactFraction": "0",
            "rawValue": "0",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          }
        ],
        "plotRows": [
          {
            "series": "predicted center or probability",
            "index": 0,
            "x": "0",
            "y": "0",
            "defined": true,
            "xExact": "0",
            "yExact": "0"
          },
          {
            "series": "predicted center or probability",
            "index": 1,
            "x": "1",
            "y": "2",
            "defined": true,
            "xExact": "1",
            "yExact": "2"
          },
          {
            "series": "predicted center or probability",
            "index": 2,
            "x": "2",
            "y": "1",
            "defined": true,
            "xExact": "2",
            "yExact": "1"
          },
          {
            "series": "observed label or outcome",
            "index": 0,
            "x": "0",
            "y": "3",
            "defined": true,
            "xExact": "0",
            "yExact": "3"
          },
          {
            "series": "observed label or outcome",
            "index": 1,
            "x": "1",
            "y": "-1",
            "defined": true,
            "xExact": "1",
            "yExact": "-1"
          },
          {
            "series": "observed label or outcome",
            "index": 2,
            "x": "2",
            "y": "",
            "defined": false,
            "xExact": "2",
            "yExact": ""
          }
        ],
        "plotFile": "ml20-code/python-predict-regression-boundary-result/plot.svg",
        "fullResultFile": "ml20-code/python-predict-regression-boundary-result/full.json",
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      },
      "empty-singleton": {
        "api": "predict",
        "variant": "empty-singleton",
        "language": "python",
        "title": "Defined empty and singleton class sets",
        "input": {
          "mode": "classification",
          "scores": [
            "1/10",
            "1/5",
            "1/5",
            "1/5"
          ],
          "alpha": "2/5",
          "queries": [
            {
              "p": "1/2",
              "y": "1"
            },
            {
              "p": "1/10",
              "y": "0"
            },
            {
              "p": "9/10",
              "y": "0"
            }
          ]
        },
        "expectedFailure": false,
        "codeFile": "ml20-code/predict-empty-singleton.py",
        "codeSHA256": "f82476358d164bdda3007a89d0a0dc5e7c71307f694a45ff5d7fbae05560bfbe",
        "code": "\"\"\"ML20 standalone fixed example, not an arbitrary-input validator.\nFinite Python Fraction algebra; natural logs use Decimal1800 approximation\nthen a final binary64 display projection. Realdata reads4factual CSVs only,\nreusing the frozen public reader/fit implementation by value; all other inputs\nare complete fixed literals. No engine/model/computed/checker imported.\nRun: python this-file.py NEW-OUTPUT\n\"\"\"\nfrom pathlib import Path\nimport csv,json,hashlib,sys,math,html\nif hasattr(sys,'set_int_max_str_digits'):sys.set_int_max_str_digits(100000)\n\"\"\"Owned standalone exact finite optimization primitives for ML19 public programs.\nThis is an author implementation, never an independent numerical oracle.\n\"\"\"\nfrom fractions import Fraction as Q\ndef number(v):return v if isinstance(v,Q)else Q(str(v))\ndef dot(a,b):return sum((x*y for x,y in zip(a,b)),Q(0))\ndef frame(rows,p=2,scale='range'):\n rr=[]\n for i,r in enumerate(rows):\n  x=[None if v is None else number(v)for v in r['x']];y=None if r['y']is None else number(r['y']);w=number(r.get('weight',1));role=r.get('role','train');rr.append(dict(id=r.get('id','row:'+str(i+1)),index=i,x=x,y=y,w=w,role=role,eligible=y is not None and all(v is not None for v in x)and w>0))\n train=[r for r in rr if r['role']=='train'and r['eligible']];W=sum((r['w']for r in train),Q(0))\n if not W:return dict(defined=False,p=p,rows=rr,train=[],W=W)\n mean=[sum(r['w']*r['x'][j]for r in train)/W for j in range(p)];ranges=[max(r['x'][j]for r in train)-min(r['x'][j]for r in train)or Q(1)for j in range(p)];scales=ranges if scale=='range'else[Q(1)]*p\n for r in rr:r['z']=None if None in r['x']else[Q(1)]+[(r['x'][j]-mean[j])/scales[j]for j in range(p)]\n return dict(defined=True,p=p,rows=rr,train=train,W=W,mean=mean,ranges=ranges,scales=scales,meanY=sum(r['w']*r['y']for r in train)/W)\ndef quadratic(f,lam=Q(0),role='train'):\n rr=[r for r in f['rows']if r['role']==role and r['eligible']];W=sum((r['w']for r in rr),Q(0));n=f['p']+1\n if not W:return None\n H=[[sum(r['w']*r['z'][j]*r['z'][k]for r in rr)/W+(lam if j==k and j else 0)for k in range(n)]for j in range(n)];b=[sum(r['w']*r['y']*r['z'][j]for r in rr)/W for j in range(n)];d=sum(r['w']*r['y']**2 for r in rr)/(2*W);return H,b,d\ndef state(q,theta):\n H,b,d=q;gradient=[dot(row,theta)-bb for row,bb in zip(H,b)];return dict(theta=theta,objective=dot(theta,[dot(row,theta)for row in H])/2-dot(theta,b)+d,gradient=gradient,gradientNormSquared=dot(gradient,gradient))\ndef solve(H,b):\n n=len(b);A=[row[:]+[bb]for row,bb in zip(H,b)];piv=[];row=0\n for j in range(n):\n  k=next((i for i in range(row,n)if A[i][j]),None)\n  if k is None:continue\n  A[row],A[k]=A[k],A[row];z=A[row][j];A[row]=[v/z for v in A[row]]\n  for i in range(n):\n   if i!=row:\n    z=A[i][j];A[i]=[v-z*u for v,u in zip(A[i],A[row])]\n  piv.append(j);row+=1\n  if row==n:break\n assert not any(not any(r[:n])and r[n]for r in A)\n beta=[Q(0)]*n\n for i,j in enumerate(piv):beta[j]=A[i][n]\n nullspace=[]\n for j in range(n):\n  if j not in piv:\n   v=[Q(0)]*n;v[j]=Q(1)\n   for i,k in enumerate(piv):v[k]=-A[i][j]\n   nullspace.append(v)\n return dict(rank=len(piv),particular=beta,nullspace=nullspace,unique=len(piv)==n)\n\n\ndef fixed_source(kind):\n SRC=Path(__file__).resolve().parent/\"data\"\n read=lambda n:list(csv.DictReader((SRC/n).open(encoding='utf8',newline='')))\n def native(v):return None if v in['','.']else v\n\n models={};original=read('actual48-country-revised-original-2023-2024.csv');lookup={(r['countryISO3'],r['indicatorID'],r['date']):r for r in original};rows=[]\n for iso in sorted({r['countryISO3']for r in original}):\n  g=lookup[iso,'NY.GDP.PCAP.KD','2023'];p=lookup[iso,'FP.CPI.TOTL.ZG','2023'];y=lookup[iso,'NY.GDP.MKTP.KD.ZG','2024'];rows.append(dict(id=iso+':2024',x=[None if not g['originalValueToken']else str(number(g['originalValueToken'])/10000),None if not p['originalValueToken']else str(number(p['originalValueToken'])/10)],y=native(y['originalValueToken']),sourceRow=iso))\n models['country']=dict(rows=rows,names=['g','pi'],unit='annual GDP growth percentage points')\n for kind,file,keys,ykey,ID in [('person','actual3613-NLS-original52-fields-and-conformal-frame.csv',['ed76','age76'],'lwage76','person-row:'),('company','actual3150-churn-original14-fields-and-conformal-frame.csv',['Call  Failure','Seconds of Use'],'Churn','customer-row:')]:\n  source=read(file);models[kind]=dict(rows=[dict(id=ID+r['sourceRow'],sourceRow=r['sourceRow'],x=[native(r[k])for k in keys],y=native(r[ykey]))for r in source],names=['ed76','age76']if kind=='person'else['CallFailure','SecondsUse'],unit='native trimmed1976log hourly wage'if kind=='person'else'native Churn0/1')\n for kind,m in models.items():\n  for rank,r in enumerate(sorted(m['rows'],key=lambda r:(hashlib.sha256(('ML20|'+kind+'|'+r['id']).encode()).digest(),r['id']))):r.update(splitRank=rank,plannedRole=['test','calibration','train','train'][rank%4]);r['role']=r['plannedRole']if r['y']is not None and None not in r['x']else'excluded';r['weight']='1'\n  m['trainingIDs']=[r['id']for r in sorted(m['rows'],key=lambda r:r['splitRank'])if r['role']=='train']\n\n models={kind:models[kind]}\n # New public actual-source study; exact finite Fraction fit/rank/membership.\n # Default single declared model, not a hyperparameter Cartesian dump.\n from decimal import Decimal,localcontext\n from collections import Counter\n outputs={k:[]for k in['study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins']}\n alpha=number('1/5');lam=number('1/100')\n if not 0<alpha<1 or lam<0:raise ValueError('Require0<alpha<1 and nonnegative ridge')\n def metric(kind,name,value,unit,arithmetic='exact rational'):\n  outputs['study-metrics'].append(dict(kind=kind,metric=name,value=''if value is None else value,unit=unit,defined=int(value is not None),arithmetic=arithmetic))\n def bins(rr,B=5):\n  groups=[[]for _ in range(B)]\n  for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n  n=len(rr);yb=sum((r['y']for r in rr),Q(0))/n if n else None;ece=rel=res=var=cov=Q(0);result=[]\n  for j,gg in enumerate(groups):\n   nn=len(gg);pm=sum((r['p']for r in gg),Q(0))/nn if nn else None;ym=sum((r['y']for r in gg),Q(0))/nn if nn else None;v=sum(((r['p']-pm)**2 for r in gg),Q(0))/nn if nn else None;co=sum(((r['p']-pm)*(r['y']-ym)for r in gg),Q(0))/nn if nn else None\n   result.append(dict(bin=j,lower=Q(j,B),upper=Q(j+1,B),rightClosed=int(j==B-1),rows=nn,meanP=pm,frequencyY1=ym,gap=None if not nn else pm-ym,withinVarianceP=v,withinCovariancePY=co))\n   if nn:weight=Q(nn,n);ece+=weight*abs(pm-ym);rel+=weight*(pm-ym)**2;res+=weight*(ym-yb)**2;var+=weight*v;cov+=weight*co\n  return result,dict(ECE=ece if n else None,Brier=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/n if n else None,uncertainty=yb*(1-yb)if n else None,resolution=res if n else None,reliability=rel if n else None,withinVarianceP=var if n else None,withinCovariancePY=cov if n else None)\n def meanlog(rr):\n  if not rr:return None\n  pp=[r['p']if r['y']else 1-r['p']for r in rr]\n  if any(not p for p in pp):return'+infinity'\n  with localcontext()as ctx:\n   ctx.prec=60;return str(-sum(((Decimal(p.numerator)/Decimal(p.denominator)).ln()for p in pp),Decimal(0))/len(pp))\n for kind,m in models.items():\n  f=frame(m['rows']);n=len(f['train']);assert n>0;H,b,d=quadratic(f,lam);fit=solve(H,b);theta=fit['particular'];minimum=state((H,b,d),theta)['objective'];beta=[theta[j+1]/f['scales'][j]for j in range(2)];intercept=theta[0]-dot(beta,f['mean']);rr=[]\n  for r in f['rows']:\n   native=m['rows'][r['index']];raw=None if r['z']is None else dot(r['z'],theta);pred=None if raw is None else max(Q(0),min(Q(1),raw))if kind=='company'else raw;group='missing-X'if r['z']is None else('schooling-at-most12'if r['x'][0]<=12 else'schooling-over12')if kind=='person'else('zero-call-failures'if r['x'][0]==0 else'positive-call-failures')if kind=='company'else('GDPpc-at-most-training-mean'if r['x'][0]<=f['mean'][0]else'GDPpc-above-training-mean');rr.append(dict(id=r['id'],sourceRow=native['sourceRow'],sourceIndex0=r['index'],plannedRole=native['plannedRole'],role=r['role'],group=group,y=r['y'],raw=raw,prediction=pred,eligible=r['eligible']))\n  cal=[r for r in rr if r['role']=='calibration'and r['prediction']is not None and r['y']is not None]\n  for i,r in enumerate(cal):r['calibrationIndex0']=i;r['score']=(1-r['prediction']if r['y']else r['prediction'])if kind=='company'else abs(r['y']-r['prediction'])\n  ordered=sorted(cal,key=lambda r:(r['score'],r['calibrationIndex0']));rankQ=(len(cal)+1)*(1-alpha);k=(rankQ.numerator+rankQ.denominator-1)//rankQ.denominator;threshold=ordered[k-1]['score']if k<=len(cal)else None;unbounded=threshold is None\n  for j,r in enumerate(ordered,1):outputs['calibration-scores'].append(dict(kind=kind,rank=j,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],calibrationIndex0=r['calibrationIndex0'],score=r['score'],threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded)))\n  for j,name in enumerate(m['names']):outputs['training-coefficients'].append(dict(kind=kind,feature=name,mean=f['mean'][j],scale=f['scales'][j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[0],nativeIntercept=intercept,rank=fit['rank'],unique=int(fit['unique']),lambdaValue=lam,minimumObjective=minimum))\n  for name,value,unit in[('sourceRows',len(rr),'rows'),('trainingRows',n,'rows'),('calibrationScores',len(cal),'unit-count scores'),('testLabeledRows',sum(r['role']=='test'and r['y']is not None for r in rr),'rows'),('excludedRows',sum(r['role']=='excluded'for r in rr),'rows'),('alpha',alpha,'probability'),('ridge',lam,'transformed slope penalty'),('quantileRank',k,'one-based rank'),('threshold','+infinity'if unbounded else threshold,'dimensionless score'if kind=='company'else m['unit']),('minimumObjective',minimum,'('+m['unit']+') squared')]:metric(kind,name,value,unit,'mathematical infinity'if value=='+infinity'else'exact rational')\n  for r in rr:\n   defined=r['prediction']is not None;labeled=defined and r['y']is not None\n   if not defined:lo=hi=width=size=None;labels='';covered=None\n   elif kind=='company':\n    labelsList=[j for j,s in enumerate([r['prediction'],1-r['prediction']])if unbounded or s<=threshold];labels='|'.join(map(str,labelsList));size=len(labelsList);lo=hi=width=None;covered=int(int(r['y'])in labelsList)if labeled else None\n   else:lo='-infinity'if unbounded else r['prediction']-threshold;hi='+infinity'if unbounded else r['prediction']+threshold;width='+infinity'if unbounded else 2*threshold;labels='';size=None;covered=int(unbounded or abs(r['y']-r['prediction'])<=threshold)if labeled else None\n   r.update(defined=defined,labeled=labeled,lower=lo,upper=hi,width=width,labels=labels,size=size,covered=covered)\n   outputs['row-predictions'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],plannedRole=r['plannedRole'],role=r['role'],group=r['group'],actualY=r['y'],rawLinear=r['raw'],prediction=r['prediction'],predictionDefined=int(defined),threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded),lower=lo,upper=hi,width=width,setLabels=labels,setSize=size,covered=covered,labeledPrediction=int(labeled)))\n   outputs['eligibility'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],plannedRole=r['plannedRole'],role=r['role'],requiredComplete=int(r['eligible']),trainingUsed=int(r['role']=='train'and r['eligible']),reason='missing-required-field'if not r['eligible']else''))\n  roles=list(dict.fromkeys(r['role']for r in rr));groups=list(dict.fromkeys(r['group']for r in rr))\n  for role in roles:\n   for group in['all']+groups:\n    use=[r for r in rr if r['role']==role and(group=='all'or r['group']==group)];defined=[r for r in use if r['defined']];scored=[r for r in use if r['labeled']and role not in['excluded','unused']];covered=sum(r['covered']for r in scored);nn=len(defined);nscore=len(scored);unboundedCount=sum(r['width']=='+infinity'for r in defined);size=Q(sum(r['size']for r in defined),nn)if kind=='company'and nn else None;width=('+infinity'if unboundedCount else sum(r['width']for r in defined)/nn)if kind!='company'and nn else None\n    outputs['role-group-coverage'].append(dict(kind=kind,role=role,group=group,originalRows=len(use),definedPredictions=nn,scoredLabels=nscore,coveredRows=covered,coverage=Q(covered,nscore)if nscore else None,meanSetSize=size,meanIntervalWidth=width,unboundedIntervals=unboundedCount))\n  if kind=='company':\n   for role in['train','calibration','test']:\n    use=[dict(p=r['prediction'],y=r['y'])for r in rr if r['role']==role and r['labeled']];bb,mm=bins(use)\n    for row in bb:outputs['reliability-bins'].append(dict(kind=kind,role=role,**row))\n    for name,value in mm.items():metric(kind,role+':'+name,value,'dimensionless'if name=='ECE'else'squared probability')\n    metric(kind,role+':meanLogLoss',meanlog(use),'nats','Decimal60 approximation or genuine infinity')\n return outputs\n\n# Owned ML20 fixed-example adapters. Finite rational calculations; logs approximate.\nfrom fractions import Fraction as Q\nfrom decimal import Decimal,localcontext\nimport math\ndef num(v):return v if isinstance(v,Q)else Q(str(v))\ndef ceilq(q):return-((-q.numerator)//q.denominator)\ndef fixed_quantile(scores,alpha):\n a=num(alpha)\n if not 0<a<1:raise ValueError('alpha-must-be-strictly-between-zero-and-one')\n ordered=sorted([(num(v),i)for i,v in enumerate(scores)if v is not None]);n=len(ordered);k=ceilq((n+1)*(1-a));q=None if k>n else ordered[k-1][0]\n return dict(n=n,k=k,threshold=q,infinite=q is None,ordered=ordered)\ndef fixed_score(rows):\n rr=[dict(p=num(r['p']),y=num(r['y']),w=num(r.get('weight',1)))for r in rows];rr=[r for r in rr if r['w']>0];mass=sum((r['w']for r in rr),Q(0));brier=sum((r['w']*(r['p']-r['y'])**2 for r in rr),Q(0))/mass if mass else None;logs=[];genuine=False\n with localcontext()as ctx:\n  ctx.prec=1800\n  total=Decimal(0)\n  for r in rr:\n   p=r['p']if r['y']else 1-r['p']\n   if not p:genuine=True;logs.append('+infinity');continue\n   loss=-(Decimal(p.numerator)/Decimal(p.denominator)).ln();logs.append(str(loss));w=r['w']/mass;total+=Decimal(w.numerator)/Decimal(w.denominator)*loss\n  display='+infinity'if genuine else None if not mass else repr(float(total));raw='+infinity'if genuine else None if not mass else str(total)\n return dict(rows=rr,mass=mass,Brier=brier,meanLogLoss=display,naturalLogApprox1800=raw,individualLogLoss=logs,genuineInfinite=genuine,BrierPositive=brier is not None and brier>0)\ndef fixed_calibration(rows,B):\n rr=[dict(p=num(r['p']),y=num(r['y']))for r in rows];N=len(rr);yb=sum((r['y']for r in rr),Q(0))/N;groups=[[]for _ in range(B)]\n for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n result=[];ece=rel=res=vp=cp=Q(0)\n for j,g in enumerate(groups):\n  n=len(g);pm=sum((r['p']for r in g),Q(0))/n if n else None;ym=sum((r['y']for r in g),Q(0))/n if n else None;v=sum(((r['p']-pm)**2 for r in g),Q(0))/n if n else None;c=sum(((r['p']-pm)*(r['y']-ym)for r in g),Q(0))/n if n else None;result.append(dict(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c))\n  if n:z=Q(n,N);ece+=z*abs(pm-ym);rel+=z*(pm-ym)**2;res+=z*(ym-yb)**2;vp+=z*v;cp+=z*c\n bs=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/N;u=yb*(1-yb)\n return dict(rows=N,bins=result,Brier=bs,ECE=ece,uncertainty=u,resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=u-res+rel+vp-2*cp)\ndef fixed_predict(a):\n q=fixed_quantile(a['scores'],a['alpha']);out=[];classification=a['mode']=='classification'\n for i,row in enumerate(a['queries']):\n  p=num(row['p']if classification else row['center']);y=None if row.get('y')is None else num(row['y']);threshold=q['threshold'];unbounded=q['infinite']\n  if classification:labels=[v for v,s in[(0,p),(1,1-p)]if unbounded or s<=threshold];lo=hi=width=None;size=len(labels);covered=None if y is None else int(int(y)in labels)\n  else:labels=None;size=None;lo='-infinity'if unbounded else p-threshold;hi='+infinity'if unbounded else p+threshold;width='+infinity'if unbounded else 2*threshold;covered=None if y is None else int(unbounded or abs(y-p)<=threshold)\n  out.append(dict(id=row.get('id',str(i)),prediction=p,actualY=y,labels=labels,size=size,lower=lo,upper=hi,width=width,covered=covered))\n scored=[r for r in out if r['covered']is not None];coverage=Q(sum(r['covered']for r in scored),len(scored))if scored else None;meanSize=Q(sum(r['size']for r in out),len(out))if classification and out else None;meanWidth=('+infinity'if q['infinite']else 2*q['threshold'])if not classification and out else None\n return dict(quantile=q,rows=out,scoredLabels=len(scored),coverage=coverage,meanSetSize=meanSize,meanWidth=meanWidth)\ndef fixed_ranklaw(a):\n scores=list(map(num,a['scores']));trials=[]\n for i,y in enumerate(scores):q=fixed_quantile(scores[:i]+scores[i+1:],a['alpha']);trials.append(dict(heldout=i,score=y,k=q['k'],threshold=q['threshold'],infinite=q['infinite'],covered=int(q['infinite']or y<=q['threshold'])))\n return dict(N=len(scores),distinct=len(set(scores))==len(scores),trials=trials,coverage=Q(sum(t['covered']for t in trials),len(trials)))\ndef fixed_operation(api,a):\n return fixed_score(a['rows'])if api=='score'else fixed_calibration(a['rows'],a['bins'])if api=='calibration'else fixed_quantile(a['scores'],a['alpha'])if api=='quantile'else fixed_predict(a)if api=='predict'else fixed_ranklaw(a)if api=='ranklaw'else fixed_source(a['kind'])\ndef report_values(api,z):\n summary=[];series=[]\n def add(k,v,u):summary.append((k,v,u))\n if api=='score':\n  for k,u in[('mass','analysis weight'),('Brier','squared probability'),('meanLogLoss','nats; numerical logarithm'),('genuineInfinite','indicator'),('BrierPositive','mathematical indicator')]:add(k,z[k],u)\n  series=[('squared error',[(i,(r['p']-r['y'])**2)for i,r in enumerate(z['rows'])])]\n elif api=='calibration':\n  for k in['Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity']:add(k,z[k],'probability'if k=='ECE'else'squared probability')\n  series=[('bin probability',[(r['bin'],r['meanP'])for r in z['bins']]),('bin outcome frequency',[(r['bin'],r['frequency'])for r in z['bins']])]\n elif api=='quantile':\n  for k,u in[('n','scores'),('k','one-based rank'),('infinite','mathematical indicator')]:add(k,z[k],u)\n  add('threshold','+infinity'if z['infinite']else z['threshold'],'score units');series=[('sorted score',[(i+1,v)for i,(v,index)in enumerate(z['ordered'])])]\n elif api=='predict':\n  for k,u in[('scoredLabels','labels'),('coverage','fraction'),('meanSetSize','classes'),('meanWidth','outcome units')]:add(k,z[k],u)\n  add('thresholdInfinite',z['quantile']['infinite'],'mathematical indicator');series=[('predicted center or probability',[(i,r['prediction'])for i,r in enumerate(z['rows'])]),('observed label or outcome',[(i,r['actualY'])for i,r in enumerate(z['rows'])])]\n elif api=='ranklaw':\n  for k,u in[('N','scores'),('distinct','indicator'),('coverage','fraction')]:add(k,z[k],u)\n  series=[('held-out coverage',[(r['heldout'],r['covered'])for r in z['trials']])]\n else:\n  mt={r['metric']:r for r in z['study-metrics']};cv=next(r for r in z['role-group-coverage']if r['role']=='test'and r['group']=='all')\n  for k in['sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold']:add(k,mt[k]['value'],mt[k]['unit'])\n  for k,u in[('coverage','fraction'),('meanSetSize','classes'),('meanIntervalWidth','outcome units')]:add(k,cv[k],u)\n  series=[('all calibration scores',[(r['rank'],r['score'])for r in z['calibration-scores']])]\n return summary,series\n\nnumber=num\n\nFIXED={'api': 'predict', 'variant': 'empty-singleton', 'title': 'Defined empty and singleton class sets', 'input': {'mode': 'classification', 'scores': ['1/10', '1/5', '1/5', '1/5'], 'alpha': '2/5', 'queries': [{'p': '1/2', 'y': '1'}, {'p': '1/10', 'y': '0'}, {'p': '9/10', 'y': '0'}]}, 'expectedFailure': False}\n\ndef fixed_svg(points,title):\n good=[p for p in points if p['y'] is not None];xx=[float(p['x'])for p in good];yy=[float(p['y'])for p in good];xmin=min(xx)if xx else 0;xmax=max(xx)if xx else 1;ymin=min([0]+yy);ymax=max([0]+yy)\n if xmin==xmax:xmin-=.5;xmax+=.5\n if ymin==ymax:ymin-=.5;ymax+=.5\n pad=(ymax-ymin)*.08;ymin-=pad;ymax+=pad;X=lambda x:82+(float(x)-xmin)/(xmax-xmin)*608;Y=lambda y:354-(float(y)-ymin)/(ymax-ymin)*290;e=html.escape\n out=['<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"'+e(title)+'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">'+e(title)+'</text>']\n for j in range(5):\n  y=ymin+(ymax-ymin)*j/4;x=xmin+(xmax-xmin)*j/4;out.append('<line x1=\"82\" y1=\"'+str(Y(y))+'\" x2=\"690\" y2=\"'+str(Y(y))+'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"'+str(Y(y)+4)+'\" text-anchor=\"end\">'+format(y,'.3g')+'</text><text x=\"'+str(X(x))+'\" y=\"380\" text-anchor=\"middle\">'+format(x,'.3g')+'</text>')\n series=list(dict.fromkeys(p['series']for p in good))\n for j,s in enumerate(series):\n  pp=[p for p in good if p['series']==s];color=['#0f766e','#c76622','#4f46e5','#b23857'][j%4];out.append('<polyline fill=\"none\" stroke=\"'+color+'\" stroke-width=\"1.5\" points=\"'+' '.join(format(X(p['x']),'.6f')+','+format(Y(p['y']),'.6f')for p in pp)+'\"/>')\n  for p in pp:out.append('<circle cx=\"'+format(X(p['x']),'.6f')+'\" cy=\"'+format(Y(p['y']),'.6f')+'\" r=\"2.6\" fill=\"'+color+'\"><title>'+e(s+': '+str(p['y']))+'</title></circle>')\n  out.append('<text x=\"'+str(82+(j%2)*310)+'\" y=\"'+str(432+(j//2)*23)+'\" fill=\"'+color+'\">'+e(s)+'</text>')\n out.append('<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>');return''.join(out)\n\nOUT=Path(sys.argv[1]);OUT.mkdir(parents=True,exist_ok=False)\nresult=fixed_operation(FIXED['api'],FIXED['input']);summary,series=report_values(FIXED['api'],result)\ndef encode(v):\n if isinstance(v,Q):return str(v)\n if isinstance(v,dict):return{k:encode(x)for k,x in v.items()}\n if isinstance(v,(list,tuple)):return[encode(x)for x in v]\n return v\n(OUT/'full.json').write_text(json.dumps(dict(arithmetic='Exact finite Fraction algebra except approximate natural logs; declared fixed examples, no exchangeability certification',result=encode(result)),ensure_ascii=False,indent=2)+'\\n',encoding='utf8')\nsummaryRows=[dict(metric=m,value=''if v is None else str(int(v))if isinstance(v,bool)else str(v),unit=u,defined=int(v is not None))for m,v,u in summary]\npoints=[dict(series=name,index=i,x=str(x),y=''if y is None else str(y),defined=int(y is not None))for name,pp in series for i,(x,y)in enumerate(pp)]\nfor name,rows in [('summary',summaryRows),('plot-points',points)]:\n with(OUT/(name+'.csv')).open('w',encoding='utf8',newline='')as f:writer=csv.DictWriter(f,fieldnames=list(rows[0]));writer.writeheader();writer.writerows(rows)\n(OUT/'plot.svg').write_text(fixed_svg([dict(p,x=number(p['x']),y=None if not p['defined']else number(p['y']))for p in points],FIXED['title']),encoding='utf8');print(FIXED['api']+'/'+FIXED['variant'])\n",
        "returnCode": 0,
        "stdout": "predict/empty-singleton\r\n",
        "stderr": "",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/python-predict-empty-singleton-result",
        "kind": null,
        "inputFiles": [],
        "files": [
          {
            "file": "ml20-code/python-predict-empty-singleton-result/full.json",
            "sha256": "7e3e26628353d3a6728fd7918daab15cb5bc193f70ca041413b9f17a81763446",
            "bytes": 1383
          },
          {
            "file": "ml20-code/python-predict-empty-singleton-result/plot-points.csv",
            "sha256": "3699a75b3aec04270b538ccaff12e5012b7bba66f0af98b151ec2a79fe60607d",
            "bytes": 262
          },
          {
            "file": "ml20-code/python-predict-empty-singleton-result/plot.svg",
            "sha256": "9ff7efa7706ddd70e22e1b490151de78d80268fd9c4b8e70511be525b816ea0e",
            "bytes": 2417
          },
          {
            "file": "ml20-code/python-predict-empty-singleton-result/summary.csv",
            "sha256": "bf0b44a8e35969d6c82d56d74e84be67aafb662afe9833c79747386fa9d2719d",
            "bytes": 178
          },
          {
            "file": "ml20-code/python-predict-empty-singleton-result/stdout.txt",
            "sha256": "5bda23713e660689577bb1684bc27b79bb7903c905b3f92a880e25251f51d959",
            "bytes": 25
          },
          {
            "file": "ml20-code/python-predict-empty-singleton-result/stderr.txt",
            "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
            "bytes": 0
          }
        ],
        "summaryRows": [
          {
            "metric": "scoredLabels",
            "value": "3",
            "unit": "labels",
            "defined": "true",
            "exactFraction": "3",
            "rawValue": "3",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "coverage",
            "value": "0.333333333",
            "unit": "fraction",
            "defined": "true",
            "exactFraction": "1/3",
            "rawValue": "1/3",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "meanSetSize",
            "value": "0.666666667",
            "unit": "classes",
            "defined": "true",
            "exactFraction": "2/3",
            "rawValue": "2/3",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "meanWidth",
            "value": "undefined",
            "unit": "outcome units",
            "defined": "false",
            "exactFraction": "",
            "rawValue": "",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "thresholdInfinite",
            "value": "0",
            "unit": "mathematical indicator",
            "defined": "true",
            "exactFraction": "0",
            "rawValue": "0",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          }
        ],
        "plotRows": [
          {
            "series": "predicted center or probability",
            "index": 0,
            "x": "0",
            "y": "0.5",
            "defined": true,
            "xExact": "0",
            "yExact": "1/2"
          },
          {
            "series": "predicted center or probability",
            "index": 1,
            "x": "1",
            "y": "0.10000000000000001",
            "defined": true,
            "xExact": "1",
            "yExact": "1/10"
          },
          {
            "series": "predicted center or probability",
            "index": 2,
            "x": "2",
            "y": "0.90000000000000002",
            "defined": true,
            "xExact": "2",
            "yExact": "9/10"
          },
          {
            "series": "observed label or outcome",
            "index": 0,
            "x": "0",
            "y": "1",
            "defined": true,
            "xExact": "0",
            "yExact": "1"
          },
          {
            "series": "observed label or outcome",
            "index": 1,
            "x": "1",
            "y": "0",
            "defined": true,
            "xExact": "1",
            "yExact": "0"
          },
          {
            "series": "observed label or outcome",
            "index": 2,
            "x": "2",
            "y": "0",
            "defined": true,
            "xExact": "2",
            "yExact": "0"
          }
        ],
        "plotFile": "ml20-code/python-predict-empty-singleton-result/plot.svg",
        "fullResultFile": "ml20-code/python-predict-empty-singleton-result/full.json",
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      },
      "infinite-no-calibration": {
        "api": "predict",
        "variant": "infinite-no-calibration",
        "language": "python",
        "title": "No calibration: unbounded interval, labeled denominator",
        "input": {
          "mode": "regression",
          "scores": [],
          "alpha": "1/5",
          "queries": [
            {
              "center": "0",
              "y": "100"
            },
            {
              "center": "1",
              "y": null
            }
          ]
        },
        "expectedFailure": false,
        "codeFile": "ml20-code/predict-infinite-no-calibration.py",
        "codeSHA256": "8a3f2013a61a736aa9dccea559c01fa55c4d75ee75eea6b1be2b5b6b04fad5eb",
        "code": "\"\"\"ML20 standalone fixed example, not an arbitrary-input validator.\nFinite Python Fraction algebra; natural logs use Decimal1800 approximation\nthen a final binary64 display projection. Realdata reads4factual CSVs only,\nreusing the frozen public reader/fit implementation by value; all other inputs\nare complete fixed literals. No engine/model/computed/checker imported.\nRun: python this-file.py NEW-OUTPUT\n\"\"\"\nfrom pathlib import Path\nimport csv,json,hashlib,sys,math,html\nif hasattr(sys,'set_int_max_str_digits'):sys.set_int_max_str_digits(100000)\n\"\"\"Owned standalone exact finite optimization primitives for ML19 public programs.\nThis is an author implementation, never an independent numerical oracle.\n\"\"\"\nfrom fractions import Fraction as Q\ndef number(v):return v if isinstance(v,Q)else Q(str(v))\ndef dot(a,b):return sum((x*y for x,y in zip(a,b)),Q(0))\ndef frame(rows,p=2,scale='range'):\n rr=[]\n for i,r in enumerate(rows):\n  x=[None if v is None else number(v)for v in r['x']];y=None if r['y']is None else number(r['y']);w=number(r.get('weight',1));role=r.get('role','train');rr.append(dict(id=r.get('id','row:'+str(i+1)),index=i,x=x,y=y,w=w,role=role,eligible=y is not None and all(v is not None for v in x)and w>0))\n train=[r for r in rr if r['role']=='train'and r['eligible']];W=sum((r['w']for r in train),Q(0))\n if not W:return dict(defined=False,p=p,rows=rr,train=[],W=W)\n mean=[sum(r['w']*r['x'][j]for r in train)/W for j in range(p)];ranges=[max(r['x'][j]for r in train)-min(r['x'][j]for r in train)or Q(1)for j in range(p)];scales=ranges if scale=='range'else[Q(1)]*p\n for r in rr:r['z']=None if None in r['x']else[Q(1)]+[(r['x'][j]-mean[j])/scales[j]for j in range(p)]\n return dict(defined=True,p=p,rows=rr,train=train,W=W,mean=mean,ranges=ranges,scales=scales,meanY=sum(r['w']*r['y']for r in train)/W)\ndef quadratic(f,lam=Q(0),role='train'):\n rr=[r for r in f['rows']if r['role']==role and r['eligible']];W=sum((r['w']for r in rr),Q(0));n=f['p']+1\n if not W:return None\n H=[[sum(r['w']*r['z'][j]*r['z'][k]for r in rr)/W+(lam if j==k and j else 0)for k in range(n)]for j in range(n)];b=[sum(r['w']*r['y']*r['z'][j]for r in rr)/W for j in range(n)];d=sum(r['w']*r['y']**2 for r in rr)/(2*W);return H,b,d\ndef state(q,theta):\n H,b,d=q;gradient=[dot(row,theta)-bb for row,bb in zip(H,b)];return dict(theta=theta,objective=dot(theta,[dot(row,theta)for row in H])/2-dot(theta,b)+d,gradient=gradient,gradientNormSquared=dot(gradient,gradient))\ndef solve(H,b):\n n=len(b);A=[row[:]+[bb]for row,bb in zip(H,b)];piv=[];row=0\n for j in range(n):\n  k=next((i for i in range(row,n)if A[i][j]),None)\n  if k is None:continue\n  A[row],A[k]=A[k],A[row];z=A[row][j];A[row]=[v/z for v in A[row]]\n  for i in range(n):\n   if i!=row:\n    z=A[i][j];A[i]=[v-z*u for v,u in zip(A[i],A[row])]\n  piv.append(j);row+=1\n  if row==n:break\n assert not any(not any(r[:n])and r[n]for r in A)\n beta=[Q(0)]*n\n for i,j in enumerate(piv):beta[j]=A[i][n]\n nullspace=[]\n for j in range(n):\n  if j not in piv:\n   v=[Q(0)]*n;v[j]=Q(1)\n   for i,k in enumerate(piv):v[k]=-A[i][j]\n   nullspace.append(v)\n return dict(rank=len(piv),particular=beta,nullspace=nullspace,unique=len(piv)==n)\n\n\ndef fixed_source(kind):\n SRC=Path(__file__).resolve().parent/\"data\"\n read=lambda n:list(csv.DictReader((SRC/n).open(encoding='utf8',newline='')))\n def native(v):return None if v in['','.']else v\n\n models={};original=read('actual48-country-revised-original-2023-2024.csv');lookup={(r['countryISO3'],r['indicatorID'],r['date']):r for r in original};rows=[]\n for iso in sorted({r['countryISO3']for r in original}):\n  g=lookup[iso,'NY.GDP.PCAP.KD','2023'];p=lookup[iso,'FP.CPI.TOTL.ZG','2023'];y=lookup[iso,'NY.GDP.MKTP.KD.ZG','2024'];rows.append(dict(id=iso+':2024',x=[None if not g['originalValueToken']else str(number(g['originalValueToken'])/10000),None if not p['originalValueToken']else str(number(p['originalValueToken'])/10)],y=native(y['originalValueToken']),sourceRow=iso))\n models['country']=dict(rows=rows,names=['g','pi'],unit='annual GDP growth percentage points')\n for kind,file,keys,ykey,ID in [('person','actual3613-NLS-original52-fields-and-conformal-frame.csv',['ed76','age76'],'lwage76','person-row:'),('company','actual3150-churn-original14-fields-and-conformal-frame.csv',['Call  Failure','Seconds of Use'],'Churn','customer-row:')]:\n  source=read(file);models[kind]=dict(rows=[dict(id=ID+r['sourceRow'],sourceRow=r['sourceRow'],x=[native(r[k])for k in keys],y=native(r[ykey]))for r in source],names=['ed76','age76']if kind=='person'else['CallFailure','SecondsUse'],unit='native trimmed1976log hourly wage'if kind=='person'else'native Churn0/1')\n for kind,m in models.items():\n  for rank,r in enumerate(sorted(m['rows'],key=lambda r:(hashlib.sha256(('ML20|'+kind+'|'+r['id']).encode()).digest(),r['id']))):r.update(splitRank=rank,plannedRole=['test','calibration','train','train'][rank%4]);r['role']=r['plannedRole']if r['y']is not None and None not in r['x']else'excluded';r['weight']='1'\n  m['trainingIDs']=[r['id']for r in sorted(m['rows'],key=lambda r:r['splitRank'])if r['role']=='train']\n\n models={kind:models[kind]}\n # New public actual-source study; exact finite Fraction fit/rank/membership.\n # Default single declared model, not a hyperparameter Cartesian dump.\n from decimal import Decimal,localcontext\n from collections import Counter\n outputs={k:[]for k in['study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins']}\n alpha=number('1/5');lam=number('1/100')\n if not 0<alpha<1 or lam<0:raise ValueError('Require0<alpha<1 and nonnegative ridge')\n def metric(kind,name,value,unit,arithmetic='exact rational'):\n  outputs['study-metrics'].append(dict(kind=kind,metric=name,value=''if value is None else value,unit=unit,defined=int(value is not None),arithmetic=arithmetic))\n def bins(rr,B=5):\n  groups=[[]for _ in range(B)]\n  for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n  n=len(rr);yb=sum((r['y']for r in rr),Q(0))/n if n else None;ece=rel=res=var=cov=Q(0);result=[]\n  for j,gg in enumerate(groups):\n   nn=len(gg);pm=sum((r['p']for r in gg),Q(0))/nn if nn else None;ym=sum((r['y']for r in gg),Q(0))/nn if nn else None;v=sum(((r['p']-pm)**2 for r in gg),Q(0))/nn if nn else None;co=sum(((r['p']-pm)*(r['y']-ym)for r in gg),Q(0))/nn if nn else None\n   result.append(dict(bin=j,lower=Q(j,B),upper=Q(j+1,B),rightClosed=int(j==B-1),rows=nn,meanP=pm,frequencyY1=ym,gap=None if not nn else pm-ym,withinVarianceP=v,withinCovariancePY=co))\n   if nn:weight=Q(nn,n);ece+=weight*abs(pm-ym);rel+=weight*(pm-ym)**2;res+=weight*(ym-yb)**2;var+=weight*v;cov+=weight*co\n  return result,dict(ECE=ece if n else None,Brier=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/n if n else None,uncertainty=yb*(1-yb)if n else None,resolution=res if n else None,reliability=rel if n else None,withinVarianceP=var if n else None,withinCovariancePY=cov if n else None)\n def meanlog(rr):\n  if not rr:return None\n  pp=[r['p']if r['y']else 1-r['p']for r in rr]\n  if any(not p for p in pp):return'+infinity'\n  with localcontext()as ctx:\n   ctx.prec=60;return str(-sum(((Decimal(p.numerator)/Decimal(p.denominator)).ln()for p in pp),Decimal(0))/len(pp))\n for kind,m in models.items():\n  f=frame(m['rows']);n=len(f['train']);assert n>0;H,b,d=quadratic(f,lam);fit=solve(H,b);theta=fit['particular'];minimum=state((H,b,d),theta)['objective'];beta=[theta[j+1]/f['scales'][j]for j in range(2)];intercept=theta[0]-dot(beta,f['mean']);rr=[]\n  for r in f['rows']:\n   native=m['rows'][r['index']];raw=None if r['z']is None else dot(r['z'],theta);pred=None if raw is None else max(Q(0),min(Q(1),raw))if kind=='company'else raw;group='missing-X'if r['z']is None else('schooling-at-most12'if r['x'][0]<=12 else'schooling-over12')if kind=='person'else('zero-call-failures'if r['x'][0]==0 else'positive-call-failures')if kind=='company'else('GDPpc-at-most-training-mean'if r['x'][0]<=f['mean'][0]else'GDPpc-above-training-mean');rr.append(dict(id=r['id'],sourceRow=native['sourceRow'],sourceIndex0=r['index'],plannedRole=native['plannedRole'],role=r['role'],group=group,y=r['y'],raw=raw,prediction=pred,eligible=r['eligible']))\n  cal=[r for r in rr if r['role']=='calibration'and r['prediction']is not None and r['y']is not None]\n  for i,r in enumerate(cal):r['calibrationIndex0']=i;r['score']=(1-r['prediction']if r['y']else r['prediction'])if kind=='company'else abs(r['y']-r['prediction'])\n  ordered=sorted(cal,key=lambda r:(r['score'],r['calibrationIndex0']));rankQ=(len(cal)+1)*(1-alpha);k=(rankQ.numerator+rankQ.denominator-1)//rankQ.denominator;threshold=ordered[k-1]['score']if k<=len(cal)else None;unbounded=threshold is None\n  for j,r in enumerate(ordered,1):outputs['calibration-scores'].append(dict(kind=kind,rank=j,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],calibrationIndex0=r['calibrationIndex0'],score=r['score'],threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded)))\n  for j,name in enumerate(m['names']):outputs['training-coefficients'].append(dict(kind=kind,feature=name,mean=f['mean'][j],scale=f['scales'][j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[0],nativeIntercept=intercept,rank=fit['rank'],unique=int(fit['unique']),lambdaValue=lam,minimumObjective=minimum))\n  for name,value,unit in[('sourceRows',len(rr),'rows'),('trainingRows',n,'rows'),('calibrationScores',len(cal),'unit-count scores'),('testLabeledRows',sum(r['role']=='test'and r['y']is not None for r in rr),'rows'),('excludedRows',sum(r['role']=='excluded'for r in rr),'rows'),('alpha',alpha,'probability'),('ridge',lam,'transformed slope penalty'),('quantileRank',k,'one-based rank'),('threshold','+infinity'if unbounded else threshold,'dimensionless score'if kind=='company'else m['unit']),('minimumObjective',minimum,'('+m['unit']+') squared')]:metric(kind,name,value,unit,'mathematical infinity'if value=='+infinity'else'exact rational')\n  for r in rr:\n   defined=r['prediction']is not None;labeled=defined and r['y']is not None\n   if not defined:lo=hi=width=size=None;labels='';covered=None\n   elif kind=='company':\n    labelsList=[j for j,s in enumerate([r['prediction'],1-r['prediction']])if unbounded or s<=threshold];labels='|'.join(map(str,labelsList));size=len(labelsList);lo=hi=width=None;covered=int(int(r['y'])in labelsList)if labeled else None\n   else:lo='-infinity'if unbounded else r['prediction']-threshold;hi='+infinity'if unbounded else r['prediction']+threshold;width='+infinity'if unbounded else 2*threshold;labels='';size=None;covered=int(unbounded or abs(r['y']-r['prediction'])<=threshold)if labeled else None\n   r.update(defined=defined,labeled=labeled,lower=lo,upper=hi,width=width,labels=labels,size=size,covered=covered)\n   outputs['row-predictions'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],plannedRole=r['plannedRole'],role=r['role'],group=r['group'],actualY=r['y'],rawLinear=r['raw'],prediction=r['prediction'],predictionDefined=int(defined),threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded),lower=lo,upper=hi,width=width,setLabels=labels,setSize=size,covered=covered,labeledPrediction=int(labeled)))\n   outputs['eligibility'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],plannedRole=r['plannedRole'],role=r['role'],requiredComplete=int(r['eligible']),trainingUsed=int(r['role']=='train'and r['eligible']),reason='missing-required-field'if not r['eligible']else''))\n  roles=list(dict.fromkeys(r['role']for r in rr));groups=list(dict.fromkeys(r['group']for r in rr))\n  for role in roles:\n   for group in['all']+groups:\n    use=[r for r in rr if r['role']==role and(group=='all'or r['group']==group)];defined=[r for r in use if r['defined']];scored=[r for r in use if r['labeled']and role not in['excluded','unused']];covered=sum(r['covered']for r in scored);nn=len(defined);nscore=len(scored);unboundedCount=sum(r['width']=='+infinity'for r in defined);size=Q(sum(r['size']for r in defined),nn)if kind=='company'and nn else None;width=('+infinity'if unboundedCount else sum(r['width']for r in defined)/nn)if kind!='company'and nn else None\n    outputs['role-group-coverage'].append(dict(kind=kind,role=role,group=group,originalRows=len(use),definedPredictions=nn,scoredLabels=nscore,coveredRows=covered,coverage=Q(covered,nscore)if nscore else None,meanSetSize=size,meanIntervalWidth=width,unboundedIntervals=unboundedCount))\n  if kind=='company':\n   for role in['train','calibration','test']:\n    use=[dict(p=r['prediction'],y=r['y'])for r in rr if r['role']==role and r['labeled']];bb,mm=bins(use)\n    for row in bb:outputs['reliability-bins'].append(dict(kind=kind,role=role,**row))\n    for name,value in mm.items():metric(kind,role+':'+name,value,'dimensionless'if name=='ECE'else'squared probability')\n    metric(kind,role+':meanLogLoss',meanlog(use),'nats','Decimal60 approximation or genuine infinity')\n return outputs\n\n# Owned ML20 fixed-example adapters. Finite rational calculations; logs approximate.\nfrom fractions import Fraction as Q\nfrom decimal import Decimal,localcontext\nimport math\ndef num(v):return v if isinstance(v,Q)else Q(str(v))\ndef ceilq(q):return-((-q.numerator)//q.denominator)\ndef fixed_quantile(scores,alpha):\n a=num(alpha)\n if not 0<a<1:raise ValueError('alpha-must-be-strictly-between-zero-and-one')\n ordered=sorted([(num(v),i)for i,v in enumerate(scores)if v is not None]);n=len(ordered);k=ceilq((n+1)*(1-a));q=None if k>n else ordered[k-1][0]\n return dict(n=n,k=k,threshold=q,infinite=q is None,ordered=ordered)\ndef fixed_score(rows):\n rr=[dict(p=num(r['p']),y=num(r['y']),w=num(r.get('weight',1)))for r in rows];rr=[r for r in rr if r['w']>0];mass=sum((r['w']for r in rr),Q(0));brier=sum((r['w']*(r['p']-r['y'])**2 for r in rr),Q(0))/mass if mass else None;logs=[];genuine=False\n with localcontext()as ctx:\n  ctx.prec=1800\n  total=Decimal(0)\n  for r in rr:\n   p=r['p']if r['y']else 1-r['p']\n   if not p:genuine=True;logs.append('+infinity');continue\n   loss=-(Decimal(p.numerator)/Decimal(p.denominator)).ln();logs.append(str(loss));w=r['w']/mass;total+=Decimal(w.numerator)/Decimal(w.denominator)*loss\n  display='+infinity'if genuine else None if not mass else repr(float(total));raw='+infinity'if genuine else None if not mass else str(total)\n return dict(rows=rr,mass=mass,Brier=brier,meanLogLoss=display,naturalLogApprox1800=raw,individualLogLoss=logs,genuineInfinite=genuine,BrierPositive=brier is not None and brier>0)\ndef fixed_calibration(rows,B):\n rr=[dict(p=num(r['p']),y=num(r['y']))for r in rows];N=len(rr);yb=sum((r['y']for r in rr),Q(0))/N;groups=[[]for _ in range(B)]\n for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n result=[];ece=rel=res=vp=cp=Q(0)\n for j,g in enumerate(groups):\n  n=len(g);pm=sum((r['p']for r in g),Q(0))/n if n else None;ym=sum((r['y']for r in g),Q(0))/n if n else None;v=sum(((r['p']-pm)**2 for r in g),Q(0))/n if n else None;c=sum(((r['p']-pm)*(r['y']-ym)for r in g),Q(0))/n if n else None;result.append(dict(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c))\n  if n:z=Q(n,N);ece+=z*abs(pm-ym);rel+=z*(pm-ym)**2;res+=z*(ym-yb)**2;vp+=z*v;cp+=z*c\n bs=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/N;u=yb*(1-yb)\n return dict(rows=N,bins=result,Brier=bs,ECE=ece,uncertainty=u,resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=u-res+rel+vp-2*cp)\ndef fixed_predict(a):\n q=fixed_quantile(a['scores'],a['alpha']);out=[];classification=a['mode']=='classification'\n for i,row in enumerate(a['queries']):\n  p=num(row['p']if classification else row['center']);y=None if row.get('y')is None else num(row['y']);threshold=q['threshold'];unbounded=q['infinite']\n  if classification:labels=[v for v,s in[(0,p),(1,1-p)]if unbounded or s<=threshold];lo=hi=width=None;size=len(labels);covered=None if y is None else int(int(y)in labels)\n  else:labels=None;size=None;lo='-infinity'if unbounded else p-threshold;hi='+infinity'if unbounded else p+threshold;width='+infinity'if unbounded else 2*threshold;covered=None if y is None else int(unbounded or abs(y-p)<=threshold)\n  out.append(dict(id=row.get('id',str(i)),prediction=p,actualY=y,labels=labels,size=size,lower=lo,upper=hi,width=width,covered=covered))\n scored=[r for r in out if r['covered']is not None];coverage=Q(sum(r['covered']for r in scored),len(scored))if scored else None;meanSize=Q(sum(r['size']for r in out),len(out))if classification and out else None;meanWidth=('+infinity'if q['infinite']else 2*q['threshold'])if not classification and out else None\n return dict(quantile=q,rows=out,scoredLabels=len(scored),coverage=coverage,meanSetSize=meanSize,meanWidth=meanWidth)\ndef fixed_ranklaw(a):\n scores=list(map(num,a['scores']));trials=[]\n for i,y in enumerate(scores):q=fixed_quantile(scores[:i]+scores[i+1:],a['alpha']);trials.append(dict(heldout=i,score=y,k=q['k'],threshold=q['threshold'],infinite=q['infinite'],covered=int(q['infinite']or y<=q['threshold'])))\n return dict(N=len(scores),distinct=len(set(scores))==len(scores),trials=trials,coverage=Q(sum(t['covered']for t in trials),len(trials)))\ndef fixed_operation(api,a):\n return fixed_score(a['rows'])if api=='score'else fixed_calibration(a['rows'],a['bins'])if api=='calibration'else fixed_quantile(a['scores'],a['alpha'])if api=='quantile'else fixed_predict(a)if api=='predict'else fixed_ranklaw(a)if api=='ranklaw'else fixed_source(a['kind'])\ndef report_values(api,z):\n summary=[];series=[]\n def add(k,v,u):summary.append((k,v,u))\n if api=='score':\n  for k,u in[('mass','analysis weight'),('Brier','squared probability'),('meanLogLoss','nats; numerical logarithm'),('genuineInfinite','indicator'),('BrierPositive','mathematical indicator')]:add(k,z[k],u)\n  series=[('squared error',[(i,(r['p']-r['y'])**2)for i,r in enumerate(z['rows'])])]\n elif api=='calibration':\n  for k in['Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity']:add(k,z[k],'probability'if k=='ECE'else'squared probability')\n  series=[('bin probability',[(r['bin'],r['meanP'])for r in z['bins']]),('bin outcome frequency',[(r['bin'],r['frequency'])for r in z['bins']])]\n elif api=='quantile':\n  for k,u in[('n','scores'),('k','one-based rank'),('infinite','mathematical indicator')]:add(k,z[k],u)\n  add('threshold','+infinity'if z['infinite']else z['threshold'],'score units');series=[('sorted score',[(i+1,v)for i,(v,index)in enumerate(z['ordered'])])]\n elif api=='predict':\n  for k,u in[('scoredLabels','labels'),('coverage','fraction'),('meanSetSize','classes'),('meanWidth','outcome units')]:add(k,z[k],u)\n  add('thresholdInfinite',z['quantile']['infinite'],'mathematical indicator');series=[('predicted center or probability',[(i,r['prediction'])for i,r in enumerate(z['rows'])]),('observed label or outcome',[(i,r['actualY'])for i,r in enumerate(z['rows'])])]\n elif api=='ranklaw':\n  for k,u in[('N','scores'),('distinct','indicator'),('coverage','fraction')]:add(k,z[k],u)\n  series=[('held-out coverage',[(r['heldout'],r['covered'])for r in z['trials']])]\n else:\n  mt={r['metric']:r for r in z['study-metrics']};cv=next(r for r in z['role-group-coverage']if r['role']=='test'and r['group']=='all')\n  for k in['sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold']:add(k,mt[k]['value'],mt[k]['unit'])\n  for k,u in[('coverage','fraction'),('meanSetSize','classes'),('meanIntervalWidth','outcome units')]:add(k,cv[k],u)\n  series=[('all calibration scores',[(r['rank'],r['score'])for r in z['calibration-scores']])]\n return summary,series\n\nnumber=num\n\nFIXED={'api': 'predict', 'variant': 'infinite-no-calibration', 'title': 'No calibration: unbounded interval, labeled denominator', 'input': {'mode': 'regression', 'scores': [], 'alpha': '1/5', 'queries': [{'center': '0', 'y': '100'}, {'center': '1', 'y': None}]}, 'expectedFailure': False}\n\ndef fixed_svg(points,title):\n good=[p for p in points if p['y'] is not None];xx=[float(p['x'])for p in good];yy=[float(p['y'])for p in good];xmin=min(xx)if xx else 0;xmax=max(xx)if xx else 1;ymin=min([0]+yy);ymax=max([0]+yy)\n if xmin==xmax:xmin-=.5;xmax+=.5\n if ymin==ymax:ymin-=.5;ymax+=.5\n pad=(ymax-ymin)*.08;ymin-=pad;ymax+=pad;X=lambda x:82+(float(x)-xmin)/(xmax-xmin)*608;Y=lambda y:354-(float(y)-ymin)/(ymax-ymin)*290;e=html.escape\n out=['<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"'+e(title)+'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">'+e(title)+'</text>']\n for j in range(5):\n  y=ymin+(ymax-ymin)*j/4;x=xmin+(xmax-xmin)*j/4;out.append('<line x1=\"82\" y1=\"'+str(Y(y))+'\" x2=\"690\" y2=\"'+str(Y(y))+'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"'+str(Y(y)+4)+'\" text-anchor=\"end\">'+format(y,'.3g')+'</text><text x=\"'+str(X(x))+'\" y=\"380\" text-anchor=\"middle\">'+format(x,'.3g')+'</text>')\n series=list(dict.fromkeys(p['series']for p in good))\n for j,s in enumerate(series):\n  pp=[p for p in good if p['series']==s];color=['#0f766e','#c76622','#4f46e5','#b23857'][j%4];out.append('<polyline fill=\"none\" stroke=\"'+color+'\" stroke-width=\"1.5\" points=\"'+' '.join(format(X(p['x']),'.6f')+','+format(Y(p['y']),'.6f')for p in pp)+'\"/>')\n  for p in pp:out.append('<circle cx=\"'+format(X(p['x']),'.6f')+'\" cy=\"'+format(Y(p['y']),'.6f')+'\" r=\"2.6\" fill=\"'+color+'\"><title>'+e(s+': '+str(p['y']))+'</title></circle>')\n  out.append('<text x=\"'+str(82+(j%2)*310)+'\" y=\"'+str(432+(j//2)*23)+'\" fill=\"'+color+'\">'+e(s)+'</text>')\n out.append('<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>');return''.join(out)\n\nOUT=Path(sys.argv[1]);OUT.mkdir(parents=True,exist_ok=False)\nresult=fixed_operation(FIXED['api'],FIXED['input']);summary,series=report_values(FIXED['api'],result)\ndef encode(v):\n if isinstance(v,Q):return str(v)\n if isinstance(v,dict):return{k:encode(x)for k,x in v.items()}\n if isinstance(v,(list,tuple)):return[encode(x)for x in v]\n return v\n(OUT/'full.json').write_text(json.dumps(dict(arithmetic='Exact finite Fraction algebra except approximate natural logs; declared fixed examples, no exchangeability certification',result=encode(result)),ensure_ascii=False,indent=2)+'\\n',encoding='utf8')\nsummaryRows=[dict(metric=m,value=''if v is None else str(int(v))if isinstance(v,bool)else str(v),unit=u,defined=int(v is not None))for m,v,u in summary]\npoints=[dict(series=name,index=i,x=str(x),y=''if y is None else str(y),defined=int(y is not None))for name,pp in series for i,(x,y)in enumerate(pp)]\nfor name,rows in [('summary',summaryRows),('plot-points',points)]:\n with(OUT/(name+'.csv')).open('w',encoding='utf8',newline='')as f:writer=csv.DictWriter(f,fieldnames=list(rows[0]));writer.writeheader();writer.writerows(rows)\n(OUT/'plot.svg').write_text(fixed_svg([dict(p,x=number(p['x']),y=None if not p['defined']else number(p['y']))for p in points],FIXED['title']),encoding='utf8');print(FIXED['api']+'/'+FIXED['variant'])\n",
        "returnCode": 0,
        "stdout": "predict/infinite-no-calibration\r\n",
        "stderr": "",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/python-predict-infinite-no-calibration-result",
        "kind": null,
        "inputFiles": [],
        "files": [
          {
            "file": "ml20-code/python-predict-infinite-no-calibration-result/full.json",
            "sha256": "ed49dcadc8f972a48309c6502d0cdf7331855be2fb3020b9830330e134de3525",
            "bytes": 936
          },
          {
            "file": "ml20-code/python-predict-infinite-no-calibration-result/plot-points.csv",
            "sha256": "23d54d5887ea4e5b050a5e9a176cdcb610fea33b560ded0a51a85fb8d654448b",
            "bytes": 179
          },
          {
            "file": "ml20-code/python-predict-infinite-no-calibration-result/plot.svg",
            "sha256": "d2903dc65ac1c672cc1e81b5620dfa0844f4fdcfc7ebdd0446a3c9e92642f792",
            "bytes": 2023
          },
          {
            "file": "ml20-code/python-predict-infinite-no-calibration-result/summary.csv",
            "sha256": "580dc87ea84e2f5514788c08e34f4cf0d148d3efe384212a83c3926c632defe3",
            "bytes": 182
          },
          {
            "file": "ml20-code/python-predict-infinite-no-calibration-result/stdout.txt",
            "sha256": "8b89717e01c39fe5f02357541d8c5061ce9396eefc2b145b3763f41a826347c7",
            "bytes": 33
          },
          {
            "file": "ml20-code/python-predict-infinite-no-calibration-result/stderr.txt",
            "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
            "bytes": 0
          }
        ],
        "summaryRows": [
          {
            "metric": "scoredLabels",
            "value": "1",
            "unit": "labels",
            "defined": "true",
            "exactFraction": "1",
            "rawValue": "1",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "coverage",
            "value": "1",
            "unit": "fraction",
            "defined": "true",
            "exactFraction": "1",
            "rawValue": "1",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "meanSetSize",
            "value": "undefined",
            "unit": "classes",
            "defined": "false",
            "exactFraction": "",
            "rawValue": "",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "meanWidth",
            "value": "+infinity",
            "unit": "outcome units",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "+infinity",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": true,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "thresholdInfinite",
            "value": "1",
            "unit": "mathematical indicator",
            "defined": "true",
            "exactFraction": "1",
            "rawValue": "1",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          }
        ],
        "plotRows": [
          {
            "series": "predicted center or probability",
            "index": 0,
            "x": "0",
            "y": "0",
            "defined": true,
            "xExact": "0",
            "yExact": "0"
          },
          {
            "series": "predicted center or probability",
            "index": 1,
            "x": "1",
            "y": "1",
            "defined": true,
            "xExact": "1",
            "yExact": "1"
          },
          {
            "series": "observed label or outcome",
            "index": 0,
            "x": "0",
            "y": "100",
            "defined": true,
            "xExact": "0",
            "yExact": "100"
          },
          {
            "series": "observed label or outcome",
            "index": 1,
            "x": "1",
            "y": "",
            "defined": false,
            "xExact": "1",
            "yExact": ""
          }
        ],
        "plotFile": "ml20-code/python-predict-infinite-no-calibration-result/plot.svg",
        "fullResultFile": "ml20-code/python-predict-infinite-no-calibration-result/full.json",
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      }
    },
    "r": {
      "regression-boundary": {
        "api": "predict",
        "variant": "regression-boundary",
        "language": "r",
        "title": "Inclusive interval boundaries and missing labels",
        "input": {
          "mode": "regression",
          "scores": [
            "1",
            "2",
            "3",
            "4"
          ],
          "alpha": "2/5",
          "queries": [
            {
              "center": "0",
              "y": "3"
            },
            {
              "center": "2",
              "y": "-1"
            },
            {
              "center": "1",
              "y": null
            }
          ]
        },
        "expectedFailure": false,
        "codeFile": "ml20-code/predict-regression-boundary.R",
        "codeSHA256": "a0ad2efb64f3a3cc84a1a853c0f52d5d6b03b10d94e760089d0029f2b83d7347",
        "code": "# ML20 complete standalone numerical fixed examples, no browser/model/results.\n# Base-R QR1e-12/membership1e-12; tiny log loss uses log-domain normalized\n# weights to avoid early underflow. This is an approximate counterpart, not\n# a general exact-rational numeric-token validator. Fixed alpha uses small fractions.\noptions(digits=17)\nfixedSource<-function(kind){\n src<-file.path(dirname(sub(\"^--file=\",\"\",grep(\"^--file=\",commandArgs(),value=TRUE)[1])),\"data\")\nreadnative<-function(n)read.csv(file.path(src,n),check.names=FALSE,colClasses='character',na.strings=NULL,stringsAsFactors=FALSE)\nnum<-function(x){a<-suppressWarnings(as.numeric(x));a[x%in%c('','.')] <- NA_real_;a}\nroles<-function(d){n<-nrow(d);rank<-as.integer(d$splitRank);if(!identical(sort(rank),0:(n-1)))stop('splitRank permutation');planned<-c('test','calibration','train','train')[rank%%4+1];if(any(planned!=d$plannedRole))stop('planned roles');list(rank=rank,planned=planned)}\noriginal<-readnative('actual48-country-revised-original-2023-2024.csv');derived<-readnative('derived16-country-features-and-roles.csv');isos<-sort(unique(original$countryISO3));lookup<-function(iso,code,year){r<-original[original$countryISO3==iso&original$indicatorID==code&original$date==year,,drop=FALSE];if(nrow(r)!=1)stop('country identity');num(r$originalValueToken)}\ncr<-roles(derived);if(!identical(isos,derived$countryISO3))stop('country order');country<-list(id=paste0(isos,':2024'),sourceRow=isos,x=cbind(vapply(isos,lookup,numeric(1),code='NY.GDP.PCAP.KD',year='2023')/10000,vapply(isos,lookup,numeric(1),code='FP.CPI.TOTL.ZG',year='2023')/10),y=vapply(isos,lookup,numeric(1),code='NY.GDP.MKTP.KD.ZG',year='2024'),rank=cr$rank,planned=cr$planned,names=c('g','pi'),unit='annual GDP growth percentage points')\npd<-readnative('actual3613-NLS-original52-fields-and-conformal-frame.csv');pr<-roles(pd);person<-list(id=paste0('person-row:',pd$sourceRow),sourceRow=pd$sourceRow,x=cbind(num(pd$ed76),num(pd$age76)),y=num(pd$lwage76),rank=pr$rank,planned=pr$planned,names=c('ed76','age76'),unit='native trimmed1976log hourly wage')\ncd<-readnative('actual3150-churn-original14-fields-and-conformal-frame.csv');rr<-roles(cd);company<-list(id=paste0('customer-row:',cd$sourceRow),sourceRow=cd$sourceRow,x=cbind(num(cd[['Call  Failure']]),num(cd[['Seconds of Use']])),y=num(cd$Churn),rank=rr$rank,planned=rr$planned,names=c('CallFailure','SecondsUse'),unit='native Churn0/1')\nmodels<-list(country=country,person=person,company=company)\n\nmodels<-models[kind]\nalphaToken<-\"1/5\";ridgeToken<-\"1/100\"\nqnum<-function(s){v<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(v)==2)as.numeric(v[1])/as.numeric(v[2])else as.numeric(v)}\nalphaParts<-function(s){v<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(v)==2&&all(grepl('^[0-9]+$',v))){a<-as.numeric(v[1]);b<-as.numeric(v[2])}else if(grepl('^[0-9]+([.][0-9]{1,6})?$',s)){n<-if(grepl('.',s,fixed=TRUE))nchar(sub('^[^.]*[.]','',s))else 0;a<-as.numeric(gsub('.','',s,fixed=TRUE));b<-10^n}else stop('Base-R alpha needs small integer fraction or <=6decimal places');if(a<=0||a>=b||b>1e6)stop('Require0<alpha<1 with denominator<=1e6');c(a,b)}\nap<-alphaParts(alphaToken);alpha<-ap[1]/ap[2];lambda<-qnum(ridgeToken);if(!is.finite(lambda)||lambda<0)stop('nonnegative finite ridge required')\nnamesOut<-c('study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins');outputs<-setNames(lapply(namesOut,function(n)list()),namesOut)\nemit<-function(name,row)outputs[[name]][[length(outputs[[name]])+1L]]<<-row\nmetric<-function(kind,name,value,unit,arithmetic='binary64 approximation'){emit('study-metrics',list(kind=kind,metric=name,value=if(is.null(value))NA else value,unit=unit,defined=as.integer(!is.null(value)&&!is.na(value)),arithmetic=arithmetic))}\nfor(kind in names(models)){\n m<-models[[kind]];complete<-rowSums(is.na(m$x))==0&!is.na(m$y);role<-ifelse(complete,m$planned,'excluded');train<-which(role=='train');n<-length(train);stopifnot(n>0);meanX<-colMeans(m$x[train,,drop=FALSE]);scale<-apply(m$x[train,,drop=FALSE],2,function(x)diff(range(x)));scale[scale==0]<-1;Z<-cbind(1,sweep(sweep(m$x,2,meanX,'-'),2,scale,'/'));H<-crossprod(Z[train,,drop=FALSE])/n+diag(c(0,lambda,lambda));b<-as.vector(crossprod(Z[train,,drop=FALSE],m$y[train]))/n;qrfit<-qr(H,tol=1e-12,LAPACK=FALSE);theta<-qr.coef(qrfit,b);theta[is.na(theta)]<-0;minimum<-as.numeric(crossprod(theta,H%*%theta)/2-sum(theta*b)+sum(m$y[train]^2)/(2*n));beta<-theta[-1]/scale;intercept<-theta[1]-sum(beta*meanX);raw<-as.vector(Z%*%theta);pred<-if(kind=='company')pmax(0,pmin(1,raw))else raw;defined<-!is.na(pred);group<-if(kind=='person')ifelse(m$x[,1]<=12,'schooling-at-most12','schooling-over12')else if(kind=='company')ifelse(m$x[,1]==0,'zero-call-failures','positive-call-failures')else ifelse(m$x[,1]<=meanX[1],'GDPpc-at-most-training-mean','GDPpc-above-training-mean');group[is.na(raw)]<-'missing-X';cal<-which(role=='calibration'&defined&!is.na(m$y));score<-if(kind=='company')ifelse(m$y[cal]==1,1-pred[cal],pred[cal])else abs(m$y[cal]-pred[cal]);ordered<-order(score,seq_along(score));k<-ceiling((length(cal)+1)*(ap[2]-ap[1])/ap[2]);threshold<-if(k<=length(cal))score[ordered[k]]else Inf;unbounded<-is.infinite(threshold)\n for(j in seq_along(ordered)){slot<-ordered[j];i<-cal[slot];emit('calibration-scores',list(kind=kind,rank=j,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,calibrationIndex0=slot-1,score=score[slot],threshold=threshold,thresholdInfinite=as.integer(unbounded)))}\n for(j in 1:2)emit('training-coefficients',list(kind=kind,feature=m$names[j],mean=meanX[j],scale=scale[j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[1],nativeIntercept=intercept,rank=qrfit$rank,unique=as.integer(qrfit$rank==3),lambdaValue=lambda,minimumObjective=minimum))\n metrics<-list(sourceRows=length(role),trainingRows=n,calibrationScores=length(cal),testLabeledRows=sum(role=='test'&!is.na(m$y)),excludedRows=sum(role=='excluded'),alpha=alpha,ridge=lambda,quantileRank=k,threshold=threshold,minimumObjective=minimum);units<-c('rows','rows','unit-count scores','rows','rows','probability','transformed slope penalty','one-based rank',if(kind=='company')'dimensionless score'else m$unit,paste0('(',m$unit,') squared'))\n for(j in seq_along(metrics))metric(kind,names(metrics)[j],metrics[[j]],units[j],if(is.infinite(metrics[[j]]))'mathematical infinity'else if(j%in%c(1:5,8))'integer count'else'binary64 approximation')\n labeled<-defined&!is.na(m$y);covered<-rep(NA_integer_,length(role));lo<-hi<-width<-rep(NA_real_,length(role));setSize<-rep(NA_integer_,length(role));setLabels<-rep('',length(role))\n if(kind=='company'){\n  zero<-defined&(unbounded|pred<=threshold+1e-12);one<-defined&(unbounded|1-pred<=threshold+1e-12);setSize[defined]<-as.integer(zero[defined])+as.integer(one[defined]);setLabels[zero&!one]<-'0';setLabels[!zero&one]<-'1';setLabels[zero&one]<-'0|1';covered[labeled]<-as.integer((m$y[labeled]==0&zero[labeled])|(m$y[labeled]==1&one[labeled]))\n }else{lo[defined]<-pred[defined]-threshold;hi[defined]<-pred[defined]+threshold;width[defined]<-2*threshold;tol<-1e-12*pmax(1,abs(m$y[labeled]),abs(pred[labeled]),if(is.finite(threshold))abs(threshold)else 1);covered[labeled]<-as.integer(unbounded|abs(m$y[labeled]-pred[labeled])<=threshold+tol)}\n for(i in seq_along(role)){\n  emit('row-predictions',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,plannedRole=m$planned[i],role=role[i],group=group[i],actualY=m$y[i],rawLinear=raw[i],prediction=pred[i],predictionDefined=as.integer(defined[i]),threshold=threshold,thresholdInfinite=as.integer(unbounded),lower=lo[i],upper=hi[i],width=width[i],setLabels=setLabels[i],setSize=setSize[i],covered=covered[i],labeledPrediction=as.integer(labeled[i])))\n  emit('eligibility',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],plannedRole=m$planned[i],role=role[i],requiredComplete=as.integer(complete[i]),trainingUsed=as.integer(role[i]=='train'&complete[i]),reason=if(complete[i])''else'missing-required-field'))\n }\n for(rol in unique(role))for(gr in c('all',unique(group))){use<-which(role==rol&(gr=='all'|group==gr));def<-use[defined[use]];scored<-use[labeled[use]&!role[use]%in%c('excluded','unused')];nn<-length(def);ns<-length(scored);cv<-sum(covered[scored]);ub<-if(kind=='company')0 else sum(is.infinite(width[def]));emit('role-group-coverage',list(kind=kind,role=rol,group=gr,originalRows=length(use),definedPredictions=nn,scoredLabels=ns,coveredRows=cv,coverage=if(ns)cv/ns else NA_real_,meanSetSize=if(kind=='company'&&nn)mean(setSize[def])else NA_real_,meanIntervalWidth=if(kind!='company'&&nn)mean(width[def])else NA_real_,unboundedIntervals=ub))}\n if(kind=='company')for(rol in c('train','calibration','test')){\n  ix<-which(role==rol&labeled);pp<-pred[ix];yy<-m$y[ix];N<-length(ix);bin<-pmin(4,floor(pp*5));yb<-if(N)mean(yy)else NA_real_;ece<-rel<-res<-vp<-cp<-0\n  for(j in 0:4){take<-which(bin==j);nb<-length(take);pm<-if(nb)mean(pp[take])else NA_real_;ym<-if(nb)mean(yy[take])else NA_real_;v<-if(nb)mean((pp[take]-pm)^2)else NA_real_;co<-if(nb)mean((pp[take]-pm)*(yy[take]-ym))else NA_real_;emit('reliability-bins',list(kind=kind,role=rol,bin=j,lower=j/5,upper=(j+1)/5,rightClosed=as.integer(j==4),rows=nb,meanP=pm,frequencyY1=ym,gap=pm-ym,withinVarianceP=v,withinCovariancePY=co));if(nb){z<-nb/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*co}}\n  mm<-list(ECE=if(N)ece else NA_real_,Brier=if(N)mean((pp-yy)^2)else NA_real_,uncertainty=yb*(1-yb),resolution=if(N)res else NA_real_,reliability=if(N)rel else NA_real_,withinVarianceP=if(N)vp else NA_real_,withinCovariancePY=if(N)cp else NA_real_);for(name in names(mm))metric(kind,paste0(rol,':',name),mm[[name]],if(name=='ECE')'dimensionless'else'squared probability');prob<-ifelse(yy==1,pp,1-pp);ll<-if(!N)NA_real_ else if(any(prob==0))Inf else-mean(log(prob));metric(kind,paste0(rol,':meanLogLoss'),ll,'nats','binary64 approximation or genuine infinity')\n }\n}\n\noutputs\n}\n\n# New fixed-example numerical adapters. Not arbitrary exact-input validators.\nnum20<-function(v){s<-as.character(v);a<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(a)==2)as.numeric(a[1])/as.numeric(a[2])else as.numeric(s)}\nalpha20<-function(s){a<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(a)==2){n<-as.numeric(a[1]);d<-as.numeric(a[2])}else{n<-as.numeric(a[1]);d<-1};if(n<=0||n>=d)stop('alpha-must-be-strictly-between-zero-and-one');c(n,d)}\nquantile20<-function(scores,alpha){ap<-alpha20(alpha);keep<-which(!vapply(scores,is.null,logical(1)));vv<-vapply(scores[keep],num20,numeric(1));ix<-order(vv,keep);n<-length(vv);k<-((n+1)*(ap[2]-ap[1])+ap[2]-1)%/%ap[2];list(n=n,k=k,threshold=if(k>n)NULL else vv[ix[k]],infinite=k>n,ordered=lapply(ix,function(j)list(score=vv[j],index=keep[j]-1)))}\nlogPositive20<-function(v){s<-tolower(as.character(v));part<-strsplit(s,'e',fixed=TRUE)[[1]];mantissa<-as.numeric(part[1]);power<-if(length(part)==2)as.numeric(part[2])else 0;if(mantissa<=0)stop('fixed positive weight required');log(mantissa)+power*log(10)}\nscore20<-function(rows){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));lw<-vapply(rows,function(r)logPositive20(if(is.null(r$weight))1 else r$weight),numeric(1));mx<-max(lw);lm<-mx+log(sum(exp(lw-mx)));mass<-exp(lm);w<-exp(lw-lm);observed<-ifelse(y==1,p,1-p);genuine<-any(observed==0);loss<-ifelse(observed==1,0,-log(observed));terms<-lw-lm+log(loss);finite<-terms[is.finite(terms)];ll<-if(genuine)'+infinity'else if(length(finite)){top<-max(finite);exp(top+log(sum(exp(finite-top))))}else 0;bs<-sum(w*(p-y)^2);list(rows=lapply(seq_along(rows),function(i)list(p=p[i],y=y[i],w=w[i])),mass=mass,Brier=bs,meanLogLoss=ll,genuineInfinite=genuine,BrierPositive=any(p!=y))}\ncalibration20<-function(rows,B){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));N<-length(p);bin<-pmin(B-1,floor(p*B));yb<-mean(y);ece<-rel<-res<-vp<-cp<-0;out<-list()\n for(j in 0:(B-1)){ix<-which(bin==j);n<-length(ix);pm<-if(n)mean(p[ix])else NULL;ym<-if(n)mean(y[ix])else NULL;v<-if(n)mean((p[ix]-pm)^2)else NULL;c<-if(n)mean((p[ix]-pm)*(y[ix]-ym))else NULL;out[[j+1]]<-list(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c);if(n){z<-n/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*c}}\n list(rows=N,bins=out,Brier=mean((p-y)^2),ECE=ece,uncertainty=yb*(1-yb),resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=yb*(1-yb)-res+rel+vp-2*cp)}\npredict20<-function(a){q<-quantile20(a$scores,a$alpha);classification<-a$mode=='classification';rows<-list()\n for(i in seq_along(a$queries)){r<-a$queries[[i]];p<-num20(if(classification)r$p else r$center);y<-if(is.null(r$y))NULL else num20(r$y)\n  if(classification){labels<-if(q$infinite)0:1 else which(c(p,1-p)<=q$threshold)-1;lo<-hi<-width<-NULL;size<-length(labels);covered<-if(is.null(y))NULL else as.integer(y%in%labels)}else{labels<-NULL;size<-NULL;lo<-if(q$infinite)'-infinity'else p-q$threshold;hi<-if(q$infinite)'+infinity'else p+q$threshold;width<-if(q$infinite)'+infinity'else 2*q$threshold;covered<-if(is.null(y))NULL else as.integer(q$infinite||abs(y-p)<=q$threshold+1e-12)}\n  rows[[i]]<-list(id=if(is.null(r$id))as.character(i-1)else r$id,prediction=p,actualY=y,labels=as.list(labels),size=size,lower=lo,upper=hi,width=width,covered=covered)\n };scored<-Filter(function(r)!is.null(r$covered),rows);coverage<-if(length(scored))mean(vapply(scored,`[[`,numeric(1),'covered'))else NULL;list(quantile=q,rows=rows,scoredLabels=length(scored),coverage=coverage,meanSetSize=if(classification&&length(rows))mean(vapply(rows,`[[`,numeric(1),'size'))else NULL,meanWidth=if(!classification&&length(rows))if(q$infinite)'+infinity'else 2*q$threshold else NULL)}\nranklaw20<-function(a){v<-vapply(a$scores,num20,numeric(1));trials<-lapply(seq_along(v),function(i){q<-quantile20(as.list(v[-i]),a$alpha);list(heldout=i-1,score=v[i],k=q$k,threshold=q$threshold,infinite=q$infinite,covered=as.integer(q$infinite||v[i]<=q$threshold))});list(N=length(v),distinct=length(unique(v))==length(v),trials=trials,coverage=mean(vapply(trials,`[[`,numeric(1),'covered')))}\nfixedOperation<-function(api,a)switch(api,score=score20(a$rows),calibration=calibration20(a$rows,a$bins),quantile=quantile20(a$scores,a$alpha),predict=predict20(a),ranklaw=ranklaw20(a),realdata=fixedSource(a$kind))\nreportValues<-function(api,z){summary<-list();points<-list();add<-function(k,v,u)summary[[length(summary)+1]]<<-list(metric=k,value=if(is.null(v)||length(v)==0||anyNA(v))NULL else unname(v),unit=u);pt<-function(s,i,x,y)points[[length(points)+1]]<<-list(series=s,index=i,x=x,y=y)\n if(api=='score'){for(k in c('mass','Brier','meanLogLoss','genuineInfinite','BrierPositive'))add(k,z[[k]],switch(k,mass='analysis weight',Brier='squared probability',meanLogLoss='nats; numerical logarithm',genuineInfinite='indicator',BrierPositive='mathematical indicator'));for(i in seq_along(z$rows)){r<-z$rows[[i]];pt('squared error',i-1,i-1,(r$p-r$y)^2)}\n }else if(api=='calibration'){for(k in c('Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity'))add(k,z[[k]],if(k=='ECE')'probability'else'squared probability');for(r in z$bins){pt('bin probability',r$bin,r$bin,r$meanP);pt('bin outcome frequency',r$bin,r$bin,r$frequency)}\n }else if(api=='quantile'){add('n',z$n,'scores');add('k',z$k,'one-based rank');add('infinite',z$infinite,'mathematical indicator');add('threshold',if(z$infinite)'+infinity'else z$threshold,'score units');for(i in seq_along(z$ordered))pt('sorted score',i-1,i,z$ordered[[i]]$score)\n }else if(api=='predict'){for(k in c('scoredLabels','coverage','meanSetSize','meanWidth'))add(k,z[[k]],switch(k,scoredLabels='labels',coverage='fraction',meanSetSize='classes',meanWidth='outcome units'));add('thresholdInfinite',z$quantile$infinite,'mathematical indicator');for(i in seq_along(z$rows)){pt('predicted center or probability',i-1,i-1,z$rows[[i]]$prediction);pt('observed label or outcome',i-1,i-1,z$rows[[i]]$actualY)}\n }else if(api=='ranklaw'){add('N',z$N,'scores');add('distinct',z$distinct,'indicator');add('coverage',z$coverage,'fraction');for(r in z$trials)pt('held-out coverage',r$heldout,r$heldout,r$covered)\n }else{for(k in c('sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold')){r<-Filter(function(r)r$metric==k,z[['study-metrics']])[[1]];add(k,r$value,r$unit)};cv<-Filter(function(r)r$role=='test'&&r$group=='all',z[['role-group-coverage']])[[1]];for(k in c('coverage','meanSetSize','meanIntervalWidth'))add(k,cv[[k]],switch(k,coverage='fraction',meanSetSize='classes',meanIntervalWidth='outcome units'));for(i in seq_along(z[['calibration-scores']])){r<-z[['calibration-scores']][[i]];pt('all calibration scores',i-1,r$rank,r$score)}}\n list(summary=summary,points=points)}\n\nescapeXML<-function(s){s<-gsub('&','&amp;',s,fixed=TRUE);s<-gsub('<','&lt;',s,fixed=TRUE);s<-gsub('>','&gt;',s,fixed=TRUE);gsub('\"','&quot;',s,fixed=TRUE)}\nsvgPlot<-function(pp,title){\n xx<-vapply(pp,function(p)as.numeric(p$x),numeric(1));yy<-vapply(pp,function(p)as.numeric(p$y),numeric(1));xmin<-if(length(xx))min(xx)else 0;xmax<-if(length(xx))max(xx)else 1;ymin<-min(c(0,yy));ymax<-max(c(0,yy));if(xmin==xmax){xmin<-xmin-.5;xmax<-xmax+.5};if(ymin==ymax){ymin<-ymin-.5;ymax<-ymax+.5};pad<-(ymax-ymin)*.08;ymin<-ymin-pad;ymax<-ymax+pad;X<-function(x)82+(as.numeric(x)-xmin)/(xmax-xmin)*608;Y<-function(y)354-(as.numeric(y)-ymin)/(ymax-ymin)*290\n out<-paste0('<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"',escapeXML(title),'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">',escapeXML(title),'</text>')\n for(j in 0:4){y<-ymin+(ymax-ymin)*j/4;x<-xmin+(xmax-xmin)*j/4;out<-paste0(out,'<line x1=\"82\" y1=\"',Y(y),'\" x2=\"690\" y2=\"',Y(y),'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"',Y(y)+4,'\" text-anchor=\"end\">',sprintf('%.3g',y),'</text><text x=\"',X(x),'\" y=\"380\" text-anchor=\"middle\">',sprintf('%.3g',x),'</text>')}\n ss<-unique(vapply(pp,`[[`,character(1),'series'));cols<-c('#0f766e','#c76622','#4f46e5','#b23857')\n for(j in seq_along(ss)){rr<-Filter(function(p)p$series==ss[j],pp);xy<-vapply(rr,function(p)sprintf('%.6f,%.6f',X(p$x),Y(p$y)),character(1));col<-cols[(j-1)%%4+1];out<-paste0(out,'<polyline fill=\"none\" stroke=\"',col,'\" stroke-width=\"1.5\" points=\"',paste(xy,collapse=' '),'\"/>');for(p in rr)out<-paste0(out,'<circle cx=\"',sprintf('%.6f',X(p$x)),'\" cy=\"',sprintf('%.6f',Y(p$y)),'\" r=\"2.6\" fill=\"',col,'\"><title>',escapeXML(ss[j]),': ',escapeXML(p$y),'</title></circle>');out<-paste0(out,'<text x=\"',82+((j-1)%%2)*310,'\" y=\"',432+floor((j-1)/2)*23,'\" fill=\"',col,'\">',escapeXML(ss[j]),'</text>')}\n paste0(out,'<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>')\n}\n\ntoJSON<-function(x){\n if(is.null(x))return('null');if(is.list(x)){v<-vapply(x,toJSON,character(1));if(!is.null(names(x)))paste0('{',paste(paste0(vapply(names(x),toJSON,character(1)),':',v),collapse=','),'}')else paste0('[',paste(v,collapse=','),']')}\n else if(length(x)!=1){if(!is.null(names(x)))toJSON(as.list(x))else paste0('[',paste(vapply(as.list(x),toJSON,character(1)),collapse=','),']')}\n else if(is.na(x))'null'else if(is.logical(x))if(x)'true'else'false'else if(is.numeric(x))if(is.finite(x))sprintf('%.17g',x)else'null'else paste0('\"',gsub('\\n','\\\\n',gsub('\"','\\\\\"',gsub('\\\\','\\\\\\\\',x,fixed=TRUE),fixed=TRUE),fixed=TRUE),'\"')\n}\n\nFIXED<-list(\"api\"=\"predict\",\"variant\"=\"regression-boundary\",\"title\"=\"Inclusive interval boundaries and missing labels\",\"input\"=list(\"mode\"=\"regression\",\"scores\"=list(\"1\",\"2\",\"3\",\"4\"),\"alpha\"=\"2/5\",\"queries\"=list(list(\"center\"=\"0\",\"y\"=\"3\"),list(\"center\"=\"2\",\"y\"=\"-1\"),list(\"center\"=\"1\",\"y\"=NULL))),\"expectedFailure\"=FALSE)\n\nargs<-commandArgs(trailingOnly=TRUE);out<-if(length(args))args[1]else stop('NEW output directory required');if(dir.exists(out))stop('Preserve previous output directory');dir.create(out,recursive=TRUE)\nz<-fixedOperation(FIXED$api,FIXED$input);rr<-reportValues(FIXED$api,z)\nwriteLines(toJSON(list(arithmetic='BaseR numerical counterpart; QR and membership1e-12, log-domain tiny weights; source splitRank read from factualCSV',result=z)),file.path(out,'full.json'),useBytes=TRUE)\nsums<-do.call(rbind,lapply(rr$summary,function(row)data.frame(metric=row$metric,value=if(is.null(row$value))''else if(is.logical(row$value))as.character(as.integer(row$value))else format(row$value,digits=17,scientific=NA,trim=TRUE),unit=row$unit,defined=as.integer(!is.null(row$value)),stringsAsFactors=FALSE)))\npoints<-do.call(rbind,lapply(rr$points,function(p)data.frame(series=p$series,index=p$index,x=p$x,y=if(is.null(p$y))NA_real_ else p$y,defined=as.integer(!is.null(p$y)),stringsAsFactors=FALSE)))\nwrite.csv(sums,file.path(out,'summary.csv'),row.names=FALSE,na='');write.csv(points,file.path(out,'plot-points.csv'),row.names=FALSE,na='');writeLines(svgPlot(Filter(function(p)!is.null(p$y),rr$points),FIXED$title),file.path(out,'plot.svg'),useBytes=TRUE);cat(FIXED$api,'/',FIXED$variant,'\\n',sep='')\n",
        "returnCode": 0,
        "stdout": "predict/regression-boundary\r\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed ",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/r-predict-regression-boundary-result",
        "kind": null,
        "inputFiles": [],
        "files": [
          {
            "file": "ml20-code/r-predict-regression-boundary-result/full.json",
            "sha256": "7665d31a7e91df9db0aee4e36fb114a21a7b591d78a158d1b18f2f7369f03a18",
            "bytes": 695
          },
          {
            "file": "ml20-code/r-predict-regression-boundary-result/plot-points.csv",
            "sha256": "730e65a0521844bd40c9a7c24d958c6487db5a9b7f2a779dbb12a09f5a33405f",
            "bytes": 276
          },
          {
            "file": "ml20-code/r-predict-regression-boundary-result/plot.svg",
            "sha256": "f78afea964fbb1f15e2922abc1f1345a0692a69f51dfc76e3c2dcb1e7beb779f",
            "bytes": 2266
          },
          {
            "file": "ml20-code/r-predict-regression-boundary-result/summary.csv",
            "sha256": "6a571a74d70624ac031e44c16f747cc1144438b57423d0d2ef523884ec6a64d5",
            "bytes": 212
          },
          {
            "file": "ml20-code/r-predict-regression-boundary-result/stdout.txt",
            "sha256": "e1016ab6775589c926fa2024ac808d64cbc18161842fa1683c5d96e518015dba",
            "bytes": 29
          },
          {
            "file": "ml20-code/r-predict-regression-boundary-result/stderr.txt",
            "sha256": "b807bd2d0f7060ea384b0ac2317cda2d63a4f59f63b4a901b9e665fead79627d",
            "bytes": 182
          }
        ],
        "summaryRows": [
          {
            "metric": "scoredLabels",
            "value": "2",
            "unit": "labels",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "2",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "coverage",
            "value": "1",
            "unit": "fraction",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "1",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "meanSetSize",
            "value": "undefined",
            "unit": "classes",
            "defined": "false",
            "exactFraction": "",
            "rawValue": "",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "meanWidth",
            "value": "6",
            "unit": "outcome units",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "6",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "thresholdInfinite",
            "value": "0",
            "unit": "mathematical indicator",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          }
        ],
        "plotRows": [
          {
            "series": "predicted center or probability",
            "index": 0,
            "x": "0",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "observed label or outcome",
            "index": 0,
            "x": "0",
            "y": "3",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "predicted center or probability",
            "index": 1,
            "x": "1",
            "y": "2",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "observed label or outcome",
            "index": 1,
            "x": "1",
            "y": "-1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "predicted center or probability",
            "index": 2,
            "x": "2",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "observed label or outcome",
            "index": 2,
            "x": "2",
            "y": "",
            "defined": false,
            "xExact": "",
            "yExact": ""
          }
        ],
        "plotFile": "ml20-code/r-predict-regression-boundary-result/plot.svg",
        "fullResultFile": "ml20-code/r-predict-regression-boundary-result/full.json",
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      },
      "empty-singleton": {
        "api": "predict",
        "variant": "empty-singleton",
        "language": "r",
        "title": "Defined empty and singleton class sets",
        "input": {
          "mode": "classification",
          "scores": [
            "1/10",
            "1/5",
            "1/5",
            "1/5"
          ],
          "alpha": "2/5",
          "queries": [
            {
              "p": "1/2",
              "y": "1"
            },
            {
              "p": "1/10",
              "y": "0"
            },
            {
              "p": "9/10",
              "y": "0"
            }
          ]
        },
        "expectedFailure": false,
        "codeFile": "ml20-code/predict-empty-singleton.R",
        "codeSHA256": "2ba51353662d2405addfc64e3a5fff75cf12dbeb2db0bf7e2349510ec9576ed2",
        "code": "# ML20 complete standalone numerical fixed examples, no browser/model/results.\n# Base-R QR1e-12/membership1e-12; tiny log loss uses log-domain normalized\n# weights to avoid early underflow. This is an approximate counterpart, not\n# a general exact-rational numeric-token validator. Fixed alpha uses small fractions.\noptions(digits=17)\nfixedSource<-function(kind){\n src<-file.path(dirname(sub(\"^--file=\",\"\",grep(\"^--file=\",commandArgs(),value=TRUE)[1])),\"data\")\nreadnative<-function(n)read.csv(file.path(src,n),check.names=FALSE,colClasses='character',na.strings=NULL,stringsAsFactors=FALSE)\nnum<-function(x){a<-suppressWarnings(as.numeric(x));a[x%in%c('','.')] <- NA_real_;a}\nroles<-function(d){n<-nrow(d);rank<-as.integer(d$splitRank);if(!identical(sort(rank),0:(n-1)))stop('splitRank permutation');planned<-c('test','calibration','train','train')[rank%%4+1];if(any(planned!=d$plannedRole))stop('planned roles');list(rank=rank,planned=planned)}\noriginal<-readnative('actual48-country-revised-original-2023-2024.csv');derived<-readnative('derived16-country-features-and-roles.csv');isos<-sort(unique(original$countryISO3));lookup<-function(iso,code,year){r<-original[original$countryISO3==iso&original$indicatorID==code&original$date==year,,drop=FALSE];if(nrow(r)!=1)stop('country identity');num(r$originalValueToken)}\ncr<-roles(derived);if(!identical(isos,derived$countryISO3))stop('country order');country<-list(id=paste0(isos,':2024'),sourceRow=isos,x=cbind(vapply(isos,lookup,numeric(1),code='NY.GDP.PCAP.KD',year='2023')/10000,vapply(isos,lookup,numeric(1),code='FP.CPI.TOTL.ZG',year='2023')/10),y=vapply(isos,lookup,numeric(1),code='NY.GDP.MKTP.KD.ZG',year='2024'),rank=cr$rank,planned=cr$planned,names=c('g','pi'),unit='annual GDP growth percentage points')\npd<-readnative('actual3613-NLS-original52-fields-and-conformal-frame.csv');pr<-roles(pd);person<-list(id=paste0('person-row:',pd$sourceRow),sourceRow=pd$sourceRow,x=cbind(num(pd$ed76),num(pd$age76)),y=num(pd$lwage76),rank=pr$rank,planned=pr$planned,names=c('ed76','age76'),unit='native trimmed1976log hourly wage')\ncd<-readnative('actual3150-churn-original14-fields-and-conformal-frame.csv');rr<-roles(cd);company<-list(id=paste0('customer-row:',cd$sourceRow),sourceRow=cd$sourceRow,x=cbind(num(cd[['Call  Failure']]),num(cd[['Seconds of Use']])),y=num(cd$Churn),rank=rr$rank,planned=rr$planned,names=c('CallFailure','SecondsUse'),unit='native Churn0/1')\nmodels<-list(country=country,person=person,company=company)\n\nmodels<-models[kind]\nalphaToken<-\"1/5\";ridgeToken<-\"1/100\"\nqnum<-function(s){v<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(v)==2)as.numeric(v[1])/as.numeric(v[2])else as.numeric(v)}\nalphaParts<-function(s){v<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(v)==2&&all(grepl('^[0-9]+$',v))){a<-as.numeric(v[1]);b<-as.numeric(v[2])}else if(grepl('^[0-9]+([.][0-9]{1,6})?$',s)){n<-if(grepl('.',s,fixed=TRUE))nchar(sub('^[^.]*[.]','',s))else 0;a<-as.numeric(gsub('.','',s,fixed=TRUE));b<-10^n}else stop('Base-R alpha needs small integer fraction or <=6decimal places');if(a<=0||a>=b||b>1e6)stop('Require0<alpha<1 with denominator<=1e6');c(a,b)}\nap<-alphaParts(alphaToken);alpha<-ap[1]/ap[2];lambda<-qnum(ridgeToken);if(!is.finite(lambda)||lambda<0)stop('nonnegative finite ridge required')\nnamesOut<-c('study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins');outputs<-setNames(lapply(namesOut,function(n)list()),namesOut)\nemit<-function(name,row)outputs[[name]][[length(outputs[[name]])+1L]]<<-row\nmetric<-function(kind,name,value,unit,arithmetic='binary64 approximation'){emit('study-metrics',list(kind=kind,metric=name,value=if(is.null(value))NA else value,unit=unit,defined=as.integer(!is.null(value)&&!is.na(value)),arithmetic=arithmetic))}\nfor(kind in names(models)){\n m<-models[[kind]];complete<-rowSums(is.na(m$x))==0&!is.na(m$y);role<-ifelse(complete,m$planned,'excluded');train<-which(role=='train');n<-length(train);stopifnot(n>0);meanX<-colMeans(m$x[train,,drop=FALSE]);scale<-apply(m$x[train,,drop=FALSE],2,function(x)diff(range(x)));scale[scale==0]<-1;Z<-cbind(1,sweep(sweep(m$x,2,meanX,'-'),2,scale,'/'));H<-crossprod(Z[train,,drop=FALSE])/n+diag(c(0,lambda,lambda));b<-as.vector(crossprod(Z[train,,drop=FALSE],m$y[train]))/n;qrfit<-qr(H,tol=1e-12,LAPACK=FALSE);theta<-qr.coef(qrfit,b);theta[is.na(theta)]<-0;minimum<-as.numeric(crossprod(theta,H%*%theta)/2-sum(theta*b)+sum(m$y[train]^2)/(2*n));beta<-theta[-1]/scale;intercept<-theta[1]-sum(beta*meanX);raw<-as.vector(Z%*%theta);pred<-if(kind=='company')pmax(0,pmin(1,raw))else raw;defined<-!is.na(pred);group<-if(kind=='person')ifelse(m$x[,1]<=12,'schooling-at-most12','schooling-over12')else if(kind=='company')ifelse(m$x[,1]==0,'zero-call-failures','positive-call-failures')else ifelse(m$x[,1]<=meanX[1],'GDPpc-at-most-training-mean','GDPpc-above-training-mean');group[is.na(raw)]<-'missing-X';cal<-which(role=='calibration'&defined&!is.na(m$y));score<-if(kind=='company')ifelse(m$y[cal]==1,1-pred[cal],pred[cal])else abs(m$y[cal]-pred[cal]);ordered<-order(score,seq_along(score));k<-ceiling((length(cal)+1)*(ap[2]-ap[1])/ap[2]);threshold<-if(k<=length(cal))score[ordered[k]]else Inf;unbounded<-is.infinite(threshold)\n for(j in seq_along(ordered)){slot<-ordered[j];i<-cal[slot];emit('calibration-scores',list(kind=kind,rank=j,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,calibrationIndex0=slot-1,score=score[slot],threshold=threshold,thresholdInfinite=as.integer(unbounded)))}\n for(j in 1:2)emit('training-coefficients',list(kind=kind,feature=m$names[j],mean=meanX[j],scale=scale[j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[1],nativeIntercept=intercept,rank=qrfit$rank,unique=as.integer(qrfit$rank==3),lambdaValue=lambda,minimumObjective=minimum))\n metrics<-list(sourceRows=length(role),trainingRows=n,calibrationScores=length(cal),testLabeledRows=sum(role=='test'&!is.na(m$y)),excludedRows=sum(role=='excluded'),alpha=alpha,ridge=lambda,quantileRank=k,threshold=threshold,minimumObjective=minimum);units<-c('rows','rows','unit-count scores','rows','rows','probability','transformed slope penalty','one-based rank',if(kind=='company')'dimensionless score'else m$unit,paste0('(',m$unit,') squared'))\n for(j in seq_along(metrics))metric(kind,names(metrics)[j],metrics[[j]],units[j],if(is.infinite(metrics[[j]]))'mathematical infinity'else if(j%in%c(1:5,8))'integer count'else'binary64 approximation')\n labeled<-defined&!is.na(m$y);covered<-rep(NA_integer_,length(role));lo<-hi<-width<-rep(NA_real_,length(role));setSize<-rep(NA_integer_,length(role));setLabels<-rep('',length(role))\n if(kind=='company'){\n  zero<-defined&(unbounded|pred<=threshold+1e-12);one<-defined&(unbounded|1-pred<=threshold+1e-12);setSize[defined]<-as.integer(zero[defined])+as.integer(one[defined]);setLabels[zero&!one]<-'0';setLabels[!zero&one]<-'1';setLabels[zero&one]<-'0|1';covered[labeled]<-as.integer((m$y[labeled]==0&zero[labeled])|(m$y[labeled]==1&one[labeled]))\n }else{lo[defined]<-pred[defined]-threshold;hi[defined]<-pred[defined]+threshold;width[defined]<-2*threshold;tol<-1e-12*pmax(1,abs(m$y[labeled]),abs(pred[labeled]),if(is.finite(threshold))abs(threshold)else 1);covered[labeled]<-as.integer(unbounded|abs(m$y[labeled]-pred[labeled])<=threshold+tol)}\n for(i in seq_along(role)){\n  emit('row-predictions',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,plannedRole=m$planned[i],role=role[i],group=group[i],actualY=m$y[i],rawLinear=raw[i],prediction=pred[i],predictionDefined=as.integer(defined[i]),threshold=threshold,thresholdInfinite=as.integer(unbounded),lower=lo[i],upper=hi[i],width=width[i],setLabels=setLabels[i],setSize=setSize[i],covered=covered[i],labeledPrediction=as.integer(labeled[i])))\n  emit('eligibility',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],plannedRole=m$planned[i],role=role[i],requiredComplete=as.integer(complete[i]),trainingUsed=as.integer(role[i]=='train'&complete[i]),reason=if(complete[i])''else'missing-required-field'))\n }\n for(rol in unique(role))for(gr in c('all',unique(group))){use<-which(role==rol&(gr=='all'|group==gr));def<-use[defined[use]];scored<-use[labeled[use]&!role[use]%in%c('excluded','unused')];nn<-length(def);ns<-length(scored);cv<-sum(covered[scored]);ub<-if(kind=='company')0 else sum(is.infinite(width[def]));emit('role-group-coverage',list(kind=kind,role=rol,group=gr,originalRows=length(use),definedPredictions=nn,scoredLabels=ns,coveredRows=cv,coverage=if(ns)cv/ns else NA_real_,meanSetSize=if(kind=='company'&&nn)mean(setSize[def])else NA_real_,meanIntervalWidth=if(kind!='company'&&nn)mean(width[def])else NA_real_,unboundedIntervals=ub))}\n if(kind=='company')for(rol in c('train','calibration','test')){\n  ix<-which(role==rol&labeled);pp<-pred[ix];yy<-m$y[ix];N<-length(ix);bin<-pmin(4,floor(pp*5));yb<-if(N)mean(yy)else NA_real_;ece<-rel<-res<-vp<-cp<-0\n  for(j in 0:4){take<-which(bin==j);nb<-length(take);pm<-if(nb)mean(pp[take])else NA_real_;ym<-if(nb)mean(yy[take])else NA_real_;v<-if(nb)mean((pp[take]-pm)^2)else NA_real_;co<-if(nb)mean((pp[take]-pm)*(yy[take]-ym))else NA_real_;emit('reliability-bins',list(kind=kind,role=rol,bin=j,lower=j/5,upper=(j+1)/5,rightClosed=as.integer(j==4),rows=nb,meanP=pm,frequencyY1=ym,gap=pm-ym,withinVarianceP=v,withinCovariancePY=co));if(nb){z<-nb/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*co}}\n  mm<-list(ECE=if(N)ece else NA_real_,Brier=if(N)mean((pp-yy)^2)else NA_real_,uncertainty=yb*(1-yb),resolution=if(N)res else NA_real_,reliability=if(N)rel else NA_real_,withinVarianceP=if(N)vp else NA_real_,withinCovariancePY=if(N)cp else NA_real_);for(name in names(mm))metric(kind,paste0(rol,':',name),mm[[name]],if(name=='ECE')'dimensionless'else'squared probability');prob<-ifelse(yy==1,pp,1-pp);ll<-if(!N)NA_real_ else if(any(prob==0))Inf else-mean(log(prob));metric(kind,paste0(rol,':meanLogLoss'),ll,'nats','binary64 approximation or genuine infinity')\n }\n}\n\noutputs\n}\n\n# New fixed-example numerical adapters. Not arbitrary exact-input validators.\nnum20<-function(v){s<-as.character(v);a<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(a)==2)as.numeric(a[1])/as.numeric(a[2])else as.numeric(s)}\nalpha20<-function(s){a<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(a)==2){n<-as.numeric(a[1]);d<-as.numeric(a[2])}else{n<-as.numeric(a[1]);d<-1};if(n<=0||n>=d)stop('alpha-must-be-strictly-between-zero-and-one');c(n,d)}\nquantile20<-function(scores,alpha){ap<-alpha20(alpha);keep<-which(!vapply(scores,is.null,logical(1)));vv<-vapply(scores[keep],num20,numeric(1));ix<-order(vv,keep);n<-length(vv);k<-((n+1)*(ap[2]-ap[1])+ap[2]-1)%/%ap[2];list(n=n,k=k,threshold=if(k>n)NULL else vv[ix[k]],infinite=k>n,ordered=lapply(ix,function(j)list(score=vv[j],index=keep[j]-1)))}\nlogPositive20<-function(v){s<-tolower(as.character(v));part<-strsplit(s,'e',fixed=TRUE)[[1]];mantissa<-as.numeric(part[1]);power<-if(length(part)==2)as.numeric(part[2])else 0;if(mantissa<=0)stop('fixed positive weight required');log(mantissa)+power*log(10)}\nscore20<-function(rows){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));lw<-vapply(rows,function(r)logPositive20(if(is.null(r$weight))1 else r$weight),numeric(1));mx<-max(lw);lm<-mx+log(sum(exp(lw-mx)));mass<-exp(lm);w<-exp(lw-lm);observed<-ifelse(y==1,p,1-p);genuine<-any(observed==0);loss<-ifelse(observed==1,0,-log(observed));terms<-lw-lm+log(loss);finite<-terms[is.finite(terms)];ll<-if(genuine)'+infinity'else if(length(finite)){top<-max(finite);exp(top+log(sum(exp(finite-top))))}else 0;bs<-sum(w*(p-y)^2);list(rows=lapply(seq_along(rows),function(i)list(p=p[i],y=y[i],w=w[i])),mass=mass,Brier=bs,meanLogLoss=ll,genuineInfinite=genuine,BrierPositive=any(p!=y))}\ncalibration20<-function(rows,B){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));N<-length(p);bin<-pmin(B-1,floor(p*B));yb<-mean(y);ece<-rel<-res<-vp<-cp<-0;out<-list()\n for(j in 0:(B-1)){ix<-which(bin==j);n<-length(ix);pm<-if(n)mean(p[ix])else NULL;ym<-if(n)mean(y[ix])else NULL;v<-if(n)mean((p[ix]-pm)^2)else NULL;c<-if(n)mean((p[ix]-pm)*(y[ix]-ym))else NULL;out[[j+1]]<-list(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c);if(n){z<-n/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*c}}\n list(rows=N,bins=out,Brier=mean((p-y)^2),ECE=ece,uncertainty=yb*(1-yb),resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=yb*(1-yb)-res+rel+vp-2*cp)}\npredict20<-function(a){q<-quantile20(a$scores,a$alpha);classification<-a$mode=='classification';rows<-list()\n for(i in seq_along(a$queries)){r<-a$queries[[i]];p<-num20(if(classification)r$p else r$center);y<-if(is.null(r$y))NULL else num20(r$y)\n  if(classification){labels<-if(q$infinite)0:1 else which(c(p,1-p)<=q$threshold)-1;lo<-hi<-width<-NULL;size<-length(labels);covered<-if(is.null(y))NULL else as.integer(y%in%labels)}else{labels<-NULL;size<-NULL;lo<-if(q$infinite)'-infinity'else p-q$threshold;hi<-if(q$infinite)'+infinity'else p+q$threshold;width<-if(q$infinite)'+infinity'else 2*q$threshold;covered<-if(is.null(y))NULL else as.integer(q$infinite||abs(y-p)<=q$threshold+1e-12)}\n  rows[[i]]<-list(id=if(is.null(r$id))as.character(i-1)else r$id,prediction=p,actualY=y,labels=as.list(labels),size=size,lower=lo,upper=hi,width=width,covered=covered)\n };scored<-Filter(function(r)!is.null(r$covered),rows);coverage<-if(length(scored))mean(vapply(scored,`[[`,numeric(1),'covered'))else NULL;list(quantile=q,rows=rows,scoredLabels=length(scored),coverage=coverage,meanSetSize=if(classification&&length(rows))mean(vapply(rows,`[[`,numeric(1),'size'))else NULL,meanWidth=if(!classification&&length(rows))if(q$infinite)'+infinity'else 2*q$threshold else NULL)}\nranklaw20<-function(a){v<-vapply(a$scores,num20,numeric(1));trials<-lapply(seq_along(v),function(i){q<-quantile20(as.list(v[-i]),a$alpha);list(heldout=i-1,score=v[i],k=q$k,threshold=q$threshold,infinite=q$infinite,covered=as.integer(q$infinite||v[i]<=q$threshold))});list(N=length(v),distinct=length(unique(v))==length(v),trials=trials,coverage=mean(vapply(trials,`[[`,numeric(1),'covered')))}\nfixedOperation<-function(api,a)switch(api,score=score20(a$rows),calibration=calibration20(a$rows,a$bins),quantile=quantile20(a$scores,a$alpha),predict=predict20(a),ranklaw=ranklaw20(a),realdata=fixedSource(a$kind))\nreportValues<-function(api,z){summary<-list();points<-list();add<-function(k,v,u)summary[[length(summary)+1]]<<-list(metric=k,value=if(is.null(v)||length(v)==0||anyNA(v))NULL else unname(v),unit=u);pt<-function(s,i,x,y)points[[length(points)+1]]<<-list(series=s,index=i,x=x,y=y)\n if(api=='score'){for(k in c('mass','Brier','meanLogLoss','genuineInfinite','BrierPositive'))add(k,z[[k]],switch(k,mass='analysis weight',Brier='squared probability',meanLogLoss='nats; numerical logarithm',genuineInfinite='indicator',BrierPositive='mathematical indicator'));for(i in seq_along(z$rows)){r<-z$rows[[i]];pt('squared error',i-1,i-1,(r$p-r$y)^2)}\n }else if(api=='calibration'){for(k in c('Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity'))add(k,z[[k]],if(k=='ECE')'probability'else'squared probability');for(r in z$bins){pt('bin probability',r$bin,r$bin,r$meanP);pt('bin outcome frequency',r$bin,r$bin,r$frequency)}\n }else if(api=='quantile'){add('n',z$n,'scores');add('k',z$k,'one-based rank');add('infinite',z$infinite,'mathematical indicator');add('threshold',if(z$infinite)'+infinity'else z$threshold,'score units');for(i in seq_along(z$ordered))pt('sorted score',i-1,i,z$ordered[[i]]$score)\n }else if(api=='predict'){for(k in c('scoredLabels','coverage','meanSetSize','meanWidth'))add(k,z[[k]],switch(k,scoredLabels='labels',coverage='fraction',meanSetSize='classes',meanWidth='outcome units'));add('thresholdInfinite',z$quantile$infinite,'mathematical indicator');for(i in seq_along(z$rows)){pt('predicted center or probability',i-1,i-1,z$rows[[i]]$prediction);pt('observed label or outcome',i-1,i-1,z$rows[[i]]$actualY)}\n }else if(api=='ranklaw'){add('N',z$N,'scores');add('distinct',z$distinct,'indicator');add('coverage',z$coverage,'fraction');for(r in z$trials)pt('held-out coverage',r$heldout,r$heldout,r$covered)\n }else{for(k in c('sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold')){r<-Filter(function(r)r$metric==k,z[['study-metrics']])[[1]];add(k,r$value,r$unit)};cv<-Filter(function(r)r$role=='test'&&r$group=='all',z[['role-group-coverage']])[[1]];for(k in c('coverage','meanSetSize','meanIntervalWidth'))add(k,cv[[k]],switch(k,coverage='fraction',meanSetSize='classes',meanIntervalWidth='outcome units'));for(i in seq_along(z[['calibration-scores']])){r<-z[['calibration-scores']][[i]];pt('all calibration scores',i-1,r$rank,r$score)}}\n list(summary=summary,points=points)}\n\nescapeXML<-function(s){s<-gsub('&','&amp;',s,fixed=TRUE);s<-gsub('<','&lt;',s,fixed=TRUE);s<-gsub('>','&gt;',s,fixed=TRUE);gsub('\"','&quot;',s,fixed=TRUE)}\nsvgPlot<-function(pp,title){\n xx<-vapply(pp,function(p)as.numeric(p$x),numeric(1));yy<-vapply(pp,function(p)as.numeric(p$y),numeric(1));xmin<-if(length(xx))min(xx)else 0;xmax<-if(length(xx))max(xx)else 1;ymin<-min(c(0,yy));ymax<-max(c(0,yy));if(xmin==xmax){xmin<-xmin-.5;xmax<-xmax+.5};if(ymin==ymax){ymin<-ymin-.5;ymax<-ymax+.5};pad<-(ymax-ymin)*.08;ymin<-ymin-pad;ymax<-ymax+pad;X<-function(x)82+(as.numeric(x)-xmin)/(xmax-xmin)*608;Y<-function(y)354-(as.numeric(y)-ymin)/(ymax-ymin)*290\n out<-paste0('<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"',escapeXML(title),'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">',escapeXML(title),'</text>')\n for(j in 0:4){y<-ymin+(ymax-ymin)*j/4;x<-xmin+(xmax-xmin)*j/4;out<-paste0(out,'<line x1=\"82\" y1=\"',Y(y),'\" x2=\"690\" y2=\"',Y(y),'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"',Y(y)+4,'\" text-anchor=\"end\">',sprintf('%.3g',y),'</text><text x=\"',X(x),'\" y=\"380\" text-anchor=\"middle\">',sprintf('%.3g',x),'</text>')}\n ss<-unique(vapply(pp,`[[`,character(1),'series'));cols<-c('#0f766e','#c76622','#4f46e5','#b23857')\n for(j in seq_along(ss)){rr<-Filter(function(p)p$series==ss[j],pp);xy<-vapply(rr,function(p)sprintf('%.6f,%.6f',X(p$x),Y(p$y)),character(1));col<-cols[(j-1)%%4+1];out<-paste0(out,'<polyline fill=\"none\" stroke=\"',col,'\" stroke-width=\"1.5\" points=\"',paste(xy,collapse=' '),'\"/>');for(p in rr)out<-paste0(out,'<circle cx=\"',sprintf('%.6f',X(p$x)),'\" cy=\"',sprintf('%.6f',Y(p$y)),'\" r=\"2.6\" fill=\"',col,'\"><title>',escapeXML(ss[j]),': ',escapeXML(p$y),'</title></circle>');out<-paste0(out,'<text x=\"',82+((j-1)%%2)*310,'\" y=\"',432+floor((j-1)/2)*23,'\" fill=\"',col,'\">',escapeXML(ss[j]),'</text>')}\n paste0(out,'<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>')\n}\n\ntoJSON<-function(x){\n if(is.null(x))return('null');if(is.list(x)){v<-vapply(x,toJSON,character(1));if(!is.null(names(x)))paste0('{',paste(paste0(vapply(names(x),toJSON,character(1)),':',v),collapse=','),'}')else paste0('[',paste(v,collapse=','),']')}\n else if(length(x)!=1){if(!is.null(names(x)))toJSON(as.list(x))else paste0('[',paste(vapply(as.list(x),toJSON,character(1)),collapse=','),']')}\n else if(is.na(x))'null'else if(is.logical(x))if(x)'true'else'false'else if(is.numeric(x))if(is.finite(x))sprintf('%.17g',x)else'null'else paste0('\"',gsub('\\n','\\\\n',gsub('\"','\\\\\"',gsub('\\\\','\\\\\\\\',x,fixed=TRUE),fixed=TRUE),fixed=TRUE),'\"')\n}\n\nFIXED<-list(\"api\"=\"predict\",\"variant\"=\"empty-singleton\",\"title\"=\"Defined empty and singleton class sets\",\"input\"=list(\"mode\"=\"classification\",\"scores\"=list(\"1/10\",\"1/5\",\"1/5\",\"1/5\"),\"alpha\"=\"2/5\",\"queries\"=list(list(\"p\"=\"1/2\",\"y\"=\"1\"),list(\"p\"=\"1/10\",\"y\"=\"0\"),list(\"p\"=\"9/10\",\"y\"=\"0\"))),\"expectedFailure\"=FALSE)\n\nargs<-commandArgs(trailingOnly=TRUE);out<-if(length(args))args[1]else stop('NEW output directory required');if(dir.exists(out))stop('Preserve previous output directory');dir.create(out,recursive=TRUE)\nz<-fixedOperation(FIXED$api,FIXED$input);rr<-reportValues(FIXED$api,z)\nwriteLines(toJSON(list(arithmetic='BaseR numerical counterpart; QR and membership1e-12, log-domain tiny weights; source splitRank read from factualCSV',result=z)),file.path(out,'full.json'),useBytes=TRUE)\nsums<-do.call(rbind,lapply(rr$summary,function(row)data.frame(metric=row$metric,value=if(is.null(row$value))''else if(is.logical(row$value))as.character(as.integer(row$value))else format(row$value,digits=17,scientific=NA,trim=TRUE),unit=row$unit,defined=as.integer(!is.null(row$value)),stringsAsFactors=FALSE)))\npoints<-do.call(rbind,lapply(rr$points,function(p)data.frame(series=p$series,index=p$index,x=p$x,y=if(is.null(p$y))NA_real_ else p$y,defined=as.integer(!is.null(p$y)),stringsAsFactors=FALSE)))\nwrite.csv(sums,file.path(out,'summary.csv'),row.names=FALSE,na='');write.csv(points,file.path(out,'plot-points.csv'),row.names=FALSE,na='');writeLines(svgPlot(Filter(function(p)!is.null(p$y),rr$points),FIXED$title),file.path(out,'plot.svg'),useBytes=TRUE);cat(FIXED$api,'/',FIXED$variant,'\\n',sep='')\n",
        "returnCode": 0,
        "stdout": "predict/empty-singleton\r\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed ",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/r-predict-empty-singleton-result",
        "kind": null,
        "inputFiles": [],
        "files": [
          {
            "file": "ml20-code/r-predict-empty-singleton-result/full.json",
            "sha256": "a7be537cd2c17ca1020041429d5001e868405519f1380d40ccc733bbff5ba502",
            "bytes": 869
          },
          {
            "file": "ml20-code/r-predict-empty-singleton-result/plot-points.csv",
            "sha256": "3045378030be8d50b4db15e4673786101e97dd5f72557ed21645628c2168c2f8",
            "bytes": 282
          },
          {
            "file": "ml20-code/r-predict-empty-singleton-result/plot.svg",
            "sha256": "c072efbfafbc0124ff6570a09b877511c6281e87dd531dfc502be24193fbdc19",
            "bytes": 2389
          },
          {
            "file": "ml20-code/r-predict-empty-singleton-result/summary.csv",
            "sha256": "43d93a9fb60baf6d6c7ffa7eeb2db01482a714f18b916d7d0f796f7371829e90",
            "bytes": 248
          },
          {
            "file": "ml20-code/r-predict-empty-singleton-result/stdout.txt",
            "sha256": "5bda23713e660689577bb1684bc27b79bb7903c905b3f92a880e25251f51d959",
            "bytes": 25
          },
          {
            "file": "ml20-code/r-predict-empty-singleton-result/stderr.txt",
            "sha256": "b807bd2d0f7060ea384b0ac2317cda2d63a4f59f63b4a901b9e665fead79627d",
            "bytes": 182
          }
        ],
        "summaryRows": [
          {
            "metric": "scoredLabels",
            "value": "3",
            "unit": "labels",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "3",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "coverage",
            "value": "0.333333333",
            "unit": "fraction",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.33333333333333331",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "meanSetSize",
            "value": "0.666666667",
            "unit": "classes",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.66666666666666663",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "meanWidth",
            "value": "undefined",
            "unit": "outcome units",
            "defined": "false",
            "exactFraction": "",
            "rawValue": "",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "thresholdInfinite",
            "value": "0",
            "unit": "mathematical indicator",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          }
        ],
        "plotRows": [
          {
            "series": "predicted center or probability",
            "index": 0,
            "x": "0",
            "y": "0.5",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "observed label or outcome",
            "index": 0,
            "x": "0",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "predicted center or probability",
            "index": 1,
            "x": "1",
            "y": "0.10000000000000001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "observed label or outcome",
            "index": 1,
            "x": "1",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "predicted center or probability",
            "index": 2,
            "x": "2",
            "y": "0.90000000000000002",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "observed label or outcome",
            "index": 2,
            "x": "2",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          }
        ],
        "plotFile": "ml20-code/r-predict-empty-singleton-result/plot.svg",
        "fullResultFile": "ml20-code/r-predict-empty-singleton-result/full.json",
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      },
      "infinite-no-calibration": {
        "api": "predict",
        "variant": "infinite-no-calibration",
        "language": "r",
        "title": "No calibration: unbounded interval, labeled denominator",
        "input": {
          "mode": "regression",
          "scores": [],
          "alpha": "1/5",
          "queries": [
            {
              "center": "0",
              "y": "100"
            },
            {
              "center": "1",
              "y": null
            }
          ]
        },
        "expectedFailure": false,
        "codeFile": "ml20-code/predict-infinite-no-calibration.R",
        "codeSHA256": "7a4b991b2cc9d9e9ed0cabe5b4477bc838b4c1dbcc526e35320e4c8816f70e07",
        "code": "# ML20 complete standalone numerical fixed examples, no browser/model/results.\n# Base-R QR1e-12/membership1e-12; tiny log loss uses log-domain normalized\n# weights to avoid early underflow. This is an approximate counterpart, not\n# a general exact-rational numeric-token validator. Fixed alpha uses small fractions.\noptions(digits=17)\nfixedSource<-function(kind){\n src<-file.path(dirname(sub(\"^--file=\",\"\",grep(\"^--file=\",commandArgs(),value=TRUE)[1])),\"data\")\nreadnative<-function(n)read.csv(file.path(src,n),check.names=FALSE,colClasses='character',na.strings=NULL,stringsAsFactors=FALSE)\nnum<-function(x){a<-suppressWarnings(as.numeric(x));a[x%in%c('','.')] <- NA_real_;a}\nroles<-function(d){n<-nrow(d);rank<-as.integer(d$splitRank);if(!identical(sort(rank),0:(n-1)))stop('splitRank permutation');planned<-c('test','calibration','train','train')[rank%%4+1];if(any(planned!=d$plannedRole))stop('planned roles');list(rank=rank,planned=planned)}\noriginal<-readnative('actual48-country-revised-original-2023-2024.csv');derived<-readnative('derived16-country-features-and-roles.csv');isos<-sort(unique(original$countryISO3));lookup<-function(iso,code,year){r<-original[original$countryISO3==iso&original$indicatorID==code&original$date==year,,drop=FALSE];if(nrow(r)!=1)stop('country identity');num(r$originalValueToken)}\ncr<-roles(derived);if(!identical(isos,derived$countryISO3))stop('country order');country<-list(id=paste0(isos,':2024'),sourceRow=isos,x=cbind(vapply(isos,lookup,numeric(1),code='NY.GDP.PCAP.KD',year='2023')/10000,vapply(isos,lookup,numeric(1),code='FP.CPI.TOTL.ZG',year='2023')/10),y=vapply(isos,lookup,numeric(1),code='NY.GDP.MKTP.KD.ZG',year='2024'),rank=cr$rank,planned=cr$planned,names=c('g','pi'),unit='annual GDP growth percentage points')\npd<-readnative('actual3613-NLS-original52-fields-and-conformal-frame.csv');pr<-roles(pd);person<-list(id=paste0('person-row:',pd$sourceRow),sourceRow=pd$sourceRow,x=cbind(num(pd$ed76),num(pd$age76)),y=num(pd$lwage76),rank=pr$rank,planned=pr$planned,names=c('ed76','age76'),unit='native trimmed1976log hourly wage')\ncd<-readnative('actual3150-churn-original14-fields-and-conformal-frame.csv');rr<-roles(cd);company<-list(id=paste0('customer-row:',cd$sourceRow),sourceRow=cd$sourceRow,x=cbind(num(cd[['Call  Failure']]),num(cd[['Seconds of Use']])),y=num(cd$Churn),rank=rr$rank,planned=rr$planned,names=c('CallFailure','SecondsUse'),unit='native Churn0/1')\nmodels<-list(country=country,person=person,company=company)\n\nmodels<-models[kind]\nalphaToken<-\"1/5\";ridgeToken<-\"1/100\"\nqnum<-function(s){v<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(v)==2)as.numeric(v[1])/as.numeric(v[2])else as.numeric(v)}\nalphaParts<-function(s){v<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(v)==2&&all(grepl('^[0-9]+$',v))){a<-as.numeric(v[1]);b<-as.numeric(v[2])}else if(grepl('^[0-9]+([.][0-9]{1,6})?$',s)){n<-if(grepl('.',s,fixed=TRUE))nchar(sub('^[^.]*[.]','',s))else 0;a<-as.numeric(gsub('.','',s,fixed=TRUE));b<-10^n}else stop('Base-R alpha needs small integer fraction or <=6decimal places');if(a<=0||a>=b||b>1e6)stop('Require0<alpha<1 with denominator<=1e6');c(a,b)}\nap<-alphaParts(alphaToken);alpha<-ap[1]/ap[2];lambda<-qnum(ridgeToken);if(!is.finite(lambda)||lambda<0)stop('nonnegative finite ridge required')\nnamesOut<-c('study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins');outputs<-setNames(lapply(namesOut,function(n)list()),namesOut)\nemit<-function(name,row)outputs[[name]][[length(outputs[[name]])+1L]]<<-row\nmetric<-function(kind,name,value,unit,arithmetic='binary64 approximation'){emit('study-metrics',list(kind=kind,metric=name,value=if(is.null(value))NA else value,unit=unit,defined=as.integer(!is.null(value)&&!is.na(value)),arithmetic=arithmetic))}\nfor(kind in names(models)){\n m<-models[[kind]];complete<-rowSums(is.na(m$x))==0&!is.na(m$y);role<-ifelse(complete,m$planned,'excluded');train<-which(role=='train');n<-length(train);stopifnot(n>0);meanX<-colMeans(m$x[train,,drop=FALSE]);scale<-apply(m$x[train,,drop=FALSE],2,function(x)diff(range(x)));scale[scale==0]<-1;Z<-cbind(1,sweep(sweep(m$x,2,meanX,'-'),2,scale,'/'));H<-crossprod(Z[train,,drop=FALSE])/n+diag(c(0,lambda,lambda));b<-as.vector(crossprod(Z[train,,drop=FALSE],m$y[train]))/n;qrfit<-qr(H,tol=1e-12,LAPACK=FALSE);theta<-qr.coef(qrfit,b);theta[is.na(theta)]<-0;minimum<-as.numeric(crossprod(theta,H%*%theta)/2-sum(theta*b)+sum(m$y[train]^2)/(2*n));beta<-theta[-1]/scale;intercept<-theta[1]-sum(beta*meanX);raw<-as.vector(Z%*%theta);pred<-if(kind=='company')pmax(0,pmin(1,raw))else raw;defined<-!is.na(pred);group<-if(kind=='person')ifelse(m$x[,1]<=12,'schooling-at-most12','schooling-over12')else if(kind=='company')ifelse(m$x[,1]==0,'zero-call-failures','positive-call-failures')else ifelse(m$x[,1]<=meanX[1],'GDPpc-at-most-training-mean','GDPpc-above-training-mean');group[is.na(raw)]<-'missing-X';cal<-which(role=='calibration'&defined&!is.na(m$y));score<-if(kind=='company')ifelse(m$y[cal]==1,1-pred[cal],pred[cal])else abs(m$y[cal]-pred[cal]);ordered<-order(score,seq_along(score));k<-ceiling((length(cal)+1)*(ap[2]-ap[1])/ap[2]);threshold<-if(k<=length(cal))score[ordered[k]]else Inf;unbounded<-is.infinite(threshold)\n for(j in seq_along(ordered)){slot<-ordered[j];i<-cal[slot];emit('calibration-scores',list(kind=kind,rank=j,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,calibrationIndex0=slot-1,score=score[slot],threshold=threshold,thresholdInfinite=as.integer(unbounded)))}\n for(j in 1:2)emit('training-coefficients',list(kind=kind,feature=m$names[j],mean=meanX[j],scale=scale[j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[1],nativeIntercept=intercept,rank=qrfit$rank,unique=as.integer(qrfit$rank==3),lambdaValue=lambda,minimumObjective=minimum))\n metrics<-list(sourceRows=length(role),trainingRows=n,calibrationScores=length(cal),testLabeledRows=sum(role=='test'&!is.na(m$y)),excludedRows=sum(role=='excluded'),alpha=alpha,ridge=lambda,quantileRank=k,threshold=threshold,minimumObjective=minimum);units<-c('rows','rows','unit-count scores','rows','rows','probability','transformed slope penalty','one-based rank',if(kind=='company')'dimensionless score'else m$unit,paste0('(',m$unit,') squared'))\n for(j in seq_along(metrics))metric(kind,names(metrics)[j],metrics[[j]],units[j],if(is.infinite(metrics[[j]]))'mathematical infinity'else if(j%in%c(1:5,8))'integer count'else'binary64 approximation')\n labeled<-defined&!is.na(m$y);covered<-rep(NA_integer_,length(role));lo<-hi<-width<-rep(NA_real_,length(role));setSize<-rep(NA_integer_,length(role));setLabels<-rep('',length(role))\n if(kind=='company'){\n  zero<-defined&(unbounded|pred<=threshold+1e-12);one<-defined&(unbounded|1-pred<=threshold+1e-12);setSize[defined]<-as.integer(zero[defined])+as.integer(one[defined]);setLabels[zero&!one]<-'0';setLabels[!zero&one]<-'1';setLabels[zero&one]<-'0|1';covered[labeled]<-as.integer((m$y[labeled]==0&zero[labeled])|(m$y[labeled]==1&one[labeled]))\n }else{lo[defined]<-pred[defined]-threshold;hi[defined]<-pred[defined]+threshold;width[defined]<-2*threshold;tol<-1e-12*pmax(1,abs(m$y[labeled]),abs(pred[labeled]),if(is.finite(threshold))abs(threshold)else 1);covered[labeled]<-as.integer(unbounded|abs(m$y[labeled]-pred[labeled])<=threshold+tol)}\n for(i in seq_along(role)){\n  emit('row-predictions',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,plannedRole=m$planned[i],role=role[i],group=group[i],actualY=m$y[i],rawLinear=raw[i],prediction=pred[i],predictionDefined=as.integer(defined[i]),threshold=threshold,thresholdInfinite=as.integer(unbounded),lower=lo[i],upper=hi[i],width=width[i],setLabels=setLabels[i],setSize=setSize[i],covered=covered[i],labeledPrediction=as.integer(labeled[i])))\n  emit('eligibility',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],plannedRole=m$planned[i],role=role[i],requiredComplete=as.integer(complete[i]),trainingUsed=as.integer(role[i]=='train'&complete[i]),reason=if(complete[i])''else'missing-required-field'))\n }\n for(rol in unique(role))for(gr in c('all',unique(group))){use<-which(role==rol&(gr=='all'|group==gr));def<-use[defined[use]];scored<-use[labeled[use]&!role[use]%in%c('excluded','unused')];nn<-length(def);ns<-length(scored);cv<-sum(covered[scored]);ub<-if(kind=='company')0 else sum(is.infinite(width[def]));emit('role-group-coverage',list(kind=kind,role=rol,group=gr,originalRows=length(use),definedPredictions=nn,scoredLabels=ns,coveredRows=cv,coverage=if(ns)cv/ns else NA_real_,meanSetSize=if(kind=='company'&&nn)mean(setSize[def])else NA_real_,meanIntervalWidth=if(kind!='company'&&nn)mean(width[def])else NA_real_,unboundedIntervals=ub))}\n if(kind=='company')for(rol in c('train','calibration','test')){\n  ix<-which(role==rol&labeled);pp<-pred[ix];yy<-m$y[ix];N<-length(ix);bin<-pmin(4,floor(pp*5));yb<-if(N)mean(yy)else NA_real_;ece<-rel<-res<-vp<-cp<-0\n  for(j in 0:4){take<-which(bin==j);nb<-length(take);pm<-if(nb)mean(pp[take])else NA_real_;ym<-if(nb)mean(yy[take])else NA_real_;v<-if(nb)mean((pp[take]-pm)^2)else NA_real_;co<-if(nb)mean((pp[take]-pm)*(yy[take]-ym))else NA_real_;emit('reliability-bins',list(kind=kind,role=rol,bin=j,lower=j/5,upper=(j+1)/5,rightClosed=as.integer(j==4),rows=nb,meanP=pm,frequencyY1=ym,gap=pm-ym,withinVarianceP=v,withinCovariancePY=co));if(nb){z<-nb/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*co}}\n  mm<-list(ECE=if(N)ece else NA_real_,Brier=if(N)mean((pp-yy)^2)else NA_real_,uncertainty=yb*(1-yb),resolution=if(N)res else NA_real_,reliability=if(N)rel else NA_real_,withinVarianceP=if(N)vp else NA_real_,withinCovariancePY=if(N)cp else NA_real_);for(name in names(mm))metric(kind,paste0(rol,':',name),mm[[name]],if(name=='ECE')'dimensionless'else'squared probability');prob<-ifelse(yy==1,pp,1-pp);ll<-if(!N)NA_real_ else if(any(prob==0))Inf else-mean(log(prob));metric(kind,paste0(rol,':meanLogLoss'),ll,'nats','binary64 approximation or genuine infinity')\n }\n}\n\noutputs\n}\n\n# New fixed-example numerical adapters. Not arbitrary exact-input validators.\nnum20<-function(v){s<-as.character(v);a<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(a)==2)as.numeric(a[1])/as.numeric(a[2])else as.numeric(s)}\nalpha20<-function(s){a<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(a)==2){n<-as.numeric(a[1]);d<-as.numeric(a[2])}else{n<-as.numeric(a[1]);d<-1};if(n<=0||n>=d)stop('alpha-must-be-strictly-between-zero-and-one');c(n,d)}\nquantile20<-function(scores,alpha){ap<-alpha20(alpha);keep<-which(!vapply(scores,is.null,logical(1)));vv<-vapply(scores[keep],num20,numeric(1));ix<-order(vv,keep);n<-length(vv);k<-((n+1)*(ap[2]-ap[1])+ap[2]-1)%/%ap[2];list(n=n,k=k,threshold=if(k>n)NULL else vv[ix[k]],infinite=k>n,ordered=lapply(ix,function(j)list(score=vv[j],index=keep[j]-1)))}\nlogPositive20<-function(v){s<-tolower(as.character(v));part<-strsplit(s,'e',fixed=TRUE)[[1]];mantissa<-as.numeric(part[1]);power<-if(length(part)==2)as.numeric(part[2])else 0;if(mantissa<=0)stop('fixed positive weight required');log(mantissa)+power*log(10)}\nscore20<-function(rows){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));lw<-vapply(rows,function(r)logPositive20(if(is.null(r$weight))1 else r$weight),numeric(1));mx<-max(lw);lm<-mx+log(sum(exp(lw-mx)));mass<-exp(lm);w<-exp(lw-lm);observed<-ifelse(y==1,p,1-p);genuine<-any(observed==0);loss<-ifelse(observed==1,0,-log(observed));terms<-lw-lm+log(loss);finite<-terms[is.finite(terms)];ll<-if(genuine)'+infinity'else if(length(finite)){top<-max(finite);exp(top+log(sum(exp(finite-top))))}else 0;bs<-sum(w*(p-y)^2);list(rows=lapply(seq_along(rows),function(i)list(p=p[i],y=y[i],w=w[i])),mass=mass,Brier=bs,meanLogLoss=ll,genuineInfinite=genuine,BrierPositive=any(p!=y))}\ncalibration20<-function(rows,B){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));N<-length(p);bin<-pmin(B-1,floor(p*B));yb<-mean(y);ece<-rel<-res<-vp<-cp<-0;out<-list()\n for(j in 0:(B-1)){ix<-which(bin==j);n<-length(ix);pm<-if(n)mean(p[ix])else NULL;ym<-if(n)mean(y[ix])else NULL;v<-if(n)mean((p[ix]-pm)^2)else NULL;c<-if(n)mean((p[ix]-pm)*(y[ix]-ym))else NULL;out[[j+1]]<-list(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c);if(n){z<-n/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*c}}\n list(rows=N,bins=out,Brier=mean((p-y)^2),ECE=ece,uncertainty=yb*(1-yb),resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=yb*(1-yb)-res+rel+vp-2*cp)}\npredict20<-function(a){q<-quantile20(a$scores,a$alpha);classification<-a$mode=='classification';rows<-list()\n for(i in seq_along(a$queries)){r<-a$queries[[i]];p<-num20(if(classification)r$p else r$center);y<-if(is.null(r$y))NULL else num20(r$y)\n  if(classification){labels<-if(q$infinite)0:1 else which(c(p,1-p)<=q$threshold)-1;lo<-hi<-width<-NULL;size<-length(labels);covered<-if(is.null(y))NULL else as.integer(y%in%labels)}else{labels<-NULL;size<-NULL;lo<-if(q$infinite)'-infinity'else p-q$threshold;hi<-if(q$infinite)'+infinity'else p+q$threshold;width<-if(q$infinite)'+infinity'else 2*q$threshold;covered<-if(is.null(y))NULL else as.integer(q$infinite||abs(y-p)<=q$threshold+1e-12)}\n  rows[[i]]<-list(id=if(is.null(r$id))as.character(i-1)else r$id,prediction=p,actualY=y,labels=as.list(labels),size=size,lower=lo,upper=hi,width=width,covered=covered)\n };scored<-Filter(function(r)!is.null(r$covered),rows);coverage<-if(length(scored))mean(vapply(scored,`[[`,numeric(1),'covered'))else NULL;list(quantile=q,rows=rows,scoredLabels=length(scored),coverage=coverage,meanSetSize=if(classification&&length(rows))mean(vapply(rows,`[[`,numeric(1),'size'))else NULL,meanWidth=if(!classification&&length(rows))if(q$infinite)'+infinity'else 2*q$threshold else NULL)}\nranklaw20<-function(a){v<-vapply(a$scores,num20,numeric(1));trials<-lapply(seq_along(v),function(i){q<-quantile20(as.list(v[-i]),a$alpha);list(heldout=i-1,score=v[i],k=q$k,threshold=q$threshold,infinite=q$infinite,covered=as.integer(q$infinite||v[i]<=q$threshold))});list(N=length(v),distinct=length(unique(v))==length(v),trials=trials,coverage=mean(vapply(trials,`[[`,numeric(1),'covered')))}\nfixedOperation<-function(api,a)switch(api,score=score20(a$rows),calibration=calibration20(a$rows,a$bins),quantile=quantile20(a$scores,a$alpha),predict=predict20(a),ranklaw=ranklaw20(a),realdata=fixedSource(a$kind))\nreportValues<-function(api,z){summary<-list();points<-list();add<-function(k,v,u)summary[[length(summary)+1]]<<-list(metric=k,value=if(is.null(v)||length(v)==0||anyNA(v))NULL else unname(v),unit=u);pt<-function(s,i,x,y)points[[length(points)+1]]<<-list(series=s,index=i,x=x,y=y)\n if(api=='score'){for(k in c('mass','Brier','meanLogLoss','genuineInfinite','BrierPositive'))add(k,z[[k]],switch(k,mass='analysis weight',Brier='squared probability',meanLogLoss='nats; numerical logarithm',genuineInfinite='indicator',BrierPositive='mathematical indicator'));for(i in seq_along(z$rows)){r<-z$rows[[i]];pt('squared error',i-1,i-1,(r$p-r$y)^2)}\n }else if(api=='calibration'){for(k in c('Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity'))add(k,z[[k]],if(k=='ECE')'probability'else'squared probability');for(r in z$bins){pt('bin probability',r$bin,r$bin,r$meanP);pt('bin outcome frequency',r$bin,r$bin,r$frequency)}\n }else if(api=='quantile'){add('n',z$n,'scores');add('k',z$k,'one-based rank');add('infinite',z$infinite,'mathematical indicator');add('threshold',if(z$infinite)'+infinity'else z$threshold,'score units');for(i in seq_along(z$ordered))pt('sorted score',i-1,i,z$ordered[[i]]$score)\n }else if(api=='predict'){for(k in c('scoredLabels','coverage','meanSetSize','meanWidth'))add(k,z[[k]],switch(k,scoredLabels='labels',coverage='fraction',meanSetSize='classes',meanWidth='outcome units'));add('thresholdInfinite',z$quantile$infinite,'mathematical indicator');for(i in seq_along(z$rows)){pt('predicted center or probability',i-1,i-1,z$rows[[i]]$prediction);pt('observed label or outcome',i-1,i-1,z$rows[[i]]$actualY)}\n }else if(api=='ranklaw'){add('N',z$N,'scores');add('distinct',z$distinct,'indicator');add('coverage',z$coverage,'fraction');for(r in z$trials)pt('held-out coverage',r$heldout,r$heldout,r$covered)\n }else{for(k in c('sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold')){r<-Filter(function(r)r$metric==k,z[['study-metrics']])[[1]];add(k,r$value,r$unit)};cv<-Filter(function(r)r$role=='test'&&r$group=='all',z[['role-group-coverage']])[[1]];for(k in c('coverage','meanSetSize','meanIntervalWidth'))add(k,cv[[k]],switch(k,coverage='fraction',meanSetSize='classes',meanIntervalWidth='outcome units'));for(i in seq_along(z[['calibration-scores']])){r<-z[['calibration-scores']][[i]];pt('all calibration scores',i-1,r$rank,r$score)}}\n list(summary=summary,points=points)}\n\nescapeXML<-function(s){s<-gsub('&','&amp;',s,fixed=TRUE);s<-gsub('<','&lt;',s,fixed=TRUE);s<-gsub('>','&gt;',s,fixed=TRUE);gsub('\"','&quot;',s,fixed=TRUE)}\nsvgPlot<-function(pp,title){\n xx<-vapply(pp,function(p)as.numeric(p$x),numeric(1));yy<-vapply(pp,function(p)as.numeric(p$y),numeric(1));xmin<-if(length(xx))min(xx)else 0;xmax<-if(length(xx))max(xx)else 1;ymin<-min(c(0,yy));ymax<-max(c(0,yy));if(xmin==xmax){xmin<-xmin-.5;xmax<-xmax+.5};if(ymin==ymax){ymin<-ymin-.5;ymax<-ymax+.5};pad<-(ymax-ymin)*.08;ymin<-ymin-pad;ymax<-ymax+pad;X<-function(x)82+(as.numeric(x)-xmin)/(xmax-xmin)*608;Y<-function(y)354-(as.numeric(y)-ymin)/(ymax-ymin)*290\n out<-paste0('<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"',escapeXML(title),'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">',escapeXML(title),'</text>')\n for(j in 0:4){y<-ymin+(ymax-ymin)*j/4;x<-xmin+(xmax-xmin)*j/4;out<-paste0(out,'<line x1=\"82\" y1=\"',Y(y),'\" x2=\"690\" y2=\"',Y(y),'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"',Y(y)+4,'\" text-anchor=\"end\">',sprintf('%.3g',y),'</text><text x=\"',X(x),'\" y=\"380\" text-anchor=\"middle\">',sprintf('%.3g',x),'</text>')}\n ss<-unique(vapply(pp,`[[`,character(1),'series'));cols<-c('#0f766e','#c76622','#4f46e5','#b23857')\n for(j in seq_along(ss)){rr<-Filter(function(p)p$series==ss[j],pp);xy<-vapply(rr,function(p)sprintf('%.6f,%.6f',X(p$x),Y(p$y)),character(1));col<-cols[(j-1)%%4+1];out<-paste0(out,'<polyline fill=\"none\" stroke=\"',col,'\" stroke-width=\"1.5\" points=\"',paste(xy,collapse=' '),'\"/>');for(p in rr)out<-paste0(out,'<circle cx=\"',sprintf('%.6f',X(p$x)),'\" cy=\"',sprintf('%.6f',Y(p$y)),'\" r=\"2.6\" fill=\"',col,'\"><title>',escapeXML(ss[j]),': ',escapeXML(p$y),'</title></circle>');out<-paste0(out,'<text x=\"',82+((j-1)%%2)*310,'\" y=\"',432+floor((j-1)/2)*23,'\" fill=\"',col,'\">',escapeXML(ss[j]),'</text>')}\n paste0(out,'<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>')\n}\n\ntoJSON<-function(x){\n if(is.null(x))return('null');if(is.list(x)){v<-vapply(x,toJSON,character(1));if(!is.null(names(x)))paste0('{',paste(paste0(vapply(names(x),toJSON,character(1)),':',v),collapse=','),'}')else paste0('[',paste(v,collapse=','),']')}\n else if(length(x)!=1){if(!is.null(names(x)))toJSON(as.list(x))else paste0('[',paste(vapply(as.list(x),toJSON,character(1)),collapse=','),']')}\n else if(is.na(x))'null'else if(is.logical(x))if(x)'true'else'false'else if(is.numeric(x))if(is.finite(x))sprintf('%.17g',x)else'null'else paste0('\"',gsub('\\n','\\\\n',gsub('\"','\\\\\"',gsub('\\\\','\\\\\\\\',x,fixed=TRUE),fixed=TRUE),fixed=TRUE),'\"')\n}\n\nFIXED<-list(\"api\"=\"predict\",\"variant\"=\"infinite-no-calibration\",\"title\"=\"No calibration: unbounded interval, labeled denominator\",\"input\"=list(\"mode\"=\"regression\",\"scores\"=list(),\"alpha\"=\"1/5\",\"queries\"=list(list(\"center\"=\"0\",\"y\"=\"100\"),list(\"center\"=\"1\",\"y\"=NULL))),\"expectedFailure\"=FALSE)\n\nargs<-commandArgs(trailingOnly=TRUE);out<-if(length(args))args[1]else stop('NEW output directory required');if(dir.exists(out))stop('Preserve previous output directory');dir.create(out,recursive=TRUE)\nz<-fixedOperation(FIXED$api,FIXED$input);rr<-reportValues(FIXED$api,z)\nwriteLines(toJSON(list(arithmetic='BaseR numerical counterpart; QR and membership1e-12, log-domain tiny weights; source splitRank read from factualCSV',result=z)),file.path(out,'full.json'),useBytes=TRUE)\nsums<-do.call(rbind,lapply(rr$summary,function(row)data.frame(metric=row$metric,value=if(is.null(row$value))''else if(is.logical(row$value))as.character(as.integer(row$value))else format(row$value,digits=17,scientific=NA,trim=TRUE),unit=row$unit,defined=as.integer(!is.null(row$value)),stringsAsFactors=FALSE)))\npoints<-do.call(rbind,lapply(rr$points,function(p)data.frame(series=p$series,index=p$index,x=p$x,y=if(is.null(p$y))NA_real_ else p$y,defined=as.integer(!is.null(p$y)),stringsAsFactors=FALSE)))\nwrite.csv(sums,file.path(out,'summary.csv'),row.names=FALSE,na='');write.csv(points,file.path(out,'plot-points.csv'),row.names=FALSE,na='');writeLines(svgPlot(Filter(function(p)!is.null(p$y),rr$points),FIXED$title),file.path(out,'plot.svg'),useBytes=TRUE);cat(FIXED$api,'/',FIXED$variant,'\\n',sep='')\n",
        "returnCode": 0,
        "stdout": "predict/infinite-no-calibration\r\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed ",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/r-predict-infinite-no-calibration-result",
        "kind": null,
        "inputFiles": [],
        "files": [
          {
            "file": "ml20-code/r-predict-infinite-no-calibration-result/full.json",
            "sha256": "3622a6ba9665bd97b10382d604b1950b722ccdd6e05937523008553231c0638d",
            "bytes": 574
          },
          {
            "file": "ml20-code/r-predict-infinite-no-calibration-result/plot-points.csv",
            "sha256": "b9d13cbf31179f725ad1e5c1720730dddacf6e0dad25987b530ffe66d13ac7cc",
            "bytes": 197
          },
          {
            "file": "ml20-code/r-predict-infinite-no-calibration-result/plot.svg",
            "sha256": "dd71d12423e984d0baa363207db09abf8999a00e025e5236fb31c07e5884c08b",
            "bytes": 1997
          },
          {
            "file": "ml20-code/r-predict-infinite-no-calibration-result/summary.csv",
            "sha256": "eb6ca555137eab100893403be254299dae55f9dd8150c641802e984dd8083867",
            "bytes": 220
          },
          {
            "file": "ml20-code/r-predict-infinite-no-calibration-result/stdout.txt",
            "sha256": "8b89717e01c39fe5f02357541d8c5061ce9396eefc2b145b3763f41a826347c7",
            "bytes": 33
          },
          {
            "file": "ml20-code/r-predict-infinite-no-calibration-result/stderr.txt",
            "sha256": "b807bd2d0f7060ea384b0ac2317cda2d63a4f59f63b4a901b9e665fead79627d",
            "bytes": 182
          }
        ],
        "summaryRows": [
          {
            "metric": "scoredLabels",
            "value": "1",
            "unit": "labels",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "1",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "coverage",
            "value": "1",
            "unit": "fraction",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "1",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "meanSetSize",
            "value": "undefined",
            "unit": "classes",
            "defined": "false",
            "exactFraction": "",
            "rawValue": "",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "meanWidth",
            "value": "+infinity",
            "unit": "outcome units",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "+infinity",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": true,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "thresholdInfinite",
            "value": "1",
            "unit": "mathematical indicator",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "1",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          }
        ],
        "plotRows": [
          {
            "series": "predicted center or probability",
            "index": 0,
            "x": "0",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "observed label or outcome",
            "index": 0,
            "x": "0",
            "y": "100",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "predicted center or probability",
            "index": 1,
            "x": "1",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "observed label or outcome",
            "index": 1,
            "x": "1",
            "y": "",
            "defined": false,
            "xExact": "",
            "yExact": ""
          }
        ],
        "plotFile": "ml20-code/r-predict-infinite-no-calibration-result/plot.svg",
        "fullResultFile": "ml20-code/r-predict-infinite-no-calibration-result/full.json",
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      }
    }
  },
  "ranklaw": {
    "python": {
      "distinct-four": {
        "api": "ranklaw",
        "variant": "distinct-four",
        "language": "python",
        "title": "Uniform held-out index with four distinct scores",
        "input": {
          "scores": [
            "1",
            "2",
            "3",
            "4"
          ],
          "alpha": "1/4"
        },
        "expectedFailure": false,
        "codeFile": "ml20-code/ranklaw-distinct-four.py",
        "codeSHA256": "03b06107820a695b22ee75373bc73d5439854c15e945ae5aec1fa101446aaf48",
        "code": "\"\"\"ML20 standalone fixed example, not an arbitrary-input validator.\nFinite Python Fraction algebra; natural logs use Decimal1800 approximation\nthen a final binary64 display projection. Realdata reads4factual CSVs only,\nreusing the frozen public reader/fit implementation by value; all other inputs\nare complete fixed literals. No engine/model/computed/checker imported.\nRun: python this-file.py NEW-OUTPUT\n\"\"\"\nfrom pathlib import Path\nimport csv,json,hashlib,sys,math,html\nif hasattr(sys,'set_int_max_str_digits'):sys.set_int_max_str_digits(100000)\n\"\"\"Owned standalone exact finite optimization primitives for ML19 public programs.\nThis is an author implementation, never an independent numerical oracle.\n\"\"\"\nfrom fractions import Fraction as Q\ndef number(v):return v if isinstance(v,Q)else Q(str(v))\ndef dot(a,b):return sum((x*y for x,y in zip(a,b)),Q(0))\ndef frame(rows,p=2,scale='range'):\n rr=[]\n for i,r in enumerate(rows):\n  x=[None if v is None else number(v)for v in r['x']];y=None if r['y']is None else number(r['y']);w=number(r.get('weight',1));role=r.get('role','train');rr.append(dict(id=r.get('id','row:'+str(i+1)),index=i,x=x,y=y,w=w,role=role,eligible=y is not None and all(v is not None for v in x)and w>0))\n train=[r for r in rr if r['role']=='train'and r['eligible']];W=sum((r['w']for r in train),Q(0))\n if not W:return dict(defined=False,p=p,rows=rr,train=[],W=W)\n mean=[sum(r['w']*r['x'][j]for r in train)/W for j in range(p)];ranges=[max(r['x'][j]for r in train)-min(r['x'][j]for r in train)or Q(1)for j in range(p)];scales=ranges if scale=='range'else[Q(1)]*p\n for r in rr:r['z']=None if None in r['x']else[Q(1)]+[(r['x'][j]-mean[j])/scales[j]for j in range(p)]\n return dict(defined=True,p=p,rows=rr,train=train,W=W,mean=mean,ranges=ranges,scales=scales,meanY=sum(r['w']*r['y']for r in train)/W)\ndef quadratic(f,lam=Q(0),role='train'):\n rr=[r for r in f['rows']if r['role']==role and r['eligible']];W=sum((r['w']for r in rr),Q(0));n=f['p']+1\n if not W:return None\n H=[[sum(r['w']*r['z'][j]*r['z'][k]for r in rr)/W+(lam if j==k and j else 0)for k in range(n)]for j in range(n)];b=[sum(r['w']*r['y']*r['z'][j]for r in rr)/W for j in range(n)];d=sum(r['w']*r['y']**2 for r in rr)/(2*W);return H,b,d\ndef state(q,theta):\n H,b,d=q;gradient=[dot(row,theta)-bb for row,bb in zip(H,b)];return dict(theta=theta,objective=dot(theta,[dot(row,theta)for row in H])/2-dot(theta,b)+d,gradient=gradient,gradientNormSquared=dot(gradient,gradient))\ndef solve(H,b):\n n=len(b);A=[row[:]+[bb]for row,bb in zip(H,b)];piv=[];row=0\n for j in range(n):\n  k=next((i for i in range(row,n)if A[i][j]),None)\n  if k is None:continue\n  A[row],A[k]=A[k],A[row];z=A[row][j];A[row]=[v/z for v in A[row]]\n  for i in range(n):\n   if i!=row:\n    z=A[i][j];A[i]=[v-z*u for v,u in zip(A[i],A[row])]\n  piv.append(j);row+=1\n  if row==n:break\n assert not any(not any(r[:n])and r[n]for r in A)\n beta=[Q(0)]*n\n for i,j in enumerate(piv):beta[j]=A[i][n]\n nullspace=[]\n for j in range(n):\n  if j not in piv:\n   v=[Q(0)]*n;v[j]=Q(1)\n   for i,k in enumerate(piv):v[k]=-A[i][j]\n   nullspace.append(v)\n return dict(rank=len(piv),particular=beta,nullspace=nullspace,unique=len(piv)==n)\n\n\ndef fixed_source(kind):\n SRC=Path(__file__).resolve().parent/\"data\"\n read=lambda n:list(csv.DictReader((SRC/n).open(encoding='utf8',newline='')))\n def native(v):return None if v in['','.']else v\n\n models={};original=read('actual48-country-revised-original-2023-2024.csv');lookup={(r['countryISO3'],r['indicatorID'],r['date']):r for r in original};rows=[]\n for iso in sorted({r['countryISO3']for r in original}):\n  g=lookup[iso,'NY.GDP.PCAP.KD','2023'];p=lookup[iso,'FP.CPI.TOTL.ZG','2023'];y=lookup[iso,'NY.GDP.MKTP.KD.ZG','2024'];rows.append(dict(id=iso+':2024',x=[None if not g['originalValueToken']else str(number(g['originalValueToken'])/10000),None if not p['originalValueToken']else str(number(p['originalValueToken'])/10)],y=native(y['originalValueToken']),sourceRow=iso))\n models['country']=dict(rows=rows,names=['g','pi'],unit='annual GDP growth percentage points')\n for kind,file,keys,ykey,ID in [('person','actual3613-NLS-original52-fields-and-conformal-frame.csv',['ed76','age76'],'lwage76','person-row:'),('company','actual3150-churn-original14-fields-and-conformal-frame.csv',['Call  Failure','Seconds of Use'],'Churn','customer-row:')]:\n  source=read(file);models[kind]=dict(rows=[dict(id=ID+r['sourceRow'],sourceRow=r['sourceRow'],x=[native(r[k])for k in keys],y=native(r[ykey]))for r in source],names=['ed76','age76']if kind=='person'else['CallFailure','SecondsUse'],unit='native trimmed1976log hourly wage'if kind=='person'else'native Churn0/1')\n for kind,m in models.items():\n  for rank,r in enumerate(sorted(m['rows'],key=lambda r:(hashlib.sha256(('ML20|'+kind+'|'+r['id']).encode()).digest(),r['id']))):r.update(splitRank=rank,plannedRole=['test','calibration','train','train'][rank%4]);r['role']=r['plannedRole']if r['y']is not None and None not in r['x']else'excluded';r['weight']='1'\n  m['trainingIDs']=[r['id']for r in sorted(m['rows'],key=lambda r:r['splitRank'])if r['role']=='train']\n\n models={kind:models[kind]}\n # New public actual-source study; exact finite Fraction fit/rank/membership.\n # Default single declared model, not a hyperparameter Cartesian dump.\n from decimal import Decimal,localcontext\n from collections import Counter\n outputs={k:[]for k in['study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins']}\n alpha=number('1/5');lam=number('1/100')\n if not 0<alpha<1 or lam<0:raise ValueError('Require0<alpha<1 and nonnegative ridge')\n def metric(kind,name,value,unit,arithmetic='exact rational'):\n  outputs['study-metrics'].append(dict(kind=kind,metric=name,value=''if value is None else value,unit=unit,defined=int(value is not None),arithmetic=arithmetic))\n def bins(rr,B=5):\n  groups=[[]for _ in range(B)]\n  for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n  n=len(rr);yb=sum((r['y']for r in rr),Q(0))/n if n else None;ece=rel=res=var=cov=Q(0);result=[]\n  for j,gg in enumerate(groups):\n   nn=len(gg);pm=sum((r['p']for r in gg),Q(0))/nn if nn else None;ym=sum((r['y']for r in gg),Q(0))/nn if nn else None;v=sum(((r['p']-pm)**2 for r in gg),Q(0))/nn if nn else None;co=sum(((r['p']-pm)*(r['y']-ym)for r in gg),Q(0))/nn if nn else None\n   result.append(dict(bin=j,lower=Q(j,B),upper=Q(j+1,B),rightClosed=int(j==B-1),rows=nn,meanP=pm,frequencyY1=ym,gap=None if not nn else pm-ym,withinVarianceP=v,withinCovariancePY=co))\n   if nn:weight=Q(nn,n);ece+=weight*abs(pm-ym);rel+=weight*(pm-ym)**2;res+=weight*(ym-yb)**2;var+=weight*v;cov+=weight*co\n  return result,dict(ECE=ece if n else None,Brier=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/n if n else None,uncertainty=yb*(1-yb)if n else None,resolution=res if n else None,reliability=rel if n else None,withinVarianceP=var if n else None,withinCovariancePY=cov if n else None)\n def meanlog(rr):\n  if not rr:return None\n  pp=[r['p']if r['y']else 1-r['p']for r in rr]\n  if any(not p for p in pp):return'+infinity'\n  with localcontext()as ctx:\n   ctx.prec=60;return str(-sum(((Decimal(p.numerator)/Decimal(p.denominator)).ln()for p in pp),Decimal(0))/len(pp))\n for kind,m in models.items():\n  f=frame(m['rows']);n=len(f['train']);assert n>0;H,b,d=quadratic(f,lam);fit=solve(H,b);theta=fit['particular'];minimum=state((H,b,d),theta)['objective'];beta=[theta[j+1]/f['scales'][j]for j in range(2)];intercept=theta[0]-dot(beta,f['mean']);rr=[]\n  for r in f['rows']:\n   native=m['rows'][r['index']];raw=None if r['z']is None else dot(r['z'],theta);pred=None if raw is None else max(Q(0),min(Q(1),raw))if kind=='company'else raw;group='missing-X'if r['z']is None else('schooling-at-most12'if r['x'][0]<=12 else'schooling-over12')if kind=='person'else('zero-call-failures'if r['x'][0]==0 else'positive-call-failures')if kind=='company'else('GDPpc-at-most-training-mean'if r['x'][0]<=f['mean'][0]else'GDPpc-above-training-mean');rr.append(dict(id=r['id'],sourceRow=native['sourceRow'],sourceIndex0=r['index'],plannedRole=native['plannedRole'],role=r['role'],group=group,y=r['y'],raw=raw,prediction=pred,eligible=r['eligible']))\n  cal=[r for r in rr if r['role']=='calibration'and r['prediction']is not None and r['y']is not None]\n  for i,r in enumerate(cal):r['calibrationIndex0']=i;r['score']=(1-r['prediction']if r['y']else r['prediction'])if kind=='company'else abs(r['y']-r['prediction'])\n  ordered=sorted(cal,key=lambda r:(r['score'],r['calibrationIndex0']));rankQ=(len(cal)+1)*(1-alpha);k=(rankQ.numerator+rankQ.denominator-1)//rankQ.denominator;threshold=ordered[k-1]['score']if k<=len(cal)else None;unbounded=threshold is None\n  for j,r in enumerate(ordered,1):outputs['calibration-scores'].append(dict(kind=kind,rank=j,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],calibrationIndex0=r['calibrationIndex0'],score=r['score'],threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded)))\n  for j,name in enumerate(m['names']):outputs['training-coefficients'].append(dict(kind=kind,feature=name,mean=f['mean'][j],scale=f['scales'][j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[0],nativeIntercept=intercept,rank=fit['rank'],unique=int(fit['unique']),lambdaValue=lam,minimumObjective=minimum))\n  for name,value,unit in[('sourceRows',len(rr),'rows'),('trainingRows',n,'rows'),('calibrationScores',len(cal),'unit-count scores'),('testLabeledRows',sum(r['role']=='test'and r['y']is not None for r in rr),'rows'),('excludedRows',sum(r['role']=='excluded'for r in rr),'rows'),('alpha',alpha,'probability'),('ridge',lam,'transformed slope penalty'),('quantileRank',k,'one-based rank'),('threshold','+infinity'if unbounded else threshold,'dimensionless score'if kind=='company'else m['unit']),('minimumObjective',minimum,'('+m['unit']+') squared')]:metric(kind,name,value,unit,'mathematical infinity'if value=='+infinity'else'exact rational')\n  for r in rr:\n   defined=r['prediction']is not None;labeled=defined and r['y']is not None\n   if not defined:lo=hi=width=size=None;labels='';covered=None\n   elif kind=='company':\n    labelsList=[j for j,s in enumerate([r['prediction'],1-r['prediction']])if unbounded or s<=threshold];labels='|'.join(map(str,labelsList));size=len(labelsList);lo=hi=width=None;covered=int(int(r['y'])in labelsList)if labeled else None\n   else:lo='-infinity'if unbounded else r['prediction']-threshold;hi='+infinity'if unbounded else r['prediction']+threshold;width='+infinity'if unbounded else 2*threshold;labels='';size=None;covered=int(unbounded or abs(r['y']-r['prediction'])<=threshold)if labeled else None\n   r.update(defined=defined,labeled=labeled,lower=lo,upper=hi,width=width,labels=labels,size=size,covered=covered)\n   outputs['row-predictions'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],plannedRole=r['plannedRole'],role=r['role'],group=r['group'],actualY=r['y'],rawLinear=r['raw'],prediction=r['prediction'],predictionDefined=int(defined),threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded),lower=lo,upper=hi,width=width,setLabels=labels,setSize=size,covered=covered,labeledPrediction=int(labeled)))\n   outputs['eligibility'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],plannedRole=r['plannedRole'],role=r['role'],requiredComplete=int(r['eligible']),trainingUsed=int(r['role']=='train'and r['eligible']),reason='missing-required-field'if not r['eligible']else''))\n  roles=list(dict.fromkeys(r['role']for r in rr));groups=list(dict.fromkeys(r['group']for r in rr))\n  for role in roles:\n   for group in['all']+groups:\n    use=[r for r in rr if r['role']==role and(group=='all'or r['group']==group)];defined=[r for r in use if r['defined']];scored=[r for r in use if r['labeled']and role not in['excluded','unused']];covered=sum(r['covered']for r in scored);nn=len(defined);nscore=len(scored);unboundedCount=sum(r['width']=='+infinity'for r in defined);size=Q(sum(r['size']for r in defined),nn)if kind=='company'and nn else None;width=('+infinity'if unboundedCount else sum(r['width']for r in defined)/nn)if kind!='company'and nn else None\n    outputs['role-group-coverage'].append(dict(kind=kind,role=role,group=group,originalRows=len(use),definedPredictions=nn,scoredLabels=nscore,coveredRows=covered,coverage=Q(covered,nscore)if nscore else None,meanSetSize=size,meanIntervalWidth=width,unboundedIntervals=unboundedCount))\n  if kind=='company':\n   for role in['train','calibration','test']:\n    use=[dict(p=r['prediction'],y=r['y'])for r in rr if r['role']==role and r['labeled']];bb,mm=bins(use)\n    for row in bb:outputs['reliability-bins'].append(dict(kind=kind,role=role,**row))\n    for name,value in mm.items():metric(kind,role+':'+name,value,'dimensionless'if name=='ECE'else'squared probability')\n    metric(kind,role+':meanLogLoss',meanlog(use),'nats','Decimal60 approximation or genuine infinity')\n return outputs\n\n# Owned ML20 fixed-example adapters. Finite rational calculations; logs approximate.\nfrom fractions import Fraction as Q\nfrom decimal import Decimal,localcontext\nimport math\ndef num(v):return v if isinstance(v,Q)else Q(str(v))\ndef ceilq(q):return-((-q.numerator)//q.denominator)\ndef fixed_quantile(scores,alpha):\n a=num(alpha)\n if not 0<a<1:raise ValueError('alpha-must-be-strictly-between-zero-and-one')\n ordered=sorted([(num(v),i)for i,v in enumerate(scores)if v is not None]);n=len(ordered);k=ceilq((n+1)*(1-a));q=None if k>n else ordered[k-1][0]\n return dict(n=n,k=k,threshold=q,infinite=q is None,ordered=ordered)\ndef fixed_score(rows):\n rr=[dict(p=num(r['p']),y=num(r['y']),w=num(r.get('weight',1)))for r in rows];rr=[r for r in rr if r['w']>0];mass=sum((r['w']for r in rr),Q(0));brier=sum((r['w']*(r['p']-r['y'])**2 for r in rr),Q(0))/mass if mass else None;logs=[];genuine=False\n with localcontext()as ctx:\n  ctx.prec=1800\n  total=Decimal(0)\n  for r in rr:\n   p=r['p']if r['y']else 1-r['p']\n   if not p:genuine=True;logs.append('+infinity');continue\n   loss=-(Decimal(p.numerator)/Decimal(p.denominator)).ln();logs.append(str(loss));w=r['w']/mass;total+=Decimal(w.numerator)/Decimal(w.denominator)*loss\n  display='+infinity'if genuine else None if not mass else repr(float(total));raw='+infinity'if genuine else None if not mass else str(total)\n return dict(rows=rr,mass=mass,Brier=brier,meanLogLoss=display,naturalLogApprox1800=raw,individualLogLoss=logs,genuineInfinite=genuine,BrierPositive=brier is not None and brier>0)\ndef fixed_calibration(rows,B):\n rr=[dict(p=num(r['p']),y=num(r['y']))for r in rows];N=len(rr);yb=sum((r['y']for r in rr),Q(0))/N;groups=[[]for _ in range(B)]\n for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n result=[];ece=rel=res=vp=cp=Q(0)\n for j,g in enumerate(groups):\n  n=len(g);pm=sum((r['p']for r in g),Q(0))/n if n else None;ym=sum((r['y']for r in g),Q(0))/n if n else None;v=sum(((r['p']-pm)**2 for r in g),Q(0))/n if n else None;c=sum(((r['p']-pm)*(r['y']-ym)for r in g),Q(0))/n if n else None;result.append(dict(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c))\n  if n:z=Q(n,N);ece+=z*abs(pm-ym);rel+=z*(pm-ym)**2;res+=z*(ym-yb)**2;vp+=z*v;cp+=z*c\n bs=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/N;u=yb*(1-yb)\n return dict(rows=N,bins=result,Brier=bs,ECE=ece,uncertainty=u,resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=u-res+rel+vp-2*cp)\ndef fixed_predict(a):\n q=fixed_quantile(a['scores'],a['alpha']);out=[];classification=a['mode']=='classification'\n for i,row in enumerate(a['queries']):\n  p=num(row['p']if classification else row['center']);y=None if row.get('y')is None else num(row['y']);threshold=q['threshold'];unbounded=q['infinite']\n  if classification:labels=[v for v,s in[(0,p),(1,1-p)]if unbounded or s<=threshold];lo=hi=width=None;size=len(labels);covered=None if y is None else int(int(y)in labels)\n  else:labels=None;size=None;lo='-infinity'if unbounded else p-threshold;hi='+infinity'if unbounded else p+threshold;width='+infinity'if unbounded else 2*threshold;covered=None if y is None else int(unbounded or abs(y-p)<=threshold)\n  out.append(dict(id=row.get('id',str(i)),prediction=p,actualY=y,labels=labels,size=size,lower=lo,upper=hi,width=width,covered=covered))\n scored=[r for r in out if r['covered']is not None];coverage=Q(sum(r['covered']for r in scored),len(scored))if scored else None;meanSize=Q(sum(r['size']for r in out),len(out))if classification and out else None;meanWidth=('+infinity'if q['infinite']else 2*q['threshold'])if not classification and out else None\n return dict(quantile=q,rows=out,scoredLabels=len(scored),coverage=coverage,meanSetSize=meanSize,meanWidth=meanWidth)\ndef fixed_ranklaw(a):\n scores=list(map(num,a['scores']));trials=[]\n for i,y in enumerate(scores):q=fixed_quantile(scores[:i]+scores[i+1:],a['alpha']);trials.append(dict(heldout=i,score=y,k=q['k'],threshold=q['threshold'],infinite=q['infinite'],covered=int(q['infinite']or y<=q['threshold'])))\n return dict(N=len(scores),distinct=len(set(scores))==len(scores),trials=trials,coverage=Q(sum(t['covered']for t in trials),len(trials)))\ndef fixed_operation(api,a):\n return fixed_score(a['rows'])if api=='score'else fixed_calibration(a['rows'],a['bins'])if api=='calibration'else fixed_quantile(a['scores'],a['alpha'])if api=='quantile'else fixed_predict(a)if api=='predict'else fixed_ranklaw(a)if api=='ranklaw'else fixed_source(a['kind'])\ndef report_values(api,z):\n summary=[];series=[]\n def add(k,v,u):summary.append((k,v,u))\n if api=='score':\n  for k,u in[('mass','analysis weight'),('Brier','squared probability'),('meanLogLoss','nats; numerical logarithm'),('genuineInfinite','indicator'),('BrierPositive','mathematical indicator')]:add(k,z[k],u)\n  series=[('squared error',[(i,(r['p']-r['y'])**2)for i,r in enumerate(z['rows'])])]\n elif api=='calibration':\n  for k in['Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity']:add(k,z[k],'probability'if k=='ECE'else'squared probability')\n  series=[('bin probability',[(r['bin'],r['meanP'])for r in z['bins']]),('bin outcome frequency',[(r['bin'],r['frequency'])for r in z['bins']])]\n elif api=='quantile':\n  for k,u in[('n','scores'),('k','one-based rank'),('infinite','mathematical indicator')]:add(k,z[k],u)\n  add('threshold','+infinity'if z['infinite']else z['threshold'],'score units');series=[('sorted score',[(i+1,v)for i,(v,index)in enumerate(z['ordered'])])]\n elif api=='predict':\n  for k,u in[('scoredLabels','labels'),('coverage','fraction'),('meanSetSize','classes'),('meanWidth','outcome units')]:add(k,z[k],u)\n  add('thresholdInfinite',z['quantile']['infinite'],'mathematical indicator');series=[('predicted center or probability',[(i,r['prediction'])for i,r in enumerate(z['rows'])]),('observed label or outcome',[(i,r['actualY'])for i,r in enumerate(z['rows'])])]\n elif api=='ranklaw':\n  for k,u in[('N','scores'),('distinct','indicator'),('coverage','fraction')]:add(k,z[k],u)\n  series=[('held-out coverage',[(r['heldout'],r['covered'])for r in z['trials']])]\n else:\n  mt={r['metric']:r for r in z['study-metrics']};cv=next(r for r in z['role-group-coverage']if r['role']=='test'and r['group']=='all')\n  for k in['sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold']:add(k,mt[k]['value'],mt[k]['unit'])\n  for k,u in[('coverage','fraction'),('meanSetSize','classes'),('meanIntervalWidth','outcome units')]:add(k,cv[k],u)\n  series=[('all calibration scores',[(r['rank'],r['score'])for r in z['calibration-scores']])]\n return summary,series\n\nnumber=num\n\nFIXED={'api': 'ranklaw', 'variant': 'distinct-four', 'title': 'Uniform held-out index with four distinct scores', 'input': {'scores': ['1', '2', '3', '4'], 'alpha': '1/4'}, 'expectedFailure': False}\n\ndef fixed_svg(points,title):\n good=[p for p in points if p['y'] is not None];xx=[float(p['x'])for p in good];yy=[float(p['y'])for p in good];xmin=min(xx)if xx else 0;xmax=max(xx)if xx else 1;ymin=min([0]+yy);ymax=max([0]+yy)\n if xmin==xmax:xmin-=.5;xmax+=.5\n if ymin==ymax:ymin-=.5;ymax+=.5\n pad=(ymax-ymin)*.08;ymin-=pad;ymax+=pad;X=lambda x:82+(float(x)-xmin)/(xmax-xmin)*608;Y=lambda y:354-(float(y)-ymin)/(ymax-ymin)*290;e=html.escape\n out=['<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"'+e(title)+'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">'+e(title)+'</text>']\n for j in range(5):\n  y=ymin+(ymax-ymin)*j/4;x=xmin+(xmax-xmin)*j/4;out.append('<line x1=\"82\" y1=\"'+str(Y(y))+'\" x2=\"690\" y2=\"'+str(Y(y))+'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"'+str(Y(y)+4)+'\" text-anchor=\"end\">'+format(y,'.3g')+'</text><text x=\"'+str(X(x))+'\" y=\"380\" text-anchor=\"middle\">'+format(x,'.3g')+'</text>')\n series=list(dict.fromkeys(p['series']for p in good))\n for j,s in enumerate(series):\n  pp=[p for p in good if p['series']==s];color=['#0f766e','#c76622','#4f46e5','#b23857'][j%4];out.append('<polyline fill=\"none\" stroke=\"'+color+'\" stroke-width=\"1.5\" points=\"'+' '.join(format(X(p['x']),'.6f')+','+format(Y(p['y']),'.6f')for p in pp)+'\"/>')\n  for p in pp:out.append('<circle cx=\"'+format(X(p['x']),'.6f')+'\" cy=\"'+format(Y(p['y']),'.6f')+'\" r=\"2.6\" fill=\"'+color+'\"><title>'+e(s+': '+str(p['y']))+'</title></circle>')\n  out.append('<text x=\"'+str(82+(j%2)*310)+'\" y=\"'+str(432+(j//2)*23)+'\" fill=\"'+color+'\">'+e(s)+'</text>')\n out.append('<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>');return''.join(out)\n\nOUT=Path(sys.argv[1]);OUT.mkdir(parents=True,exist_ok=False)\nresult=fixed_operation(FIXED['api'],FIXED['input']);summary,series=report_values(FIXED['api'],result)\ndef encode(v):\n if isinstance(v,Q):return str(v)\n if isinstance(v,dict):return{k:encode(x)for k,x in v.items()}\n if isinstance(v,(list,tuple)):return[encode(x)for x in v]\n return v\n(OUT/'full.json').write_text(json.dumps(dict(arithmetic='Exact finite Fraction algebra except approximate natural logs; declared fixed examples, no exchangeability certification',result=encode(result)),ensure_ascii=False,indent=2)+'\\n',encoding='utf8')\nsummaryRows=[dict(metric=m,value=''if v is None else str(int(v))if isinstance(v,bool)else str(v),unit=u,defined=int(v is not None))for m,v,u in summary]\npoints=[dict(series=name,index=i,x=str(x),y=''if y is None else str(y),defined=int(y is not None))for name,pp in series for i,(x,y)in enumerate(pp)]\nfor name,rows in [('summary',summaryRows),('plot-points',points)]:\n with(OUT/(name+'.csv')).open('w',encoding='utf8',newline='')as f:writer=csv.DictWriter(f,fieldnames=list(rows[0]));writer.writeheader();writer.writerows(rows)\n(OUT/'plot.svg').write_text(fixed_svg([dict(p,x=number(p['x']),y=None if not p['defined']else number(p['y']))for p in points],FIXED['title']),encoding='utf8');print(FIXED['api']+'/'+FIXED['variant'])\n",
        "returnCode": 0,
        "stdout": "ranklaw/distinct-four\r\n",
        "stderr": "",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/python-ranklaw-distinct-four-result",
        "kind": null,
        "inputFiles": [],
        "files": [
          {
            "file": "ml20-code/python-ranklaw-distinct-four-result/full.json",
            "sha256": "a8d01b957aed4b39ae998e62708e47b7e9a6bbb0c384f5c73d8dd7bb9fedab9c",
            "bytes": 886
          },
          {
            "file": "ml20-code/python-ranklaw-distinct-four-result/plot-points.csv",
            "sha256": "e6ca5f1767356a25034c915d740b31f4e1fb6618e0d9d0dcec88c00658d5f898",
            "bytes": 134
          },
          {
            "file": "ml20-code/python-ranklaw-distinct-four-result/plot.svg",
            "sha256": "6011ec4ab8042fecd8bed5ef8a9fc2e3bab5af7f3c6042d35364e6de06875016",
            "bytes": 1956
          },
          {
            "file": "ml20-code/python-ranklaw-distinct-four-result/summary.csv",
            "sha256": "07a07e160c3769fbc84819b49da8640df2ac1918c21c400a44aec098b0b529ee",
            "bytes": 90
          },
          {
            "file": "ml20-code/python-ranklaw-distinct-four-result/stdout.txt",
            "sha256": "623e29e2a819096d0e287d9f009489a2b17ffe0c516d81949245c6a1465be816",
            "bytes": 23
          },
          {
            "file": "ml20-code/python-ranklaw-distinct-four-result/stderr.txt",
            "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
            "bytes": 0
          }
        ],
        "summaryRows": [
          {
            "metric": "N",
            "value": "4",
            "unit": "scores",
            "defined": "true",
            "exactFraction": "4",
            "rawValue": "4",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "distinct",
            "value": "1",
            "unit": "indicator",
            "defined": "true",
            "exactFraction": "1",
            "rawValue": "1",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "coverage",
            "value": "0.75",
            "unit": "fraction",
            "defined": "true",
            "exactFraction": "3/4",
            "rawValue": "3/4",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          }
        ],
        "plotRows": [
          {
            "series": "held-out coverage",
            "index": 0,
            "x": "0",
            "y": "1",
            "defined": true,
            "xExact": "0",
            "yExact": "1"
          },
          {
            "series": "held-out coverage",
            "index": 1,
            "x": "1",
            "y": "1",
            "defined": true,
            "xExact": "1",
            "yExact": "1"
          },
          {
            "series": "held-out coverage",
            "index": 2,
            "x": "2",
            "y": "1",
            "defined": true,
            "xExact": "2",
            "yExact": "1"
          },
          {
            "series": "held-out coverage",
            "index": 3,
            "x": "3",
            "y": "0",
            "defined": true,
            "xExact": "3",
            "yExact": "0"
          }
        ],
        "plotFile": "ml20-code/python-ranklaw-distinct-four-result/plot.svg",
        "fullResultFile": "ml20-code/python-ranklaw-distinct-four-result/full.json",
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      },
      "tied-four": {
        "api": "ranklaw",
        "variant": "tied-four",
        "language": "python",
        "title": "Tied scores give conservative inclusive coverage",
        "input": {
          "scores": [
            "0",
            "0",
            "0",
            "0"
          ],
          "alpha": "1/2"
        },
        "expectedFailure": false,
        "codeFile": "ml20-code/ranklaw-tied-four.py",
        "codeSHA256": "bad224e2166e213bbdc6b2c7f6a3f53c652e1572c00280e3059772210c38f1f6",
        "code": "\"\"\"ML20 standalone fixed example, not an arbitrary-input validator.\nFinite Python Fraction algebra; natural logs use Decimal1800 approximation\nthen a final binary64 display projection. Realdata reads4factual CSVs only,\nreusing the frozen public reader/fit implementation by value; all other inputs\nare complete fixed literals. No engine/model/computed/checker imported.\nRun: python this-file.py NEW-OUTPUT\n\"\"\"\nfrom pathlib import Path\nimport csv,json,hashlib,sys,math,html\nif hasattr(sys,'set_int_max_str_digits'):sys.set_int_max_str_digits(100000)\n\"\"\"Owned standalone exact finite optimization primitives for ML19 public programs.\nThis is an author implementation, never an independent numerical oracle.\n\"\"\"\nfrom fractions import Fraction as Q\ndef number(v):return v if isinstance(v,Q)else Q(str(v))\ndef dot(a,b):return sum((x*y for x,y in zip(a,b)),Q(0))\ndef frame(rows,p=2,scale='range'):\n rr=[]\n for i,r in enumerate(rows):\n  x=[None if v is None else number(v)for v in r['x']];y=None if r['y']is None else number(r['y']);w=number(r.get('weight',1));role=r.get('role','train');rr.append(dict(id=r.get('id','row:'+str(i+1)),index=i,x=x,y=y,w=w,role=role,eligible=y is not None and all(v is not None for v in x)and w>0))\n train=[r for r in rr if r['role']=='train'and r['eligible']];W=sum((r['w']for r in train),Q(0))\n if not W:return dict(defined=False,p=p,rows=rr,train=[],W=W)\n mean=[sum(r['w']*r['x'][j]for r in train)/W for j in range(p)];ranges=[max(r['x'][j]for r in train)-min(r['x'][j]for r in train)or Q(1)for j in range(p)];scales=ranges if scale=='range'else[Q(1)]*p\n for r in rr:r['z']=None if None in r['x']else[Q(1)]+[(r['x'][j]-mean[j])/scales[j]for j in range(p)]\n return dict(defined=True,p=p,rows=rr,train=train,W=W,mean=mean,ranges=ranges,scales=scales,meanY=sum(r['w']*r['y']for r in train)/W)\ndef quadratic(f,lam=Q(0),role='train'):\n rr=[r for r in f['rows']if r['role']==role and r['eligible']];W=sum((r['w']for r in rr),Q(0));n=f['p']+1\n if not W:return None\n H=[[sum(r['w']*r['z'][j]*r['z'][k]for r in rr)/W+(lam if j==k and j else 0)for k in range(n)]for j in range(n)];b=[sum(r['w']*r['y']*r['z'][j]for r in rr)/W for j in range(n)];d=sum(r['w']*r['y']**2 for r in rr)/(2*W);return H,b,d\ndef state(q,theta):\n H,b,d=q;gradient=[dot(row,theta)-bb for row,bb in zip(H,b)];return dict(theta=theta,objective=dot(theta,[dot(row,theta)for row in H])/2-dot(theta,b)+d,gradient=gradient,gradientNormSquared=dot(gradient,gradient))\ndef solve(H,b):\n n=len(b);A=[row[:]+[bb]for row,bb in zip(H,b)];piv=[];row=0\n for j in range(n):\n  k=next((i for i in range(row,n)if A[i][j]),None)\n  if k is None:continue\n  A[row],A[k]=A[k],A[row];z=A[row][j];A[row]=[v/z for v in A[row]]\n  for i in range(n):\n   if i!=row:\n    z=A[i][j];A[i]=[v-z*u for v,u in zip(A[i],A[row])]\n  piv.append(j);row+=1\n  if row==n:break\n assert not any(not any(r[:n])and r[n]for r in A)\n beta=[Q(0)]*n\n for i,j in enumerate(piv):beta[j]=A[i][n]\n nullspace=[]\n for j in range(n):\n  if j not in piv:\n   v=[Q(0)]*n;v[j]=Q(1)\n   for i,k in enumerate(piv):v[k]=-A[i][j]\n   nullspace.append(v)\n return dict(rank=len(piv),particular=beta,nullspace=nullspace,unique=len(piv)==n)\n\n\ndef fixed_source(kind):\n SRC=Path(__file__).resolve().parent/\"data\"\n read=lambda n:list(csv.DictReader((SRC/n).open(encoding='utf8',newline='')))\n def native(v):return None if v in['','.']else v\n\n models={};original=read('actual48-country-revised-original-2023-2024.csv');lookup={(r['countryISO3'],r['indicatorID'],r['date']):r for r in original};rows=[]\n for iso in sorted({r['countryISO3']for r in original}):\n  g=lookup[iso,'NY.GDP.PCAP.KD','2023'];p=lookup[iso,'FP.CPI.TOTL.ZG','2023'];y=lookup[iso,'NY.GDP.MKTP.KD.ZG','2024'];rows.append(dict(id=iso+':2024',x=[None if not g['originalValueToken']else str(number(g['originalValueToken'])/10000),None if not p['originalValueToken']else str(number(p['originalValueToken'])/10)],y=native(y['originalValueToken']),sourceRow=iso))\n models['country']=dict(rows=rows,names=['g','pi'],unit='annual GDP growth percentage points')\n for kind,file,keys,ykey,ID in [('person','actual3613-NLS-original52-fields-and-conformal-frame.csv',['ed76','age76'],'lwage76','person-row:'),('company','actual3150-churn-original14-fields-and-conformal-frame.csv',['Call  Failure','Seconds of Use'],'Churn','customer-row:')]:\n  source=read(file);models[kind]=dict(rows=[dict(id=ID+r['sourceRow'],sourceRow=r['sourceRow'],x=[native(r[k])for k in keys],y=native(r[ykey]))for r in source],names=['ed76','age76']if kind=='person'else['CallFailure','SecondsUse'],unit='native trimmed1976log hourly wage'if kind=='person'else'native Churn0/1')\n for kind,m in models.items():\n  for rank,r in enumerate(sorted(m['rows'],key=lambda r:(hashlib.sha256(('ML20|'+kind+'|'+r['id']).encode()).digest(),r['id']))):r.update(splitRank=rank,plannedRole=['test','calibration','train','train'][rank%4]);r['role']=r['plannedRole']if r['y']is not None and None not in r['x']else'excluded';r['weight']='1'\n  m['trainingIDs']=[r['id']for r in sorted(m['rows'],key=lambda r:r['splitRank'])if r['role']=='train']\n\n models={kind:models[kind]}\n # New public actual-source study; exact finite Fraction fit/rank/membership.\n # Default single declared model, not a hyperparameter Cartesian dump.\n from decimal import Decimal,localcontext\n from collections import Counter\n outputs={k:[]for k in['study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins']}\n alpha=number('1/5');lam=number('1/100')\n if not 0<alpha<1 or lam<0:raise ValueError('Require0<alpha<1 and nonnegative ridge')\n def metric(kind,name,value,unit,arithmetic='exact rational'):\n  outputs['study-metrics'].append(dict(kind=kind,metric=name,value=''if value is None else value,unit=unit,defined=int(value is not None),arithmetic=arithmetic))\n def bins(rr,B=5):\n  groups=[[]for _ in range(B)]\n  for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n  n=len(rr);yb=sum((r['y']for r in rr),Q(0))/n if n else None;ece=rel=res=var=cov=Q(0);result=[]\n  for j,gg in enumerate(groups):\n   nn=len(gg);pm=sum((r['p']for r in gg),Q(0))/nn if nn else None;ym=sum((r['y']for r in gg),Q(0))/nn if nn else None;v=sum(((r['p']-pm)**2 for r in gg),Q(0))/nn if nn else None;co=sum(((r['p']-pm)*(r['y']-ym)for r in gg),Q(0))/nn if nn else None\n   result.append(dict(bin=j,lower=Q(j,B),upper=Q(j+1,B),rightClosed=int(j==B-1),rows=nn,meanP=pm,frequencyY1=ym,gap=None if not nn else pm-ym,withinVarianceP=v,withinCovariancePY=co))\n   if nn:weight=Q(nn,n);ece+=weight*abs(pm-ym);rel+=weight*(pm-ym)**2;res+=weight*(ym-yb)**2;var+=weight*v;cov+=weight*co\n  return result,dict(ECE=ece if n else None,Brier=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/n if n else None,uncertainty=yb*(1-yb)if n else None,resolution=res if n else None,reliability=rel if n else None,withinVarianceP=var if n else None,withinCovariancePY=cov if n else None)\n def meanlog(rr):\n  if not rr:return None\n  pp=[r['p']if r['y']else 1-r['p']for r in rr]\n  if any(not p for p in pp):return'+infinity'\n  with localcontext()as ctx:\n   ctx.prec=60;return str(-sum(((Decimal(p.numerator)/Decimal(p.denominator)).ln()for p in pp),Decimal(0))/len(pp))\n for kind,m in models.items():\n  f=frame(m['rows']);n=len(f['train']);assert n>0;H,b,d=quadratic(f,lam);fit=solve(H,b);theta=fit['particular'];minimum=state((H,b,d),theta)['objective'];beta=[theta[j+1]/f['scales'][j]for j in range(2)];intercept=theta[0]-dot(beta,f['mean']);rr=[]\n  for r in f['rows']:\n   native=m['rows'][r['index']];raw=None if r['z']is None else dot(r['z'],theta);pred=None if raw is None else max(Q(0),min(Q(1),raw))if kind=='company'else raw;group='missing-X'if r['z']is None else('schooling-at-most12'if r['x'][0]<=12 else'schooling-over12')if kind=='person'else('zero-call-failures'if r['x'][0]==0 else'positive-call-failures')if kind=='company'else('GDPpc-at-most-training-mean'if r['x'][0]<=f['mean'][0]else'GDPpc-above-training-mean');rr.append(dict(id=r['id'],sourceRow=native['sourceRow'],sourceIndex0=r['index'],plannedRole=native['plannedRole'],role=r['role'],group=group,y=r['y'],raw=raw,prediction=pred,eligible=r['eligible']))\n  cal=[r for r in rr if r['role']=='calibration'and r['prediction']is not None and r['y']is not None]\n  for i,r in enumerate(cal):r['calibrationIndex0']=i;r['score']=(1-r['prediction']if r['y']else r['prediction'])if kind=='company'else abs(r['y']-r['prediction'])\n  ordered=sorted(cal,key=lambda r:(r['score'],r['calibrationIndex0']));rankQ=(len(cal)+1)*(1-alpha);k=(rankQ.numerator+rankQ.denominator-1)//rankQ.denominator;threshold=ordered[k-1]['score']if k<=len(cal)else None;unbounded=threshold is None\n  for j,r in enumerate(ordered,1):outputs['calibration-scores'].append(dict(kind=kind,rank=j,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],calibrationIndex0=r['calibrationIndex0'],score=r['score'],threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded)))\n  for j,name in enumerate(m['names']):outputs['training-coefficients'].append(dict(kind=kind,feature=name,mean=f['mean'][j],scale=f['scales'][j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[0],nativeIntercept=intercept,rank=fit['rank'],unique=int(fit['unique']),lambdaValue=lam,minimumObjective=minimum))\n  for name,value,unit in[('sourceRows',len(rr),'rows'),('trainingRows',n,'rows'),('calibrationScores',len(cal),'unit-count scores'),('testLabeledRows',sum(r['role']=='test'and r['y']is not None for r in rr),'rows'),('excludedRows',sum(r['role']=='excluded'for r in rr),'rows'),('alpha',alpha,'probability'),('ridge',lam,'transformed slope penalty'),('quantileRank',k,'one-based rank'),('threshold','+infinity'if unbounded else threshold,'dimensionless score'if kind=='company'else m['unit']),('minimumObjective',minimum,'('+m['unit']+') squared')]:metric(kind,name,value,unit,'mathematical infinity'if value=='+infinity'else'exact rational')\n  for r in rr:\n   defined=r['prediction']is not None;labeled=defined and r['y']is not None\n   if not defined:lo=hi=width=size=None;labels='';covered=None\n   elif kind=='company':\n    labelsList=[j for j,s in enumerate([r['prediction'],1-r['prediction']])if unbounded or s<=threshold];labels='|'.join(map(str,labelsList));size=len(labelsList);lo=hi=width=None;covered=int(int(r['y'])in labelsList)if labeled else None\n   else:lo='-infinity'if unbounded else r['prediction']-threshold;hi='+infinity'if unbounded else r['prediction']+threshold;width='+infinity'if unbounded else 2*threshold;labels='';size=None;covered=int(unbounded or abs(r['y']-r['prediction'])<=threshold)if labeled else None\n   r.update(defined=defined,labeled=labeled,lower=lo,upper=hi,width=width,labels=labels,size=size,covered=covered)\n   outputs['row-predictions'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],plannedRole=r['plannedRole'],role=r['role'],group=r['group'],actualY=r['y'],rawLinear=r['raw'],prediction=r['prediction'],predictionDefined=int(defined),threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded),lower=lo,upper=hi,width=width,setLabels=labels,setSize=size,covered=covered,labeledPrediction=int(labeled)))\n   outputs['eligibility'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],plannedRole=r['plannedRole'],role=r['role'],requiredComplete=int(r['eligible']),trainingUsed=int(r['role']=='train'and r['eligible']),reason='missing-required-field'if not r['eligible']else''))\n  roles=list(dict.fromkeys(r['role']for r in rr));groups=list(dict.fromkeys(r['group']for r in rr))\n  for role in roles:\n   for group in['all']+groups:\n    use=[r for r in rr if r['role']==role and(group=='all'or r['group']==group)];defined=[r for r in use if r['defined']];scored=[r for r in use if r['labeled']and role not in['excluded','unused']];covered=sum(r['covered']for r in scored);nn=len(defined);nscore=len(scored);unboundedCount=sum(r['width']=='+infinity'for r in defined);size=Q(sum(r['size']for r in defined),nn)if kind=='company'and nn else None;width=('+infinity'if unboundedCount else sum(r['width']for r in defined)/nn)if kind!='company'and nn else None\n    outputs['role-group-coverage'].append(dict(kind=kind,role=role,group=group,originalRows=len(use),definedPredictions=nn,scoredLabels=nscore,coveredRows=covered,coverage=Q(covered,nscore)if nscore else None,meanSetSize=size,meanIntervalWidth=width,unboundedIntervals=unboundedCount))\n  if kind=='company':\n   for role in['train','calibration','test']:\n    use=[dict(p=r['prediction'],y=r['y'])for r in rr if r['role']==role and r['labeled']];bb,mm=bins(use)\n    for row in bb:outputs['reliability-bins'].append(dict(kind=kind,role=role,**row))\n    for name,value in mm.items():metric(kind,role+':'+name,value,'dimensionless'if name=='ECE'else'squared probability')\n    metric(kind,role+':meanLogLoss',meanlog(use),'nats','Decimal60 approximation or genuine infinity')\n return outputs\n\n# Owned ML20 fixed-example adapters. Finite rational calculations; logs approximate.\nfrom fractions import Fraction as Q\nfrom decimal import Decimal,localcontext\nimport math\ndef num(v):return v if isinstance(v,Q)else Q(str(v))\ndef ceilq(q):return-((-q.numerator)//q.denominator)\ndef fixed_quantile(scores,alpha):\n a=num(alpha)\n if not 0<a<1:raise ValueError('alpha-must-be-strictly-between-zero-and-one')\n ordered=sorted([(num(v),i)for i,v in enumerate(scores)if v is not None]);n=len(ordered);k=ceilq((n+1)*(1-a));q=None if k>n else ordered[k-1][0]\n return dict(n=n,k=k,threshold=q,infinite=q is None,ordered=ordered)\ndef fixed_score(rows):\n rr=[dict(p=num(r['p']),y=num(r['y']),w=num(r.get('weight',1)))for r in rows];rr=[r for r in rr if r['w']>0];mass=sum((r['w']for r in rr),Q(0));brier=sum((r['w']*(r['p']-r['y'])**2 for r in rr),Q(0))/mass if mass else None;logs=[];genuine=False\n with localcontext()as ctx:\n  ctx.prec=1800\n  total=Decimal(0)\n  for r in rr:\n   p=r['p']if r['y']else 1-r['p']\n   if not p:genuine=True;logs.append('+infinity');continue\n   loss=-(Decimal(p.numerator)/Decimal(p.denominator)).ln();logs.append(str(loss));w=r['w']/mass;total+=Decimal(w.numerator)/Decimal(w.denominator)*loss\n  display='+infinity'if genuine else None if not mass else repr(float(total));raw='+infinity'if genuine else None if not mass else str(total)\n return dict(rows=rr,mass=mass,Brier=brier,meanLogLoss=display,naturalLogApprox1800=raw,individualLogLoss=logs,genuineInfinite=genuine,BrierPositive=brier is not None and brier>0)\ndef fixed_calibration(rows,B):\n rr=[dict(p=num(r['p']),y=num(r['y']))for r in rows];N=len(rr);yb=sum((r['y']for r in rr),Q(0))/N;groups=[[]for _ in range(B)]\n for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n result=[];ece=rel=res=vp=cp=Q(0)\n for j,g in enumerate(groups):\n  n=len(g);pm=sum((r['p']for r in g),Q(0))/n if n else None;ym=sum((r['y']for r in g),Q(0))/n if n else None;v=sum(((r['p']-pm)**2 for r in g),Q(0))/n if n else None;c=sum(((r['p']-pm)*(r['y']-ym)for r in g),Q(0))/n if n else None;result.append(dict(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c))\n  if n:z=Q(n,N);ece+=z*abs(pm-ym);rel+=z*(pm-ym)**2;res+=z*(ym-yb)**2;vp+=z*v;cp+=z*c\n bs=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/N;u=yb*(1-yb)\n return dict(rows=N,bins=result,Brier=bs,ECE=ece,uncertainty=u,resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=u-res+rel+vp-2*cp)\ndef fixed_predict(a):\n q=fixed_quantile(a['scores'],a['alpha']);out=[];classification=a['mode']=='classification'\n for i,row in enumerate(a['queries']):\n  p=num(row['p']if classification else row['center']);y=None if row.get('y')is None else num(row['y']);threshold=q['threshold'];unbounded=q['infinite']\n  if classification:labels=[v for v,s in[(0,p),(1,1-p)]if unbounded or s<=threshold];lo=hi=width=None;size=len(labels);covered=None if y is None else int(int(y)in labels)\n  else:labels=None;size=None;lo='-infinity'if unbounded else p-threshold;hi='+infinity'if unbounded else p+threshold;width='+infinity'if unbounded else 2*threshold;covered=None if y is None else int(unbounded or abs(y-p)<=threshold)\n  out.append(dict(id=row.get('id',str(i)),prediction=p,actualY=y,labels=labels,size=size,lower=lo,upper=hi,width=width,covered=covered))\n scored=[r for r in out if r['covered']is not None];coverage=Q(sum(r['covered']for r in scored),len(scored))if scored else None;meanSize=Q(sum(r['size']for r in out),len(out))if classification and out else None;meanWidth=('+infinity'if q['infinite']else 2*q['threshold'])if not classification and out else None\n return dict(quantile=q,rows=out,scoredLabels=len(scored),coverage=coverage,meanSetSize=meanSize,meanWidth=meanWidth)\ndef fixed_ranklaw(a):\n scores=list(map(num,a['scores']));trials=[]\n for i,y in enumerate(scores):q=fixed_quantile(scores[:i]+scores[i+1:],a['alpha']);trials.append(dict(heldout=i,score=y,k=q['k'],threshold=q['threshold'],infinite=q['infinite'],covered=int(q['infinite']or y<=q['threshold'])))\n return dict(N=len(scores),distinct=len(set(scores))==len(scores),trials=trials,coverage=Q(sum(t['covered']for t in trials),len(trials)))\ndef fixed_operation(api,a):\n return fixed_score(a['rows'])if api=='score'else fixed_calibration(a['rows'],a['bins'])if api=='calibration'else fixed_quantile(a['scores'],a['alpha'])if api=='quantile'else fixed_predict(a)if api=='predict'else fixed_ranklaw(a)if api=='ranklaw'else fixed_source(a['kind'])\ndef report_values(api,z):\n summary=[];series=[]\n def add(k,v,u):summary.append((k,v,u))\n if api=='score':\n  for k,u in[('mass','analysis weight'),('Brier','squared probability'),('meanLogLoss','nats; numerical logarithm'),('genuineInfinite','indicator'),('BrierPositive','mathematical indicator')]:add(k,z[k],u)\n  series=[('squared error',[(i,(r['p']-r['y'])**2)for i,r in enumerate(z['rows'])])]\n elif api=='calibration':\n  for k in['Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity']:add(k,z[k],'probability'if k=='ECE'else'squared probability')\n  series=[('bin probability',[(r['bin'],r['meanP'])for r in z['bins']]),('bin outcome frequency',[(r['bin'],r['frequency'])for r in z['bins']])]\n elif api=='quantile':\n  for k,u in[('n','scores'),('k','one-based rank'),('infinite','mathematical indicator')]:add(k,z[k],u)\n  add('threshold','+infinity'if z['infinite']else z['threshold'],'score units');series=[('sorted score',[(i+1,v)for i,(v,index)in enumerate(z['ordered'])])]\n elif api=='predict':\n  for k,u in[('scoredLabels','labels'),('coverage','fraction'),('meanSetSize','classes'),('meanWidth','outcome units')]:add(k,z[k],u)\n  add('thresholdInfinite',z['quantile']['infinite'],'mathematical indicator');series=[('predicted center or probability',[(i,r['prediction'])for i,r in enumerate(z['rows'])]),('observed label or outcome',[(i,r['actualY'])for i,r in enumerate(z['rows'])])]\n elif api=='ranklaw':\n  for k,u in[('N','scores'),('distinct','indicator'),('coverage','fraction')]:add(k,z[k],u)\n  series=[('held-out coverage',[(r['heldout'],r['covered'])for r in z['trials']])]\n else:\n  mt={r['metric']:r for r in z['study-metrics']};cv=next(r for r in z['role-group-coverage']if r['role']=='test'and r['group']=='all')\n  for k in['sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold']:add(k,mt[k]['value'],mt[k]['unit'])\n  for k,u in[('coverage','fraction'),('meanSetSize','classes'),('meanIntervalWidth','outcome units')]:add(k,cv[k],u)\n  series=[('all calibration scores',[(r['rank'],r['score'])for r in z['calibration-scores']])]\n return summary,series\n\nnumber=num\n\nFIXED={'api': 'ranklaw', 'variant': 'tied-four', 'title': 'Tied scores give conservative inclusive coverage', 'input': {'scores': ['0', '0', '0', '0'], 'alpha': '1/2'}, 'expectedFailure': False}\n\ndef fixed_svg(points,title):\n good=[p for p in points if p['y'] is not None];xx=[float(p['x'])for p in good];yy=[float(p['y'])for p in good];xmin=min(xx)if xx else 0;xmax=max(xx)if xx else 1;ymin=min([0]+yy);ymax=max([0]+yy)\n if xmin==xmax:xmin-=.5;xmax+=.5\n if ymin==ymax:ymin-=.5;ymax+=.5\n pad=(ymax-ymin)*.08;ymin-=pad;ymax+=pad;X=lambda x:82+(float(x)-xmin)/(xmax-xmin)*608;Y=lambda y:354-(float(y)-ymin)/(ymax-ymin)*290;e=html.escape\n out=['<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"'+e(title)+'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">'+e(title)+'</text>']\n for j in range(5):\n  y=ymin+(ymax-ymin)*j/4;x=xmin+(xmax-xmin)*j/4;out.append('<line x1=\"82\" y1=\"'+str(Y(y))+'\" x2=\"690\" y2=\"'+str(Y(y))+'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"'+str(Y(y)+4)+'\" text-anchor=\"end\">'+format(y,'.3g')+'</text><text x=\"'+str(X(x))+'\" y=\"380\" text-anchor=\"middle\">'+format(x,'.3g')+'</text>')\n series=list(dict.fromkeys(p['series']for p in good))\n for j,s in enumerate(series):\n  pp=[p for p in good if p['series']==s];color=['#0f766e','#c76622','#4f46e5','#b23857'][j%4];out.append('<polyline fill=\"none\" stroke=\"'+color+'\" stroke-width=\"1.5\" points=\"'+' '.join(format(X(p['x']),'.6f')+','+format(Y(p['y']),'.6f')for p in pp)+'\"/>')\n  for p in pp:out.append('<circle cx=\"'+format(X(p['x']),'.6f')+'\" cy=\"'+format(Y(p['y']),'.6f')+'\" r=\"2.6\" fill=\"'+color+'\"><title>'+e(s+': '+str(p['y']))+'</title></circle>')\n  out.append('<text x=\"'+str(82+(j%2)*310)+'\" y=\"'+str(432+(j//2)*23)+'\" fill=\"'+color+'\">'+e(s)+'</text>')\n out.append('<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>');return''.join(out)\n\nOUT=Path(sys.argv[1]);OUT.mkdir(parents=True,exist_ok=False)\nresult=fixed_operation(FIXED['api'],FIXED['input']);summary,series=report_values(FIXED['api'],result)\ndef encode(v):\n if isinstance(v,Q):return str(v)\n if isinstance(v,dict):return{k:encode(x)for k,x in v.items()}\n if isinstance(v,(list,tuple)):return[encode(x)for x in v]\n return v\n(OUT/'full.json').write_text(json.dumps(dict(arithmetic='Exact finite Fraction algebra except approximate natural logs; declared fixed examples, no exchangeability certification',result=encode(result)),ensure_ascii=False,indent=2)+'\\n',encoding='utf8')\nsummaryRows=[dict(metric=m,value=''if v is None else str(int(v))if isinstance(v,bool)else str(v),unit=u,defined=int(v is not None))for m,v,u in summary]\npoints=[dict(series=name,index=i,x=str(x),y=''if y is None else str(y),defined=int(y is not None))for name,pp in series for i,(x,y)in enumerate(pp)]\nfor name,rows in [('summary',summaryRows),('plot-points',points)]:\n with(OUT/(name+'.csv')).open('w',encoding='utf8',newline='')as f:writer=csv.DictWriter(f,fieldnames=list(rows[0]));writer.writeheader();writer.writerows(rows)\n(OUT/'plot.svg').write_text(fixed_svg([dict(p,x=number(p['x']),y=None if not p['defined']else number(p['y']))for p in points],FIXED['title']),encoding='utf8');print(FIXED['api']+'/'+FIXED['variant'])\n",
        "returnCode": 0,
        "stdout": "ranklaw/tied-four\r\n",
        "stderr": "",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/python-ranklaw-tied-four-result",
        "kind": null,
        "inputFiles": [],
        "files": [
          {
            "file": "ml20-code/python-ranklaw-tied-four-result/full.json",
            "sha256": "ab0b9aab31493b811646a9608cb32f3436c0151c96167d055348fb574f0c950e",
            "bytes": 885
          },
          {
            "file": "ml20-code/python-ranklaw-tied-four-result/plot-points.csv",
            "sha256": "81812b27f8058d57a1835d1f40ea8f706dc3f5dfa24da44654e380f61dd358c8",
            "bytes": 134
          },
          {
            "file": "ml20-code/python-ranklaw-tied-four-result/plot.svg",
            "sha256": "4a433d56ede7da9c47e4d36583bf68faae44ce1f9753fe4bd203b2268a6a10fe",
            "bytes": 1954
          },
          {
            "file": "ml20-code/python-ranklaw-tied-four-result/summary.csv",
            "sha256": "632c89850fbbbd87a7019f1c472233e765137950479f62bebb3eaf3b06f088f2",
            "bytes": 88
          },
          {
            "file": "ml20-code/python-ranklaw-tied-four-result/stdout.txt",
            "sha256": "99e97c69b7c067bc786615f15e2166eff1389276cb206aa485c5e6d93b486067",
            "bytes": 19
          },
          {
            "file": "ml20-code/python-ranklaw-tied-four-result/stderr.txt",
            "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
            "bytes": 0
          }
        ],
        "summaryRows": [
          {
            "metric": "N",
            "value": "4",
            "unit": "scores",
            "defined": "true",
            "exactFraction": "4",
            "rawValue": "4",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "distinct",
            "value": "0",
            "unit": "indicator",
            "defined": "true",
            "exactFraction": "0",
            "rawValue": "0",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "coverage",
            "value": "1",
            "unit": "fraction",
            "defined": "true",
            "exactFraction": "1",
            "rawValue": "1",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          }
        ],
        "plotRows": [
          {
            "series": "held-out coverage",
            "index": 0,
            "x": "0",
            "y": "1",
            "defined": true,
            "xExact": "0",
            "yExact": "1"
          },
          {
            "series": "held-out coverage",
            "index": 1,
            "x": "1",
            "y": "1",
            "defined": true,
            "xExact": "1",
            "yExact": "1"
          },
          {
            "series": "held-out coverage",
            "index": 2,
            "x": "2",
            "y": "1",
            "defined": true,
            "xExact": "2",
            "yExact": "1"
          },
          {
            "series": "held-out coverage",
            "index": 3,
            "x": "3",
            "y": "1",
            "defined": true,
            "xExact": "3",
            "yExact": "1"
          }
        ],
        "plotFile": "ml20-code/python-ranklaw-tied-four-result/plot.svg",
        "fullResultFile": "ml20-code/python-ranklaw-tied-four-result/full.json",
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      }
    },
    "r": {
      "distinct-four": {
        "api": "ranklaw",
        "variant": "distinct-four",
        "language": "r",
        "title": "Uniform held-out index with four distinct scores",
        "input": {
          "scores": [
            "1",
            "2",
            "3",
            "4"
          ],
          "alpha": "1/4"
        },
        "expectedFailure": false,
        "codeFile": "ml20-code/ranklaw-distinct-four.R",
        "codeSHA256": "afd1afbebe8d455a17dd65235cc410570895ac8435e047f490cef5b4d2ad2756",
        "code": "# ML20 complete standalone numerical fixed examples, no browser/model/results.\n# Base-R QR1e-12/membership1e-12; tiny log loss uses log-domain normalized\n# weights to avoid early underflow. This is an approximate counterpart, not\n# a general exact-rational numeric-token validator. Fixed alpha uses small fractions.\noptions(digits=17)\nfixedSource<-function(kind){\n src<-file.path(dirname(sub(\"^--file=\",\"\",grep(\"^--file=\",commandArgs(),value=TRUE)[1])),\"data\")\nreadnative<-function(n)read.csv(file.path(src,n),check.names=FALSE,colClasses='character',na.strings=NULL,stringsAsFactors=FALSE)\nnum<-function(x){a<-suppressWarnings(as.numeric(x));a[x%in%c('','.')] <- NA_real_;a}\nroles<-function(d){n<-nrow(d);rank<-as.integer(d$splitRank);if(!identical(sort(rank),0:(n-1)))stop('splitRank permutation');planned<-c('test','calibration','train','train')[rank%%4+1];if(any(planned!=d$plannedRole))stop('planned roles');list(rank=rank,planned=planned)}\noriginal<-readnative('actual48-country-revised-original-2023-2024.csv');derived<-readnative('derived16-country-features-and-roles.csv');isos<-sort(unique(original$countryISO3));lookup<-function(iso,code,year){r<-original[original$countryISO3==iso&original$indicatorID==code&original$date==year,,drop=FALSE];if(nrow(r)!=1)stop('country identity');num(r$originalValueToken)}\ncr<-roles(derived);if(!identical(isos,derived$countryISO3))stop('country order');country<-list(id=paste0(isos,':2024'),sourceRow=isos,x=cbind(vapply(isos,lookup,numeric(1),code='NY.GDP.PCAP.KD',year='2023')/10000,vapply(isos,lookup,numeric(1),code='FP.CPI.TOTL.ZG',year='2023')/10),y=vapply(isos,lookup,numeric(1),code='NY.GDP.MKTP.KD.ZG',year='2024'),rank=cr$rank,planned=cr$planned,names=c('g','pi'),unit='annual GDP growth percentage points')\npd<-readnative('actual3613-NLS-original52-fields-and-conformal-frame.csv');pr<-roles(pd);person<-list(id=paste0('person-row:',pd$sourceRow),sourceRow=pd$sourceRow,x=cbind(num(pd$ed76),num(pd$age76)),y=num(pd$lwage76),rank=pr$rank,planned=pr$planned,names=c('ed76','age76'),unit='native trimmed1976log hourly wage')\ncd<-readnative('actual3150-churn-original14-fields-and-conformal-frame.csv');rr<-roles(cd);company<-list(id=paste0('customer-row:',cd$sourceRow),sourceRow=cd$sourceRow,x=cbind(num(cd[['Call  Failure']]),num(cd[['Seconds of Use']])),y=num(cd$Churn),rank=rr$rank,planned=rr$planned,names=c('CallFailure','SecondsUse'),unit='native Churn0/1')\nmodels<-list(country=country,person=person,company=company)\n\nmodels<-models[kind]\nalphaToken<-\"1/5\";ridgeToken<-\"1/100\"\nqnum<-function(s){v<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(v)==2)as.numeric(v[1])/as.numeric(v[2])else as.numeric(v)}\nalphaParts<-function(s){v<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(v)==2&&all(grepl('^[0-9]+$',v))){a<-as.numeric(v[1]);b<-as.numeric(v[2])}else if(grepl('^[0-9]+([.][0-9]{1,6})?$',s)){n<-if(grepl('.',s,fixed=TRUE))nchar(sub('^[^.]*[.]','',s))else 0;a<-as.numeric(gsub('.','',s,fixed=TRUE));b<-10^n}else stop('Base-R alpha needs small integer fraction or <=6decimal places');if(a<=0||a>=b||b>1e6)stop('Require0<alpha<1 with denominator<=1e6');c(a,b)}\nap<-alphaParts(alphaToken);alpha<-ap[1]/ap[2];lambda<-qnum(ridgeToken);if(!is.finite(lambda)||lambda<0)stop('nonnegative finite ridge required')\nnamesOut<-c('study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins');outputs<-setNames(lapply(namesOut,function(n)list()),namesOut)\nemit<-function(name,row)outputs[[name]][[length(outputs[[name]])+1L]]<<-row\nmetric<-function(kind,name,value,unit,arithmetic='binary64 approximation'){emit('study-metrics',list(kind=kind,metric=name,value=if(is.null(value))NA else value,unit=unit,defined=as.integer(!is.null(value)&&!is.na(value)),arithmetic=arithmetic))}\nfor(kind in names(models)){\n m<-models[[kind]];complete<-rowSums(is.na(m$x))==0&!is.na(m$y);role<-ifelse(complete,m$planned,'excluded');train<-which(role=='train');n<-length(train);stopifnot(n>0);meanX<-colMeans(m$x[train,,drop=FALSE]);scale<-apply(m$x[train,,drop=FALSE],2,function(x)diff(range(x)));scale[scale==0]<-1;Z<-cbind(1,sweep(sweep(m$x,2,meanX,'-'),2,scale,'/'));H<-crossprod(Z[train,,drop=FALSE])/n+diag(c(0,lambda,lambda));b<-as.vector(crossprod(Z[train,,drop=FALSE],m$y[train]))/n;qrfit<-qr(H,tol=1e-12,LAPACK=FALSE);theta<-qr.coef(qrfit,b);theta[is.na(theta)]<-0;minimum<-as.numeric(crossprod(theta,H%*%theta)/2-sum(theta*b)+sum(m$y[train]^2)/(2*n));beta<-theta[-1]/scale;intercept<-theta[1]-sum(beta*meanX);raw<-as.vector(Z%*%theta);pred<-if(kind=='company')pmax(0,pmin(1,raw))else raw;defined<-!is.na(pred);group<-if(kind=='person')ifelse(m$x[,1]<=12,'schooling-at-most12','schooling-over12')else if(kind=='company')ifelse(m$x[,1]==0,'zero-call-failures','positive-call-failures')else ifelse(m$x[,1]<=meanX[1],'GDPpc-at-most-training-mean','GDPpc-above-training-mean');group[is.na(raw)]<-'missing-X';cal<-which(role=='calibration'&defined&!is.na(m$y));score<-if(kind=='company')ifelse(m$y[cal]==1,1-pred[cal],pred[cal])else abs(m$y[cal]-pred[cal]);ordered<-order(score,seq_along(score));k<-ceiling((length(cal)+1)*(ap[2]-ap[1])/ap[2]);threshold<-if(k<=length(cal))score[ordered[k]]else Inf;unbounded<-is.infinite(threshold)\n for(j in seq_along(ordered)){slot<-ordered[j];i<-cal[slot];emit('calibration-scores',list(kind=kind,rank=j,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,calibrationIndex0=slot-1,score=score[slot],threshold=threshold,thresholdInfinite=as.integer(unbounded)))}\n for(j in 1:2)emit('training-coefficients',list(kind=kind,feature=m$names[j],mean=meanX[j],scale=scale[j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[1],nativeIntercept=intercept,rank=qrfit$rank,unique=as.integer(qrfit$rank==3),lambdaValue=lambda,minimumObjective=minimum))\n metrics<-list(sourceRows=length(role),trainingRows=n,calibrationScores=length(cal),testLabeledRows=sum(role=='test'&!is.na(m$y)),excludedRows=sum(role=='excluded'),alpha=alpha,ridge=lambda,quantileRank=k,threshold=threshold,minimumObjective=minimum);units<-c('rows','rows','unit-count scores','rows','rows','probability','transformed slope penalty','one-based rank',if(kind=='company')'dimensionless score'else m$unit,paste0('(',m$unit,') squared'))\n for(j in seq_along(metrics))metric(kind,names(metrics)[j],metrics[[j]],units[j],if(is.infinite(metrics[[j]]))'mathematical infinity'else if(j%in%c(1:5,8))'integer count'else'binary64 approximation')\n labeled<-defined&!is.na(m$y);covered<-rep(NA_integer_,length(role));lo<-hi<-width<-rep(NA_real_,length(role));setSize<-rep(NA_integer_,length(role));setLabels<-rep('',length(role))\n if(kind=='company'){\n  zero<-defined&(unbounded|pred<=threshold+1e-12);one<-defined&(unbounded|1-pred<=threshold+1e-12);setSize[defined]<-as.integer(zero[defined])+as.integer(one[defined]);setLabels[zero&!one]<-'0';setLabels[!zero&one]<-'1';setLabels[zero&one]<-'0|1';covered[labeled]<-as.integer((m$y[labeled]==0&zero[labeled])|(m$y[labeled]==1&one[labeled]))\n }else{lo[defined]<-pred[defined]-threshold;hi[defined]<-pred[defined]+threshold;width[defined]<-2*threshold;tol<-1e-12*pmax(1,abs(m$y[labeled]),abs(pred[labeled]),if(is.finite(threshold))abs(threshold)else 1);covered[labeled]<-as.integer(unbounded|abs(m$y[labeled]-pred[labeled])<=threshold+tol)}\n for(i in seq_along(role)){\n  emit('row-predictions',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,plannedRole=m$planned[i],role=role[i],group=group[i],actualY=m$y[i],rawLinear=raw[i],prediction=pred[i],predictionDefined=as.integer(defined[i]),threshold=threshold,thresholdInfinite=as.integer(unbounded),lower=lo[i],upper=hi[i],width=width[i],setLabels=setLabels[i],setSize=setSize[i],covered=covered[i],labeledPrediction=as.integer(labeled[i])))\n  emit('eligibility',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],plannedRole=m$planned[i],role=role[i],requiredComplete=as.integer(complete[i]),trainingUsed=as.integer(role[i]=='train'&complete[i]),reason=if(complete[i])''else'missing-required-field'))\n }\n for(rol in unique(role))for(gr in c('all',unique(group))){use<-which(role==rol&(gr=='all'|group==gr));def<-use[defined[use]];scored<-use[labeled[use]&!role[use]%in%c('excluded','unused')];nn<-length(def);ns<-length(scored);cv<-sum(covered[scored]);ub<-if(kind=='company')0 else sum(is.infinite(width[def]));emit('role-group-coverage',list(kind=kind,role=rol,group=gr,originalRows=length(use),definedPredictions=nn,scoredLabels=ns,coveredRows=cv,coverage=if(ns)cv/ns else NA_real_,meanSetSize=if(kind=='company'&&nn)mean(setSize[def])else NA_real_,meanIntervalWidth=if(kind!='company'&&nn)mean(width[def])else NA_real_,unboundedIntervals=ub))}\n if(kind=='company')for(rol in c('train','calibration','test')){\n  ix<-which(role==rol&labeled);pp<-pred[ix];yy<-m$y[ix];N<-length(ix);bin<-pmin(4,floor(pp*5));yb<-if(N)mean(yy)else NA_real_;ece<-rel<-res<-vp<-cp<-0\n  for(j in 0:4){take<-which(bin==j);nb<-length(take);pm<-if(nb)mean(pp[take])else NA_real_;ym<-if(nb)mean(yy[take])else NA_real_;v<-if(nb)mean((pp[take]-pm)^2)else NA_real_;co<-if(nb)mean((pp[take]-pm)*(yy[take]-ym))else NA_real_;emit('reliability-bins',list(kind=kind,role=rol,bin=j,lower=j/5,upper=(j+1)/5,rightClosed=as.integer(j==4),rows=nb,meanP=pm,frequencyY1=ym,gap=pm-ym,withinVarianceP=v,withinCovariancePY=co));if(nb){z<-nb/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*co}}\n  mm<-list(ECE=if(N)ece else NA_real_,Brier=if(N)mean((pp-yy)^2)else NA_real_,uncertainty=yb*(1-yb),resolution=if(N)res else NA_real_,reliability=if(N)rel else NA_real_,withinVarianceP=if(N)vp else NA_real_,withinCovariancePY=if(N)cp else NA_real_);for(name in names(mm))metric(kind,paste0(rol,':',name),mm[[name]],if(name=='ECE')'dimensionless'else'squared probability');prob<-ifelse(yy==1,pp,1-pp);ll<-if(!N)NA_real_ else if(any(prob==0))Inf else-mean(log(prob));metric(kind,paste0(rol,':meanLogLoss'),ll,'nats','binary64 approximation or genuine infinity')\n }\n}\n\noutputs\n}\n\n# New fixed-example numerical adapters. Not arbitrary exact-input validators.\nnum20<-function(v){s<-as.character(v);a<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(a)==2)as.numeric(a[1])/as.numeric(a[2])else as.numeric(s)}\nalpha20<-function(s){a<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(a)==2){n<-as.numeric(a[1]);d<-as.numeric(a[2])}else{n<-as.numeric(a[1]);d<-1};if(n<=0||n>=d)stop('alpha-must-be-strictly-between-zero-and-one');c(n,d)}\nquantile20<-function(scores,alpha){ap<-alpha20(alpha);keep<-which(!vapply(scores,is.null,logical(1)));vv<-vapply(scores[keep],num20,numeric(1));ix<-order(vv,keep);n<-length(vv);k<-((n+1)*(ap[2]-ap[1])+ap[2]-1)%/%ap[2];list(n=n,k=k,threshold=if(k>n)NULL else vv[ix[k]],infinite=k>n,ordered=lapply(ix,function(j)list(score=vv[j],index=keep[j]-1)))}\nlogPositive20<-function(v){s<-tolower(as.character(v));part<-strsplit(s,'e',fixed=TRUE)[[1]];mantissa<-as.numeric(part[1]);power<-if(length(part)==2)as.numeric(part[2])else 0;if(mantissa<=0)stop('fixed positive weight required');log(mantissa)+power*log(10)}\nscore20<-function(rows){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));lw<-vapply(rows,function(r)logPositive20(if(is.null(r$weight))1 else r$weight),numeric(1));mx<-max(lw);lm<-mx+log(sum(exp(lw-mx)));mass<-exp(lm);w<-exp(lw-lm);observed<-ifelse(y==1,p,1-p);genuine<-any(observed==0);loss<-ifelse(observed==1,0,-log(observed));terms<-lw-lm+log(loss);finite<-terms[is.finite(terms)];ll<-if(genuine)'+infinity'else if(length(finite)){top<-max(finite);exp(top+log(sum(exp(finite-top))))}else 0;bs<-sum(w*(p-y)^2);list(rows=lapply(seq_along(rows),function(i)list(p=p[i],y=y[i],w=w[i])),mass=mass,Brier=bs,meanLogLoss=ll,genuineInfinite=genuine,BrierPositive=any(p!=y))}\ncalibration20<-function(rows,B){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));N<-length(p);bin<-pmin(B-1,floor(p*B));yb<-mean(y);ece<-rel<-res<-vp<-cp<-0;out<-list()\n for(j in 0:(B-1)){ix<-which(bin==j);n<-length(ix);pm<-if(n)mean(p[ix])else NULL;ym<-if(n)mean(y[ix])else NULL;v<-if(n)mean((p[ix]-pm)^2)else NULL;c<-if(n)mean((p[ix]-pm)*(y[ix]-ym))else NULL;out[[j+1]]<-list(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c);if(n){z<-n/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*c}}\n list(rows=N,bins=out,Brier=mean((p-y)^2),ECE=ece,uncertainty=yb*(1-yb),resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=yb*(1-yb)-res+rel+vp-2*cp)}\npredict20<-function(a){q<-quantile20(a$scores,a$alpha);classification<-a$mode=='classification';rows<-list()\n for(i in seq_along(a$queries)){r<-a$queries[[i]];p<-num20(if(classification)r$p else r$center);y<-if(is.null(r$y))NULL else num20(r$y)\n  if(classification){labels<-if(q$infinite)0:1 else which(c(p,1-p)<=q$threshold)-1;lo<-hi<-width<-NULL;size<-length(labels);covered<-if(is.null(y))NULL else as.integer(y%in%labels)}else{labels<-NULL;size<-NULL;lo<-if(q$infinite)'-infinity'else p-q$threshold;hi<-if(q$infinite)'+infinity'else p+q$threshold;width<-if(q$infinite)'+infinity'else 2*q$threshold;covered<-if(is.null(y))NULL else as.integer(q$infinite||abs(y-p)<=q$threshold+1e-12)}\n  rows[[i]]<-list(id=if(is.null(r$id))as.character(i-1)else r$id,prediction=p,actualY=y,labels=as.list(labels),size=size,lower=lo,upper=hi,width=width,covered=covered)\n };scored<-Filter(function(r)!is.null(r$covered),rows);coverage<-if(length(scored))mean(vapply(scored,`[[`,numeric(1),'covered'))else NULL;list(quantile=q,rows=rows,scoredLabels=length(scored),coverage=coverage,meanSetSize=if(classification&&length(rows))mean(vapply(rows,`[[`,numeric(1),'size'))else NULL,meanWidth=if(!classification&&length(rows))if(q$infinite)'+infinity'else 2*q$threshold else NULL)}\nranklaw20<-function(a){v<-vapply(a$scores,num20,numeric(1));trials<-lapply(seq_along(v),function(i){q<-quantile20(as.list(v[-i]),a$alpha);list(heldout=i-1,score=v[i],k=q$k,threshold=q$threshold,infinite=q$infinite,covered=as.integer(q$infinite||v[i]<=q$threshold))});list(N=length(v),distinct=length(unique(v))==length(v),trials=trials,coverage=mean(vapply(trials,`[[`,numeric(1),'covered')))}\nfixedOperation<-function(api,a)switch(api,score=score20(a$rows),calibration=calibration20(a$rows,a$bins),quantile=quantile20(a$scores,a$alpha),predict=predict20(a),ranklaw=ranklaw20(a),realdata=fixedSource(a$kind))\nreportValues<-function(api,z){summary<-list();points<-list();add<-function(k,v,u)summary[[length(summary)+1]]<<-list(metric=k,value=if(is.null(v)||length(v)==0||anyNA(v))NULL else unname(v),unit=u);pt<-function(s,i,x,y)points[[length(points)+1]]<<-list(series=s,index=i,x=x,y=y)\n if(api=='score'){for(k in c('mass','Brier','meanLogLoss','genuineInfinite','BrierPositive'))add(k,z[[k]],switch(k,mass='analysis weight',Brier='squared probability',meanLogLoss='nats; numerical logarithm',genuineInfinite='indicator',BrierPositive='mathematical indicator'));for(i in seq_along(z$rows)){r<-z$rows[[i]];pt('squared error',i-1,i-1,(r$p-r$y)^2)}\n }else if(api=='calibration'){for(k in c('Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity'))add(k,z[[k]],if(k=='ECE')'probability'else'squared probability');for(r in z$bins){pt('bin probability',r$bin,r$bin,r$meanP);pt('bin outcome frequency',r$bin,r$bin,r$frequency)}\n }else if(api=='quantile'){add('n',z$n,'scores');add('k',z$k,'one-based rank');add('infinite',z$infinite,'mathematical indicator');add('threshold',if(z$infinite)'+infinity'else z$threshold,'score units');for(i in seq_along(z$ordered))pt('sorted score',i-1,i,z$ordered[[i]]$score)\n }else if(api=='predict'){for(k in c('scoredLabels','coverage','meanSetSize','meanWidth'))add(k,z[[k]],switch(k,scoredLabels='labels',coverage='fraction',meanSetSize='classes',meanWidth='outcome units'));add('thresholdInfinite',z$quantile$infinite,'mathematical indicator');for(i in seq_along(z$rows)){pt('predicted center or probability',i-1,i-1,z$rows[[i]]$prediction);pt('observed label or outcome',i-1,i-1,z$rows[[i]]$actualY)}\n }else if(api=='ranklaw'){add('N',z$N,'scores');add('distinct',z$distinct,'indicator');add('coverage',z$coverage,'fraction');for(r in z$trials)pt('held-out coverage',r$heldout,r$heldout,r$covered)\n }else{for(k in c('sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold')){r<-Filter(function(r)r$metric==k,z[['study-metrics']])[[1]];add(k,r$value,r$unit)};cv<-Filter(function(r)r$role=='test'&&r$group=='all',z[['role-group-coverage']])[[1]];for(k in c('coverage','meanSetSize','meanIntervalWidth'))add(k,cv[[k]],switch(k,coverage='fraction',meanSetSize='classes',meanIntervalWidth='outcome units'));for(i in seq_along(z[['calibration-scores']])){r<-z[['calibration-scores']][[i]];pt('all calibration scores',i-1,r$rank,r$score)}}\n list(summary=summary,points=points)}\n\nescapeXML<-function(s){s<-gsub('&','&amp;',s,fixed=TRUE);s<-gsub('<','&lt;',s,fixed=TRUE);s<-gsub('>','&gt;',s,fixed=TRUE);gsub('\"','&quot;',s,fixed=TRUE)}\nsvgPlot<-function(pp,title){\n xx<-vapply(pp,function(p)as.numeric(p$x),numeric(1));yy<-vapply(pp,function(p)as.numeric(p$y),numeric(1));xmin<-if(length(xx))min(xx)else 0;xmax<-if(length(xx))max(xx)else 1;ymin<-min(c(0,yy));ymax<-max(c(0,yy));if(xmin==xmax){xmin<-xmin-.5;xmax<-xmax+.5};if(ymin==ymax){ymin<-ymin-.5;ymax<-ymax+.5};pad<-(ymax-ymin)*.08;ymin<-ymin-pad;ymax<-ymax+pad;X<-function(x)82+(as.numeric(x)-xmin)/(xmax-xmin)*608;Y<-function(y)354-(as.numeric(y)-ymin)/(ymax-ymin)*290\n out<-paste0('<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"',escapeXML(title),'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">',escapeXML(title),'</text>')\n for(j in 0:4){y<-ymin+(ymax-ymin)*j/4;x<-xmin+(xmax-xmin)*j/4;out<-paste0(out,'<line x1=\"82\" y1=\"',Y(y),'\" x2=\"690\" y2=\"',Y(y),'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"',Y(y)+4,'\" text-anchor=\"end\">',sprintf('%.3g',y),'</text><text x=\"',X(x),'\" y=\"380\" text-anchor=\"middle\">',sprintf('%.3g',x),'</text>')}\n ss<-unique(vapply(pp,`[[`,character(1),'series'));cols<-c('#0f766e','#c76622','#4f46e5','#b23857')\n for(j in seq_along(ss)){rr<-Filter(function(p)p$series==ss[j],pp);xy<-vapply(rr,function(p)sprintf('%.6f,%.6f',X(p$x),Y(p$y)),character(1));col<-cols[(j-1)%%4+1];out<-paste0(out,'<polyline fill=\"none\" stroke=\"',col,'\" stroke-width=\"1.5\" points=\"',paste(xy,collapse=' '),'\"/>');for(p in rr)out<-paste0(out,'<circle cx=\"',sprintf('%.6f',X(p$x)),'\" cy=\"',sprintf('%.6f',Y(p$y)),'\" r=\"2.6\" fill=\"',col,'\"><title>',escapeXML(ss[j]),': ',escapeXML(p$y),'</title></circle>');out<-paste0(out,'<text x=\"',82+((j-1)%%2)*310,'\" y=\"',432+floor((j-1)/2)*23,'\" fill=\"',col,'\">',escapeXML(ss[j]),'</text>')}\n paste0(out,'<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>')\n}\n\ntoJSON<-function(x){\n if(is.null(x))return('null');if(is.list(x)){v<-vapply(x,toJSON,character(1));if(!is.null(names(x)))paste0('{',paste(paste0(vapply(names(x),toJSON,character(1)),':',v),collapse=','),'}')else paste0('[',paste(v,collapse=','),']')}\n else if(length(x)!=1){if(!is.null(names(x)))toJSON(as.list(x))else paste0('[',paste(vapply(as.list(x),toJSON,character(1)),collapse=','),']')}\n else if(is.na(x))'null'else if(is.logical(x))if(x)'true'else'false'else if(is.numeric(x))if(is.finite(x))sprintf('%.17g',x)else'null'else paste0('\"',gsub('\\n','\\\\n',gsub('\"','\\\\\"',gsub('\\\\','\\\\\\\\',x,fixed=TRUE),fixed=TRUE),fixed=TRUE),'\"')\n}\n\nFIXED<-list(\"api\"=\"ranklaw\",\"variant\"=\"distinct-four\",\"title\"=\"Uniform held-out index with four distinct scores\",\"input\"=list(\"scores\"=list(\"1\",\"2\",\"3\",\"4\"),\"alpha\"=\"1/4\"),\"expectedFailure\"=FALSE)\n\nargs<-commandArgs(trailingOnly=TRUE);out<-if(length(args))args[1]else stop('NEW output directory required');if(dir.exists(out))stop('Preserve previous output directory');dir.create(out,recursive=TRUE)\nz<-fixedOperation(FIXED$api,FIXED$input);rr<-reportValues(FIXED$api,z)\nwriteLines(toJSON(list(arithmetic='BaseR numerical counterpart; QR and membership1e-12, log-domain tiny weights; source splitRank read from factualCSV',result=z)),file.path(out,'full.json'),useBytes=TRUE)\nsums<-do.call(rbind,lapply(rr$summary,function(row)data.frame(metric=row$metric,value=if(is.null(row$value))''else if(is.logical(row$value))as.character(as.integer(row$value))else format(row$value,digits=17,scientific=NA,trim=TRUE),unit=row$unit,defined=as.integer(!is.null(row$value)),stringsAsFactors=FALSE)))\npoints<-do.call(rbind,lapply(rr$points,function(p)data.frame(series=p$series,index=p$index,x=p$x,y=if(is.null(p$y))NA_real_ else p$y,defined=as.integer(!is.null(p$y)),stringsAsFactors=FALSE)))\nwrite.csv(sums,file.path(out,'summary.csv'),row.names=FALSE,na='');write.csv(points,file.path(out,'plot-points.csv'),row.names=FALSE,na='');writeLines(svgPlot(Filter(function(p)!is.null(p$y),rr$points),FIXED$title),file.path(out,'plot.svg'),useBytes=TRUE);cat(FIXED$api,'/',FIXED$variant,'\\n',sep='')\n",
        "returnCode": 0,
        "stdout": "ranklaw/distinct-four\r\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed ",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/r-ranklaw-distinct-four-result",
        "kind": null,
        "inputFiles": [],
        "files": [
          {
            "file": "ml20-code/r-ranklaw-distinct-four-result/full.json",
            "sha256": "5a7260b4428de21780be944a826f4dbaed73225d422cb2c9341cd11ba6859763",
            "bytes": 486
          },
          {
            "file": "ml20-code/r-ranklaw-distinct-four-result/plot-points.csv",
            "sha256": "1a3a33a8d3169ad6c318ea24c779b7f9679ddf5e9769d2f39e901341d92838fc",
            "bytes": 152
          },
          {
            "file": "ml20-code/r-ranklaw-distinct-four-result/plot.svg",
            "sha256": "2f8e5f43f086632f67f8c47e0226de9d1b84284c0ce48c3d7da4091dc6302f95",
            "bytes": 1930
          },
          {
            "file": "ml20-code/r-ranklaw-distinct-four-result/summary.csv",
            "sha256": "5c1c25b2df4db4859b2c2810da82cf1e4f02d5b2e57e247dda71d97dab513fb9",
            "bytes": 117
          },
          {
            "file": "ml20-code/r-ranklaw-distinct-four-result/stdout.txt",
            "sha256": "623e29e2a819096d0e287d9f009489a2b17ffe0c516d81949245c6a1465be816",
            "bytes": 23
          },
          {
            "file": "ml20-code/r-ranklaw-distinct-four-result/stderr.txt",
            "sha256": "b807bd2d0f7060ea384b0ac2317cda2d63a4f59f63b4a901b9e665fead79627d",
            "bytes": 182
          }
        ],
        "summaryRows": [
          {
            "metric": "N",
            "value": "4",
            "unit": "scores",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "4",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "distinct",
            "value": "1",
            "unit": "indicator",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "1",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "coverage",
            "value": "0.75",
            "unit": "fraction",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.75",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          }
        ],
        "plotRows": [
          {
            "series": "held-out coverage",
            "index": 0,
            "x": "0",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "held-out coverage",
            "index": 1,
            "x": "1",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "held-out coverage",
            "index": 2,
            "x": "2",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "held-out coverage",
            "index": 3,
            "x": "3",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          }
        ],
        "plotFile": "ml20-code/r-ranklaw-distinct-four-result/plot.svg",
        "fullResultFile": "ml20-code/r-ranklaw-distinct-four-result/full.json",
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      },
      "tied-four": {
        "api": "ranklaw",
        "variant": "tied-four",
        "language": "r",
        "title": "Tied scores give conservative inclusive coverage",
        "input": {
          "scores": [
            "0",
            "0",
            "0",
            "0"
          ],
          "alpha": "1/2"
        },
        "expectedFailure": false,
        "codeFile": "ml20-code/ranklaw-tied-four.R",
        "codeSHA256": "18346d3c76664dffbacac34ffc2a4a80c8cce581847f6b0e1dd3e8b1ac578351",
        "code": "# ML20 complete standalone numerical fixed examples, no browser/model/results.\n# Base-R QR1e-12/membership1e-12; tiny log loss uses log-domain normalized\n# weights to avoid early underflow. This is an approximate counterpart, not\n# a general exact-rational numeric-token validator. Fixed alpha uses small fractions.\noptions(digits=17)\nfixedSource<-function(kind){\n src<-file.path(dirname(sub(\"^--file=\",\"\",grep(\"^--file=\",commandArgs(),value=TRUE)[1])),\"data\")\nreadnative<-function(n)read.csv(file.path(src,n),check.names=FALSE,colClasses='character',na.strings=NULL,stringsAsFactors=FALSE)\nnum<-function(x){a<-suppressWarnings(as.numeric(x));a[x%in%c('','.')] <- NA_real_;a}\nroles<-function(d){n<-nrow(d);rank<-as.integer(d$splitRank);if(!identical(sort(rank),0:(n-1)))stop('splitRank permutation');planned<-c('test','calibration','train','train')[rank%%4+1];if(any(planned!=d$plannedRole))stop('planned roles');list(rank=rank,planned=planned)}\noriginal<-readnative('actual48-country-revised-original-2023-2024.csv');derived<-readnative('derived16-country-features-and-roles.csv');isos<-sort(unique(original$countryISO3));lookup<-function(iso,code,year){r<-original[original$countryISO3==iso&original$indicatorID==code&original$date==year,,drop=FALSE];if(nrow(r)!=1)stop('country identity');num(r$originalValueToken)}\ncr<-roles(derived);if(!identical(isos,derived$countryISO3))stop('country order');country<-list(id=paste0(isos,':2024'),sourceRow=isos,x=cbind(vapply(isos,lookup,numeric(1),code='NY.GDP.PCAP.KD',year='2023')/10000,vapply(isos,lookup,numeric(1),code='FP.CPI.TOTL.ZG',year='2023')/10),y=vapply(isos,lookup,numeric(1),code='NY.GDP.MKTP.KD.ZG',year='2024'),rank=cr$rank,planned=cr$planned,names=c('g','pi'),unit='annual GDP growth percentage points')\npd<-readnative('actual3613-NLS-original52-fields-and-conformal-frame.csv');pr<-roles(pd);person<-list(id=paste0('person-row:',pd$sourceRow),sourceRow=pd$sourceRow,x=cbind(num(pd$ed76),num(pd$age76)),y=num(pd$lwage76),rank=pr$rank,planned=pr$planned,names=c('ed76','age76'),unit='native trimmed1976log hourly wage')\ncd<-readnative('actual3150-churn-original14-fields-and-conformal-frame.csv');rr<-roles(cd);company<-list(id=paste0('customer-row:',cd$sourceRow),sourceRow=cd$sourceRow,x=cbind(num(cd[['Call  Failure']]),num(cd[['Seconds of Use']])),y=num(cd$Churn),rank=rr$rank,planned=rr$planned,names=c('CallFailure','SecondsUse'),unit='native Churn0/1')\nmodels<-list(country=country,person=person,company=company)\n\nmodels<-models[kind]\nalphaToken<-\"1/5\";ridgeToken<-\"1/100\"\nqnum<-function(s){v<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(v)==2)as.numeric(v[1])/as.numeric(v[2])else as.numeric(v)}\nalphaParts<-function(s){v<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(v)==2&&all(grepl('^[0-9]+$',v))){a<-as.numeric(v[1]);b<-as.numeric(v[2])}else if(grepl('^[0-9]+([.][0-9]{1,6})?$',s)){n<-if(grepl('.',s,fixed=TRUE))nchar(sub('^[^.]*[.]','',s))else 0;a<-as.numeric(gsub('.','',s,fixed=TRUE));b<-10^n}else stop('Base-R alpha needs small integer fraction or <=6decimal places');if(a<=0||a>=b||b>1e6)stop('Require0<alpha<1 with denominator<=1e6');c(a,b)}\nap<-alphaParts(alphaToken);alpha<-ap[1]/ap[2];lambda<-qnum(ridgeToken);if(!is.finite(lambda)||lambda<0)stop('nonnegative finite ridge required')\nnamesOut<-c('study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins');outputs<-setNames(lapply(namesOut,function(n)list()),namesOut)\nemit<-function(name,row)outputs[[name]][[length(outputs[[name]])+1L]]<<-row\nmetric<-function(kind,name,value,unit,arithmetic='binary64 approximation'){emit('study-metrics',list(kind=kind,metric=name,value=if(is.null(value))NA else value,unit=unit,defined=as.integer(!is.null(value)&&!is.na(value)),arithmetic=arithmetic))}\nfor(kind in names(models)){\n m<-models[[kind]];complete<-rowSums(is.na(m$x))==0&!is.na(m$y);role<-ifelse(complete,m$planned,'excluded');train<-which(role=='train');n<-length(train);stopifnot(n>0);meanX<-colMeans(m$x[train,,drop=FALSE]);scale<-apply(m$x[train,,drop=FALSE],2,function(x)diff(range(x)));scale[scale==0]<-1;Z<-cbind(1,sweep(sweep(m$x,2,meanX,'-'),2,scale,'/'));H<-crossprod(Z[train,,drop=FALSE])/n+diag(c(0,lambda,lambda));b<-as.vector(crossprod(Z[train,,drop=FALSE],m$y[train]))/n;qrfit<-qr(H,tol=1e-12,LAPACK=FALSE);theta<-qr.coef(qrfit,b);theta[is.na(theta)]<-0;minimum<-as.numeric(crossprod(theta,H%*%theta)/2-sum(theta*b)+sum(m$y[train]^2)/(2*n));beta<-theta[-1]/scale;intercept<-theta[1]-sum(beta*meanX);raw<-as.vector(Z%*%theta);pred<-if(kind=='company')pmax(0,pmin(1,raw))else raw;defined<-!is.na(pred);group<-if(kind=='person')ifelse(m$x[,1]<=12,'schooling-at-most12','schooling-over12')else if(kind=='company')ifelse(m$x[,1]==0,'zero-call-failures','positive-call-failures')else ifelse(m$x[,1]<=meanX[1],'GDPpc-at-most-training-mean','GDPpc-above-training-mean');group[is.na(raw)]<-'missing-X';cal<-which(role=='calibration'&defined&!is.na(m$y));score<-if(kind=='company')ifelse(m$y[cal]==1,1-pred[cal],pred[cal])else abs(m$y[cal]-pred[cal]);ordered<-order(score,seq_along(score));k<-ceiling((length(cal)+1)*(ap[2]-ap[1])/ap[2]);threshold<-if(k<=length(cal))score[ordered[k]]else Inf;unbounded<-is.infinite(threshold)\n for(j in seq_along(ordered)){slot<-ordered[j];i<-cal[slot];emit('calibration-scores',list(kind=kind,rank=j,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,calibrationIndex0=slot-1,score=score[slot],threshold=threshold,thresholdInfinite=as.integer(unbounded)))}\n for(j in 1:2)emit('training-coefficients',list(kind=kind,feature=m$names[j],mean=meanX[j],scale=scale[j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[1],nativeIntercept=intercept,rank=qrfit$rank,unique=as.integer(qrfit$rank==3),lambdaValue=lambda,minimumObjective=minimum))\n metrics<-list(sourceRows=length(role),trainingRows=n,calibrationScores=length(cal),testLabeledRows=sum(role=='test'&!is.na(m$y)),excludedRows=sum(role=='excluded'),alpha=alpha,ridge=lambda,quantileRank=k,threshold=threshold,minimumObjective=minimum);units<-c('rows','rows','unit-count scores','rows','rows','probability','transformed slope penalty','one-based rank',if(kind=='company')'dimensionless score'else m$unit,paste0('(',m$unit,') squared'))\n for(j in seq_along(metrics))metric(kind,names(metrics)[j],metrics[[j]],units[j],if(is.infinite(metrics[[j]]))'mathematical infinity'else if(j%in%c(1:5,8))'integer count'else'binary64 approximation')\n labeled<-defined&!is.na(m$y);covered<-rep(NA_integer_,length(role));lo<-hi<-width<-rep(NA_real_,length(role));setSize<-rep(NA_integer_,length(role));setLabels<-rep('',length(role))\n if(kind=='company'){\n  zero<-defined&(unbounded|pred<=threshold+1e-12);one<-defined&(unbounded|1-pred<=threshold+1e-12);setSize[defined]<-as.integer(zero[defined])+as.integer(one[defined]);setLabels[zero&!one]<-'0';setLabels[!zero&one]<-'1';setLabels[zero&one]<-'0|1';covered[labeled]<-as.integer((m$y[labeled]==0&zero[labeled])|(m$y[labeled]==1&one[labeled]))\n }else{lo[defined]<-pred[defined]-threshold;hi[defined]<-pred[defined]+threshold;width[defined]<-2*threshold;tol<-1e-12*pmax(1,abs(m$y[labeled]),abs(pred[labeled]),if(is.finite(threshold))abs(threshold)else 1);covered[labeled]<-as.integer(unbounded|abs(m$y[labeled]-pred[labeled])<=threshold+tol)}\n for(i in seq_along(role)){\n  emit('row-predictions',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,plannedRole=m$planned[i],role=role[i],group=group[i],actualY=m$y[i],rawLinear=raw[i],prediction=pred[i],predictionDefined=as.integer(defined[i]),threshold=threshold,thresholdInfinite=as.integer(unbounded),lower=lo[i],upper=hi[i],width=width[i],setLabels=setLabels[i],setSize=setSize[i],covered=covered[i],labeledPrediction=as.integer(labeled[i])))\n  emit('eligibility',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],plannedRole=m$planned[i],role=role[i],requiredComplete=as.integer(complete[i]),trainingUsed=as.integer(role[i]=='train'&complete[i]),reason=if(complete[i])''else'missing-required-field'))\n }\n for(rol in unique(role))for(gr in c('all',unique(group))){use<-which(role==rol&(gr=='all'|group==gr));def<-use[defined[use]];scored<-use[labeled[use]&!role[use]%in%c('excluded','unused')];nn<-length(def);ns<-length(scored);cv<-sum(covered[scored]);ub<-if(kind=='company')0 else sum(is.infinite(width[def]));emit('role-group-coverage',list(kind=kind,role=rol,group=gr,originalRows=length(use),definedPredictions=nn,scoredLabels=ns,coveredRows=cv,coverage=if(ns)cv/ns else NA_real_,meanSetSize=if(kind=='company'&&nn)mean(setSize[def])else NA_real_,meanIntervalWidth=if(kind!='company'&&nn)mean(width[def])else NA_real_,unboundedIntervals=ub))}\n if(kind=='company')for(rol in c('train','calibration','test')){\n  ix<-which(role==rol&labeled);pp<-pred[ix];yy<-m$y[ix];N<-length(ix);bin<-pmin(4,floor(pp*5));yb<-if(N)mean(yy)else NA_real_;ece<-rel<-res<-vp<-cp<-0\n  for(j in 0:4){take<-which(bin==j);nb<-length(take);pm<-if(nb)mean(pp[take])else NA_real_;ym<-if(nb)mean(yy[take])else NA_real_;v<-if(nb)mean((pp[take]-pm)^2)else NA_real_;co<-if(nb)mean((pp[take]-pm)*(yy[take]-ym))else NA_real_;emit('reliability-bins',list(kind=kind,role=rol,bin=j,lower=j/5,upper=(j+1)/5,rightClosed=as.integer(j==4),rows=nb,meanP=pm,frequencyY1=ym,gap=pm-ym,withinVarianceP=v,withinCovariancePY=co));if(nb){z<-nb/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*co}}\n  mm<-list(ECE=if(N)ece else NA_real_,Brier=if(N)mean((pp-yy)^2)else NA_real_,uncertainty=yb*(1-yb),resolution=if(N)res else NA_real_,reliability=if(N)rel else NA_real_,withinVarianceP=if(N)vp else NA_real_,withinCovariancePY=if(N)cp else NA_real_);for(name in names(mm))metric(kind,paste0(rol,':',name),mm[[name]],if(name=='ECE')'dimensionless'else'squared probability');prob<-ifelse(yy==1,pp,1-pp);ll<-if(!N)NA_real_ else if(any(prob==0))Inf else-mean(log(prob));metric(kind,paste0(rol,':meanLogLoss'),ll,'nats','binary64 approximation or genuine infinity')\n }\n}\n\noutputs\n}\n\n# New fixed-example numerical adapters. Not arbitrary exact-input validators.\nnum20<-function(v){s<-as.character(v);a<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(a)==2)as.numeric(a[1])/as.numeric(a[2])else as.numeric(s)}\nalpha20<-function(s){a<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(a)==2){n<-as.numeric(a[1]);d<-as.numeric(a[2])}else{n<-as.numeric(a[1]);d<-1};if(n<=0||n>=d)stop('alpha-must-be-strictly-between-zero-and-one');c(n,d)}\nquantile20<-function(scores,alpha){ap<-alpha20(alpha);keep<-which(!vapply(scores,is.null,logical(1)));vv<-vapply(scores[keep],num20,numeric(1));ix<-order(vv,keep);n<-length(vv);k<-((n+1)*(ap[2]-ap[1])+ap[2]-1)%/%ap[2];list(n=n,k=k,threshold=if(k>n)NULL else vv[ix[k]],infinite=k>n,ordered=lapply(ix,function(j)list(score=vv[j],index=keep[j]-1)))}\nlogPositive20<-function(v){s<-tolower(as.character(v));part<-strsplit(s,'e',fixed=TRUE)[[1]];mantissa<-as.numeric(part[1]);power<-if(length(part)==2)as.numeric(part[2])else 0;if(mantissa<=0)stop('fixed positive weight required');log(mantissa)+power*log(10)}\nscore20<-function(rows){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));lw<-vapply(rows,function(r)logPositive20(if(is.null(r$weight))1 else r$weight),numeric(1));mx<-max(lw);lm<-mx+log(sum(exp(lw-mx)));mass<-exp(lm);w<-exp(lw-lm);observed<-ifelse(y==1,p,1-p);genuine<-any(observed==0);loss<-ifelse(observed==1,0,-log(observed));terms<-lw-lm+log(loss);finite<-terms[is.finite(terms)];ll<-if(genuine)'+infinity'else if(length(finite)){top<-max(finite);exp(top+log(sum(exp(finite-top))))}else 0;bs<-sum(w*(p-y)^2);list(rows=lapply(seq_along(rows),function(i)list(p=p[i],y=y[i],w=w[i])),mass=mass,Brier=bs,meanLogLoss=ll,genuineInfinite=genuine,BrierPositive=any(p!=y))}\ncalibration20<-function(rows,B){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));N<-length(p);bin<-pmin(B-1,floor(p*B));yb<-mean(y);ece<-rel<-res<-vp<-cp<-0;out<-list()\n for(j in 0:(B-1)){ix<-which(bin==j);n<-length(ix);pm<-if(n)mean(p[ix])else NULL;ym<-if(n)mean(y[ix])else NULL;v<-if(n)mean((p[ix]-pm)^2)else NULL;c<-if(n)mean((p[ix]-pm)*(y[ix]-ym))else NULL;out[[j+1]]<-list(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c);if(n){z<-n/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*c}}\n list(rows=N,bins=out,Brier=mean((p-y)^2),ECE=ece,uncertainty=yb*(1-yb),resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=yb*(1-yb)-res+rel+vp-2*cp)}\npredict20<-function(a){q<-quantile20(a$scores,a$alpha);classification<-a$mode=='classification';rows<-list()\n for(i in seq_along(a$queries)){r<-a$queries[[i]];p<-num20(if(classification)r$p else r$center);y<-if(is.null(r$y))NULL else num20(r$y)\n  if(classification){labels<-if(q$infinite)0:1 else which(c(p,1-p)<=q$threshold)-1;lo<-hi<-width<-NULL;size<-length(labels);covered<-if(is.null(y))NULL else as.integer(y%in%labels)}else{labels<-NULL;size<-NULL;lo<-if(q$infinite)'-infinity'else p-q$threshold;hi<-if(q$infinite)'+infinity'else p+q$threshold;width<-if(q$infinite)'+infinity'else 2*q$threshold;covered<-if(is.null(y))NULL else as.integer(q$infinite||abs(y-p)<=q$threshold+1e-12)}\n  rows[[i]]<-list(id=if(is.null(r$id))as.character(i-1)else r$id,prediction=p,actualY=y,labels=as.list(labels),size=size,lower=lo,upper=hi,width=width,covered=covered)\n };scored<-Filter(function(r)!is.null(r$covered),rows);coverage<-if(length(scored))mean(vapply(scored,`[[`,numeric(1),'covered'))else NULL;list(quantile=q,rows=rows,scoredLabels=length(scored),coverage=coverage,meanSetSize=if(classification&&length(rows))mean(vapply(rows,`[[`,numeric(1),'size'))else NULL,meanWidth=if(!classification&&length(rows))if(q$infinite)'+infinity'else 2*q$threshold else NULL)}\nranklaw20<-function(a){v<-vapply(a$scores,num20,numeric(1));trials<-lapply(seq_along(v),function(i){q<-quantile20(as.list(v[-i]),a$alpha);list(heldout=i-1,score=v[i],k=q$k,threshold=q$threshold,infinite=q$infinite,covered=as.integer(q$infinite||v[i]<=q$threshold))});list(N=length(v),distinct=length(unique(v))==length(v),trials=trials,coverage=mean(vapply(trials,`[[`,numeric(1),'covered')))}\nfixedOperation<-function(api,a)switch(api,score=score20(a$rows),calibration=calibration20(a$rows,a$bins),quantile=quantile20(a$scores,a$alpha),predict=predict20(a),ranklaw=ranklaw20(a),realdata=fixedSource(a$kind))\nreportValues<-function(api,z){summary<-list();points<-list();add<-function(k,v,u)summary[[length(summary)+1]]<<-list(metric=k,value=if(is.null(v)||length(v)==0||anyNA(v))NULL else unname(v),unit=u);pt<-function(s,i,x,y)points[[length(points)+1]]<<-list(series=s,index=i,x=x,y=y)\n if(api=='score'){for(k in c('mass','Brier','meanLogLoss','genuineInfinite','BrierPositive'))add(k,z[[k]],switch(k,mass='analysis weight',Brier='squared probability',meanLogLoss='nats; numerical logarithm',genuineInfinite='indicator',BrierPositive='mathematical indicator'));for(i in seq_along(z$rows)){r<-z$rows[[i]];pt('squared error',i-1,i-1,(r$p-r$y)^2)}\n }else if(api=='calibration'){for(k in c('Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity'))add(k,z[[k]],if(k=='ECE')'probability'else'squared probability');for(r in z$bins){pt('bin probability',r$bin,r$bin,r$meanP);pt('bin outcome frequency',r$bin,r$bin,r$frequency)}\n }else if(api=='quantile'){add('n',z$n,'scores');add('k',z$k,'one-based rank');add('infinite',z$infinite,'mathematical indicator');add('threshold',if(z$infinite)'+infinity'else z$threshold,'score units');for(i in seq_along(z$ordered))pt('sorted score',i-1,i,z$ordered[[i]]$score)\n }else if(api=='predict'){for(k in c('scoredLabels','coverage','meanSetSize','meanWidth'))add(k,z[[k]],switch(k,scoredLabels='labels',coverage='fraction',meanSetSize='classes',meanWidth='outcome units'));add('thresholdInfinite',z$quantile$infinite,'mathematical indicator');for(i in seq_along(z$rows)){pt('predicted center or probability',i-1,i-1,z$rows[[i]]$prediction);pt('observed label or outcome',i-1,i-1,z$rows[[i]]$actualY)}\n }else if(api=='ranklaw'){add('N',z$N,'scores');add('distinct',z$distinct,'indicator');add('coverage',z$coverage,'fraction');for(r in z$trials)pt('held-out coverage',r$heldout,r$heldout,r$covered)\n }else{for(k in c('sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold')){r<-Filter(function(r)r$metric==k,z[['study-metrics']])[[1]];add(k,r$value,r$unit)};cv<-Filter(function(r)r$role=='test'&&r$group=='all',z[['role-group-coverage']])[[1]];for(k in c('coverage','meanSetSize','meanIntervalWidth'))add(k,cv[[k]],switch(k,coverage='fraction',meanSetSize='classes',meanIntervalWidth='outcome units'));for(i in seq_along(z[['calibration-scores']])){r<-z[['calibration-scores']][[i]];pt('all calibration scores',i-1,r$rank,r$score)}}\n list(summary=summary,points=points)}\n\nescapeXML<-function(s){s<-gsub('&','&amp;',s,fixed=TRUE);s<-gsub('<','&lt;',s,fixed=TRUE);s<-gsub('>','&gt;',s,fixed=TRUE);gsub('\"','&quot;',s,fixed=TRUE)}\nsvgPlot<-function(pp,title){\n xx<-vapply(pp,function(p)as.numeric(p$x),numeric(1));yy<-vapply(pp,function(p)as.numeric(p$y),numeric(1));xmin<-if(length(xx))min(xx)else 0;xmax<-if(length(xx))max(xx)else 1;ymin<-min(c(0,yy));ymax<-max(c(0,yy));if(xmin==xmax){xmin<-xmin-.5;xmax<-xmax+.5};if(ymin==ymax){ymin<-ymin-.5;ymax<-ymax+.5};pad<-(ymax-ymin)*.08;ymin<-ymin-pad;ymax<-ymax+pad;X<-function(x)82+(as.numeric(x)-xmin)/(xmax-xmin)*608;Y<-function(y)354-(as.numeric(y)-ymin)/(ymax-ymin)*290\n out<-paste0('<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"',escapeXML(title),'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">',escapeXML(title),'</text>')\n for(j in 0:4){y<-ymin+(ymax-ymin)*j/4;x<-xmin+(xmax-xmin)*j/4;out<-paste0(out,'<line x1=\"82\" y1=\"',Y(y),'\" x2=\"690\" y2=\"',Y(y),'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"',Y(y)+4,'\" text-anchor=\"end\">',sprintf('%.3g',y),'</text><text x=\"',X(x),'\" y=\"380\" text-anchor=\"middle\">',sprintf('%.3g',x),'</text>')}\n ss<-unique(vapply(pp,`[[`,character(1),'series'));cols<-c('#0f766e','#c76622','#4f46e5','#b23857')\n for(j in seq_along(ss)){rr<-Filter(function(p)p$series==ss[j],pp);xy<-vapply(rr,function(p)sprintf('%.6f,%.6f',X(p$x),Y(p$y)),character(1));col<-cols[(j-1)%%4+1];out<-paste0(out,'<polyline fill=\"none\" stroke=\"',col,'\" stroke-width=\"1.5\" points=\"',paste(xy,collapse=' '),'\"/>');for(p in rr)out<-paste0(out,'<circle cx=\"',sprintf('%.6f',X(p$x)),'\" cy=\"',sprintf('%.6f',Y(p$y)),'\" r=\"2.6\" fill=\"',col,'\"><title>',escapeXML(ss[j]),': ',escapeXML(p$y),'</title></circle>');out<-paste0(out,'<text x=\"',82+((j-1)%%2)*310,'\" y=\"',432+floor((j-1)/2)*23,'\" fill=\"',col,'\">',escapeXML(ss[j]),'</text>')}\n paste0(out,'<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>')\n}\n\ntoJSON<-function(x){\n if(is.null(x))return('null');if(is.list(x)){v<-vapply(x,toJSON,character(1));if(!is.null(names(x)))paste0('{',paste(paste0(vapply(names(x),toJSON,character(1)),':',v),collapse=','),'}')else paste0('[',paste(v,collapse=','),']')}\n else if(length(x)!=1){if(!is.null(names(x)))toJSON(as.list(x))else paste0('[',paste(vapply(as.list(x),toJSON,character(1)),collapse=','),']')}\n else if(is.na(x))'null'else if(is.logical(x))if(x)'true'else'false'else if(is.numeric(x))if(is.finite(x))sprintf('%.17g',x)else'null'else paste0('\"',gsub('\\n','\\\\n',gsub('\"','\\\\\"',gsub('\\\\','\\\\\\\\',x,fixed=TRUE),fixed=TRUE),fixed=TRUE),'\"')\n}\n\nFIXED<-list(\"api\"=\"ranklaw\",\"variant\"=\"tied-four\",\"title\"=\"Tied scores give conservative inclusive coverage\",\"input\"=list(\"scores\"=list(\"0\",\"0\",\"0\",\"0\"),\"alpha\"=\"1/2\"),\"expectedFailure\"=FALSE)\n\nargs<-commandArgs(trailingOnly=TRUE);out<-if(length(args))args[1]else stop('NEW output directory required');if(dir.exists(out))stop('Preserve previous output directory');dir.create(out,recursive=TRUE)\nz<-fixedOperation(FIXED$api,FIXED$input);rr<-reportValues(FIXED$api,z)\nwriteLines(toJSON(list(arithmetic='BaseR numerical counterpart; QR and membership1e-12, log-domain tiny weights; source splitRank read from factualCSV',result=z)),file.path(out,'full.json'),useBytes=TRUE)\nsums<-do.call(rbind,lapply(rr$summary,function(row)data.frame(metric=row$metric,value=if(is.null(row$value))''else if(is.logical(row$value))as.character(as.integer(row$value))else format(row$value,digits=17,scientific=NA,trim=TRUE),unit=row$unit,defined=as.integer(!is.null(row$value)),stringsAsFactors=FALSE)))\npoints<-do.call(rbind,lapply(rr$points,function(p)data.frame(series=p$series,index=p$index,x=p$x,y=if(is.null(p$y))NA_real_ else p$y,defined=as.integer(!is.null(p$y)),stringsAsFactors=FALSE)))\nwrite.csv(sums,file.path(out,'summary.csv'),row.names=FALSE,na='');write.csv(points,file.path(out,'plot-points.csv'),row.names=FALSE,na='');writeLines(svgPlot(Filter(function(p)!is.null(p$y),rr$points),FIXED$title),file.path(out,'plot.svg'),useBytes=TRUE);cat(FIXED$api,'/',FIXED$variant,'\\n',sep='')\n",
        "returnCode": 0,
        "stdout": "ranklaw/tied-four\r\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed ",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/r-ranklaw-tied-four-result",
        "kind": null,
        "inputFiles": [],
        "files": [
          {
            "file": "ml20-code/r-ranklaw-tied-four-result/full.json",
            "sha256": "054545f80969929c79831b03aaa585733c0711b53dbd89bd3ef02c4dcd0f9318",
            "bytes": 484
          },
          {
            "file": "ml20-code/r-ranklaw-tied-four-result/plot-points.csv",
            "sha256": "bf090c6c2b1d156e20cb93905b7b3e8c35645e43b8b6d3300992d2c43216f6b8",
            "bytes": 152
          },
          {
            "file": "ml20-code/r-ranklaw-tied-four-result/plot.svg",
            "sha256": "f7e4f02d839f1110cda1be1713e2a7143c38098490004de093306a5d3609f897",
            "bytes": 1928
          },
          {
            "file": "ml20-code/r-ranklaw-tied-four-result/summary.csv",
            "sha256": "d780fddd9e3fc2bbf8e6e6c3ee7a0187b3db8f9a0ce1620393558e8d24714f0c",
            "bytes": 114
          },
          {
            "file": "ml20-code/r-ranklaw-tied-four-result/stdout.txt",
            "sha256": "99e97c69b7c067bc786615f15e2166eff1389276cb206aa485c5e6d93b486067",
            "bytes": 19
          },
          {
            "file": "ml20-code/r-ranklaw-tied-four-result/stderr.txt",
            "sha256": "b807bd2d0f7060ea384b0ac2317cda2d63a4f59f63b4a901b9e665fead79627d",
            "bytes": 182
          }
        ],
        "summaryRows": [
          {
            "metric": "N",
            "value": "4",
            "unit": "scores",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "4",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "distinct",
            "value": "0",
            "unit": "indicator",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "coverage",
            "value": "1",
            "unit": "fraction",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "1",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          }
        ],
        "plotRows": [
          {
            "series": "held-out coverage",
            "index": 0,
            "x": "0",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "held-out coverage",
            "index": 1,
            "x": "1",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "held-out coverage",
            "index": 2,
            "x": "2",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "held-out coverage",
            "index": 3,
            "x": "3",
            "y": "1",
            "defined": true,
            "xExact": "",
            "yExact": ""
          }
        ],
        "plotFile": "ml20-code/r-ranklaw-tied-four-result/plot.svg",
        "fullResultFile": "ml20-code/r-ranklaw-tied-four-result/full.json",
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      }
    }
  },
  "realdata": {
    "python": {
      "country": {
        "api": "realdata",
        "variant": "country",
        "language": "python",
        "title": "Country growth: factual calibration and intervals",
        "input": {
          "kind": "country"
        },
        "expectedFailure": false,
        "codeFile": "ml20-code/realdata-country.py",
        "codeSHA256": "0940afda968a386438e743fde37ecf3173125e093076037d7dba60adf808dcc5",
        "code": "\"\"\"ML20 standalone fixed example, not an arbitrary-input validator.\nFinite Python Fraction algebra; natural logs use Decimal1800 approximation\nthen a final binary64 display projection. Realdata reads4factual CSVs only,\nreusing the frozen public reader/fit implementation by value; all other inputs\nare complete fixed literals. No engine/model/computed/checker imported.\nRun: python this-file.py NEW-OUTPUT\n\"\"\"\nfrom pathlib import Path\nimport csv,json,hashlib,sys,math,html\nif hasattr(sys,'set_int_max_str_digits'):sys.set_int_max_str_digits(100000)\n\"\"\"Owned standalone exact finite optimization primitives for ML19 public programs.\nThis is an author implementation, never an independent numerical oracle.\n\"\"\"\nfrom fractions import Fraction as Q\ndef number(v):return v if isinstance(v,Q)else Q(str(v))\ndef dot(a,b):return sum((x*y for x,y in zip(a,b)),Q(0))\ndef frame(rows,p=2,scale='range'):\n rr=[]\n for i,r in enumerate(rows):\n  x=[None if v is None else number(v)for v in r['x']];y=None if r['y']is None else number(r['y']);w=number(r.get('weight',1));role=r.get('role','train');rr.append(dict(id=r.get('id','row:'+str(i+1)),index=i,x=x,y=y,w=w,role=role,eligible=y is not None and all(v is not None for v in x)and w>0))\n train=[r for r in rr if r['role']=='train'and r['eligible']];W=sum((r['w']for r in train),Q(0))\n if not W:return dict(defined=False,p=p,rows=rr,train=[],W=W)\n mean=[sum(r['w']*r['x'][j]for r in train)/W for j in range(p)];ranges=[max(r['x'][j]for r in train)-min(r['x'][j]for r in train)or Q(1)for j in range(p)];scales=ranges if scale=='range'else[Q(1)]*p\n for r in rr:r['z']=None if None in r['x']else[Q(1)]+[(r['x'][j]-mean[j])/scales[j]for j in range(p)]\n return dict(defined=True,p=p,rows=rr,train=train,W=W,mean=mean,ranges=ranges,scales=scales,meanY=sum(r['w']*r['y']for r in train)/W)\ndef quadratic(f,lam=Q(0),role='train'):\n rr=[r for r in f['rows']if r['role']==role and r['eligible']];W=sum((r['w']for r in rr),Q(0));n=f['p']+1\n if not W:return None\n H=[[sum(r['w']*r['z'][j]*r['z'][k]for r in rr)/W+(lam if j==k and j else 0)for k in range(n)]for j in range(n)];b=[sum(r['w']*r['y']*r['z'][j]for r in rr)/W for j in range(n)];d=sum(r['w']*r['y']**2 for r in rr)/(2*W);return H,b,d\ndef state(q,theta):\n H,b,d=q;gradient=[dot(row,theta)-bb for row,bb in zip(H,b)];return dict(theta=theta,objective=dot(theta,[dot(row,theta)for row in H])/2-dot(theta,b)+d,gradient=gradient,gradientNormSquared=dot(gradient,gradient))\ndef solve(H,b):\n n=len(b);A=[row[:]+[bb]for row,bb in zip(H,b)];piv=[];row=0\n for j in range(n):\n  k=next((i for i in range(row,n)if A[i][j]),None)\n  if k is None:continue\n  A[row],A[k]=A[k],A[row];z=A[row][j];A[row]=[v/z for v in A[row]]\n  for i in range(n):\n   if i!=row:\n    z=A[i][j];A[i]=[v-z*u for v,u in zip(A[i],A[row])]\n  piv.append(j);row+=1\n  if row==n:break\n assert not any(not any(r[:n])and r[n]for r in A)\n beta=[Q(0)]*n\n for i,j in enumerate(piv):beta[j]=A[i][n]\n nullspace=[]\n for j in range(n):\n  if j not in piv:\n   v=[Q(0)]*n;v[j]=Q(1)\n   for i,k in enumerate(piv):v[k]=-A[i][j]\n   nullspace.append(v)\n return dict(rank=len(piv),particular=beta,nullspace=nullspace,unique=len(piv)==n)\n\n\ndef fixed_source(kind):\n selectedKind=kind\n SRC=Path(__file__).resolve().parent/\"data\"\n read=lambda n:list(csv.DictReader((SRC/n).open(encoding='utf8',newline='')))\n def native(v):return None if v in['','.']else v\n\n models={};original=read('actual48-country-revised-original-2023-2024.csv');lookup={(r['countryISO3'],r['indicatorID'],r['date']):r for r in original};rows=[]\n for iso in sorted({r['countryISO3']for r in original}):\n  g=lookup[iso,'NY.GDP.PCAP.KD','2023'];p=lookup[iso,'FP.CPI.TOTL.ZG','2023'];y=lookup[iso,'NY.GDP.MKTP.KD.ZG','2024'];rows.append(dict(id=iso+':2024',x=[None if not g['originalValueToken']else str(number(g['originalValueToken'])/10000),None if not p['originalValueToken']else str(number(p['originalValueToken'])/10)],y=native(y['originalValueToken']),sourceRow=iso))\n models['country']=dict(rows=rows,names=['g','pi'],unit='annual GDP growth percentage points')\n for kind,file,keys,ykey,ID in [('person','actual3613-NLS-original52-fields-and-conformal-frame.csv',['ed76','age76'],'lwage76','person-row:'),('company','actual3150-churn-original14-fields-and-conformal-frame.csv',['Call  Failure','Seconds of Use'],'Churn','customer-row:')]:\n  source=read(file);models[kind]=dict(rows=[dict(id=ID+r['sourceRow'],sourceRow=r['sourceRow'],x=[native(r[k])for k in keys],y=native(r[ykey]))for r in source],names=['ed76','age76']if kind=='person'else['CallFailure','SecondsUse'],unit='native trimmed1976log hourly wage'if kind=='person'else'native Churn0/1')\n for kind,m in models.items():\n  for rank,r in enumerate(sorted(m['rows'],key=lambda r:(hashlib.sha256(('ML20|'+kind+'|'+r['id']).encode()).digest(),r['id']))):r.update(splitRank=rank,plannedRole=['test','calibration','train','train'][rank%4]);r['role']=r['plannedRole']if r['y']is not None and None not in r['x']else'excluded';r['weight']='1'\n  m['trainingIDs']=[r['id']for r in sorted(m['rows'],key=lambda r:r['splitRank'])if r['role']=='train']\n\n models={selectedKind:models[selectedKind]}\n # New public actual-source study; exact finite Fraction fit/rank/membership.\n # Default single declared model, not a hyperparameter Cartesian dump.\n from decimal import Decimal,localcontext\n from collections import Counter\n outputs={k:[]for k in['study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins']}\n alpha=number('1/5');lam=number('1/100')\n if not 0<alpha<1 or lam<0:raise ValueError('Require0<alpha<1 and nonnegative ridge')\n def metric(kind,name,value,unit,arithmetic='exact rational'):\n  outputs['study-metrics'].append(dict(kind=kind,metric=name,value=''if value is None else value,unit=unit,defined=int(value is not None),arithmetic=arithmetic))\n def bins(rr,B=5):\n  groups=[[]for _ in range(B)]\n  for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n  n=len(rr);yb=sum((r['y']for r in rr),Q(0))/n if n else None;ece=rel=res=var=cov=Q(0);result=[]\n  for j,gg in enumerate(groups):\n   nn=len(gg);pm=sum((r['p']for r in gg),Q(0))/nn if nn else None;ym=sum((r['y']for r in gg),Q(0))/nn if nn else None;v=sum(((r['p']-pm)**2 for r in gg),Q(0))/nn if nn else None;co=sum(((r['p']-pm)*(r['y']-ym)for r in gg),Q(0))/nn if nn else None\n   result.append(dict(bin=j,lower=Q(j,B),upper=Q(j+1,B),rightClosed=int(j==B-1),rows=nn,meanP=pm,frequencyY1=ym,gap=None if not nn else pm-ym,withinVarianceP=v,withinCovariancePY=co))\n   if nn:weight=Q(nn,n);ece+=weight*abs(pm-ym);rel+=weight*(pm-ym)**2;res+=weight*(ym-yb)**2;var+=weight*v;cov+=weight*co\n  return result,dict(ECE=ece if n else None,Brier=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/n if n else None,uncertainty=yb*(1-yb)if n else None,resolution=res if n else None,reliability=rel if n else None,withinVarianceP=var if n else None,withinCovariancePY=cov if n else None)\n def meanlog(rr):\n  if not rr:return None\n  pp=[r['p']if r['y']else 1-r['p']for r in rr]\n  if any(not p for p in pp):return'+infinity'\n  with localcontext()as ctx:\n   ctx.prec=60;return str(-sum(((Decimal(p.numerator)/Decimal(p.denominator)).ln()for p in pp),Decimal(0))/len(pp))\n for kind,m in models.items():\n  f=frame(m['rows']);n=len(f['train']);assert n>0;H,b,d=quadratic(f,lam);fit=solve(H,b);theta=fit['particular'];minimum=state((H,b,d),theta)['objective'];beta=[theta[j+1]/f['scales'][j]for j in range(2)];intercept=theta[0]-dot(beta,f['mean']);rr=[]\n  for r in f['rows']:\n   native=m['rows'][r['index']];raw=None if r['z']is None else dot(r['z'],theta);pred=None if raw is None else max(Q(0),min(Q(1),raw))if kind=='company'else raw;group='missing-X'if r['z']is None else('schooling-at-most12'if r['x'][0]<=12 else'schooling-over12')if kind=='person'else('zero-call-failures'if r['x'][0]==0 else'positive-call-failures')if kind=='company'else('GDPpc-at-most-training-mean'if r['x'][0]<=f['mean'][0]else'GDPpc-above-training-mean');rr.append(dict(id=r['id'],sourceRow=native['sourceRow'],sourceIndex0=r['index'],plannedRole=native['plannedRole'],role=r['role'],group=group,y=r['y'],raw=raw,prediction=pred,eligible=r['eligible']))\n  cal=[r for r in rr if r['role']=='calibration'and r['prediction']is not None and r['y']is not None]\n  for i,r in enumerate(cal):r['calibrationIndex0']=i;r['score']=(1-r['prediction']if r['y']else r['prediction'])if kind=='company'else abs(r['y']-r['prediction'])\n  ordered=sorted(cal,key=lambda r:(r['score'],r['calibrationIndex0']));rankQ=(len(cal)+1)*(1-alpha);k=(rankQ.numerator+rankQ.denominator-1)//rankQ.denominator;threshold=ordered[k-1]['score']if k<=len(cal)else None;unbounded=threshold is None\n  for j,r in enumerate(ordered,1):outputs['calibration-scores'].append(dict(kind=kind,rank=j,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],calibrationIndex0=r['calibrationIndex0'],score=r['score'],threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded)))\n  for j,name in enumerate(m['names']):outputs['training-coefficients'].append(dict(kind=kind,feature=name,mean=f['mean'][j],scale=f['scales'][j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[0],nativeIntercept=intercept,rank=fit['rank'],unique=int(fit['unique']),lambdaValue=lam,minimumObjective=minimum))\n  for name,value,unit in[('sourceRows',len(rr),'rows'),('trainingRows',n,'rows'),('calibrationScores',len(cal),'unit-count scores'),('testLabeledRows',sum(r['role']=='test'and r['y']is not None for r in rr),'rows'),('excludedRows',sum(r['role']=='excluded'for r in rr),'rows'),('alpha',alpha,'probability'),('ridge',lam,'transformed slope penalty'),('quantileRank',k,'one-based rank'),('threshold','+infinity'if unbounded else threshold,'dimensionless score'if kind=='company'else m['unit']),('minimumObjective',minimum,'('+m['unit']+') squared')]:metric(kind,name,value,unit,'mathematical infinity'if value=='+infinity'else'exact rational')\n  for r in rr:\n   defined=r['prediction']is not None;labeled=defined and r['y']is not None\n   if not defined:lo=hi=width=size=None;labels='';covered=None\n   elif kind=='company':\n    labelsList=[j for j,s in enumerate([r['prediction'],1-r['prediction']])if unbounded or s<=threshold];labels='|'.join(map(str,labelsList));size=len(labelsList);lo=hi=width=None;covered=int(int(r['y'])in labelsList)if labeled else None\n   else:lo='-infinity'if unbounded else r['prediction']-threshold;hi='+infinity'if unbounded else r['prediction']+threshold;width='+infinity'if unbounded else 2*threshold;labels='';size=None;covered=int(unbounded or abs(r['y']-r['prediction'])<=threshold)if labeled else None\n   r.update(defined=defined,labeled=labeled,lower=lo,upper=hi,width=width,labels=labels,size=size,covered=covered)\n   outputs['row-predictions'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],plannedRole=r['plannedRole'],role=r['role'],group=r['group'],actualY=r['y'],rawLinear=r['raw'],prediction=r['prediction'],predictionDefined=int(defined),threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded),lower=lo,upper=hi,width=width,setLabels=labels,setSize=size,covered=covered,labeledPrediction=int(labeled)))\n   outputs['eligibility'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],plannedRole=r['plannedRole'],role=r['role'],requiredComplete=int(r['eligible']),trainingUsed=int(r['role']=='train'and r['eligible']),reason='missing-required-field'if not r['eligible']else''))\n  roles=list(dict.fromkeys(r['role']for r in rr));groups=list(dict.fromkeys(r['group']for r in rr))\n  for role in roles:\n   for group in['all']+groups:\n    use=[r for r in rr if r['role']==role and(group=='all'or r['group']==group)];defined=[r for r in use if r['defined']];scored=[r for r in use if r['labeled']and role not in['excluded','unused']];covered=sum(r['covered']for r in scored);nn=len(defined);nscore=len(scored);unboundedCount=sum(r['width']=='+infinity'for r in defined);size=Q(sum(r['size']for r in defined),nn)if kind=='company'and nn else None;width=('+infinity'if unboundedCount else sum(r['width']for r in defined)/nn)if kind!='company'and nn else None\n    outputs['role-group-coverage'].append(dict(kind=kind,role=role,group=group,originalRows=len(use),definedPredictions=nn,scoredLabels=nscore,coveredRows=covered,coverage=Q(covered,nscore)if nscore else None,meanSetSize=size,meanIntervalWidth=width,unboundedIntervals=unboundedCount))\n  if kind=='company':\n   for role in['train','calibration','test']:\n    use=[dict(p=r['prediction'],y=r['y'])for r in rr if r['role']==role and r['labeled']];bb,mm=bins(use)\n    for row in bb:outputs['reliability-bins'].append(dict(kind=kind,role=role,**row))\n    for name,value in mm.items():metric(kind,role+':'+name,value,'dimensionless'if name=='ECE'else'squared probability')\n    metric(kind,role+':meanLogLoss',meanlog(use),'nats','Decimal60 approximation or genuine infinity')\n return outputs\n\n# Owned ML20 fixed-example adapters. Finite rational calculations; logs approximate.\nfrom fractions import Fraction as Q\nfrom decimal import Decimal,localcontext\nimport math\ndef num(v):return v if isinstance(v,Q)else Q(str(v))\ndef ceilq(q):return-((-q.numerator)//q.denominator)\ndef fixed_quantile(scores,alpha):\n a=num(alpha)\n if not 0<a<1:raise ValueError('alpha-must-be-strictly-between-zero-and-one')\n ordered=sorted([(num(v),i)for i,v in enumerate(scores)if v is not None]);n=len(ordered);k=ceilq((n+1)*(1-a));q=None if k>n else ordered[k-1][0]\n return dict(n=n,k=k,threshold=q,infinite=q is None,ordered=ordered)\ndef fixed_score(rows):\n rr=[dict(p=num(r['p']),y=num(r['y']),w=num(r.get('weight',1)))for r in rows];rr=[r for r in rr if r['w']>0];mass=sum((r['w']for r in rr),Q(0));brier=sum((r['w']*(r['p']-r['y'])**2 for r in rr),Q(0))/mass if mass else None;logs=[];genuine=False\n with localcontext()as ctx:\n  ctx.prec=1800\n  total=Decimal(0)\n  for r in rr:\n   p=r['p']if r['y']else 1-r['p']\n   if not p:genuine=True;logs.append('+infinity');continue\n   loss=-(Decimal(p.numerator)/Decimal(p.denominator)).ln();logs.append(str(loss));w=r['w']/mass;total+=Decimal(w.numerator)/Decimal(w.denominator)*loss\n  display='+infinity'if genuine else None if not mass else repr(float(total));raw='+infinity'if genuine else None if not mass else str(total)\n return dict(rows=rr,mass=mass,Brier=brier,meanLogLoss=display,naturalLogApprox1800=raw,individualLogLoss=logs,genuineInfinite=genuine,BrierPositive=brier is not None and brier>0)\ndef fixed_calibration(rows,B):\n rr=[dict(p=num(r['p']),y=num(r['y']))for r in rows];N=len(rr);yb=sum((r['y']for r in rr),Q(0))/N;groups=[[]for _ in range(B)]\n for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n result=[];ece=rel=res=vp=cp=Q(0)\n for j,g in enumerate(groups):\n  n=len(g);pm=sum((r['p']for r in g),Q(0))/n if n else None;ym=sum((r['y']for r in g),Q(0))/n if n else None;v=sum(((r['p']-pm)**2 for r in g),Q(0))/n if n else None;c=sum(((r['p']-pm)*(r['y']-ym)for r in g),Q(0))/n if n else None;result.append(dict(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c))\n  if n:z=Q(n,N);ece+=z*abs(pm-ym);rel+=z*(pm-ym)**2;res+=z*(ym-yb)**2;vp+=z*v;cp+=z*c\n bs=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/N;u=yb*(1-yb)\n return dict(rows=N,bins=result,Brier=bs,ECE=ece,uncertainty=u,resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=u-res+rel+vp-2*cp)\ndef fixed_predict(a):\n q=fixed_quantile(a['scores'],a['alpha']);out=[];classification=a['mode']=='classification'\n for i,row in enumerate(a['queries']):\n  p=num(row['p']if classification else row['center']);y=None if row.get('y')is None else num(row['y']);threshold=q['threshold'];unbounded=q['infinite']\n  if classification:labels=[v for v,s in[(0,p),(1,1-p)]if unbounded or s<=threshold];lo=hi=width=None;size=len(labels);covered=None if y is None else int(int(y)in labels)\n  else:labels=None;size=None;lo='-infinity'if unbounded else p-threshold;hi='+infinity'if unbounded else p+threshold;width='+infinity'if unbounded else 2*threshold;covered=None if y is None else int(unbounded or abs(y-p)<=threshold)\n  out.append(dict(id=row.get('id',str(i)),prediction=p,actualY=y,labels=labels,size=size,lower=lo,upper=hi,width=width,covered=covered))\n scored=[r for r in out if r['covered']is not None];coverage=Q(sum(r['covered']for r in scored),len(scored))if scored else None;meanSize=Q(sum(r['size']for r in out),len(out))if classification and out else None;meanWidth=('+infinity'if q['infinite']else 2*q['threshold'])if not classification and out else None\n return dict(quantile=q,rows=out,scoredLabels=len(scored),coverage=coverage,meanSetSize=meanSize,meanWidth=meanWidth)\ndef fixed_ranklaw(a):\n scores=list(map(num,a['scores']));trials=[]\n for i,y in enumerate(scores):q=fixed_quantile(scores[:i]+scores[i+1:],a['alpha']);trials.append(dict(heldout=i,score=y,k=q['k'],threshold=q['threshold'],infinite=q['infinite'],covered=int(q['infinite']or y<=q['threshold'])))\n return dict(N=len(scores),distinct=len(set(scores))==len(scores),trials=trials,coverage=Q(sum(t['covered']for t in trials),len(trials)))\ndef fixed_operation(api,a):\n return fixed_score(a['rows'])if api=='score'else fixed_calibration(a['rows'],a['bins'])if api=='calibration'else fixed_quantile(a['scores'],a['alpha'])if api=='quantile'else fixed_predict(a)if api=='predict'else fixed_ranklaw(a)if api=='ranklaw'else fixed_source(a['kind'])\ndef report_values(api,z):\n summary=[];series=[]\n def add(k,v,u):summary.append((k,v,u))\n if api=='score':\n  for k,u in[('mass','analysis weight'),('Brier','squared probability'),('meanLogLoss','nats; numerical logarithm'),('genuineInfinite','indicator'),('BrierPositive','mathematical indicator')]:add(k,z[k],u)\n  series=[('squared error',[(i,(r['p']-r['y'])**2)for i,r in enumerate(z['rows'])])]\n elif api=='calibration':\n  for k in['Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity']:add(k,z[k],'probability'if k=='ECE'else'squared probability')\n  series=[('bin probability',[(r['bin'],r['meanP'])for r in z['bins']]),('bin outcome frequency',[(r['bin'],r['frequency'])for r in z['bins']])]\n elif api=='quantile':\n  for k,u in[('n','scores'),('k','one-based rank'),('infinite','mathematical indicator')]:add(k,z[k],u)\n  add('threshold','+infinity'if z['infinite']else z['threshold'],'score units');series=[('sorted score',[(i+1,v)for i,(v,index)in enumerate(z['ordered'])])]\n elif api=='predict':\n  for k,u in[('scoredLabels','labels'),('coverage','fraction'),('meanSetSize','classes'),('meanWidth','outcome units')]:add(k,z[k],u)\n  add('thresholdInfinite',z['quantile']['infinite'],'mathematical indicator');series=[('predicted center or probability',[(i,r['prediction'])for i,r in enumerate(z['rows'])]),('observed label or outcome',[(i,r['actualY'])for i,r in enumerate(z['rows'])])]\n elif api=='ranklaw':\n  for k,u in[('N','scores'),('distinct','indicator'),('coverage','fraction')]:add(k,z[k],u)\n  series=[('held-out coverage',[(r['heldout'],r['covered'])for r in z['trials']])]\n else:\n  mt={r['metric']:r for r in z['study-metrics']};cv=next(r for r in z['role-group-coverage']if r['role']=='test'and r['group']=='all')\n  for k in['sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold']:add(k,mt[k]['value'],mt[k]['unit'])\n  for k,u in[('coverage','fraction'),('meanSetSize','classes'),('meanIntervalWidth','outcome units')]:add(k,cv[k],u)\n  series=[('all calibration scores',[(r['rank'],r['score'])for r in z['calibration-scores']])]\n return summary,series\n\nnumber=num\n\nFIXED={'api': 'realdata', 'variant': 'country', 'title': 'Country growth: factual calibration and intervals', 'input': {'kind': 'country'}, 'expectedFailure': False}\n\ndef fixed_svg(points,title):\n good=[p for p in points if p['y'] is not None];xx=[float(p['x'])for p in good];yy=[float(p['y'])for p in good];xmin=min(xx)if xx else 0;xmax=max(xx)if xx else 1;ymin=min([0]+yy);ymax=max([0]+yy)\n if xmin==xmax:xmin-=.5;xmax+=.5\n if ymin==ymax:ymin-=.5;ymax+=.5\n pad=(ymax-ymin)*.08;ymin-=pad;ymax+=pad;X=lambda x:82+(float(x)-xmin)/(xmax-xmin)*608;Y=lambda y:354-(float(y)-ymin)/(ymax-ymin)*290;e=html.escape\n out=['<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"'+e(title)+'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">'+e(title)+'</text>']\n for j in range(5):\n  y=ymin+(ymax-ymin)*j/4;x=xmin+(xmax-xmin)*j/4;out.append('<line x1=\"82\" y1=\"'+str(Y(y))+'\" x2=\"690\" y2=\"'+str(Y(y))+'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"'+str(Y(y)+4)+'\" text-anchor=\"end\">'+format(y,'.3g')+'</text><text x=\"'+str(X(x))+'\" y=\"380\" text-anchor=\"middle\">'+format(x,'.3g')+'</text>')\n series=list(dict.fromkeys(p['series']for p in good))\n for j,s in enumerate(series):\n  pp=[p for p in good if p['series']==s];color=['#0f766e','#c76622','#4f46e5','#b23857'][j%4];out.append('<polyline fill=\"none\" stroke=\"'+color+'\" stroke-width=\"1.5\" points=\"'+' '.join(format(X(p['x']),'.6f')+','+format(Y(p['y']),'.6f')for p in pp)+'\"/>')\n  for p in pp:out.append('<circle cx=\"'+format(X(p['x']),'.6f')+'\" cy=\"'+format(Y(p['y']),'.6f')+'\" r=\"2.6\" fill=\"'+color+'\"><title>'+e(s+': '+str(p['y']))+'</title></circle>')\n  out.append('<text x=\"'+str(82+(j%2)*310)+'\" y=\"'+str(432+(j//2)*23)+'\" fill=\"'+color+'\">'+e(s)+'</text>')\n out.append('<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>');return''.join(out)\n\nOUT=Path(sys.argv[1]);OUT.mkdir(parents=True,exist_ok=False)\nresult=fixed_operation(FIXED['api'],FIXED['input']);summary,series=report_values(FIXED['api'],result)\ndef encode(v):\n if isinstance(v,Q):return str(v)\n if isinstance(v,dict):return{k:encode(x)for k,x in v.items()}\n if isinstance(v,(list,tuple)):return[encode(x)for x in v]\n return v\n(OUT/'full.json').write_text(json.dumps(dict(arithmetic='Exact finite Fraction algebra except approximate natural logs; declared fixed examples, no exchangeability certification',result=encode(result)),ensure_ascii=False,indent=2)+'\\n',encoding='utf8')\nsummaryRows=[dict(metric=m,value=''if v is None else str(int(v))if isinstance(v,bool)else str(v),unit=u,defined=int(v is not None))for m,v,u in summary]\npoints=[dict(series=name,index=i,x=str(x),y=''if y is None else str(y),defined=int(y is not None))for name,pp in series for i,(x,y)in enumerate(pp)]\nfor name,rows in [('summary',summaryRows),('plot-points',points)]:\n with(OUT/(name+'.csv')).open('w',encoding='utf8',newline='')as f:writer=csv.DictWriter(f,fieldnames=list(rows[0]));writer.writeheader();writer.writerows(rows)\n(OUT/'plot.svg').write_text(fixed_svg([dict(p,x=number(p['x']),y=None if not p['defined']else number(p['y']))for p in points],FIXED['title']),encoding='utf8');print(FIXED['api']+'/'+FIXED['variant'])\n",
        "returnCode": 0,
        "stdout": "realdata/country\r\n",
        "stderr": "",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/python-realdata-country-result",
        "kind": "country",
        "inputFiles": [
          {
            "file": "ml20-code/data/actual48-country-revised-original-2023-2024.csv",
            "sha256": "bd444c284344c21f8b980885aea1b76af20754bb31e31d9d9e111ecd44c1454e"
          },
          {
            "file": "ml20-code/data/derived16-country-features-and-roles.csv",
            "sha256": "e3a4a00edafdd14b873c163a9a045d75e7314ed6416048507bb2aa58fdb4f62a"
          },
          {
            "file": "ml20-code/data/actual3613-NLS-original52-fields-and-conformal-frame.csv",
            "sha256": "27290a3ca7b659af0e2a96d52149c30d42274a8119444d3c843e71f92eb9d7c2"
          },
          {
            "file": "ml20-code/data/actual3150-churn-original14-fields-and-conformal-frame.csv",
            "sha256": "4389b8e17f2829529b5200e3b1d5e27d4a4ec101947a2beb46e91bbe7efdbe34"
          }
        ],
        "files": [
          {
            "file": "ml20-code/python-realdata-country-result/full.json",
            "sha256": "5e5426beb63793be646b2a7987e7a6732f6a3663965e5059178d3192e96fdc99",
            "bytes": 40640
          },
          {
            "file": "ml20-code/python-realdata-country-result/plot-points.csv",
            "sha256": "206282c393d264fc3ac3086ce1f8aedef1e757859b6e07855addd81709358b57",
            "bytes": 781
          },
          {
            "file": "ml20-code/python-realdata-country-result/plot.svg",
            "sha256": "63e714648797310647fae3fd1f75870d4513f82e8e17a93c4aa0287338994a5a",
            "bytes": 2616
          },
          {
            "file": "ml20-code/python-realdata-country-result/summary.csv",
            "sha256": "4d9a50339e8daa651290eaf70ebbcbf8e7f8e057696a535ab8a339859c5ea43c",
            "bytes": 645
          },
          {
            "file": "ml20-code/python-realdata-country-result/stdout.txt",
            "sha256": "99648b1e288ee01e8332f6c578bcd776743cb74d8ee58527058c637cc5d5744a",
            "bytes": 18
          },
          {
            "file": "ml20-code/python-realdata-country-result/stderr.txt",
            "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
            "bytes": 0
          }
        ],
        "summaryRows": [
          {
            "metric": "sourceRows",
            "value": "16",
            "unit": "rows",
            "defined": "true",
            "exactFraction": "16",
            "rawValue": "16",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "trainingRows",
            "value": "8",
            "unit": "rows",
            "defined": "true",
            "exactFraction": "8",
            "rawValue": "8",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "calibrationScores",
            "value": "4",
            "unit": "unit-count scores",
            "defined": "true",
            "exactFraction": "4",
            "rawValue": "4",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "testLabeledRows",
            "value": "4",
            "unit": "rows",
            "defined": "true",
            "exactFraction": "4",
            "rawValue": "4",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "excludedRows",
            "value": "0",
            "unit": "rows",
            "defined": "true",
            "exactFraction": "0",
            "rawValue": "0",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "quantileRank",
            "value": "4",
            "unit": "one-based rank",
            "defined": "true",
            "exactFraction": "4",
            "rawValue": "4",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "threshold",
            "value": "3.4743234",
            "unit": "annual GDP growth percentage points",
            "defined": "true",
            "exactFraction": "5718152229972812188932571551531194659329640952700742357031888048160853407728081/1645831883524039967537076963546930930827886491420068094196079706000000000000000",
            "rawValue": "5718152229972812188932571551531194659329640952700742357031888048160853407728081/1645831883524039967537076963546930930827886491420068094196079706000000000000000",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "coverage",
            "value": "1",
            "unit": "fraction",
            "defined": "true",
            "exactFraction": "1",
            "rawValue": "1",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "meanSetSize",
            "value": "undefined",
            "unit": "classes",
            "defined": "false",
            "exactFraction": "",
            "rawValue": "",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "meanIntervalWidth",
            "value": "6.94864681",
            "unit": "outcome units",
            "defined": "true",
            "exactFraction": "5718152229972812188932571551531194659329640952700742357031888048160853407728081/822915941762019983768538481773465465413943245710034047098039853000000000000000",
            "rawValue": "5718152229972812188932571551531194659329640952700742357031888048160853407728081/822915941762019983768538481773465465413943245710034047098039853000000000000000",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          }
        ],
        "plotRows": [
          {
            "series": "all calibration scores",
            "index": 0,
            "x": "1",
            "y": "2.7891887471627941",
            "defined": true,
            "xExact": "1",
            "yExact": "73448572307951975063883453775813268835942124226344787273974572416997194876697/26333310136384639480593231416750894893246183862721089507137275296000000000000"
          },
          {
            "series": "all calibration scores",
            "index": 1,
            "x": "2",
            "y": "3.0615873806991245",
            "defined": true,
            "xExact": "2",
            "yExact": "5038858125349472135518754095845561814944249057730586537991417622526582788957851/1645831883524039967537076963546930930827886491420068094196079706000000000000000"
          },
          {
            "series": "all calibration scores",
            "index": 2,
            "x": "3",
            "y": "3.1544778807136158",
            "defined": true,
            "xExact": "3",
            "yExact": "1483354363414232043347083549908703945217763875499173721668733186216713368225431/470237681006868562153450561013408837379396140405733741198879916000000000000000"
          },
          {
            "series": "all calibration scores",
            "index": 3,
            "x": "4",
            "y": "3.4743234027822805",
            "defined": true,
            "xExact": "4",
            "yExact": "5718152229972812188932571551531194659329640952700742357031888048160853407728081/1645831883524039967537076963546930930827886491420068094196079706000000000000000"
          }
        ],
        "plotFile": "ml20-code/python-realdata-country-result/plot.svg",
        "fullResultFile": "ml20-code/python-realdata-country-result/full.json",
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      },
      "person": {
        "api": "realdata",
        "variant": "person",
        "language": "python",
        "title": "Native log wages: factual calibration and intervals",
        "input": {
          "kind": "person"
        },
        "expectedFailure": false,
        "codeFile": "ml20-code/realdata-person.py",
        "codeSHA256": "6c75c448bdf2c9d9bc494649c31264b2030a167352e7af449c57d4b991fa8ed0",
        "code": "\"\"\"ML20 standalone fixed example, not an arbitrary-input validator.\nFinite Python Fraction algebra; natural logs use Decimal1800 approximation\nthen a final binary64 display projection. Realdata reads4factual CSVs only,\nreusing the frozen public reader/fit implementation by value; all other inputs\nare complete fixed literals. No engine/model/computed/checker imported.\nRun: python this-file.py NEW-OUTPUT\n\"\"\"\nfrom pathlib import Path\nimport csv,json,hashlib,sys,math,html\nif hasattr(sys,'set_int_max_str_digits'):sys.set_int_max_str_digits(100000)\n\"\"\"Owned standalone exact finite optimization primitives for ML19 public programs.\nThis is an author implementation, never an independent numerical oracle.\n\"\"\"\nfrom fractions import Fraction as Q\ndef number(v):return v if isinstance(v,Q)else Q(str(v))\ndef dot(a,b):return sum((x*y for x,y in zip(a,b)),Q(0))\ndef frame(rows,p=2,scale='range'):\n rr=[]\n for i,r in enumerate(rows):\n  x=[None if v is None else number(v)for v in r['x']];y=None if r['y']is None else number(r['y']);w=number(r.get('weight',1));role=r.get('role','train');rr.append(dict(id=r.get('id','row:'+str(i+1)),index=i,x=x,y=y,w=w,role=role,eligible=y is not None and all(v is not None for v in x)and w>0))\n train=[r for r in rr if r['role']=='train'and r['eligible']];W=sum((r['w']for r in train),Q(0))\n if not W:return dict(defined=False,p=p,rows=rr,train=[],W=W)\n mean=[sum(r['w']*r['x'][j]for r in train)/W for j in range(p)];ranges=[max(r['x'][j]for r in train)-min(r['x'][j]for r in train)or Q(1)for j in range(p)];scales=ranges if scale=='range'else[Q(1)]*p\n for r in rr:r['z']=None if None in r['x']else[Q(1)]+[(r['x'][j]-mean[j])/scales[j]for j in range(p)]\n return dict(defined=True,p=p,rows=rr,train=train,W=W,mean=mean,ranges=ranges,scales=scales,meanY=sum(r['w']*r['y']for r in train)/W)\ndef quadratic(f,lam=Q(0),role='train'):\n rr=[r for r in f['rows']if r['role']==role and r['eligible']];W=sum((r['w']for r in rr),Q(0));n=f['p']+1\n if not W:return None\n H=[[sum(r['w']*r['z'][j]*r['z'][k]for r in rr)/W+(lam if j==k and j else 0)for k in range(n)]for j in range(n)];b=[sum(r['w']*r['y']*r['z'][j]for r in rr)/W for j in range(n)];d=sum(r['w']*r['y']**2 for r in rr)/(2*W);return H,b,d\ndef state(q,theta):\n H,b,d=q;gradient=[dot(row,theta)-bb for row,bb in zip(H,b)];return dict(theta=theta,objective=dot(theta,[dot(row,theta)for row in H])/2-dot(theta,b)+d,gradient=gradient,gradientNormSquared=dot(gradient,gradient))\ndef solve(H,b):\n n=len(b);A=[row[:]+[bb]for row,bb in zip(H,b)];piv=[];row=0\n for j in range(n):\n  k=next((i for i in range(row,n)if A[i][j]),None)\n  if k is None:continue\n  A[row],A[k]=A[k],A[row];z=A[row][j];A[row]=[v/z for v in A[row]]\n  for i in range(n):\n   if i!=row:\n    z=A[i][j];A[i]=[v-z*u for v,u in zip(A[i],A[row])]\n  piv.append(j);row+=1\n  if row==n:break\n assert not any(not any(r[:n])and r[n]for r in A)\n beta=[Q(0)]*n\n for i,j in enumerate(piv):beta[j]=A[i][n]\n nullspace=[]\n for j in range(n):\n  if j not in piv:\n   v=[Q(0)]*n;v[j]=Q(1)\n   for i,k in enumerate(piv):v[k]=-A[i][j]\n   nullspace.append(v)\n return dict(rank=len(piv),particular=beta,nullspace=nullspace,unique=len(piv)==n)\n\n\ndef fixed_source(kind):\n selectedKind=kind\n SRC=Path(__file__).resolve().parent/\"data\"\n read=lambda n:list(csv.DictReader((SRC/n).open(encoding='utf8',newline='')))\n def native(v):return None if v in['','.']else v\n\n models={};original=read('actual48-country-revised-original-2023-2024.csv');lookup={(r['countryISO3'],r['indicatorID'],r['date']):r for r in original};rows=[]\n for iso in sorted({r['countryISO3']for r in original}):\n  g=lookup[iso,'NY.GDP.PCAP.KD','2023'];p=lookup[iso,'FP.CPI.TOTL.ZG','2023'];y=lookup[iso,'NY.GDP.MKTP.KD.ZG','2024'];rows.append(dict(id=iso+':2024',x=[None if not g['originalValueToken']else str(number(g['originalValueToken'])/10000),None if not p['originalValueToken']else str(number(p['originalValueToken'])/10)],y=native(y['originalValueToken']),sourceRow=iso))\n models['country']=dict(rows=rows,names=['g','pi'],unit='annual GDP growth percentage points')\n for kind,file,keys,ykey,ID in [('person','actual3613-NLS-original52-fields-and-conformal-frame.csv',['ed76','age76'],'lwage76','person-row:'),('company','actual3150-churn-original14-fields-and-conformal-frame.csv',['Call  Failure','Seconds of Use'],'Churn','customer-row:')]:\n  source=read(file);models[kind]=dict(rows=[dict(id=ID+r['sourceRow'],sourceRow=r['sourceRow'],x=[native(r[k])for k in keys],y=native(r[ykey]))for r in source],names=['ed76','age76']if kind=='person'else['CallFailure','SecondsUse'],unit='native trimmed1976log hourly wage'if kind=='person'else'native Churn0/1')\n for kind,m in models.items():\n  for rank,r in enumerate(sorted(m['rows'],key=lambda r:(hashlib.sha256(('ML20|'+kind+'|'+r['id']).encode()).digest(),r['id']))):r.update(splitRank=rank,plannedRole=['test','calibration','train','train'][rank%4]);r['role']=r['plannedRole']if r['y']is not None and None not in r['x']else'excluded';r['weight']='1'\n  m['trainingIDs']=[r['id']for r in sorted(m['rows'],key=lambda r:r['splitRank'])if r['role']=='train']\n\n models={selectedKind:models[selectedKind]}\n # New public actual-source study; exact finite Fraction fit/rank/membership.\n # Default single declared model, not a hyperparameter Cartesian dump.\n from decimal import Decimal,localcontext\n from collections import Counter\n outputs={k:[]for k in['study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins']}\n alpha=number('1/5');lam=number('1/100')\n if not 0<alpha<1 or lam<0:raise ValueError('Require0<alpha<1 and nonnegative ridge')\n def metric(kind,name,value,unit,arithmetic='exact rational'):\n  outputs['study-metrics'].append(dict(kind=kind,metric=name,value=''if value is None else value,unit=unit,defined=int(value is not None),arithmetic=arithmetic))\n def bins(rr,B=5):\n  groups=[[]for _ in range(B)]\n  for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n  n=len(rr);yb=sum((r['y']for r in rr),Q(0))/n if n else None;ece=rel=res=var=cov=Q(0);result=[]\n  for j,gg in enumerate(groups):\n   nn=len(gg);pm=sum((r['p']for r in gg),Q(0))/nn if nn else None;ym=sum((r['y']for r in gg),Q(0))/nn if nn else None;v=sum(((r['p']-pm)**2 for r in gg),Q(0))/nn if nn else None;co=sum(((r['p']-pm)*(r['y']-ym)for r in gg),Q(0))/nn if nn else None\n   result.append(dict(bin=j,lower=Q(j,B),upper=Q(j+1,B),rightClosed=int(j==B-1),rows=nn,meanP=pm,frequencyY1=ym,gap=None if not nn else pm-ym,withinVarianceP=v,withinCovariancePY=co))\n   if nn:weight=Q(nn,n);ece+=weight*abs(pm-ym);rel+=weight*(pm-ym)**2;res+=weight*(ym-yb)**2;var+=weight*v;cov+=weight*co\n  return result,dict(ECE=ece if n else None,Brier=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/n if n else None,uncertainty=yb*(1-yb)if n else None,resolution=res if n else None,reliability=rel if n else None,withinVarianceP=var if n else None,withinCovariancePY=cov if n else None)\n def meanlog(rr):\n  if not rr:return None\n  pp=[r['p']if r['y']else 1-r['p']for r in rr]\n  if any(not p for p in pp):return'+infinity'\n  with localcontext()as ctx:\n   ctx.prec=60;return str(-sum(((Decimal(p.numerator)/Decimal(p.denominator)).ln()for p in pp),Decimal(0))/len(pp))\n for kind,m in models.items():\n  f=frame(m['rows']);n=len(f['train']);assert n>0;H,b,d=quadratic(f,lam);fit=solve(H,b);theta=fit['particular'];minimum=state((H,b,d),theta)['objective'];beta=[theta[j+1]/f['scales'][j]for j in range(2)];intercept=theta[0]-dot(beta,f['mean']);rr=[]\n  for r in f['rows']:\n   native=m['rows'][r['index']];raw=None if r['z']is None else dot(r['z'],theta);pred=None if raw is None else max(Q(0),min(Q(1),raw))if kind=='company'else raw;group='missing-X'if r['z']is None else('schooling-at-most12'if r['x'][0]<=12 else'schooling-over12')if kind=='person'else('zero-call-failures'if r['x'][0]==0 else'positive-call-failures')if kind=='company'else('GDPpc-at-most-training-mean'if r['x'][0]<=f['mean'][0]else'GDPpc-above-training-mean');rr.append(dict(id=r['id'],sourceRow=native['sourceRow'],sourceIndex0=r['index'],plannedRole=native['plannedRole'],role=r['role'],group=group,y=r['y'],raw=raw,prediction=pred,eligible=r['eligible']))\n  cal=[r for r in rr if r['role']=='calibration'and r['prediction']is not None and r['y']is not None]\n  for i,r in enumerate(cal):r['calibrationIndex0']=i;r['score']=(1-r['prediction']if r['y']else r['prediction'])if kind=='company'else abs(r['y']-r['prediction'])\n  ordered=sorted(cal,key=lambda r:(r['score'],r['calibrationIndex0']));rankQ=(len(cal)+1)*(1-alpha);k=(rankQ.numerator+rankQ.denominator-1)//rankQ.denominator;threshold=ordered[k-1]['score']if k<=len(cal)else None;unbounded=threshold is None\n  for j,r in enumerate(ordered,1):outputs['calibration-scores'].append(dict(kind=kind,rank=j,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],calibrationIndex0=r['calibrationIndex0'],score=r['score'],threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded)))\n  for j,name in enumerate(m['names']):outputs['training-coefficients'].append(dict(kind=kind,feature=name,mean=f['mean'][j],scale=f['scales'][j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[0],nativeIntercept=intercept,rank=fit['rank'],unique=int(fit['unique']),lambdaValue=lam,minimumObjective=minimum))\n  for name,value,unit in[('sourceRows',len(rr),'rows'),('trainingRows',n,'rows'),('calibrationScores',len(cal),'unit-count scores'),('testLabeledRows',sum(r['role']=='test'and r['y']is not None for r in rr),'rows'),('excludedRows',sum(r['role']=='excluded'for r in rr),'rows'),('alpha',alpha,'probability'),('ridge',lam,'transformed slope penalty'),('quantileRank',k,'one-based rank'),('threshold','+infinity'if unbounded else threshold,'dimensionless score'if kind=='company'else m['unit']),('minimumObjective',minimum,'('+m['unit']+') squared')]:metric(kind,name,value,unit,'mathematical infinity'if value=='+infinity'else'exact rational')\n  for r in rr:\n   defined=r['prediction']is not None;labeled=defined and r['y']is not None\n   if not defined:lo=hi=width=size=None;labels='';covered=None\n   elif kind=='company':\n    labelsList=[j for j,s in enumerate([r['prediction'],1-r['prediction']])if unbounded or s<=threshold];labels='|'.join(map(str,labelsList));size=len(labelsList);lo=hi=width=None;covered=int(int(r['y'])in labelsList)if labeled else None\n   else:lo='-infinity'if unbounded else r['prediction']-threshold;hi='+infinity'if unbounded else r['prediction']+threshold;width='+infinity'if unbounded else 2*threshold;labels='';size=None;covered=int(unbounded or abs(r['y']-r['prediction'])<=threshold)if labeled else None\n   r.update(defined=defined,labeled=labeled,lower=lo,upper=hi,width=width,labels=labels,size=size,covered=covered)\n   outputs['row-predictions'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],plannedRole=r['plannedRole'],role=r['role'],group=r['group'],actualY=r['y'],rawLinear=r['raw'],prediction=r['prediction'],predictionDefined=int(defined),threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded),lower=lo,upper=hi,width=width,setLabels=labels,setSize=size,covered=covered,labeledPrediction=int(labeled)))\n   outputs['eligibility'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],plannedRole=r['plannedRole'],role=r['role'],requiredComplete=int(r['eligible']),trainingUsed=int(r['role']=='train'and r['eligible']),reason='missing-required-field'if not r['eligible']else''))\n  roles=list(dict.fromkeys(r['role']for r in rr));groups=list(dict.fromkeys(r['group']for r in rr))\n  for role in roles:\n   for group in['all']+groups:\n    use=[r for r in rr if r['role']==role and(group=='all'or r['group']==group)];defined=[r for r in use if r['defined']];scored=[r for r in use if r['labeled']and role not in['excluded','unused']];covered=sum(r['covered']for r in scored);nn=len(defined);nscore=len(scored);unboundedCount=sum(r['width']=='+infinity'for r in defined);size=Q(sum(r['size']for r in defined),nn)if kind=='company'and nn else None;width=('+infinity'if unboundedCount else sum(r['width']for r in defined)/nn)if kind!='company'and nn else None\n    outputs['role-group-coverage'].append(dict(kind=kind,role=role,group=group,originalRows=len(use),definedPredictions=nn,scoredLabels=nscore,coveredRows=covered,coverage=Q(covered,nscore)if nscore else None,meanSetSize=size,meanIntervalWidth=width,unboundedIntervals=unboundedCount))\n  if kind=='company':\n   for role in['train','calibration','test']:\n    use=[dict(p=r['prediction'],y=r['y'])for r in rr if r['role']==role and r['labeled']];bb,mm=bins(use)\n    for row in bb:outputs['reliability-bins'].append(dict(kind=kind,role=role,**row))\n    for name,value in mm.items():metric(kind,role+':'+name,value,'dimensionless'if name=='ECE'else'squared probability')\n    metric(kind,role+':meanLogLoss',meanlog(use),'nats','Decimal60 approximation or genuine infinity')\n return outputs\n\n# Owned ML20 fixed-example adapters. Finite rational calculations; logs approximate.\nfrom fractions import Fraction as Q\nfrom decimal import Decimal,localcontext\nimport math\ndef num(v):return v if isinstance(v,Q)else Q(str(v))\ndef ceilq(q):return-((-q.numerator)//q.denominator)\ndef fixed_quantile(scores,alpha):\n a=num(alpha)\n if not 0<a<1:raise ValueError('alpha-must-be-strictly-between-zero-and-one')\n ordered=sorted([(num(v),i)for i,v in enumerate(scores)if v is not None]);n=len(ordered);k=ceilq((n+1)*(1-a));q=None if k>n else ordered[k-1][0]\n return dict(n=n,k=k,threshold=q,infinite=q is None,ordered=ordered)\ndef fixed_score(rows):\n rr=[dict(p=num(r['p']),y=num(r['y']),w=num(r.get('weight',1)))for r in rows];rr=[r for r in rr if r['w']>0];mass=sum((r['w']for r in rr),Q(0));brier=sum((r['w']*(r['p']-r['y'])**2 for r in rr),Q(0))/mass if mass else None;logs=[];genuine=False\n with localcontext()as ctx:\n  ctx.prec=1800\n  total=Decimal(0)\n  for r in rr:\n   p=r['p']if r['y']else 1-r['p']\n   if not p:genuine=True;logs.append('+infinity');continue\n   loss=-(Decimal(p.numerator)/Decimal(p.denominator)).ln();logs.append(str(loss));w=r['w']/mass;total+=Decimal(w.numerator)/Decimal(w.denominator)*loss\n  display='+infinity'if genuine else None if not mass else repr(float(total));raw='+infinity'if genuine else None if not mass else str(total)\n return dict(rows=rr,mass=mass,Brier=brier,meanLogLoss=display,naturalLogApprox1800=raw,individualLogLoss=logs,genuineInfinite=genuine,BrierPositive=brier is not None and brier>0)\ndef fixed_calibration(rows,B):\n rr=[dict(p=num(r['p']),y=num(r['y']))for r in rows];N=len(rr);yb=sum((r['y']for r in rr),Q(0))/N;groups=[[]for _ in range(B)]\n for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n result=[];ece=rel=res=vp=cp=Q(0)\n for j,g in enumerate(groups):\n  n=len(g);pm=sum((r['p']for r in g),Q(0))/n if n else None;ym=sum((r['y']for r in g),Q(0))/n if n else None;v=sum(((r['p']-pm)**2 for r in g),Q(0))/n if n else None;c=sum(((r['p']-pm)*(r['y']-ym)for r in g),Q(0))/n if n else None;result.append(dict(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c))\n  if n:z=Q(n,N);ece+=z*abs(pm-ym);rel+=z*(pm-ym)**2;res+=z*(ym-yb)**2;vp+=z*v;cp+=z*c\n bs=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/N;u=yb*(1-yb)\n return dict(rows=N,bins=result,Brier=bs,ECE=ece,uncertainty=u,resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=u-res+rel+vp-2*cp)\ndef fixed_predict(a):\n q=fixed_quantile(a['scores'],a['alpha']);out=[];classification=a['mode']=='classification'\n for i,row in enumerate(a['queries']):\n  p=num(row['p']if classification else row['center']);y=None if row.get('y')is None else num(row['y']);threshold=q['threshold'];unbounded=q['infinite']\n  if classification:labels=[v for v,s in[(0,p),(1,1-p)]if unbounded or s<=threshold];lo=hi=width=None;size=len(labels);covered=None if y is None else int(int(y)in labels)\n  else:labels=None;size=None;lo='-infinity'if unbounded else p-threshold;hi='+infinity'if unbounded else p+threshold;width='+infinity'if unbounded else 2*threshold;covered=None if y is None else int(unbounded or abs(y-p)<=threshold)\n  out.append(dict(id=row.get('id',str(i)),prediction=p,actualY=y,labels=labels,size=size,lower=lo,upper=hi,width=width,covered=covered))\n scored=[r for r in out if r['covered']is not None];coverage=Q(sum(r['covered']for r in scored),len(scored))if scored else None;meanSize=Q(sum(r['size']for r in out),len(out))if classification and out else None;meanWidth=('+infinity'if q['infinite']else 2*q['threshold'])if not classification and out else None\n return dict(quantile=q,rows=out,scoredLabels=len(scored),coverage=coverage,meanSetSize=meanSize,meanWidth=meanWidth)\ndef fixed_ranklaw(a):\n scores=list(map(num,a['scores']));trials=[]\n for i,y in enumerate(scores):q=fixed_quantile(scores[:i]+scores[i+1:],a['alpha']);trials.append(dict(heldout=i,score=y,k=q['k'],threshold=q['threshold'],infinite=q['infinite'],covered=int(q['infinite']or y<=q['threshold'])))\n return dict(N=len(scores),distinct=len(set(scores))==len(scores),trials=trials,coverage=Q(sum(t['covered']for t in trials),len(trials)))\ndef fixed_operation(api,a):\n return fixed_score(a['rows'])if api=='score'else fixed_calibration(a['rows'],a['bins'])if api=='calibration'else fixed_quantile(a['scores'],a['alpha'])if api=='quantile'else fixed_predict(a)if api=='predict'else fixed_ranklaw(a)if api=='ranklaw'else fixed_source(a['kind'])\ndef report_values(api,z):\n summary=[];series=[]\n def add(k,v,u):summary.append((k,v,u))\n if api=='score':\n  for k,u in[('mass','analysis weight'),('Brier','squared probability'),('meanLogLoss','nats; numerical logarithm'),('genuineInfinite','indicator'),('BrierPositive','mathematical indicator')]:add(k,z[k],u)\n  series=[('squared error',[(i,(r['p']-r['y'])**2)for i,r in enumerate(z['rows'])])]\n elif api=='calibration':\n  for k in['Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity']:add(k,z[k],'probability'if k=='ECE'else'squared probability')\n  series=[('bin probability',[(r['bin'],r['meanP'])for r in z['bins']]),('bin outcome frequency',[(r['bin'],r['frequency'])for r in z['bins']])]\n elif api=='quantile':\n  for k,u in[('n','scores'),('k','one-based rank'),('infinite','mathematical indicator')]:add(k,z[k],u)\n  add('threshold','+infinity'if z['infinite']else z['threshold'],'score units');series=[('sorted score',[(i+1,v)for i,(v,index)in enumerate(z['ordered'])])]\n elif api=='predict':\n  for k,u in[('scoredLabels','labels'),('coverage','fraction'),('meanSetSize','classes'),('meanWidth','outcome units')]:add(k,z[k],u)\n  add('thresholdInfinite',z['quantile']['infinite'],'mathematical indicator');series=[('predicted center or probability',[(i,r['prediction'])for i,r in enumerate(z['rows'])]),('observed label or outcome',[(i,r['actualY'])for i,r in enumerate(z['rows'])])]\n elif api=='ranklaw':\n  for k,u in[('N','scores'),('distinct','indicator'),('coverage','fraction')]:add(k,z[k],u)\n  series=[('held-out coverage',[(r['heldout'],r['covered'])for r in z['trials']])]\n else:\n  mt={r['metric']:r for r in z['study-metrics']};cv=next(r for r in z['role-group-coverage']if r['role']=='test'and r['group']=='all')\n  for k in['sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold']:add(k,mt[k]['value'],mt[k]['unit'])\n  for k,u in[('coverage','fraction'),('meanSetSize','classes'),('meanIntervalWidth','outcome units')]:add(k,cv[k],u)\n  series=[('all calibration scores',[(r['rank'],r['score'])for r in z['calibration-scores']])]\n return summary,series\n\nnumber=num\n\nFIXED={'api': 'realdata', 'variant': 'person', 'title': 'Native log wages: factual calibration and intervals', 'input': {'kind': 'person'}, 'expectedFailure': False}\n\ndef fixed_svg(points,title):\n good=[p for p in points if p['y'] is not None];xx=[float(p['x'])for p in good];yy=[float(p['y'])for p in good];xmin=min(xx)if xx else 0;xmax=max(xx)if xx else 1;ymin=min([0]+yy);ymax=max([0]+yy)\n if xmin==xmax:xmin-=.5;xmax+=.5\n if ymin==ymax:ymin-=.5;ymax+=.5\n pad=(ymax-ymin)*.08;ymin-=pad;ymax+=pad;X=lambda x:82+(float(x)-xmin)/(xmax-xmin)*608;Y=lambda y:354-(float(y)-ymin)/(ymax-ymin)*290;e=html.escape\n out=['<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"'+e(title)+'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">'+e(title)+'</text>']\n for j in range(5):\n  y=ymin+(ymax-ymin)*j/4;x=xmin+(xmax-xmin)*j/4;out.append('<line x1=\"82\" y1=\"'+str(Y(y))+'\" x2=\"690\" y2=\"'+str(Y(y))+'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"'+str(Y(y)+4)+'\" text-anchor=\"end\">'+format(y,'.3g')+'</text><text x=\"'+str(X(x))+'\" y=\"380\" text-anchor=\"middle\">'+format(x,'.3g')+'</text>')\n series=list(dict.fromkeys(p['series']for p in good))\n for j,s in enumerate(series):\n  pp=[p for p in good if p['series']==s];color=['#0f766e','#c76622','#4f46e5','#b23857'][j%4];out.append('<polyline fill=\"none\" stroke=\"'+color+'\" stroke-width=\"1.5\" points=\"'+' '.join(format(X(p['x']),'.6f')+','+format(Y(p['y']),'.6f')for p in pp)+'\"/>')\n  for p in pp:out.append('<circle cx=\"'+format(X(p['x']),'.6f')+'\" cy=\"'+format(Y(p['y']),'.6f')+'\" r=\"2.6\" fill=\"'+color+'\"><title>'+e(s+': '+str(p['y']))+'</title></circle>')\n  out.append('<text x=\"'+str(82+(j%2)*310)+'\" y=\"'+str(432+(j//2)*23)+'\" fill=\"'+color+'\">'+e(s)+'</text>')\n out.append('<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>');return''.join(out)\n\nOUT=Path(sys.argv[1]);OUT.mkdir(parents=True,exist_ok=False)\nresult=fixed_operation(FIXED['api'],FIXED['input']);summary,series=report_values(FIXED['api'],result)\ndef encode(v):\n if isinstance(v,Q):return str(v)\n if isinstance(v,dict):return{k:encode(x)for k,x in v.items()}\n if isinstance(v,(list,tuple)):return[encode(x)for x in v]\n return v\n(OUT/'full.json').write_text(json.dumps(dict(arithmetic='Exact finite Fraction algebra except approximate natural logs; declared fixed examples, no exchangeability certification',result=encode(result)),ensure_ascii=False,indent=2)+'\\n',encoding='utf8')\nsummaryRows=[dict(metric=m,value=''if v is None else str(int(v))if isinstance(v,bool)else str(v),unit=u,defined=int(v is not None))for m,v,u in summary]\npoints=[dict(series=name,index=i,x=str(x),y=''if y is None else str(y),defined=int(y is not None))for name,pp in series for i,(x,y)in enumerate(pp)]\nfor name,rows in [('summary',summaryRows),('plot-points',points)]:\n with(OUT/(name+'.csv')).open('w',encoding='utf8',newline='')as f:writer=csv.DictWriter(f,fieldnames=list(rows[0]));writer.writeheader();writer.writerows(rows)\n(OUT/'plot.svg').write_text(fixed_svg([dict(p,x=number(p['x']),y=None if not p['defined']else number(p['y']))for p in points],FIXED['title']),encoding='utf8');print(FIXED['api']+'/'+FIXED['variant'])\n",
        "returnCode": 0,
        "stdout": "realdata/person\r\n",
        "stderr": "",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/python-realdata-person-result",
        "kind": "person",
        "inputFiles": [
          {
            "file": "ml20-code/data/actual48-country-revised-original-2023-2024.csv",
            "sha256": "bd444c284344c21f8b980885aea1b76af20754bb31e31d9d9e111ecd44c1454e"
          },
          {
            "file": "ml20-code/data/derived16-country-features-and-roles.csv",
            "sha256": "e3a4a00edafdd14b873c163a9a045d75e7314ed6416048507bb2aa58fdb4f62a"
          },
          {
            "file": "ml20-code/data/actual3613-NLS-original52-fields-and-conformal-frame.csv",
            "sha256": "27290a3ca7b659af0e2a96d52149c30d42274a8119444d3c843e71f92eb9d7c2"
          },
          {
            "file": "ml20-code/data/actual3150-churn-original14-fields-and-conformal-frame.csv",
            "sha256": "4389b8e17f2829529b5200e3b1d5e27d4a4ec101947a2beb46e91bbe7efdbe34"
          }
        ],
        "files": [
          {
            "file": "ml20-code/python-realdata-person-result/full.json",
            "sha256": "8b4a17f724fcf7f8eca6e4fb2f19f6ef42fe07ec5a828cf38d74979079ff1550",
            "bytes": 4313506
          },
          {
            "file": "ml20-code/python-realdata-person-result/plot-points.csv",
            "sha256": "40766c1b3d0570a00aff92f918cfae48f1f2facead7d071f77110777c893dc8b",
            "bytes": 58038
          },
          {
            "file": "ml20-code/python-realdata-person-result/plot.svg",
            "sha256": "020a9925143511021b3d87051a5bf1a3da0f553b1a87cda2bdb05f2e14b15a1f",
            "bytes": 133536
          },
          {
            "file": "ml20-code/python-realdata-person-result/summary.csv",
            "sha256": "5d14e0d2ad449b8c73a36ee0b6d55701bb8d8ff672d3840eb6ea39e9776b2350",
            "bytes": 431
          },
          {
            "file": "ml20-code/python-realdata-person-result/stdout.txt",
            "sha256": "d7e0fa91de26834e6d1043b4c29c76888db28b289bcd21642007f61749704715",
            "bytes": 17
          },
          {
            "file": "ml20-code/python-realdata-person-result/stderr.txt",
            "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
            "bytes": 0
          }
        ],
        "summaryRows": [
          {
            "metric": "sourceRows",
            "value": "3613",
            "unit": "rows",
            "defined": "true",
            "exactFraction": "3613",
            "rawValue": "3613",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "trainingRows",
            "value": "1496",
            "unit": "rows",
            "defined": "true",
            "exactFraction": "1496",
            "rawValue": "1496",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "calibrationScores",
            "value": "754",
            "unit": "unit-count scores",
            "defined": "true",
            "exactFraction": "754",
            "rawValue": "754",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "testLabeledRows",
            "value": "760",
            "unit": "rows",
            "defined": "true",
            "exactFraction": "760",
            "rawValue": "760",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "excludedRows",
            "value": "603",
            "unit": "rows",
            "defined": "true",
            "exactFraction": "603",
            "rawValue": "603",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "quantileRank",
            "value": "604",
            "unit": "one-based rank",
            "defined": "true",
            "exactFraction": "604",
            "rawValue": "604",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "threshold",
            "value": "0.496327802",
            "unit": "native trimmed1976log hourly wage",
            "defined": "true",
            "exactFraction": "468849642691146248783/944637073528600000000",
            "rawValue": "468849642691146248783/944637073528600000000",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "coverage",
            "value": "0.793421053",
            "unit": "fraction",
            "defined": "true",
            "exactFraction": "603/760",
            "rawValue": "603/760",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "meanSetSize",
            "value": "undefined",
            "unit": "classes",
            "defined": "false",
            "exactFraction": "",
            "rawValue": "",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "meanIntervalWidth",
            "value": "0.992655605",
            "unit": "outcome units",
            "defined": "true",
            "exactFraction": "468849642691146248783/472318536764300000000",
            "rawValue": "468849642691146248783/472318536764300000000",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          }
        ],
        "plotRows": [
          {
            "series": "all calibration scores",
            "index": 0,
            "x": "1",
            "y": "5.4025400943443978e-05",
            "defined": true,
            "xExact": "1",
            "yExact": "10206879328684837/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 1,
            "x": "2",
            "y": "0.0031032861337943213",
            "defined": true,
            "xExact": "2",
            "yExact": "732869782937337787/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 2,
            "x": "3",
            "y": "0.0037838709348021692",
            "defined": true,
            "xExact": "3",
            "yExact": "22339904790384057/5903981709553750000"
          },
          {
            "series": "all calibration scores",
            "index": 3,
            "x": "4",
            "y": "0.0040149411507123724",
            "defined": true,
            "xExact": "4",
            "yExact": "3792662258998485319/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 4,
            "x": "5",
            "y": "0.004169189178235921",
            "defined": true,
            "xExact": "5",
            "yExact": "492296333039486163/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 5,
            "x": "6",
            "y": "0.0044104085293824122",
            "defined": true,
            "xExact": "6",
            "yExact": "2083117703130689029/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 6,
            "x": "7",
            "y": "0.0044104085293824122",
            "defined": true,
            "xExact": "7",
            "yExact": "2083117703130689029/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 7,
            "x": "8",
            "y": "0.0057088009348021688",
            "defined": true,
            "xExact": "8",
            "yExact": "2696372504204428559/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 8,
            "x": "9",
            "y": "0.007083971470617588",
            "defined": true,
            "xExact": "9",
            "yExact": "669178207896429121/94463707352860000000"
          },
          {
            "series": "all calibration scores",
            "index": 9,
            "x": "10",
            "y": "0.0074658786032138023",
            "defined": true,
            "xExact": "10",
            "yExact": "705254571505967827/94463707352860000000"
          },
          {
            "series": "all calibration scores",
            "index": 10,
            "x": "11",
            "y": "0.0086121893360646806",
            "defined": true,
            "xExact": "11",
            "yExact": "8135393331094355863/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 11,
            "x": "12",
            "y": "0.0089260860847559555",
            "defined": true,
            "xExact": "12",
            "yExact": "4215955918584112131/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 12,
            "x": "13",
            "y": "0.010030070614896953",
            "defined": true,
            "xExact": "13",
            "yExact": "9474776552941463807/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 13,
            "x": "14",
            "y": "0.010030070614896953",
            "defined": true,
            "xExact": "14",
            "yExact": "9474776552941463807/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 14,
            "x": "15",
            "y": "0.011295799769007986",
            "defined": true,
            "xExact": "15",
            "yExact": "213408624739214793/18892741470572000000"
          },
          {
            "series": "all calibration scores",
            "index": 15,
            "x": "16",
            "y": "0.011376535813889106",
            "defined": true,
            "xExact": "16",
            "yExact": "2149339499625102893/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 16,
            "x": "17",
            "y": "0.011376535813889106",
            "defined": true,
            "xExact": "17",
            "yExact": "2149339499625102893/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 17,
            "x": "18",
            "y": "0.011689093182393168",
            "defined": true,
            "xExact": "18",
            "yExact": "11041950776018991759/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 18,
            "x": "19",
            "y": "0.011920228603213803",
            "defined": true,
            "xExact": "19",
            "yExact": "140753623294147471/11807963419107500000"
          },
          {
            "series": "all calibration scores",
            "index": 19,
            "x": "20",
            "y": "0.012229438332346954",
            "defined": true,
            "xExact": "20",
            "yExact": "11552380837166708419/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 20,
            "x": "21",
            "y": "0.01249555055089723",
            "defined": true,
            "xExact": "21",
            "yExact": "11803760304528244593/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 21,
            "x": "22",
            "y": "0.013445780934802169",
            "defined": true,
            "xExact": "22",
            "yExact": "6350691576779082373/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 22,
            "x": "23",
            "y": "0.013588421234709741",
            "defined": true,
            "xExact": "23",
            "yExact": "3209031617257523709/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 23,
            "x": "24",
            "y": "0.014513031396786197",
            "defined": true,
            "xExact": "24",
            "yExact": "3427386876672200889/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 24,
            "x": "25",
            "y": "0.01526095348230074",
            "defined": true,
            "xExact": "25",
            "yExact": "14416062436776667541/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 25,
            "x": "26",
            "y": "0.016323496133794323",
            "defined": true,
            "xExact": "26",
            "yExact": "7709889808791442077/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 26,
            "x": "27",
            "y": "0.016373374186110894",
            "defined": true,
            "xExact": "27",
            "yExact": "15466896274956517961/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 27,
            "x": "28",
            "y": "0.018197916133794321",
            "defined": true,
            "xExact": "28",
            "yExact": "8595213120473181283/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 28,
            "x": "29",
            "y": "0.018525123802205955",
            "defined": true,
            "xExact": "29",
            "yExact": "4374879683817711109/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 29,
            "x": "30",
            "y": "0.020888898603213801",
            "defined": true,
            "xExact": "30",
            "yExact": "9866214022887773321/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 30,
            "x": "31",
            "y": "0.021243090934802169",
            "defined": true,
            "xExact": "31",
            "yExact": "5016752813338363203/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 31,
            "x": "32",
            "y": "0.021669946704568743",
            "defined": true,
            "xExact": "32",
            "yExact": "20470235038524545877/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 32,
            "x": "33",
            "y": "0.024339799611179228",
            "defined": true,
            "xExact": "33",
            "yExact": "22992277074976901291/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 33,
            "x": "34",
            "y": "0.024930761716691414",
            "defined": true,
            "xExact": "34",
            "yExact": "23550521788894232267/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 34,
            "x": "35",
            "y": "0.024994580501858862",
            "defined": true,
            "xExact": "35",
            "yExact": "4722161475870192577/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 35,
            "x": "36",
            "y": "0.025152408765290259",
            "defined": true,
            "xExact": "36",
            "yExact": "11879948904119448951/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 36,
            "x": "37",
            "y": "0.025718409385103048",
            "defined": true,
            "xExact": "37",
            "yExact": "24294562977354222721/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 37,
            "x": "38",
            "y": "0.027514039902043722",
            "defined": true,
            "xExact": "38",
            "yExact": "25990782134015708269/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 38,
            "x": "39",
            "y": "0.027758926979683289",
            "defined": true,
            "xExact": "39",
            "yExact": "26222111546382121487/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 39,
            "x": "40",
            "y": "0.027758926979683289",
            "defined": true,
            "xExact": "40",
            "yExact": "26222111546382121487/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 40,
            "x": "41",
            "y": "0.029547495651812649",
            "defined": true,
            "xExact": "41",
            "yExact": "27911659822627334047/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 41,
            "x": "42",
            "y": "0.029938728603213803",
            "defined": true,
            "xExact": "42",
            "yExact": "1414061648645343839/47231853676430000000"
          },
          {
            "series": "all calibration scores",
            "index": 42,
            "x": "43",
            "y": "0.030991447570455355",
            "defined": true,
            "xExact": "43",
            "yExact": "29275670337369985859/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 43,
            "x": "44",
            "y": "0.031440934648094922",
            "defined": true,
            "xExact": "44",
            "yExact": "29700272494980350637/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 44,
            "x": "45",
            "y": "0.033068076133794325",
            "defined": true,
            "xExact": "45",
            "yExact": "15618665333124204571/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 45,
            "x": "46",
            "y": "0.033348237870362923",
            "defined": true,
            "xExact": "46",
            "yExact": "31501981829195265639/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 46,
            "x": "47",
            "y": "0.033451290501858862",
            "defined": true,
            "xExact": "47",
            "yExact": "31599329165431009791/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 47,
            "x": "48",
            "y": "0.033642562316506558",
            "defined": true,
            "xExact": "48",
            "yExact": "31780011612668310919/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 48,
            "x": "49",
            "y": "0.033733556113796678",
            "defined": true,
            "xExact": "49",
            "yExact": "31865967727049705823/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 49,
            "x": "50",
            "y": "0.034365086817606832",
            "defined": true,
            "xExact": "50",
            "yExact": "32462535042940387789/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 50,
            "x": "51",
            "y": "0.034654503802205958",
            "defined": true,
            "xExact": "51",
            "yExact": "2045995566018848419/59039817095537500000"
          },
          {
            "series": "all calibration scores",
            "index": 51,
            "x": "52",
            "y": "0.034788873049357433",
            "defined": true,
            "xExact": "52",
            "yExact": "1026964350896968391/29519908547768750000"
          },
          {
            "series": "all calibration scores",
            "index": 52,
            "x": "53",
            "y": "0.035935183782208308",
            "defined": true,
            "xExact": "53",
            "yExact": "6789141368947533221/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 53,
            "x": "54",
            "y": "0.035963462720409137",
            "defined": true,
            "xExact": "54",
            "yExact": "33972420178162193281/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 54,
            "x": "55",
            "y": "0.036483343020316708",
            "defined": true,
            "xExact": "55",
            "yExact": "6892703676650410487/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 55,
            "x": "56",
            "y": "0.036723001234709743",
            "defined": true,
            "xExact": "56",
            "yExact": "67753727378014402/1844994284235546875"
          },
          {
            "series": "all calibration scores",
            "index": 56,
            "x": "57",
            "y": "0.037396387363588225",
            "defined": true,
            "xExact": "57",
            "yExact": "17663006959840950709/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 57,
            "x": "58",
            "y": "0.037789082203468466",
            "defined": true,
            "xExact": "58",
            "yExact": "35696968024016150483/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 58,
            "x": "59",
            "y": "0.040531606817606834",
            "defined": true,
            "xExact": "59",
            "yExact": "38287658449595970261/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 59,
            "x": "60",
            "y": "0.040711959469100417",
            "defined": true,
            "xExact": "60",
            "yExact": "961450656262649781/23615926838215000000"
          },
          {
            "series": "all calibration scores",
            "index": 60,
            "x": "61",
            "y": "0.042690684186110897",
            "defined": true,
            "xExact": "61",
            "yExact": "40327202976501478027/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 61,
            "x": "62",
            "y": "0.042824228283308584",
            "defined": true,
            "xExact": "62",
            "yExact": "40453353681665325447/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 62,
            "x": "63",
            "y": "0.042931055400943441",
            "defined": true,
            "xExact": "63",
            "yExact": "40554266537441412243/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 63,
            "x": "64",
            "y": "0.042931055400943441",
            "defined": true,
            "xExact": "64",
            "yExact": "40554266537441412243/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 64,
            "x": "65",
            "y": "0.044015311716691416",
            "defined": true,
            "xExact": "65",
            "yExact": "41578495250504475397/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 65,
            "x": "66",
            "y": "0.044829417870362924",
            "defined": true,
            "xExact": "66",
            "yExact": "42347530105050357387/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 66,
            "x": "67",
            "y": "0.045975728603213806",
            "defined": true,
            "xExact": "67",
            "yExact": "2171518886054251749/47231853676430000000"
          },
          {
            "series": "all calibration scores",
            "index": 67,
            "x": "68",
            "y": "0.046007223020316713",
            "defined": true,
            "xExact": "68",
            "yExact": "43460128515089615403/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 68,
            "x": "69",
            "y": "0.046443513133354798",
            "defined": true,
            "xExact": "69",
            "yExact": "8774452866135875841/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 69,
            "x": "70",
            "y": "0.04670840464809492",
            "defined": true,
            "xExact": "70",
            "yExact": "44122490675966045279/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 70,
            "x": "71",
            "y": "0.04760401128374811",
            "defined": true,
            "xExact": "71",
            "yExact": "11242128476825566169/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 71,
            "x": "72",
            "y": "0.049190281170710018",
            "defined": true,
            "xExact": "72",
            "yExact": "4646696325114850609/94463707352860000000"
          },
          {
            "series": "all calibration scores",
            "index": 72,
            "x": "73",
            "y": "0.050050541347747828",
            "defined": true,
            "xExact": "73",
            "yExact": "5909949613407337797/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 73,
            "x": "74",
            "y": "0.051263254112279506",
            "defined": true,
            "xExact": "74",
            "yExact": "48425170344176679759/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 74,
            "x": "75",
            "y": "0.051598179769007983",
            "defined": true,
            "xExact": "75",
            "yExact": "24370776768199158859/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 75,
            "x": "76",
            "y": "0.051621268032439382",
            "defined": true,
            "xExact": "76",
            "yExact": "48763363565999009171/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 76,
            "x": "77",
            "y": "0.05389080123470974",
            "defined": true,
            "xExact": "77",
            "yExact": "6363406096058459113/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 77,
            "x": "78",
            "y": "0.054074559336064677",
            "defined": true,
            "xExact": "78",
            "yExact": "10216166696713754929/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 78,
            "x": "79",
            "y": "0.054854257983401017",
            "defined": true,
            "xExact": "79",
            "yExact": "51817365732022778719/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 79,
            "x": "80",
            "y": "0.057146879449102773",
            "defined": true,
            "xExact": "80",
            "yExact": "10796612192818426781/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 80,
            "x": "81",
            "y": "0.058229201234709739",
            "defined": true,
            "xExact": "81",
            "yExact": "6875682781033018893/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 81,
            "x": "82",
            "y": "0.05936648356629811",
            "defined": true,
            "xExact": "82",
            "yExact": "3504986331359473043/59039817095537500000"
          },
          {
            "series": "all calibration scores",
            "index": 82,
            "x": "83",
            "y": "0.059929448603213802",
            "defined": true,
            "xExact": "83",
            "yExact": "14152894736680632843/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 83,
            "x": "84",
            "y": "0.060885441716691413",
            "defined": true,
            "xExact": "84",
            "yExact": "11502929096750303223/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 84,
            "x": "85",
            "y": "0.061847139385103049",
            "defined": true,
            "xExact": "85",
            "yExact": "58423100754859159399/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 85,
            "x": "86",
            "y": "0.062669835813889102",
            "defined": true,
            "xExact": "86",
            "yExact": "11840050060350010569/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 86,
            "x": "87",
            "y": "0.06304757380220595",
            "defined": true,
            "xExact": "87",
            "yExact": "29778537804797130753/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 87,
            "x": "88",
            "y": "0.064840606979683288",
            "defined": true,
            "xExact": "88",
            "yExact": "12250168244621227507/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 88,
            "x": "89",
            "y": "0.065004783482300738",
            "defined": true,
            "xExact": "89",
            "yExact": "61405928434080846079/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 89,
            "x": "90",
            "y": "0.06506994242050157",
            "defined": true,
            "xExact": "90",
            "yExact": "61467479982777108023/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 90,
            "x": "91",
            "y": "0.06559996833234695",
            "defined": true,
            "xExact": "91",
            "yExact": "61968162109037060577/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 91,
            "x": "92",
            "y": "0.065753793866205681",
            "defined": true,
            "xExact": "92",
            "yExact": "3105673570558767067/47231853676430000000"
          },
          {
            "series": "all calibration scores",
            "index": 92,
            "x": "93",
            "y": "0.065841293256224565",
            "defined": true,
            "xExact": "93",
            "yExact": "62196126578898313449/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 93,
            "x": "94",
            "y": "0.067086550614896948",
            "defined": true,
            "xExact": "94",
            "yExact": "12674488569196911827/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 94,
            "x": "95",
            "y": "0.06819496787036293",
            "defined": true,
            "xExact": "95",
            "yExact": "64419494878436537117/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 95,
            "x": "96",
            "y": "0.068732998652252172",
            "defined": true,
            "xExact": "96",
            "yExact": "16231934675427174217/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 96,
            "x": "97",
            "y": "0.069719354186110888",
            "defined": true,
            "xExact": "97",
            "yExact": "65859486706671742989/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 97,
            "x": "98",
            "y": "0.069879309385103047",
            "defined": true,
            "xExact": "98",
            "yExact": "66010586317743374461/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 98,
            "x": "99",
            "y": "0.07124403697968329",
            "defined": true,
            "xExact": "99",
            "yExact": "67299758598851380633/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 99,
            "x": "100",
            "y": "0.071324266743775441",
            "defined": true,
            "xExact": "100",
            "yExact": "67375546608413281567/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 100,
            "x": "101",
            "y": "0.07243422884928763",
            "defined": true,
            "xExact": "101",
            "yExact": "68424057963491955943/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 101,
            "x": "102",
            "y": "0.072864299449102776",
            "defined": true,
            "xExact": "102",
            "yExact": "68830318596312022117/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 102,
            "x": "103",
            "y": "0.07342337821930886",
            "defined": true,
            "xExact": "103",
            "yExact": "13871689025934294839/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 103,
            "x": "104",
            "y": "0.074232454968000142",
            "defined": true,
            "xExact": "104",
            "yExact": "35061364510907617371/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 104,
            "x": "105",
            "y": "0.07446455231650656",
            "defined": true,
            "xExact": "105",
            "yExact": "70341976781882084833/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 105,
            "x": "106",
            "y": "0.074476557570455348",
            "defined": true,
            "xExact": "106",
            "yExact": "14070663477967849001/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 106,
            "x": "107",
            "y": "0.074979945031999867",
            "defined": true,
            "xExact": "107",
            "yExact": "35414417924181819949/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 107,
            "x": "108",
            "y": "0.075135493020316704",
            "defined": true,
            "xExact": "108",
            "yExact": "2839030889793621157/37785482941144000000"
          },
          {
            "series": "all calibration scores",
            "index": 108,
            "x": "109",
            "y": "0.075546198519216429",
            "defined": true,
            "xExact": "109",
            "yExact": "71363739885403267433/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 109,
            "x": "110",
            "y": "0.076597302533539663",
            "defined": true,
            "xExact": "110",
            "yExact": "72356651705467721427/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 110,
            "x": "111",
            "y": "0.077083075784848382",
            "defined": true,
            "xExact": "111",
            "yExact": "7281553112798246859/94463707352860000000"
          },
          {
            "series": "all calibration scores",
            "index": 111,
            "x": "112",
            "y": "0.07839502734437917",
            "defined": true,
            "xExact": "112",
            "yExact": "74054849209788916431/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 112,
            "x": "113",
            "y": "0.078818725031999867",
            "defined": true,
            "xExact": "113",
            "yExact": "37227544876741879503/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 113,
            "x": "114",
            "y": "0.079061800501858862",
            "defined": true,
            "xExact": "114",
            "yExact": "74684707853977955377/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 114,
            "x": "115",
            "y": "0.080825338219308859",
            "defined": true,
            "xExact": "115",
            "yExact": "76350610962447230251/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 115,
            "x": "116",
            "y": "0.081668318716251895",
            "defined": true,
            "xExact": "116",
            "yExact": "38573460796060589481/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 116,
            "x": "117",
            "y": "0.08193321023099201",
            "defined": true,
            "xExact": "117",
            "yExact": "19349286984351961259/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 117,
            "x": "118",
            "y": "0.083063643802205961",
            "defined": true,
            "xExact": "118",
            "yExact": "19616249349484466527/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 118,
            "x": "119",
            "y": "0.083825360230992019",
            "defined": true,
            "xExact": "119",
            "yExact": "39592271488042492763/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 119,
            "x": "120",
            "y": "0.083934561150712378",
            "defined": true,
            "xExact": "120",
            "yExact": "79287698213316256451/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 120,
            "x": "121",
            "y": "0.084606348652252167",
            "defined": true,
            "xExact": "121",
            "yExact": "39961146796401949839/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 121,
            "x": "122",
            "y": "0.086330653866205684",
            "defined": true,
            "xExact": "122",
            "yExact": "1274236503499735149/14759954273884375000"
          },
          {
            "series": "all calibration scores",
            "index": 122,
            "x": "123",
            "y": "0.087739146197794049",
            "defined": true,
            "xExact": "123",
            "yExact": "41440825149091079343/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 123,
            "x": "124",
            "y": "0.089088789769007984",
            "defined": true,
            "xExact": "124",
            "yExact": "21039143412900096041/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 124,
            "x": "125",
            "y": "0.089581585238866987",
            "defined": true,
            "xExact": "125",
            "yExact": "84622086522096142527/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 125,
            "x": "126",
            "y": "0.090121045700851013",
            "defined": true,
            "xExact": "126",
            "yExact": "85131680874189121543/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 126,
            "x": "127",
            "y": "0.090235100501858859",
            "defined": true,
            "xExact": "127",
            "yExact": "85239421267635061757/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 127,
            "x": "128",
            "y": "0.090922844834964406",
            "defined": true,
            "xExact": "128",
            "yExact": "85889090061795757941/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 128,
            "x": "129",
            "y": "0.092298667683493443",
            "defined": true,
            "xExact": "129",
            "yExact": "87188743331124013259/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 129,
            "x": "130",
            "y": "0.092307696084755961",
            "defined": true,
            "xExact": "130",
            "yExact": "21799317973417818327/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 130,
            "x": "131",
            "y": "0.093151570201951292",
            "defined": true,
            "xExact": "131",
            "yExact": "87994426670165207213/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 131,
            "x": "132",
            "y": "0.09448397608475595",
            "defined": true,
            "xExact": "132",
            "yExact": "22313266666012523729/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 132,
            "x": "133",
            "y": "0.0946395240730728",
            "defined": true,
            "xExact": "133",
            "yExact": "89400003060526983943/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 133,
            "x": "134",
            "y": "0.095154254186110898",
            "defined": true,
            "xExact": "134",
            "yExact": "89886236208164331129/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 134,
            "x": "135",
            "y": "0.095667568012441737",
            "defined": true,
            "xExact": "135",
            "yExact": "11296391434858908413/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 135,
            "x": "136",
            "y": "0.096780073866205685",
            "defined": true,
            "xExact": "136",
            "yExact": "22855511438213568237/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 136,
            "x": "137",
            "y": "0.097396301696693763",
            "defined": true,
            "xExact": "137",
            "yExact": "11500519675909177583/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 137,
            "x": "138",
            "y": "0.097552373020316704",
            "defined": true,
            "xExact": "138",
            "yExact": "92151588165682331693/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 138,
            "x": "139",
            "y": "0.097894641396786192",
            "defined": true,
            "xExact": "139",
            "yExact": "46237453781595926301/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 139,
            "x": "140",
            "y": "0.098120248603213805",
            "defined": true,
            "xExact": "140",
            "yExact": "23172006123609647063/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 140,
            "x": "141",
            "y": "0.099791535651812646",
            "defined": true,
            "xExact": "141",
            "yExact": "94266784201053253591/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 141,
            "x": "142",
            "y": "0.10017736464809492",
            "defined": true,
            "xExact": "142",
            "yExact": "18926250514996763507/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 142,
            "x": "143",
            "y": "0.10097859944910277",
            "defined": true,
            "xExact": "143",
            "yExact": "95388128672617141097/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 143,
            "x": "144",
            "y": "0.10120140052185651",
            "defined": true,
            "xExact": "144",
            "yExact": "5974912176622641499/59039817095537500000"
          },
          {
            "series": "all calibration scores",
            "index": 144,
            "x": "145",
            "y": "0.10197108464809493",
            "defined": true,
            "xExact": "145",
            "yExact": "96325666986513537927/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 145,
            "x": "146",
            "y": "0.10211344876529026",
            "defined": true,
            "xExact": "146",
            "yExact": "48230074704778211823/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 146,
            "x": "147",
            "y": "0.10218768681760683",
            "defined": true,
            "xExact": "147",
            "yExact": "96530277426041214149/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 147,
            "x": "148",
            "y": "0.10325628318239317",
            "defined": true,
            "xExact": "148",
            "yExact": "97539713168856278393/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 148,
            "x": "149",
            "y": "0.10440259391524405",
            "defined": true,
            "xExact": "149",
            "yExact": "49311280392445477993/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 149,
            "x": "150",
            "y": "0.10440259391524405",
            "defined": true,
            "xExact": "150",
            "yExact": "49311280392445477993/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 150,
            "x": "151",
            "y": "0.10494415976900799",
            "defined": true,
            "xExact": "151",
            "yExact": "49567071984056771373/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 151,
            "x": "152",
            "y": "0.10494415976900799",
            "defined": true,
            "xExact": "152",
            "yExact": "49567071984056771373/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 152,
            "x": "153",
            "y": "0.10589118883912164",
            "defined": true,
            "xExact": "153",
            "yExact": "5001437136872611289/47231853676430000000"
          },
          {
            "series": "all calibration scores",
            "index": 153,
            "x": "154",
            "y": "0.10693295418611089",
            "defined": true,
            "xExact": "154",
            "yExact": "101012832906135651949/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 154,
            "x": "155",
            "y": "0.10777864356629811",
            "defined": true,
            "xExact": "155",
            "yExact": "6363231402959369779/59039817095537500000"
          },
          {
            "series": "all calibration scores",
            "index": 155,
            "x": "156",
            "y": "0.10846345821930886",
            "defined": true,
            "xExact": "156",
            "yExact": "102458603757079500483/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 156,
            "x": "157",
            "y": "0.10853733999508416",
            "defined": true,
            "xExact": "157",
            "yExact": "10252839522153497951/94463707352860000000"
          },
          {
            "series": "all calibration scores",
            "index": 157,
            "x": "158",
            "y": "0.10854304716655278",
            "defined": true,
            "xExact": "158",
            "yExact": "102533786427289206997/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 158,
            "x": "159",
            "y": "0.10968935789940365",
            "defined": true,
            "xExact": "159",
            "yExact": "10361663404332388459/94463707352860000000"
          },
          {
            "series": "all calibration scores",
            "index": 159,
            "x": "160",
            "y": "0.11057450906519783",
            "defined": true,
            "xExact": "160",
            "yExact": "26113195162552532637/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 160,
            "x": "161",
            "y": "0.11094080526790771",
            "defined": true,
            "xExact": "161",
            "yExact": "52399398811591314569/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 161,
            "x": "162",
            "y": "0.11214562231650656",
            "defined": true,
            "xExact": "162",
            "yExact": "21187382494821681687/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 162,
            "x": "163",
            "y": "0.11357604240050392",
            "defined": true,
            "xExact": "163",
            "yExact": "26822035079043054109/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 163,
            "x": "164",
            "y": "0.11368526231650655",
            "defined": true,
            "xExact": "164",
            "yExact": "107391313497995982139/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 164,
            "x": "165",
            "y": "0.11514956336926264",
            "defined": true,
            "xExact": "165",
            "yExact": "108774546559236345879/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 165,
            "x": "166",
            "y": "0.11570448736358822",
            "defined": true,
            "xExact": "166",
            "yExact": "54649374168633431539/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 166,
            "x": "167",
            "y": "0.11704519597171786",
            "defined": true,
            "xExact": "167",
            "yExact": "1105652313933050449/9446370735286000000"
          },
          {
            "series": "all calibration scores",
            "index": 167,
            "x": "168",
            "y": "0.11734363115071238",
            "defined": true,
            "xExact": "168",
            "yExact": "110847144327428400853/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 168,
            "x": "169",
            "y": "0.11740607944910277",
            "defined": true,
            "xExact": "169",
            "yExact": "4436245412210669881/37785482941144000000"
          },
          {
            "series": "all calibration scores",
            "index": 169,
            "x": "170",
            "y": "0.11853447643370189",
            "defined": true,
            "xExact": "170",
            "yExact": "6998253808161059923/59039817095537500000"
          },
          {
            "series": "all calibration scores",
            "index": 170,
            "x": "171",
            "y": "0.11898078348230073",
            "defined": true,
            "xExact": "171",
            "yExact": "112393659114860559679/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 171,
            "x": "172",
            "y": "0.12096656304935743",
            "defined": true,
            "xExact": "172",
            "yExact": "57134750056878942723/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 172,
            "x": "173",
            "y": "0.12160889949814113",
            "defined": true,
            "xExact": "173",
            "yExact": "114876274936957676643/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 173,
            "x": "174",
            "y": "0.1252489086032138",
            "defined": true,
            "xExact": "174",
            "yExact": "14789345310698872241/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 174,
            "x": "175",
            "y": "0.1252489086032138",
            "defined": true,
            "xExact": "175",
            "yExact": "14789345310698872241/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 175,
            "x": "176",
            "y": "0.1252489086032138",
            "defined": true,
            "xExact": "176",
            "yExact": "14789345310698872241/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 176,
            "x": "177",
            "y": "0.12550981139678619",
            "defined": true,
            "xExact": "177",
            "yExact": "14820152617123330183/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 177,
            "x": "178",
            "y": "0.12663303386620567",
            "defined": true,
            "xExact": "178",
            "yExact": "29905564630855156901/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 178,
            "x": "179",
            "y": "0.12663303386620567",
            "defined": true,
            "xExact": "179",
            "yExact": "29905564630855156901/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 179,
            "x": "180",
            "y": "0.12663303386620567",
            "defined": true,
            "xExact": "180",
            "yExact": "29905564630855156901/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 180,
            "x": "181",
            "y": "0.12952268651769927",
            "defined": true,
            "xExact": "181",
            "yExact": "122351931547641684563/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 181,
            "x": "182",
            "y": "0.13032848581388912",
            "defined": true,
            "xExact": "182",
            "yExact": "24622623887329173047/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 182,
            "x": "183",
            "y": "0.13083585391524405",
            "defined": true,
            "xExact": "183",
            "yExact": "61796199077555778611/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 183,
            "x": "184",
            "y": "0.13086915171669142",
            "defined": true,
            "xExact": "184",
            "yExact": "123623852492825735221/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 184,
            "x": "185",
            "y": "0.13198216464809492",
            "defined": true,
            "xExact": "185",
            "yExact": "24935049154229246963/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 185,
            "x": "186",
            "y": "0.13311944697968328",
            "defined": true,
            "xExact": "186",
            "yExact": "125749564824633652359/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 186,
            "x": "187",
            "y": "0.13311944697968328",
            "defined": true,
            "xExact": "187",
            "yExact": "125749564824633652359/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 187,
            "x": "188",
            "y": "0.13311944697968328",
            "defined": true,
            "xExact": "188",
            "yExact": "125749564824633652359/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 188,
            "x": "189",
            "y": "0.13316177318239317",
            "defined": true,
            "xExact": "189",
            "yExact": "125789547724895090407/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 189,
            "x": "190",
            "y": "0.13345366302031672",
            "defined": true,
            "xExact": "190",
            "yExact": "126065277687183923587/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 190,
            "x": "191",
            "y": "0.13392758903615712",
            "defined": true,
            "xExact": "191",
            "yExact": "126512965771856465717/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 191,
            "x": "192",
            "y": "0.13425585949814114",
            "defined": true,
            "xExact": "192",
            "yExact": "126823062220390939699/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 192,
            "x": "193",
            "y": "0.13541206844538503",
            "defined": true,
            "xExact": "193",
            "yExact": "25583052011340601509/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 193,
            "x": "194",
            "y": "0.13594952356629811",
            "defined": true,
            "xExact": "194",
            "yExact": "8026435005579705227/59039817095537500000"
          },
          {
            "series": "all calibration scores",
            "index": 194,
            "x": "195",
            "y": "0.13736652123470974",
            "defined": true,
            "xExact": "195",
            "yExact": "2027523572186882789/14759954273884375000"
          },
          {
            "series": "all calibration scores",
            "index": 195,
            "x": "196",
            "y": "0.13740613350229838",
            "defined": true,
            "xExact": "196",
            "yExact": "16224865979561408217/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 196,
            "x": "197",
            "y": "0.13777730581388911",
            "defined": true,
            "xExact": "197",
            "yExact": "130149550962687171487/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 197,
            "x": "198",
            "y": "0.13817969673360947",
            "defined": true,
            "xExact": "198",
            "yExact": "65264832171753146323/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 198,
            "x": "199",
            "y": "0.14031742884928763",
            "defined": true,
            "xExact": "199",
            "yExact": "132549045353248615463/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 199,
            "x": "200",
            "y": "0.14102128914919521",
            "defined": true,
            "xExact": "200",
            "yExact": "26642787577425253289/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 200,
            "x": "201",
            "y": "0.14347146410211353",
            "defined": true,
            "xExact": "201",
            "yExact": "67764231992142055173/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 201,
            "x": "202",
            "y": "0.14363191066393532",
            "defined": true,
            "xExact": "202",
            "yExact": "135680027754901175397/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 202,
            "x": "203",
            "y": "0.14579931464809492",
            "defined": true,
            "xExact": "203",
            "yExact": "27545487582330386061/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 203,
            "x": "204",
            "y": "0.14736943313335479",
            "defined": true,
            "xExact": "204",
            "yExact": "139210630042660980517/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 204,
            "x": "205",
            "y": "0.14746007104784026",
            "defined": true,
            "xExact": "205",
            "yExact": "34824062494237814837/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 205,
            "x": "206",
            "y": "0.1480511941861109",
            "defined": true,
            "xExact": "206",
            "yExact": "139854646808382273613/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 206,
            "x": "207",
            "y": "0.14828843115071239",
            "defined": true,
            "xExact": "207",
            "yExact": "140078749640356222133/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 207,
            "x": "208",
            "y": "0.14858775139678621",
            "defined": true,
            "xExact": "208",
            "yExact": "35090374660413815137/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 208,
            "x": "209",
            "y": "0.14881907410211354",
            "defined": true,
            "xExact": "209",
            "yExact": "8786250915316024187/59039817095537500000"
          },
          {
            "series": "all calibration scores",
            "index": 209,
            "x": "210",
            "y": "0.1488475258138891",
            "defined": true,
            "xExact": "210",
            "yExact": "140606891186804949779/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 210,
            "x": "211",
            "y": "0.15081327038882078",
            "defined": true,
            "xExact": "211",
            "yExact": "142463806389373121511/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 211,
            "x": "212",
            "y": "0.15084149713751205",
            "defined": true,
            "xExact": "212",
            "yExact": "35622617605663018687/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 212,
            "x": "213",
            "y": "0.15092929294648533",
            "defined": true,
            "xExact": "213",
            "yExact": "28514681119741732567/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 213,
            "x": "214",
            "y": "0.15256219906519783",
            "defined": true,
            "xExact": "214",
            "yExact": "72057954628018096741/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 214,
            "x": "215",
            "y": "0.15300170418611089",
            "defined": true,
            "xExact": "215",
            "yExact": "144531082087256343199/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 215,
            "x": "216",
            "y": "0.15326424061489696",
            "defined": true,
            "xExact": "216",
            "yExact": "144779083731039456069/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 216,
            "x": "217",
            "y": "0.15339159125470739",
            "defined": true,
            "xExact": "217",
            "yExact": "28979876773348395309/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 217,
            "x": "218",
            "y": "0.15409665459905655",
            "defined": true,
            "xExact": "218",
            "yExact": "145565412841000265263/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 218,
            "x": "219",
            "y": "0.1545626230203167",
            "defined": true,
            "xExact": "219",
            "yExact": "146005583886816199843/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 219,
            "x": "220",
            "y": "0.1545626230203167",
            "defined": true,
            "xExact": "220",
            "yExact": "146005583886816199843/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 220,
            "x": "221",
            "y": "0.15678026503199985",
            "defined": true,
            "xExact": "221",
            "yExact": "2962009014937332981/18892741470572000000"
          },
          {
            "series": "all calibration scores",
            "index": 221,
            "x": "222",
            "y": "0.15749202315335245",
            "defined": true,
            "xExact": "222",
            "yExact": "74386401927840683819/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 222,
            "x": "223",
            "y": "0.15762412050185887",
            "defined": true,
            "xExact": "223",
            "yExact": "148897587908395357729/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 223,
            "x": "224",
            "y": "0.158494892016599",
            "defined": true,
            "xExact": "224",
            "yExact": "149720150963791531971/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 224,
            "x": "225",
            "y": "0.16204732198755825",
            "defined": true,
            "xExact": "225",
            "yExact": "3061518160309475871/18892741470572000000"
          },
          {
            "series": "all calibration scores",
            "index": 225,
            "x": "226",
            "y": "0.16372255442201875",
            "defined": true,
            "xExact": "226",
            "yExact": "154658394679842733153/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 226,
            "x": "227",
            "y": "0.16389458958213851",
            "defined": true,
            "xExact": "227",
            "yExact": "77410452735021145183/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 227,
            "x": "228",
            "y": "0.16461643933606468",
            "defined": true,
            "xExact": "228",
            "yExact": "155502791509118452413/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 228,
            "x": "229",
            "y": "0.16461643933606468",
            "defined": true,
            "xExact": "229",
            "yExact": "155502791509118452413/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 229,
            "x": "230",
            "y": "0.16625270800339867",
            "defined": true,
            "xExact": "230",
            "yExact": "39262117888633841359/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 230,
            "x": "231",
            "y": "0.16853500558781292",
            "defined": true,
            "xExact": "231",
            "yExact": "159204414465597849891/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 231,
            "x": "232",
            "y": "0.16856985976900798",
            "defined": true,
            "xExact": "232",
            "yExact": "79618669508661093883/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 232,
            "x": "233",
            "y": "0.16915239461905421",
            "defined": true,
            "xExact": "233",
            "yExact": "79893811516649132737/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 233,
            "x": "234",
            "y": "0.16995654171669142",
            "defined": true,
            "xExact": "234",
            "yExact": "6421890007771871983/37785482941144000000"
          },
          {
            "series": "all calibration scores",
            "index": 234,
            "x": "235",
            "y": "0.17029390429914898",
            "defined": true,
            "xExact": "235",
            "yExact": "160865935396907571027/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 235,
            "x": "236",
            "y": "0.17029870535190508",
            "defined": true,
            "xExact": "236",
            "yExact": "160870470649332943067/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 236,
            "x": "237",
            "y": "0.17058110318239317",
            "defined": true,
            "xExact": "237",
            "yExact": "32227446821899207649/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 237,
            "x": "238",
            "y": "0.17100590976900798",
            "defined": true,
            "xExact": "238",
            "yExact": "40384630540072883449/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 238,
            "x": "239",
            "y": "0.17128882570085102",
            "defined": true,
            "xExact": "239",
            "yExact": "161805775038202350051/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 239,
            "x": "240",
            "y": "0.1716974419035609",
            "defined": true,
            "xExact": "240",
            "yExact": "162191769052126578993/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 240,
            "x": "241",
            "y": "0.17330723348230073",
            "defined": true,
            "xExact": "241",
            "yExact": "163712437858058371149/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 241,
            "x": "242",
            "y": "0.17411813242954466",
            "defined": true,
            "xExact": "242",
            "yExact": "164478443066510278129/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 242,
            "x": "243",
            "y": "0.1748556813967862",
            "defined": true,
            "xExact": "243",
            "yExact": "82587579582254689173/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 243,
            "x": "244",
            "y": "0.17566854503199986",
            "defined": true,
            "xExact": "244",
            "yExact": "82971510145027716929/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 244,
            "x": "245",
            "y": "0.17586503023099201",
            "defined": true,
            "xExact": "245",
            "yExact": "324469975573091924/1844994284235546875"
          },
          {
            "series": "all calibration scores",
            "index": 245,
            "x": "246",
            "y": "0.17680517350229838",
            "defined": true,
            "xExact": "246",
            "yExact": "4175418042048187957/23615926838215000000"
          },
          {
            "series": "all calibration scores",
            "index": 246,
            "x": "247",
            "y": "0.17707847768349344",
            "defined": true,
            "xExact": "247",
            "yExact": "6690995797753390033/37785482941144000000"
          },
          {
            "series": "all calibration scores",
            "index": 247,
            "x": "248",
            "y": "0.17774290231650655",
            "defined": true,
            "xExact": "248",
            "yExact": "167902535084744570643/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 248,
            "x": "249",
            "y": "0.1781286541861109",
            "defined": true,
            "xExact": "249",
            "yExact": "168266930601955798969/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 249,
            "x": "250",
            "y": "0.17853871619779405",
            "defined": true,
            "xExact": "250",
            "yExact": "42163572595159355347/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 250,
            "x": "251",
            "y": "0.180244105700851",
            "defined": true,
            "xExact": "251",
            "yExact": "170265264530031551059/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 251,
            "x": "252",
            "y": "0.18027333831234932",
            "defined": true,
            "xExact": "252",
            "yExact": "21286609842326112239/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 252,
            "x": "253",
            "y": "0.18118632464809492",
            "defined": true,
            "xExact": "253",
            "yExact": "171155319478979233791/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 253,
            "x": "254",
            "y": "0.18190960697968328",
            "defined": true,
            "xExact": "254",
            "yExact": "34367711756805162187/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 254,
            "x": "255",
            "y": "0.18213316535190507",
            "defined": true,
            "xExact": "255",
            "yExact": "172049740310524218623/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 255,
            "x": "256",
            "y": "0.18259523348230075",
            "defined": true,
            "xExact": "256",
            "yExact": "172486226996992007949/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 256,
            "x": "257",
            "y": "0.18327947608475595",
            "defined": true,
            "xExact": "257",
            "yExact": "21641573490819862027/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 257,
            "x": "258",
            "y": "0.18345556830330623",
            "defined": true,
            "xExact": "258",
            "yExact": "86649465582280693909/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 258,
            "x": "259",
            "y": "0.18413487348230073",
            "defined": true,
            "xExact": "259",
            "yExact": "173940628020879581653/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 259,
            "x": "260",
            "y": "0.18489731673360946",
            "defined": true,
            "xExact": "260",
            "yExact": "87330430091263743289/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 260,
            "x": "261",
            "y": "0.18500778779653154",
            "defined": true,
            "xExact": "261",
            "yExact": "174765215244115784999/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 261,
            "x": "262",
            "y": "0.1851901904178615",
            "defined": true,
            "xExact": "262",
            "yExact": "87468759761266432171/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 262,
            "x": "263",
            "y": "0.18978742860321379",
            "defined": true,
            "xExact": "263",
            "yExact": "448200602870644999/2361592683821500000"
          },
          {
            "series": "all calibration scores",
            "index": 263,
            "x": "264",
            "y": "0.19008933009795628",
            "defined": true,
            "xExact": "264",
            "yExact": "179565428492745443113/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 264,
            "x": "265",
            "y": "0.19262602313335481",
            "defined": true,
            "xExact": "265",
            "yExact": "181961682778144683991/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 265,
            "x": "266",
            "y": "0.19499647821930885",
            "defined": true,
            "xExact": "266",
            "yExact": "36840180506694262971/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 266,
            "x": "267",
            "y": "0.19545094581388911",
            "defined": true,
            "xExact": "267",
            "yExact": "184630209472029177591/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 267,
            "x": "268",
            "y": "0.19579815558781294",
            "defined": true,
            "xExact": "268",
            "yExact": "184958196696769100981/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 268,
            "x": "269",
            "y": "0.19684483050185886",
            "defined": true,
            "xExact": "269",
            "yExact": "37189384924901851007/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 269,
            "x": "270",
            "y": "0.19766821608475596",
            "defined": true,
            "xExact": "270",
            "yExact": "9336236258596140209/47231853676430000000"
          },
          {
            "series": "all calibration scores",
            "index": 270,
            "x": "271",
            "y": "0.19774357231650655",
            "defined": true,
            "xExact": "271",
            "yExact": "37359181892431166961/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 271,
            "x": "272",
            "y": "0.19822895576485075",
            "defined": true,
            "xExact": "272",
            "yExact": "187254420662338904711/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 272,
            "x": "273",
            "y": "0.19881452681760683",
            "defined": true,
            "xExact": "273",
            "yExact": "187807572787957481773/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 273,
            "x": "274",
            "y": "0.20015839283344722",
            "defined": true,
            "xExact": "274",
            "yExact": "189077038448375494187/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 274,
            "x": "275",
            "y": "0.20227646263641177",
            "defined": true,
            "xExact": "275",
            "yExact": "47769461427144304273/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 275,
            "x": "276",
            "y": "0.2024317758138891",
            "defined": true,
            "xExact": "276",
            "yExact": "191224560294029834329/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 276,
            "x": "277",
            "y": "0.2024317758138891",
            "defined": true,
            "xExact": "277",
            "yExact": "191224560294029834329/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 277,
            "x": "278",
            "y": "0.20343392643370189",
            "defined": true,
            "xExact": "278",
            "yExact": "96085614461382329019/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 278,
            "x": "279",
            "y": "0.20475769508103822",
            "defined": true,
            "xExact": "279",
            "yExact": "96710854931906683757/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 279,
            "x": "280",
            "y": "0.20534298434818735",
            "defined": true,
            "xExact": "280",
            "yExact": "193974595804300813681/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 280,
            "x": "281",
            "y": "0.20615956201659899",
            "defined": true,
            "xExact": "281",
            "yExact": "194745965343297986533/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 281,
            "x": "282",
            "y": "0.20632765803243938",
            "defined": true,
            "xExact": "282",
            "yExact": "7796190202870931077/37785482941144000000"
          },
          {
            "series": "all calibration scores",
            "index": 282,
            "x": "283",
            "y": "0.2063699069796833",
            "defined": true,
            "xExact": "283",
            "yExact": "38988932998731485103/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 283,
            "x": "284",
            "y": "0.20776487210059635",
            "defined": true,
            "xExact": "284",
            "yExact": "49065600190787802847/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 284,
            "x": "285",
            "y": "0.20784050178069113",
            "defined": true,
            "xExact": "285",
            "yExact": "196333843362827852773/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 285,
            "x": "286",
            "y": "0.20906163968501063",
            "defined": true,
            "xExact": "286",
            "yExact": "39497475099827810937/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 286,
            "x": "287",
            "y": "0.2090941902019513",
            "defined": true,
            "xExact": "287",
            "yExact": "39503624784840747229/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 287,
            "x": "288",
            "y": "0.21170071841634433",
            "defined": true,
            "xExact": "288",
            "yExact": "24997543388589711877/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 288,
            "x": "289",
            "y": "0.21205507736358822",
            "defined": true,
            "xExact": "289",
            "yExact": "25039385963452606869/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 289,
            "x": "290",
            "y": "0.21235011503199985",
            "defined": true,
            "xExact": "290",
            "yExact": "1253711195170562011/5903981709553750000"
          },
          {
            "series": "all calibration scores",
            "index": 290,
            "x": "291",
            "y": "0.21241062570085101",
            "defined": true,
            "xExact": "291",
            "yExact": "200650951848430733531/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 291,
            "x": "292",
            "y": "0.21276679938510304",
            "defined": true,
            "xExact": "292",
            "yExact": "8039496268607618867/37785482941144000000"
          },
          {
            "series": "all calibration scores",
            "index": 292,
            "x": "293",
            "y": "0.21316440116087834",
            "defined": true,
            "xExact": "293",
            "yExact": "100681498046544314547/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 293,
            "x": "294",
            "y": "0.2140575087162519",
            "defined": true,
            "xExact": "294",
            "yExact": "50551664650135743699/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 294,
            "x": "295",
            "y": "0.21513965061489695",
            "defined": true,
            "xExact": "295",
            "yExact": "40645777991364345559/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 295,
            "x": "296",
            "y": "0.21536377464809492",
            "defined": true,
            "xExact": "296",
            "yExact": "203440605827649283861/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 296,
            "x": "297",
            "y": "0.21552741759949606",
            "defined": true,
            "xExact": "297",
            "yExact": "5089879725659111313/23615926838215000000"
          },
          {
            "series": "all calibration scores",
            "index": 297,
            "x": "298",
            "y": "0.21596411231650656",
            "defined": true,
            "xExact": "298",
            "yExact": "204007707045866632249/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 298,
            "x": "299",
            "y": "0.21644542085080479",
            "defined": true,
            "xExact": "299",
            "yExact": "204462368931170466461/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 299,
            "x": "300",
            "y": "0.21735204231650657",
            "defined": true,
            "xExact": "300",
            "yExact": "205318797179329182047/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 300,
            "x": "301",
            "y": "0.21820394516503561",
            "defined": true,
            "xExact": "301",
            "yExact": "206123536193094333253/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 301,
            "x": "302",
            "y": "0.21881471210059636",
            "defined": true,
            "xExact": "302",
            "yExact": "51675122320927619203/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 302,
            "x": "303",
            "y": "0.21912860884928761",
            "defined": true,
            "xExact": "303",
            "yExact": "206997007789784345211/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 303,
            "x": "304",
            "y": "0.21980894116087835",
            "defined": true,
            "xExact": "304",
            "yExact": "103819837456816176469/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 304,
            "x": "305",
            "y": "0.22156130673360946",
            "defined": true,
            "xExact": "305",
            "yExact": "52323756100002335423/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 305,
            "x": "306",
            "y": "0.22249606434818736",
            "defined": true,
            "xExact": "306",
            "yExact": "210178031097502771769/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 306,
            "x": "307",
            "y": "0.22355550302031671",
            "defined": true,
            "xExact": "307",
            "yExact": "211178816144326076211/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 307,
            "x": "308",
            "y": "0.22355550302031671",
            "defined": true,
            "xExact": "308",
            "yExact": "211178816144326076211/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 308,
            "x": "309",
            "y": "0.22396444906519783",
            "defined": true,
            "xExact": "309",
            "yExact": "1652852513589013069/7379977136942187500"
          },
          {
            "series": "all calibration scores",
            "index": 309,
            "x": "310",
            "y": "0.22432700386620569",
            "defined": true,
            "xExact": "310",
            "yExact": "105953802222805735073/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 310,
            "x": "311",
            "y": "0.22631850011795393",
            "defined": true,
            "xExact": "311",
            "yExact": "106894422818403054211/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 311,
            "x": "312",
            "y": "0.22683167852938241",
            "defined": true,
            "xExact": "312",
            "yExact": "10713680649478798569/47231853676430000000"
          },
          {
            "series": "all calibration scores",
            "index": 312,
            "x": "313",
            "y": "0.22815331686664519",
            "defined": true,
            "xExact": "313",
            "yExact": "215522081560751095133/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 313,
            "x": "314",
            "y": "0.22957593771253418",
            "defined": true,
            "xExact": "314",
            "yExact": "2168659419533524311/9446370735286000000"
          },
          {
            "series": "all calibration scores",
            "index": 314,
            "x": "315",
            "y": "0.23060942860321379",
            "defined": true,
            "xExact": "315",
            "yExact": "17018923106550196/73799771369421875"
          },
          {
            "series": "all calibration scores",
            "index": 315,
            "x": "316",
            "y": "0.23063668938510304",
            "defined": true,
            "xExact": "316",
            "yExact": "217867967309068465529/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 316,
            "x": "317",
            "y": "0.23155294789940364",
            "defined": true,
            "xExact": "317",
            "yExact": "27341687383826631033/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 317,
            "x": "318",
            "y": "0.23155294789940364",
            "defined": true,
            "xExact": "318",
            "yExact": "27341687383826631033/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 318,
            "x": "319",
            "y": "0.23173227350229839",
            "defined": true,
            "xExact": "319",
            "yExact": "10945144834167014167/47231853676430000000"
          },
          {
            "series": "all calibration scores",
            "index": 319,
            "x": "320",
            "y": "0.23182206716655276",
            "defined": true,
            "xExact": "320",
            "yExact": "218987719107562956969/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 320,
            "x": "321",
            "y": "0.23206963608475595",
            "defined": true,
            "xExact": "321",
            "yExact": "27402697735743881849/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 321,
            "x": "322",
            "y": "0.23327090736358824",
            "defined": true,
            "xExact": "322",
            "yExact": "22035634727130113269/94463707352860000000"
          },
          {
            "series": "all calibration scores",
            "index": 322,
            "x": "323",
            "y": "0.23460007208059871",
            "defined": true,
            "xExact": "323",
            "yExact": "221611925539815382061/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 323,
            "x": "324",
            "y": "0.2355085682833086",
            "defined": true,
            "xExact": "324",
            "yExact": "222470124734055087571/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 324,
            "x": "325",
            "y": "0.2360563417166914",
            "defined": true,
            "xExact": "325",
            "yExact": "44597514365424510771/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 325,
            "x": "326",
            "y": "0.23939420139678619",
            "defined": true,
            "xExact": "326",
            "yExact": "113070318913588200009/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 326,
            "x": "327",
            "y": "0.24141912789940365",
            "defined": true,
            "xExact": "327",
            "yExact": "57013364618179862753/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 327,
            "x": "328",
            "y": "0.24201082231650656",
            "defined": true,
            "xExact": "328",
            "yExact": "45722478991062950631/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 328,
            "x": "329",
            "y": "0.242556410230992",
            "defined": true,
            "xExact": "329",
            "yExact": "57281944381551717139/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 329,
            "x": "330",
            "y": "0.24282066789940365",
            "defined": true,
            "xExact": "330",
            "yExact": "3584021954949261329/14759954273884375000"
          },
          {
            "series": "all calibration scores",
            "index": 330,
            "x": "331",
            "y": "0.24360727055089723",
            "defined": true,
            "xExact": "331",
            "yExact": "46024091828697891957/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 331,
            "x": "332",
            "y": "0.24384508508103822",
            "defined": true,
            "xExact": "332",
            "yExact": "57586276891321107967/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 332,
            "x": "333",
            "y": "0.24436404434818734",
            "defined": true,
            "xExact": "333",
            "yExact": "230835335728684725997/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 333,
            "x": "334",
            "y": "0.2449913958138891",
            "defined": true,
            "xExact": "334",
            "yExact": "231427955181319109461/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 334,
            "x": "335",
            "y": "0.24507978613379433",
            "defined": true,
            "xExact": "335",
            "yExact": "28938931494305328631/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 335,
            "x": "336",
            "y": "0.24551035508103822",
            "defined": true,
            "xExact": "336",
            "yExact": "23191818334471940359/94463707352860000000"
          },
          {
            "series": "all calibration scores",
            "index": 336,
            "x": "337",
            "y": "0.24573753453505684",
            "defined": true,
            "xExact": "337",
            "yExact": "232132785479329362489/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 337,
            "x": "338",
            "y": "0.24629437766349579",
            "defined": true,
            "xExact": "338",
            "yExact": "116329400071296229759/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 338,
            "x": "339",
            "y": "0.24665666581388909",
            "defined": true,
            "xExact": "339",
            "yExact": "233001030960754081183/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 339,
            "x": "340",
            "y": "0.24698969283344724",
            "defined": true,
            "xExact": "340",
            "yExact": "233315620629915419367/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 340,
            "x": "341",
            "y": "0.24752808884928762",
            "defined": true,
            "xExact": "341",
            "yExact": "233824209466718350339/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 341,
            "x": "342",
            "y": "0.24868530895215973",
            "defined": true,
            "xExact": "342",
            "yExact": "5872934061953098213/23615926838215000000"
          },
          {
            "series": "all calibration scores",
            "index": 342,
            "x": "343",
            "y": "0.24890423871625189",
            "defined": true,
            "xExact": "343",
            "yExact": "117562085824892123137/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 343,
            "x": "344",
            "y": "0.24954740613379431",
            "defined": true,
            "xExact": "344",
            "yExact": "11786586571844023649/47231853676430000000"
          },
          {
            "series": "all calibration scores",
            "index": 344,
            "x": "345",
            "y": "0.25028422643370191",
            "defined": true,
            "xExact": "345",
            "yExact": "118213879604350813309/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 345,
            "x": "346",
            "y": "0.25271433503199986",
            "defined": true,
            "xExact": "346",
            "yExact": "59680832470838627113/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 346,
            "x": "347",
            "y": "0.25403951768349342",
            "defined": true,
            "xExact": "347",
            "yExact": "239975146545152276569/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 347,
            "x": "348",
            "y": "0.25517382316239551",
            "defined": true,
            "xExact": "348",
            "yExact": "24104665355322979399/94463707352860000000"
          },
          {
            "series": "all calibration scores",
            "index": 348,
            "x": "349",
            "y": "0.25579259884928762",
            "defined": true,
            "xExact": "349",
            "yExact": "9665246880290648013/37785482941144000000"
          },
          {
            "series": "all calibration scores",
            "index": 349,
            "x": "350",
            "y": "0.25617825136774547",
            "defined": true,
            "xExact": "350",
            "yExact": "241995473673701155929/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 350,
            "x": "351",
            "y": "0.25624010821930887",
            "defined": true,
            "xExact": "351",
            "yExact": "242053905948939687673/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 351,
            "x": "352",
            "y": "0.25723537441218708",
            "defined": true,
            "xExact": "352",
            "yExact": "242994071292762112977/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 352,
            "x": "353",
            "y": "0.25778987325622454",
            "defined": true,
            "xExact": "353",
            "yExact": "243517871458068672837/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 353,
            "x": "354",
            "y": "0.25878030860321383",
            "defined": true,
            "xExact": "354",
            "yExact": "1909792760982561531/7379977136942187500"
          },
          {
            "series": "all calibration scores",
            "index": 354,
            "x": "355",
            "y": "0.25878030860321383",
            "defined": true,
            "xExact": "355",
            "yExact": "1909792760982561531/7379977136942187500"
          },
          {
            "series": "all calibration scores",
            "index": 355,
            "x": "356",
            "y": "0.25947330350229836",
            "defined": true,
            "xExact": "356",
            "yExact": "122554051039604690899/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 356,
            "x": "357",
            "y": "0.2599266193360647",
            "defined": true,
            "xExact": "357",
            "yExact": "245536321021802553561/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 357,
            "x": "358",
            "y": "0.26023703976900797",
            "defined": true,
            "xExact": "358",
            "yExact": "122914777835570799557/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 358,
            "x": "359",
            "y": "0.26023703976900797",
            "defined": true,
            "xExact": "359",
            "yExact": "122914777835570799557/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 359,
            "x": "360",
            "y": "0.26063402863225454",
            "defined": true,
            "xExact": "360",
            "yExact": "246204566069142255279/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 360,
            "x": "361",
            "y": "0.26430881705351467",
            "defined": true,
            "xExact": "361",
            "yExact": "249675907449238232111/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 361,
            "x": "362",
            "y": "0.26431275063489462",
            "defined": true,
            "xExact": "362",
            "yExact": "124839811628020722251/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 362,
            "x": "363",
            "y": "0.26433650944910275",
            "defined": true,
            "xExact": "363",
            "yExact": "249702066712765562323/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 363,
            "x": "364",
            "y": "0.26498223789940367",
            "defined": true,
            "xExact": "364",
            "yExact": "125156022873175970479/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 364,
            "x": "365",
            "y": "0.26595096431914661",
            "defined": true,
            "xExact": "365",
            "yExact": "25122714063654778899/94463707352860000000"
          },
          {
            "series": "all calibration scores",
            "index": 365,
            "x": "366",
            "y": "0.26614813093480216",
            "defined": true,
            "xExact": "366",
            "yExact": "62853347882839544239/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 366,
            "x": "367",
            "y": "0.26643280055089724",
            "defined": true,
            "xExact": "367",
            "yExact": "251682301004428724943/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 367,
            "x": "368",
            "y": "0.26660537210059637",
            "defined": true,
            "xExact": "368",
            "yExact": "31480664811013849961/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 368,
            "x": "369",
            "y": "0.26685192388620332",
            "defined": true,
            "xExact": "369",
            "yExact": "50415644089067963781/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 369,
            "x": "370",
            "y": "0.26844075240050391",
            "defined": true,
            "xExact": "370",
            "yExact": "126789543381713766071/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 370,
            "x": "371",
            "y": "0.2686785669306449",
            "defined": true,
            "xExact": "371",
            "yExact": "10152149407408900169/37785482941144000000"
          },
          {
            "series": "all calibration scores",
            "index": 371,
            "x": "372",
            "y": "0.27090849565181263",
            "defined": true,
            "xExact": "372",
            "yExact": "255910208526563758647/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 372,
            "x": "373",
            "y": "0.271175210230992",
            "defined": true,
            "xExact": "373",
            "yExact": "64040539251526791559/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 373,
            "x": "374",
            "y": "0.27205869055089721",
            "defined": true,
            "xExact": "374",
            "yExact": "256996725270022540397/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 374,
            "x": "375",
            "y": "0.27357376876529027",
            "defined": true,
            "xExact": "375",
            "yExact": "129213962160316854399/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 375,
            "x": "376",
            "y": "0.27372978828330857",
            "defined": true,
            "xExact": "376",
            "yExact": "258575306141547884463/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 376,
            "x": "377",
            "y": "0.27372978828330857",
            "defined": true,
            "xExact": "377",
            "yExact": "258575306141547884463/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 377,
            "x": "378",
            "y": "0.27372978828330857",
            "defined": true,
            "xExact": "378",
            "yExact": "258575306141547884463/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 378,
            "x": "379",
            "y": "0.27388353759949607",
            "defined": true,
            "xExact": "379",
            "yExact": "16170033965353016097/59039817095537500000"
          },
          {
            "series": "all calibration scores",
            "index": 379,
            "x": "380",
            "y": "0.27414057286248794",
            "defined": true,
            "xExact": "380",
            "yExact": "129481674242137278727/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 380,
            "x": "381",
            "y": "0.27472007949814115",
            "defined": true,
            "xExact": "381",
            "yExact": "259510771936668386391/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 381,
            "x": "382",
            "y": "0.27721862938510305",
            "defined": true,
            "xExact": "382",
            "yExact": "261870994789953299013/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 382,
            "x": "383",
            "y": "0.28132567705351469",
            "defined": true,
            "xExact": "383",
            "yExact": "265750664280284124307/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 383,
            "x": "384",
            "y": "0.28391011453505682",
            "defined": true,
            "xExact": "384",
            "yExact": "268192019739565728277/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 384,
            "x": "385",
            "y": "0.28412904429914898",
            "defined": true,
            "xExact": "385",
            "yExact": "268398828911226046031/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 385,
            "x": "386",
            "y": "0.28436272128374812",
            "defined": true,
            "xExact": "386",
            "yExact": "134309784427054374391/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 386,
            "x": "387",
            "y": "0.2845275144121871",
            "defined": true,
            "xExact": "387",
            "yExact": "268775238552694958181/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 387,
            "x": "388",
            "y": "0.28460241055089724",
            "defined": true,
            "xExact": "388",
            "yExact": "268845988221984710789/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 388,
            "x": "389",
            "y": "0.28495351600075858",
            "defined": true,
            "xExact": "389",
            "yExact": "269177655446641685771/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 389,
            "x": "390",
            "y": "0.28547020418611091",
            "defined": true,
            "xExact": "390",
            "yExact": "269665738261979692299/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 390,
            "x": "391",
            "y": "0.28680186828330861",
            "defined": true,
            "xExact": "391",
            "yExact": "270923677537679625951/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 391,
            "x": "392",
            "y": "0.28680186828330861",
            "defined": true,
            "xExact": "392",
            "yExact": "270923677537679625951/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 392,
            "x": "393",
            "y": "0.28695969654673997",
            "defined": true,
            "xExact": "393",
            "yExact": "33884095995820945121/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 393,
            "x": "394",
            "y": "0.28866297949814113",
            "defined": true,
            "xExact": "394",
            "yExact": "272681752189170303331/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 394,
            "x": "395",
            "y": "0.29071334860321379",
            "defined": true,
            "xExact": "395",
            "yExact": "17163662928764975057/59039817095537500000"
          },
          {
            "series": "all calibration scores",
            "index": 395,
            "x": "396",
            "y": "0.29084223464809494",
            "defined": true,
            "xExact": "396",
            "yExact": "274740357396494777817/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 396,
            "x": "397",
            "y": "0.29117503759949609",
            "defined": true,
            "xExact": "397",
            "yExact": "68763683850642011113/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 397,
            "x": "398",
            "y": "0.29371522798340099",
            "defined": true,
            "xExact": "398",
            "yExact": "277454293413025497461/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 398,
            "x": "399",
            "y": "0.29371867326639056",
            "defined": true,
            "xExact": "399",
            "yExact": "34682193494383274467/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 399,
            "x": "400",
            "y": "0.29546184535190506",
            "defined": true,
            "xExact": "400",
            "yExact": "279104212932583398871/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 400,
            "x": "401",
            "y": "0.29546184535190506",
            "defined": true,
            "xExact": "401",
            "yExact": "279104212932583398871/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 401,
            "x": "402",
            "y": "0.29632585949814116",
            "defined": true,
            "xExact": "402",
            "yExact": "279920392727171141699/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 402,
            "x": "403",
            "y": "0.29671571496800014",
            "defined": true,
            "xExact": "403",
            "yExact": "140144332328658932989/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 403,
            "x": "404",
            "y": "0.2990803150519975",
            "defined": true,
            "xExact": "404",
            "yExact": "282522353560730621527/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 404,
            "x": "405",
            "y": "0.29939411434818736",
            "defined": true,
            "xExact": "405",
            "yExact": "282818780009558730999/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 405,
            "x": "406",
            "y": "0.3001040008508048",
            "defined": true,
            "xExact": "406",
            "yExact": "283489365117928731849/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 406,
            "x": "407",
            "y": "0.3002493223365042",
            "defined": true,
            "xExact": "407",
            "yExact": "141813320590450320151/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 407,
            "x": "408",
            "y": "0.30052095023099201",
            "defined": true,
            "xExact": "408",
            "yExact": "709708077400595861/2361592683821500000"
          },
          {
            "series": "all calibration scores",
            "index": 408,
            "x": "409",
            "y": "0.30126783876529029",
            "defined": true,
            "xExact": "409",
            "yExact": "1422943847797649521/4723185367643000000"
          },
          {
            "series": "all calibration scores",
            "index": 409,
            "x": "410",
            "y": "0.30162574938510306",
            "defined": true,
            "xExact": "410",
            "yExact": "56985373040002932529/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 410,
            "x": "411",
            "y": "0.30258292860321379",
            "defined": true,
            "xExact": "411",
            "yExact": "2858310521754532009/9446370735286000000"
          },
          {
            "series": "all calibration scores",
            "index": 411,
            "x": "412",
            "y": "0.30427844643370189",
            "defined": true,
            "xExact": "412",
            "yExact": "28743270117696103131/94463707352860000000"
          },
          {
            "series": "all calibration scores",
            "index": 412,
            "x": "413",
            "y": "0.30494115231650654",
            "defined": true,
            "xExact": "413",
            "yExact": "288058717722703815593/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 413,
            "x": "414",
            "y": "0.30595817944910275",
            "defined": true,
            "xExact": "414",
            "yExact": "57803887851387737417/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 414,
            "x": "415",
            "y": "0.30796431705351468",
            "defined": true,
            "xExact": "415",
            "yExact": "290914511212666029411/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 415,
            "x": "416",
            "y": "0.30817260759949605",
            "defined": true,
            "xExact": "416",
            "yExact": "145555635092232784977/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 416,
            "x": "417",
            "y": "0.3082508009148045",
            "defined": true,
            "xExact": "417",
            "yExact": "291185134489008042271/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 417,
            "x": "418",
            "y": "0.30826851334022193",
            "defined": true,
            "xExact": "418",
            "yExact": "29120186630271942993/94463707352860000000"
          },
          {
            "series": "all calibration scores",
            "index": 418,
            "x": "419",
            "y": "0.30848975464809492",
            "defined": true,
            "xExact": "419",
            "yExact": "291410859044332216889/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 419,
            "x": "420",
            "y": "0.30909532442201876",
            "defined": true,
            "xExact": "420",
            "yExact": "467172644325422383/1511419317645760000"
          },
          {
            "series": "all calibration scores",
            "index": 420,
            "x": "421",
            "y": "0.30956520766349582",
            "defined": true,
            "xExact": "421",
            "yExact": "18276673239594875641/59039817095537500000"
          },
          {
            "series": "all calibration scores",
            "index": 421,
            "x": "422",
            "y": "0.31117748681760682",
            "defined": true,
            "xExact": "422",
            "yExact": "293949790495368622429/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 422,
            "x": "423",
            "y": "0.31140096464809491",
            "defined": true,
            "xExact": "423",
            "yExact": "58832179187831882499/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 423,
            "x": "424",
            "y": "0.31173717326639055",
            "defined": true,
            "xExact": "424",
            "yExact": "73619622766110318709/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 424,
            "x": "425",
            "y": "0.31210209697968327",
            "defined": true,
            "xExact": "425",
            "yExact": "294823211533027331149/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 425,
            "x": "426",
            "y": "0.31316765302031674",
            "defined": true,
            "xExact": "426",
            "yExact": "295829775272932008701/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 426,
            "x": "427",
            "y": "0.31347010828330857",
            "defined": true,
            "xExact": "427",
            "yExact": "59223097145487595523/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 427,
            "x": "428",
            "y": "0.31375915244954228",
            "defined": true,
            "xExact": "428",
            "yExact": "74097131890687374337/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 428,
            "x": "429",
            "y": "0.31405688171669144",
            "defined": true,
            "xExact": "429",
            "yExact": "296669773666373059299/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 429,
            "x": "430",
            "y": "0.31575194464809492",
            "defined": true,
            "xExact": "430",
            "yExact": "298270992953340880523/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 430,
            "x": "431",
            "y": "0.31668442883912162",
            "defined": true,
            "xExact": "431",
            "yExact": "74787963022666013111/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 431,
            "x": "432",
            "y": "0.32103819139678619",
            "defined": true,
            "xExact": "432",
            "yExact": "75816144402993670783/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 432,
            "x": "433",
            "y": "0.32142754158365566",
            "defined": true,
            "xExact": "433",
            "yExact": "15181618611653844161/47231853676430000000"
          },
          {
            "series": "all calibration scores",
            "index": 433,
            "x": "434",
            "y": "0.32188014833234696",
            "defined": true,
            "xExact": "434",
            "yExact": "12162396853904796149/37785482941144000000"
          },
          {
            "series": "all calibration scores",
            "index": 434,
            "x": "435",
            "y": "0.32215902263641177",
            "defined": true,
            "xExact": "435",
            "yExact": "76080839088523504577/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 435,
            "x": "436",
            "y": "0.32289069592692721",
            "defined": true,
            "xExact": "436",
            "yExact": "305014522070025550349/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 436,
            "x": "437",
            "y": "0.32363683608475596",
            "defined": true,
            "xExact": "437",
            "yExact": "38214919215644884589/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 437,
            "x": "438",
            "y": "0.32423308139678619",
            "defined": true,
            "xExact": "438",
            "yExact": "153141294575910235993/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 438,
            "x": "439",
            "y": "0.32533717705351467",
            "defined": true,
            "xExact": "439",
            "yExact": "307325558841888103207/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 439,
            "x": "440",
            "y": "0.32574644302031669",
            "defined": true,
            "xExact": "440",
            "yExact": "61542433329412565419/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 440,
            "x": "441",
            "y": "0.32624148442201872",
            "defined": true,
            "xExact": "441",
            "yExact": "308179801108042129551/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 441,
            "x": "442",
            "y": "0.32639984318239318",
            "defined": true,
            "xExact": "442",
            "yExact": "308329392664009844209/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 442,
            "x": "443",
            "y": "0.32723572348230073",
            "defined": true,
            "xExact": "443",
            "yExact": "309118996184334740963/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 443,
            "x": "444",
            "y": "0.32784649041786151",
            "defined": true,
            "xExact": "444",
            "yExact": "154847974637475442261/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 444,
            "x": "445",
            "y": "0.32824195779653154",
            "defined": true,
            "xExact": "445",
            "yExact": "310069522422213777261/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 445,
            "x": "446",
            "y": "0.32922991976900801",
            "defined": true,
            "xExact": "446",
            "yExact": "155501393964325737741/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 446,
            "x": "447",
            "y": "0.32993732906519785",
            "defined": true,
            "xExact": "447",
            "yExact": "779177582439977943/2361592683821500000"
          },
          {
            "series": "all calibration scores",
            "index": 447,
            "x": "448",
            "y": "0.33006612746646036",
            "defined": true,
            "xExact": "448",
            "yExact": "311792700720834957671/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 448,
            "x": "449",
            "y": "0.33017484675360709",
            "defined": true,
            "xExact": "449",
            "yExact": "311895400990081394983/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 449,
            "x": "450",
            "y": "0.33046389136774545",
            "defined": true,
            "xExact": "450",
            "yExact": "312168443248500265233/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 450,
            "x": "451",
            "y": "0.33068665093480215",
            "defined": true,
            "xExact": "451",
            "yExact": "78094717548506299657/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 451,
            "x": "452",
            "y": "0.33129906178069113",
            "defined": true,
            "xExact": "452",
            "yExact": "312957376183282927589/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 452,
            "x": "453",
            "y": "0.33197030697968327",
            "defined": true,
            "xExact": "453",
            "yExact": "62718291856735799391/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 453,
            "x": "454",
            "y": "0.33199262038882077",
            "defined": true,
            "xExact": "454",
            "yExact": "313612537357187075921/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 454,
            "x": "455",
            "y": "0.33365916863225453",
            "defined": true,
            "xExact": "455",
            "yExact": "315186820612758564283/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 455,
            "x": "456",
            "y": "0.33414795565181266",
            "defined": true,
            "xExact": "456",
            "yExact": "315648546952492717203/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 456,
            "x": "457",
            "y": "0.33776674938510304",
            "defined": true,
            "xExact": "457",
            "yExact": "63813398734882359049/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 457,
            "x": "458",
            "y": "0.33933675968501059",
            "defined": true,
            "xExact": "458",
            "yExact": "320550083609526243117/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 458,
            "x": "459",
            "y": "0.33959415651769925",
            "defined": true,
            "xExact": "459",
            "yExact": "64158646040058554721/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 459,
            "x": "460",
            "y": "0.33959415651769925",
            "defined": true,
            "xExact": "460",
            "yExact": "64158646040058554721/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 460,
            "x": "461",
            "y": "0.34018875597171788",
            "defined": true,
            "xExact": "461",
            "yExact": "80338727722114652679/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 461,
            "x": "462",
            "y": "0.34079727418611089",
            "defined": true,
            "xExact": "462",
            "yExact": "321929739753691691501/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 462,
            "x": "463",
            "y": "0.34147742082176408",
            "defined": true,
            "xExact": "463",
            "yExact": "161286115740582719371/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 463,
            "x": "464",
            "y": "0.34319099139678622",
            "defined": true,
            "xExact": "464",
            "yExact": "81047733443609763303/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 464,
            "x": "465",
            "y": "0.34365072828330856",
            "defined": true,
            "xExact": "465",
            "yExact": "324625218281516713347/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 465,
            "x": "466",
            "y": "0.34626256224267515",
            "defined": true,
            "xExact": "466",
            "yExact": "327092453469435374149/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 466,
            "x": "467",
            "y": "0.34633113906519786",
            "defined": true,
            "xExact": "467",
            "yExact": "163578616839187537583/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 467,
            "x": "468",
            "y": "0.34704480324639292",
            "defined": true,
            "xExact": "468",
            "yExact": "327831387321981362007/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 468,
            "x": "469",
            "y": "0.34709354464809494",
            "defined": true,
            "xExact": "469",
            "yExact": "327877430257044850283/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 469,
            "x": "470",
            "y": "0.3472461478703629",
            "defined": true,
            "xExact": "470",
            "yExact": "65604316983667826173/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 470,
            "x": "471",
            "y": "0.34789119833234694",
            "defined": true,
            "xExact": "471",
            "yExact": "65726184699805198951/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 471,
            "x": "472",
            "y": "0.3481178896559699",
            "defined": true,
            "xExact": "472",
            "yExact": "82211266131891873879/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 472,
            "x": "473",
            "y": "0.35123332503199989",
            "defined": true,
            "xExact": "473",
            "yExact": "165894010141973958283/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 473,
            "x": "474",
            "y": "0.35181212329543127",
            "defined": true,
            "xExact": "474",
            "yExact": "13293390983267167453/37785482941144000000"
          },
          {
            "series": "all calibration scores",
            "index": 474,
            "x": "475",
            "y": "0.35225348348230073",
            "defined": true,
            "xExact": "475",
            "yExact": "332751699776975608899/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 475,
            "x": "476",
            "y": "0.3526979614706176",
            "defined": true,
            "xExact": "476",
            "yExact": "83292892540776779081/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 476,
            "x": "477",
            "y": "0.35279238789940365",
            "defined": true,
            "xExact": "477",
            "yExact": "41657596108557417031/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 477,
            "x": "478",
            "y": "0.35321341496800013",
            "defined": true,
            "xExact": "478",
            "yExact": "166829243323207325099/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 478,
            "x": "479",
            "y": "0.35654943789940363",
            "defined": true,
            "xExact": "479",
            "yExact": "168404908792779981439/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 479,
            "x": "480",
            "y": "0.35687127693064491",
            "defined": true,
            "xExact": "480",
            "yExact": "337113838666179000731/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 480,
            "x": "481",
            "y": "0.35825126464809492",
            "defined": true,
            "xExact": "481",
            "yExact": "13536697049003855243/37785482941144000000"
          },
          {
            "series": "all calibration scores",
            "index": 481,
            "x": "482",
            "y": "0.35825719326639055",
            "defined": true,
            "xExact": "482",
            "yExact": "2643929895451040761/7379977136942187500"
          },
          {
            "series": "all calibration scores",
            "index": 482,
            "x": "483",
            "y": "0.35844128675360709",
            "defined": true,
            "xExact": "483",
            "yExact": "338596928150753155167/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 483,
            "x": "484",
            "y": "0.35883792503199985",
            "defined": true,
            "xExact": "484",
            "yExact": "169485803686651754063/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 484,
            "x": "485",
            "y": "0.35948497263641177",
            "defined": true,
            "xExact": "485",
            "yExact": "169791416264384432739/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 485,
            "x": "486",
            "y": "0.36016790759949607",
            "defined": true,
            "xExact": "486",
            "yExact": "170113979106853592767/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 486,
            "x": "487",
            "y": "0.36101579315335247",
            "defined": true,
            "xExact": "487",
            "yExact": "17051445117099462123/47231853676430000000"
          },
          {
            "series": "all calibration scores",
            "index": 487,
            "x": "488",
            "y": "0.36102134464809493",
            "defined": true,
            "xExact": "488",
            "yExact": "341034146489736485363/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 488,
            "x": "489",
            "y": "0.3611768730203167",
            "defined": true,
            "xExact": "489",
            "yExact": "341181064356122742393/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 489,
            "x": "490",
            "y": "0.36649976789940364",
            "defined": true,
            "xExact": "490",
            "yExact": "86552317049350949329/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 490,
            "x": "491",
            "y": "0.36705776725055012",
            "defined": true,
            "xExact": "491",
            "yExact": "173368187535750837989/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 491,
            "x": "492",
            "y": "0.36811308418611088",
            "defined": true,
            "xExact": "492",
            "yExact": "347733266573154958667/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 492,
            "x": "493",
            "y": "0.36878375242954464",
            "defined": true,
            "xExact": "493",
            "yExact": "348366804659940784861/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 493,
            "x": "494",
            "y": "0.36898176697968327",
            "defined": true,
            "xExact": "494",
            "yExact": "348553856545099834711/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 494,
            "x": "495",
            "y": "0.36925939491896176",
            "defined": true,
            "xExact": "495",
            "yExact": "17440805709459481813/47231853676430000000"
          },
          {
            "series": "all calibration scores",
            "index": 495,
            "x": "496",
            "y": "0.3703623402019513",
            "defined": true,
            "xExact": "496",
            "yExact": "69971599438715006047/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 496,
            "x": "497",
            "y": "0.37069893350229838",
            "defined": true,
            "xExact": "497",
            "yExact": "43771994462973029977/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 497,
            "x": "498",
            "y": "0.37411930348230071",
            "defined": true,
            "xExact": "498",
            "yExact": "353406963992078741351/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 498,
            "x": "499",
            "y": "0.37655987228746585",
            "defined": true,
            "xExact": "499",
            "yExact": "177856207882967544033/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 499,
            "x": "500",
            "y": "0.37655987228746585",
            "defined": true,
            "xExact": "500",
            "yExact": "177856207882967544033/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 500,
            "x": "501",
            "y": "0.37676368592692722",
            "defined": true,
            "xExact": "501",
            "yExact": "355904945685861082863/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 501,
            "x": "502",
            "y": "0.37770618302031672",
            "defined": true,
            "xExact": "502",
            "yExact": "356795263381969765659/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 502,
            "x": "503",
            "y": "0.37855210139678619",
            "defined": true,
            "xExact": "503",
            "yExact": "178797174620780982979/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 503,
            "x": "504",
            "y": "0.37898424613379433",
            "defined": true,
            "xExact": "504",
            "yExact": "89500642295317526651/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 504,
            "x": "505",
            "y": "0.37912668600075861",
            "defined": true,
            "xExact": "505",
            "yExact": "358137123160353033433/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 505,
            "x": "506",
            "y": "0.37998976608475593",
            "defined": true,
            "xExact": "506",
            "yExact": "35895242060512112551/94463707352860000000"
          },
          {
            "series": "all calibration scores",
            "index": 506,
            "x": "507",
            "y": "0.38210254155461498",
            "defined": true,
            "xExact": "507",
            "yExact": "360948226641991745301/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 507,
            "x": "508",
            "y": "0.38636561496800015",
            "defined": true,
            "xExact": "508",
            "yExact": "182487641917724751559/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 508,
            "x": "509",
            "y": "0.38679911434818737",
            "defined": true,
            "xExact": "509",
            "yExact": "365384783421326013999/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 509,
            "x": "510",
            "y": "0.3885254032463929",
            "defined": true,
            "xExact": "510",
            "yExact": "367015499914191807167/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 510,
            "x": "511",
            "y": "0.38903522589788647",
            "defined": true,
            "xExact": "511",
            "yExact": "91874274322929323997/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 511,
            "x": "512",
            "y": "0.38943070968501065",
            "defined": true,
            "xExact": "512",
            "yExact": "367870685939014255087/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 512,
            "x": "513",
            "y": "0.38980346104784025",
            "defined": true,
            "xExact": "513",
            "yExact": "184111400347775722651/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 513,
            "x": "514",
            "y": "0.39057702041786152",
            "defined": true,
            "xExact": "514",
            "yExact": "9223838338876223317/23615926838215000000"
          },
          {
            "series": "all calibration scores",
            "index": 514,
            "x": "515",
            "y": "0.39093198055089723",
            "defined": true,
            "xExact": "515",
            "yExact": "369288842056339131491/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 515,
            "x": "516",
            "y": "0.39099634464809491",
            "defined": true,
            "xExact": "516",
            "yExact": "369349642768756270363/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 516,
            "x": "517",
            "y": "0.39118344876529026",
            "defined": true,
            "xExact": "517",
            "yExact": "184763194127234412823/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 517,
            "x": "518",
            "y": "0.39138469318239316",
            "defined": true,
            "xExact": "518",
            "yExact": "369716491191704885919/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 518,
            "x": "519",
            "y": "0.39206949325622453",
            "defined": true,
            "xExact": "519",
            "yExact": "370363378729401139969/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 519,
            "x": "520",
            "y": "0.39215786789940366",
            "defined": true,
            "xExact": "520",
            "yExact": "23152928793356748061/59039817095537500000"
          },
          {
            "series": "all calibration scores",
            "index": 520,
            "x": "521",
            "y": "0.39260863380220595",
            "defined": true,
            "xExact": "521",
            "yExact": "185436335438488808911/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 521,
            "x": "522",
            "y": "0.3929205542151516",
            "defined": true,
            "xExact": "522",
            "yExact": "92791830615759110057/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 522,
            "x": "523",
            "y": "0.39310009171669141",
            "defined": true,
            "xExact": "523",
            "yExact": "74267384048615926021/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 523,
            "x": "524",
            "y": "0.39317507117071004",
            "defined": true,
            "xExact": "524",
            "yExact": "92851937153774634021/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 524,
            "x": "525",
            "y": "0.39381267979804868",
            "defined": true,
            "xExact": "525",
            "yExact": "372010057362884345337/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 525,
            "x": "526",
            "y": "0.39464047748645797",
            "defined": true,
            "xExact": "526",
            "yExact": "46599003218592128141/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 526,
            "x": "527",
            "y": "0.39509063828330859",
            "defined": true,
            "xExact": "527",
            "yExact": "373217264326491279773/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 527,
            "x": "528",
            "y": "0.39653902391524404",
            "defined": true,
            "xExact": "528",
            "yExact": "93646365772795915721/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 528,
            "x": "529",
            "y": "0.39799923139678622",
            "defined": true,
            "xExact": "529",
            "yExact": "93991207303323052219/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 529,
            "x": "530",
            "y": "0.39914207581388911",
            "defined": true,
            "xExact": "530",
            "yExact": "377044402418962798909/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 530,
            "x": "531",
            "y": "0.39914207581388911",
            "defined": true,
            "xExact": "531",
            "yExact": "377044402418962798909/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 531,
            "x": "532",
            "y": "0.39998995136774546",
            "defined": true,
            "xExact": "532",
            "yExact": "377845337100874120549/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 532,
            "x": "533",
            "y": "0.40197215240050393",
            "defined": true,
            "xExact": "533",
            "yExact": "189858898841802215091/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 533,
            "x": "534",
            "y": "0.4021915790361571",
            "defined": true,
            "xExact": "534",
            "yExact": "379925076218562080831/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 534,
            "x": "535",
            "y": "0.40370462196756063",
            "defined": true,
            "xExact": "535",
            "yExact": "381354352665406226283/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 535,
            "x": "536",
            "y": "0.40432987464809494",
            "defined": true,
            "xExact": "536",
            "yExact": "381944989527762064321/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 536,
            "x": "537",
            "y": "0.40552001906519786",
            "defined": true,
            "xExact": "537",
            "yExact": "191534622033505278567/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 537,
            "x": "538",
            "y": "0.40605312420610856",
            "defined": true,
            "xExact": "538",
            "yExact": "191786417473601749929/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 538,
            "x": "539",
            "y": "0.40802769565181263",
            "defined": true,
            "xExact": "539",
            "yExact": "385438088339146567767/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 539,
            "x": "540",
            "y": "0.41093679231650654",
            "defined": true,
            "xExact": "540",
            "yExact": "388186128899094830897/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 540,
            "x": "541",
            "y": "0.41178467787036294",
            "defined": true,
            "xExact": "541",
            "yExact": "388987073027376887823/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 541,
            "x": "542",
            "y": "0.41178467787036294",
            "defined": true,
            "xExact": "542",
            "yExact": "388987073027376887823/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 542,
            "x": "543",
            "y": "0.41195276388620333",
            "defined": true,
            "xExact": "543",
            "yExact": "389145853309481442929/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 543,
            "x": "544",
            "y": "0.41280160348230072",
            "defined": true,
            "xExact": "544",
            "yExact": "389947698661434105131/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 544,
            "x": "545",
            "y": "0.41447301654673996",
            "defined": true,
            "xExact": "545",
            "yExact": "2447041108795521637/5903981709553750000"
          },
          {
            "series": "all calibration scores",
            "index": 545,
            "x": "546",
            "y": "0.4159160519035609",
            "defined": true,
            "xExact": "546",
            "yExact": "392889722103749066239/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 546,
            "x": "547",
            "y": "0.41653931274944989",
            "defined": true,
            "xExact": "547",
            "yExact": "39347847740525458051/94463707352860000000"
          },
          {
            "series": "all calibration scores",
            "index": 547,
            "x": "548",
            "y": "0.41665926579389145",
            "defined": true,
            "xExact": "548",
            "yExact": "49198973687264592437/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 548,
            "x": "549",
            "y": "0.41816666779653155",
            "defined": true,
            "xExact": "549",
            "yExact": "395015737314521808967/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 549,
            "x": "550",
            "y": "0.41884206976900801",
            "defined": true,
            "xExact": "550",
            "yExact": "98913436764314351993/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 550,
            "x": "551",
            "y": "0.42000793085080479",
            "defined": true,
            "xExact": "551",
            "yExact": "396755062657706839247/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 551,
            "x": "552",
            "y": "0.42224307748645801",
            "defined": true,
            "xExact": "552",
            "yExact": "6232288516164336867/14759954273884375000"
          },
          {
            "series": "all calibration scores",
            "index": 552,
            "x": "553",
            "y": "0.42298479491896179",
            "defined": true,
            "xExact": "553",
            "yExact": "3995671188193430827/9446370735286000000"
          },
          {
            "series": "all calibration scores",
            "index": 553,
            "x": "554",
            "y": "0.4245543559269272",
            "defined": true,
            "xExact": "554",
            "yExact": "16041991373465285641/37785482941144000000"
          },
          {
            "series": "all calibration scores",
            "index": 554,
            "x": "555",
            "y": "0.42549684302031671",
            "defined": true,
            "xExact": "555",
            "yExact": "80388018517274017707/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 555,
            "x": "556",
            "y": "0.42561492380220595",
            "defined": true,
            "xExact": "556",
            "yExact": "100512909017653478179/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 556,
            "x": "557",
            "y": "0.42669659380220598",
            "defined": true,
            "xExact": "557",
            "yExact": "201536710826968796739/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 557,
            "x": "558",
            "y": "0.42986379851921641",
            "defined": true,
            "xExact": "558",
            "yExact": "406065280649080350793/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 558,
            "x": "559",
            "y": "0.43009106423514926",
            "defined": true,
            "xExact": "559",
            "yExact": "406279964269892517861/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 559,
            "x": "560",
            "y": "0.43031909358629578",
            "defined": true,
            "xExact": "560",
            "yExact": "406495369248838164381/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 560,
            "x": "561",
            "y": "0.43158429199660137",
            "defined": true,
            "xExact": "561",
            "yExact": "101922630643145568191/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 561,
            "x": "562",
            "y": "0.43298511968501063",
            "defined": true,
            "xExact": "562",
            "yExact": "409013796340679046213/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 562,
            "x": "563",
            "y": "0.43351047789940367",
            "defined": true,
            "xExact": "563",
            "yExact": "204755034593438744311/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 563,
            "x": "564",
            "y": "0.43527774115071238",
            "defined": true,
            "xExact": "564",
            "yExact": "411179491572748401399/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 564,
            "x": "565",
            "y": "0.43695983936510541",
            "defined": true,
            "xExact": "565",
            "yExact": "103192115976845079143/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 565,
            "x": "566",
            "y": "0.43768151242954467",
            "defined": true,
            "xExact": "566",
            "yExact": "413450183039016620797/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 566,
            "x": "567",
            "y": "0.43802936196756059",
            "defined": true,
            "xExact": "567",
            "yExact": "413778774608636303847/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 567,
            "x": "568",
            "y": "0.44127792978900565",
            "defined": true,
            "xExact": "568",
            "yExact": "83369498441729059923/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 568,
            "x": "569",
            "y": "0.44227629318239314",
            "defined": true,
            "xExact": "569",
            "yExact": "417790583282892985679/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 569,
            "x": "570",
            "y": "0.44376957503199987",
            "defined": true,
            "xExact": "570",
            "yExact": "104800298169814707079/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 570,
            "x": "571",
            "y": "0.44384447117071002",
            "defined": true,
            "xExact": "571",
            "yExact": "104817985587137145231/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 571,
            "x": "572",
            "y": "0.44666023516503561",
            "defined": true,
            "xExact": "572",
            "yExact": "421931817407895498147/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 572,
            "x": "573",
            "y": "0.44715183757045535",
            "defined": true,
            "xExact": "573",
            "yExact": "422396203265490838013/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 573,
            "x": "574",
            "y": "0.44756119473209227",
            "defined": true,
            "xExact": "574",
            "yExact": "211391448608343764031/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 574,
            "x": "575",
            "y": "0.4481557941861109",
            "defined": true,
            "xExact": "575",
            "yExact": "423344577904853365173/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 575,
            "x": "576",
            "y": "0.44886353938510304",
            "defined": true,
            "xExact": "576",
            "yExact": "424013140258433228439/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 576,
            "x": "577",
            "y": "0.44905799231650656",
            "defined": true,
            "xExact": "577",
            "yExact": "424196827706493297217/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 577,
            "x": "578",
            "y": "0.45091438407307283",
            "defined": true,
            "xExact": "578",
            "yExact": "425950444182738654939/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 578,
            "x": "579",
            "y": "0.45140584198755829",
            "defined": true,
            "xExact": "579",
            "yExact": "213207346774420333611/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 579,
            "x": "580",
            "y": "0.45176281240050392",
            "defined": true,
            "xExact": "580",
            "yExact": "213375950517530976529/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 580,
            "x": "581",
            "y": "0.45276796139678621",
            "defined": true,
            "xExact": "581",
            "yExact": "213850701020685124777/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 581,
            "x": "582",
            "y": "0.45413055670456876",
            "defined": true,
            "xExact": "582",
            "yExact": "428988560085317754323/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 582,
            "x": "583",
            "y": "0.46377506592692719",
            "defined": true,
            "xExact": "583",
            "yExact": "438099121052746038331/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 583,
            "x": "584",
            "y": "0.46685128976900797",
            "defined": true,
            "xExact": "584",
            "yExact": "13781407379389004427/29519908547768750000"
          },
          {
            "series": "all calibration scores",
            "index": 584,
            "x": "585",
            "y": "0.4677538341122795",
            "defined": true,
            "xExact": "585",
            "yExact": "441857612987605940347/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 585,
            "x": "586",
            "y": "0.46813494581388909",
            "defined": true,
            "xExact": "586",
            "yExact": "442217625230101939991/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 586,
            "x": "587",
            "y": "0.47120396613379434",
            "defined": true,
            "xExact": "587",
            "yExact": "111279183900924252649/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 587,
            "x": "588",
            "y": "0.47200620199660132",
            "defined": true,
            "xExact": "588",
            "yExact": "44587455734141872439/94463707352860000000"
          },
          {
            "series": "all calibration scores",
            "index": 588,
            "x": "589",
            "y": "0.4733593321296371",
            "defined": true,
            "xExact": "589",
            "yExact": "447152774230392965863/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 589,
            "x": "590",
            "y": "0.47343025976900799",
            "defined": true,
            "xExact": "590",
            "yExact": "223609887554040297603/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 590,
            "x": "591",
            "y": "0.47500351883912167",
            "defined": true,
            "xExact": "591",
            "yExact": "224352966975987546709/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 591,
            "x": "592",
            "y": "0.47619348871625189",
            "defined": true,
            "xExact": "592",
            "yExact": "14057188237946706057/29519908547768750000"
          },
          {
            "series": "all calibration scores",
            "index": 592,
            "x": "593",
            "y": "0.47721247787036292",
            "defined": true,
            "xExact": "593",
            "yExact": "450792598546791422903/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 593,
            "x": "594",
            "y": "0.47864327516503558",
            "defined": true,
            "xExact": "594",
            "yExact": "452144182716043653091/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 594,
            "x": "595",
            "y": "0.47879535683760449",
            "defined": true,
            "xExact": "595",
            "yExact": "226143922351078227279/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 595,
            "x": "596",
            "y": "0.47978958589788645",
            "defined": true,
            "xExact": "596",
            "yExact": "113306757583019582671/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 596,
            "x": "597",
            "y": "0.48117371116087837",
            "defined": true,
            "xExact": "597",
            "yExact": "11363363159247699509/23615926838215000000"
          },
          {
            "series": "all calibration scores",
            "index": 597,
            "x": "598",
            "y": "0.48223428903615712",
            "defined": true,
            "xExact": "598",
            "yExact": "455536387550260487337/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 598,
            "x": "599",
            "y": "0.4871974117166914",
            "defined": true,
            "xExact": "599",
            "yExact": "460224737234763833457/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 599,
            "x": "600",
            "y": "0.48939430697968328",
            "defined": true,
            "xExact": "600",
            "yExact": "92460001189369064671/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 600,
            "x": "601",
            "y": "0.48986533523886699",
            "defined": true,
            "xExact": "601",
            "yExact": "462744956703149882777/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 601,
            "x": "602",
            "y": "0.49269594860321381",
            "defined": true,
            "xExact": "602",
            "yExact": "58177357378492175409/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 602,
            "x": "603",
            "y": "0.49567773990204372",
            "defined": true,
            "xExact": "603",
            "yExact": "468235569634337140089/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 603,
            "x": "604",
            "y": "0.49632780231650658",
            "defined": true,
            "xExact": "604",
            "yExact": "468849642691146248783/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 604,
            "x": "605",
            "y": "0.49869788023099204",
            "defined": true,
            "xExact": "605",
            "yExact": "235544253078160279799/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 605,
            "x": "606",
            "y": "0.49943882643370191",
            "defined": true,
            "xExact": "606",
            "yExact": "235894215704445274089/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 606,
            "x": "607",
            "y": "0.5013580332663905",
            "defined": true,
            "xExact": "607",
            "yExact": "59200173166852205179/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 607,
            "x": "608",
            "y": "0.5017219827494499",
            "defined": true,
            "xExact": "608",
            "yExact": "29621574094337940617/59039817095537500000"
          },
          {
            "series": "all calibration scores",
            "index": 608,
            "x": "609",
            "y": "0.50335975139678624",
            "defined": true,
            "xExact": "609",
            "yExact": "118873070622885934937/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 609,
            "x": "610",
            "y": "0.50335975139678624",
            "defined": true,
            "xExact": "610",
            "yExact": "118873070622885934937/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 610,
            "x": "611",
            "y": "0.50424422705351468",
            "defined": true,
            "xExact": "611",
            "yExact": "476327790987523019837/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 611,
            "x": "612",
            "y": "0.5053539476834934",
            "defined": true,
            "xExact": "612",
            "yExact": "477376074235860474267/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 612,
            "x": "613",
            "y": "0.50572735231650656",
            "defined": true,
            "xExact": "613",
            "yExact": "477728806095632000913/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 613,
            "x": "614",
            "y": "0.50901230651769924",
            "defined": true,
            "xExact": "614",
            "yExact": "96166379123784431539/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 614,
            "x": "615",
            "y": "0.51346215306935505",
            "defined": true,
            "xExact": "615",
            "yExact": "485035385643129640367/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 615,
            "x": "616",
            "y": "0.51565704697968329",
            "defined": true,
            "xExact": "616",
            "yExact": "487108763803287827719/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 616,
            "x": "617",
            "y": "0.51702052908519547",
            "defined": true,
            "xExact": "617",
            "yExact": "488396759549247472767/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 617,
            "x": "618",
            "y": "0.51804739600075855",
            "defined": true,
            "xExact": "618",
            "yExact": "489366776107268350739/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 618,
            "x": "619",
            "y": "0.51855295949814117",
            "defined": true,
            "xExact": "619",
            "yExact": "489844350129918686759/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 619,
            "x": "620",
            "y": "0.52204433755045776",
            "defined": true,
            "xExact": "620",
            "yExact": "246571217637920498733/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 620,
            "x": "621",
            "y": "0.52417531196756062",
            "defined": true,
            "xExact": "621",
            "yExact": "495155432712977403017/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 621,
            "x": "622",
            "y": "0.52516153697968326",
            "defined": true,
            "xExact": "622",
            "yExact": "496087057422269671133/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 622,
            "x": "623",
            "y": "0.52947220558781294",
            "defined": true,
            "xExact": "623",
            "yExact": "500159074801204853811/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 623,
            "x": "624",
            "y": "0.52967705139678622",
            "defined": true,
            "xExact": "624",
            "yExact": "31272036234169872783/59039817095537500000"
          },
          {
            "series": "all calibration scores",
            "index": 624,
            "x": "625",
            "y": "0.53095297233650418",
            "defined": true,
            "xExact": "625",
            "yExact": "125389465492316759923/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 625,
            "x": "626",
            "y": "0.53609285766349579",
            "defined": true,
            "xExact": "626",
            "yExact": "253206594101414488023/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 626,
            "x": "627",
            "y": "0.53736161801244176",
            "defined": true,
            "xExact": "627",
            "yExact": "253805853132933196067/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 627,
            "x": "628",
            "y": "0.53772568326639059",
            "defined": true,
            "xExact": "628",
            "yExact": "253977807900965015611/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 628,
            "x": "629",
            "y": "0.53909488695064256",
            "defined": true,
            "xExact": "629",
            "yExact": "31828063522705402939/59039817095537500000"
          },
          {
            "series": "all calibration scores",
            "index": 629,
            "x": "630",
            "y": "0.54039474356629813",
            "defined": true,
            "xExact": "630",
            "yExact": "127619227278176521731/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 630,
            "x": "631",
            "y": "0.54102925011795389",
            "defined": true,
            "xExact": "631",
            "yExact": "63884535940599620109/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 631,
            "x": "632",
            "y": "0.54363576833234695",
            "defined": true,
            "xExact": "632",
            "yExact": "513538501262940184457/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 632,
            "x": "633",
            "y": "0.54809865727054774",
            "defined": true,
            "xExact": "633",
            "yExact": "517754311609005376479/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 633,
            "x": "634",
            "y": "0.5487928458138891",
            "defined": true,
            "xExact": "634",
            "yExact": "518410067843064405931/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 634,
            "x": "635",
            "y": "0.54981944418611084",
            "defined": true,
            "xExact": "635",
            "yExact": "519379830725089220563/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 635,
            "x": "636",
            "y": "0.54996866576485071",
            "defined": true,
            "xExact": "636",
            "yExact": "519520790960537345417/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 636,
            "x": "637",
            "y": "0.55652803821930885",
            "defined": true,
            "xExact": "637",
            "yExact": "525717017360100777471/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 637,
            "x": "638",
            "y": "0.55841545386620572",
            "defined": true,
            "xExact": "638",
            "yExact": "1030273320611948193/1844994284235546875"
          },
          {
            "series": "all calibration scores",
            "index": 638,
            "x": "639",
            "y": "0.56002773302031672",
            "defined": true,
            "xExact": "639",
            "yExact": "529022958815168086989/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 639,
            "x": "640",
            "y": "0.56360179693064494",
            "defined": true,
            "xExact": "640",
            "yExact": "532399152088024713603/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 640,
            "x": "641",
            "y": "0.56429187050185892",
            "defined": true,
            "xExact": "641",
            "yExact": "533051021166855680379/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 641,
            "x": "642",
            "y": "0.56440437865225213",
            "defined": true,
            "xExact": "642",
            "yExact": "33322331283549458021/59039817095537500000"
          },
          {
            "series": "all calibration scores",
            "index": 642,
            "x": "643",
            "y": "0.5666523248451304",
            "defined": true,
            "xExact": "643",
            "yExact": "16727524807808798759/29519908547768750000"
          },
          {
            "series": "all calibration scores",
            "index": 643,
            "x": "644",
            "y": "0.56944971683760448",
            "defined": true,
            "xExact": "644",
            "yExact": "268961657017582314627/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 644,
            "x": "645",
            "y": "0.57009520496800015",
            "defined": true,
            "xExact": "645",
            "yExact": "67316633256707379299/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 645,
            "x": "646",
            "y": "0.57495567329543129",
            "defined": true,
            "xExact": "646",
            "yExact": "108624888926092403371/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 646,
            "x": "647",
            "y": "0.58007489503199983",
            "defined": true,
            "xExact": "647",
            "yExact": "136990062817609545117/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 647,
            "x": "648",
            "y": "0.58546813697968325",
            "defined": true,
            "xExact": "648",
            "yExact": "553054907560729539893/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 648,
            "x": "649",
            "y": "0.58581510809643911",
            "defined": true,
            "xExact": "649",
            "yExact": "553382669341060704937/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 649,
            "x": "650",
            "y": "0.58613726906519781",
            "defined": true,
            "xExact": "650",
            "yExact": "138421748633948521371/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 650,
            "x": "651",
            "y": "0.58729792884928766",
            "defined": true,
            "xExact": "651",
            "yExact": "554783396797599007763/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 651,
            "x": "652",
            "y": "0.5875906557648507",
            "defined": true,
            "xExact": "652",
            "yExact": "555059917494459599331/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 652,
            "x": "653",
            "y": "0.5879691832562246",
            "defined": true,
            "xExact": "653",
            "yExact": "555417488596161086103/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 653,
            "x": "654",
            "y": "0.58805455673360951",
            "defined": true,
            "xExact": "654",
            "yExact": "277749067773997461821/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 654,
            "x": "655",
            "y": "0.59118599093480217",
            "defined": true,
            "xExact": "655",
            "yExact": "69807025548469621219/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 655,
            "x": "656",
            "y": "0.59218351828330862",
            "defined": true,
            "xExact": "656",
            "yExact": "559398505703014816141/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 656,
            "x": "657",
            "y": "0.59249394871625194",
            "defined": true,
            "xExact": "657",
            "yExact": "27984587489936229849/47231853676430000000"
          },
          {
            "series": "all calibration scores",
            "index": 657,
            "x": "658",
            "y": "0.59364025944910281",
            "defined": true,
            "xExact": "658",
            "yExact": "560774597414759274573/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 658,
            "x": "659",
            "y": "0.59525253860321381",
            "defined": true,
            "xExact": "659",
            "yExact": "281148808038304943373/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 659,
            "x": "660",
            "y": "0.59525253860321381",
            "defined": true,
            "xExact": "660",
            "yExact": "281148808038304943373/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 660,
            "x": "661",
            "y": "0.59577123386620567",
            "defined": true,
            "xExact": "661",
            "yExact": "140696898712973920031/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 661,
            "x": "662",
            "y": "0.59910882283344724",
            "defined": true,
            "xExact": "662",
            "yExact": "113188081025310416297/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 662,
            "x": "663",
            "y": "0.60084973302031675",
            "defined": true,
            "xExact": "663",
            "yExact": "567584933430752596189/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 663,
            "x": "664",
            "y": "0.60103153242050156",
            "defined": true,
            "xExact": "664",
            "yExact": "567756667884112474497/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 664,
            "x": "665",
            "y": "0.60229969139678619",
            "defined": true,
            "xExact": "665",
            "yExact": "8889915904191234563/14759954273884375000"
          },
          {
            "series": "all calibration scores",
            "index": 665,
            "x": "666",
            "y": "0.60740586464809487",
            "defined": true,
            "xExact": "666",
            "yExact": "114755619685057060527/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 666,
            "x": "667",
            "y": "0.61020201828330856",
            "defined": true,
            "xExact": "667",
            "yExact": "576419448812389895241/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 667,
            "x": "668",
            "y": "0.6110831340730728",
            "defined": true,
            "xExact": "668",
            "yExact": "577251783453472606189/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 668,
            "x": "669",
            "y": "0.61124104675360713",
            "defined": true,
            "xExact": "669",
            "yExact": "577400953625885588303/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 669,
            "x": "670",
            "y": "0.61322368386620563",
            "defined": true,
            "xExact": "670",
            "yExact": "289636913072899947597/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 670,
            "x": "671",
            "y": "0.61601732464809489",
            "defined": true,
            "xExact": "671",
            "yExact": "581912802798493900391/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 671,
            "x": "672",
            "y": "0.62066394505199751",
            "defined": true,
            "xExact": "672",
            "yExact": "117260434539726943669/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 672,
            "x": "673",
            "y": "0.62182291325622452",
            "defined": true,
            "xExact": "673",
            "yExact": "587396977031388457781/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 673,
            "x": "674",
            "y": "0.62250917418611085",
            "defined": true,
            "xExact": "674",
            "yExact": "588045244547873301841/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 674,
            "x": "675",
            "y": "0.62648143976900794",
            "defined": true,
            "xExact": "675",
            "yExact": "295898796941689794477/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 675,
            "x": "676",
            "y": "0.63276996565181265",
            "defined": true,
            "xExact": "676",
            "yExact": "597737968570121041689/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 676,
            "x": "677",
            "y": "0.64024990860321385",
            "defined": true,
            "xExact": "677",
            "yExact": "18900118749684172079/29519908547768750000"
          },
          {
            "series": "all calibration scores",
            "index": 677,
            "x": "678",
            "y": "0.64340934302031672",
            "defined": true,
            "xExact": "678",
            "yExact": "121557663774334227207/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 678,
            "x": "679",
            "y": "0.64340934302031672",
            "defined": true,
            "xExact": "679",
            "yExact": "121557663774334227207/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 679,
            "x": "680",
            "y": "0.64475320903615707",
            "defined": true,
            "xExact": "680",
            "yExact": "609057784532089148449/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 680,
            "x": "681",
            "y": "0.64547403155461491",
            "defined": true,
            "xExact": "681",
            "yExact": "121947740041291736983/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 681,
            "x": "682",
            "y": "0.64593926326639051",
            "defined": true,
            "xExact": "682",
            "yExact": "61017817532918306961/94463707352860000000"
          },
          {
            "series": "all calibration scores",
            "index": 682,
            "x": "683",
            "y": "0.64662657464809492",
            "defined": true,
            "xExact": "683",
            "yExact": "610827435141399199941/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 683,
            "x": "684",
            "y": "0.6514899867045687",
            "defined": true,
            "xExact": "684",
            "yExact": "615421594473790339021/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 684,
            "x": "685",
            "y": "0.65547830697968323",
            "defined": true,
            "xExact": "685",
            "yExact": "123837821933353865151/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 685,
            "x": "686",
            "y": "0.65589373503199988",
            "defined": true,
            "xExact": "686",
            "yExact": "154895384601592834823/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 686,
            "x": "687",
            "y": "0.65689809946910038",
            "defined": true,
            "xExact": "687",
            "yExact": "155132574572247551211/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 687,
            "x": "688",
            "y": "0.65944678294648529",
            "defined": true,
            "xExact": "688",
            "yExact": "622937879190417778049/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 688,
            "x": "689",
            "y": "0.66193960326639056",
            "defined": true,
            "xExact": "689",
            "yExact": "312646344841122834667/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 689,
            "x": "690",
            "y": "0.66583949508103824",
            "defined": true,
            "xExact": "690",
            "yExact": "314488336036556303497/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 690,
            "x": "691",
            "y": "0.66684846050185886",
            "defined": true,
            "xExact": "691",
            "yExact": "629929778215528163853/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 691,
            "x": "692",
            "y": "0.66799477123470974",
            "defined": true,
            "xExact": "692",
            "yExact": "315506312915781420723/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 692,
            "x": "693",
            "y": "0.67137960176148204",
            "defined": true,
            "xExact": "693",
            "yExact": "317105031117381667471/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 693,
            "x": "694",
            "y": "0.67721043535190506",
            "defined": true,
            "xExact": "694",
            "yExact": "127943616762770554709/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 694,
            "x": "695",
            "y": "0.67755530313335477",
            "defined": true,
            "xExact": "695",
            "yExact": "640043858705675741399/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 695,
            "x": "696",
            "y": "0.68889758313335481",
            "defined": true,
            "xExact": "696",
            "yExact": "650758196892017710607/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 696,
            "x": "697",
            "y": "0.68999483976900799",
            "defined": true,
            "xExact": "697",
            "yExact": "325897353094615486097/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 697,
            "x": "698",
            "y": "0.69456514588772045",
            "defined": true,
            "xExact": "698",
            "yExact": "656111986786341412481/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 698,
            "x": "699",
            "y": "0.70380487768349342",
            "defined": true,
            "xExact": "699",
            "yExact": "132968035998017905173/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 699,
            "x": "700",
            "y": "0.71042905038882076",
            "defined": true,
            "xExact": "700",
            "yExact": "671097619108997962819/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 700,
            "x": "701",
            "y": "0.7165294713477478",
            "defined": true,
            "xExact": "701",
            "yExact": "338430151455465677387/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 701,
            "x": "702",
            "y": "0.72308590860321376",
            "defined": true,
            "xExact": "702",
            "yExact": "10672714947073572127/14759954273884375000"
          },
          {
            "series": "all calibration scores",
            "index": 702,
            "x": "703",
            "y": "0.73469155345325998",
            "defined": true,
            "xExact": "703",
            "yExact": "347008439500134269891/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 703,
            "x": "704",
            "y": "0.73615176093480217",
            "defined": true,
            "xExact": "704",
            "yExact": "347698122561188542887/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 704,
            "x": "705",
            "y": "0.73663419581388911",
            "defined": true,
            "xExact": "705",
            "yExact": "695851970994725893541/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 705,
            "x": "706",
            "y": "0.74565385597171785",
            "defined": true,
            "xExact": "706",
            "yExact": "44023267273152485161/59039817095537500000"
          },
          {
            "series": "all calibration scores",
            "index": 706,
            "x": "707",
            "y": "0.74565385597171785",
            "defined": true,
            "xExact": "707",
            "yExact": "44023267273152485161/59039817095537500000"
          },
          {
            "series": "all calibration scores",
            "index": 707,
            "x": "708",
            "y": "0.75080447581388909",
            "defined": true,
            "xExact": "708",
            "yExact": "709237742825006743549/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 708,
            "x": "709",
            "y": "0.75193471263641176",
            "defined": true,
            "xExact": "709",
            "yExact": "355152703214714409021/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 709,
            "x": "710",
            "y": "0.75422733410211351",
            "defined": true,
            "xExact": "710",
            "yExact": "178117775415374543307/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 710,
            "x": "711",
            "y": "0.75550321651769925",
            "defined": true,
            "xExact": "711",
            "yExact": "713676347492723682721/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 711,
            "x": "712",
            "y": "0.75585934201659899",
            "defined": true,
            "xExact": "712",
            "yExact": "714012756841813230241/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 712,
            "x": "713",
            "y": "0.76985182496800009",
            "defined": true,
            "xExact": "713",
            "yExact": "181807643747105910931/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 713,
            "x": "714",
            "y": "0.77440093410211353",
            "defined": true,
            "xExact": "714",
            "yExact": "182881958032008684547/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 714,
            "x": "715",
            "y": "0.77514115588772048",
            "defined": true,
            "xExact": "715",
            "yExact": "732227073069352621367/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 715,
            "x": "716",
            "y": "0.78202497228746581",
            "defined": true,
            "xExact": "716",
            "yExact": "369364890623958119963/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 716,
            "x": "717",
            "y": "0.78317128302031669",
            "defined": true,
            "xExact": "717",
            "yExact": "739812628863950917519/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 717,
            "x": "718",
            "y": "0.78830429938510305",
            "defined": true,
            "xExact": "718",
            "yExact": "29786458656846283767/37785482941144000000"
          },
          {
            "series": "all calibration scores",
            "index": 718,
            "x": "719",
            "y": "0.78830429938510305",
            "defined": true,
            "xExact": "719",
            "yExact": "29786458656846283767/37785482941144000000"
          },
          {
            "series": "all calibration scores",
            "index": 719,
            "x": "720",
            "y": "0.78989551066393537",
            "defined": true,
            "xExact": "720",
            "yExact": "746164583586958914357/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 720,
            "x": "721",
            "y": "0.79695372771253414",
            "defined": true,
            "xExact": "721",
            "yExact": "376416018542038500447/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 721,
            "x": "722",
            "y": "0.79940339023099205",
            "defined": true,
            "xExact": "722",
            "yExact": "94393259889580715273/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 722,
            "x": "723",
            "y": "0.80099215139678615",
            "defined": true,
            "xExact": "723",
            "yExact": "189161720453709356597/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 723,
            "x": "724",
            "y": "0.80959206933606465",
            "defined": true,
            "xExact": "724",
            "yExact": "764770683129583560431/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 724,
            "x": "725",
            "y": "0.81696560884928759",
            "defined": true,
            "xExact": "725",
            "yExact": "771736001916901983411/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 725,
            "x": "726",
            "y": "0.818027052862488",
            "defined": true,
            "xExact": "726",
            "yExact": "386369340641622995391/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 726,
            "x": "727",
            "y": "0.82946658705351473",
            "defined": true,
            "xExact": "727",
            "yExact": "783544889383987839333/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 727,
            "x": "728",
            "y": "0.84592945755045768",
            "defined": true,
            "xExact": "728",
            "yExact": "399548163596050215949/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 728,
            "x": "729",
            "y": "0.85500501944910279",
            "defined": true,
            "xExact": "729",
            "yExact": "807669439424664166709/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 729,
            "x": "730",
            "y": "0.86367123418611091",
            "defined": true,
            "xExact": "730",
            "yExact": "815855867152401946757/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 730,
            "x": "731",
            "y": "0.86398513093480211",
            "defined": true,
            "xExact": "731",
            "yExact": "204038096414618953789/236159268382150000000"
          },
          {
            "series": "all calibration scores",
            "index": 731,
            "x": "732",
            "y": "0.87656902020195127",
            "defined": true,
            "xExact": "732",
            "yExact": "828039593989403521283/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 732,
            "x": "733",
            "y": "0.88700638588772052",
            "defined": true,
            "xExact": "733",
            "yExact": "167579823313231274389/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 733,
            "x": "734",
            "y": "0.89022982503199988",
            "defined": true,
            "xExact": "734",
            "yExact": "420472048343052983233/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 734,
            "x": "735",
            "y": "0.89543713324639285",
            "defined": true,
            "xExact": "735",
            "yExact": "169172622615742327529/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 735,
            "x": "736",
            "y": "0.9104992223165066",
            "defined": true,
            "xExact": "736",
            "yExact": "172018264163826184279/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 736,
            "x": "737",
            "y": "0.92750943755045767",
            "defined": true,
            "xExact": "737",
            "yExact": "438079900378911074663/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 737,
            "x": "738",
            "y": "0.93259949558781297",
            "defined": true,
            "xExact": "738",
            "yExact": "176193611657264021861/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 738,
            "x": "739",
            "y": "0.9344347421005964",
            "defined": true,
            "xExact": "739",
            "yExact": "88270170018135941467/94463707352860000000"
          },
          {
            "series": "all calibration scores",
            "index": 739,
            "x": "740",
            "y": "0.94427321535190512",
            "defined": true,
            "xExact": "740",
            "yExact": "891995486761465099053/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 740,
            "x": "741",
            "y": "0.94808993294648536",
            "defined": true,
            "xExact": "741",
            "yExact": "895600899700494497139/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 741,
            "x": "742",
            "y": "0.96247093139678619",
            "defined": true,
            "xExact": "742",
            "yExact": "113648215498875756187/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 742,
            "x": "743",
            "y": "0.96502686459905651",
            "defined": true,
            "xExact": "743",
            "yExact": "911600153251333304269/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 743,
            "x": "744",
            "y": "0.96602856697968331",
            "defined": true,
            "xExact": "744",
            "yExact": "912546398456715173191/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 744,
            "x": "745",
            "y": "1.0176453814706177",
            "defined": true,
            "xExact": "745",
            "yExact": "120163194380287497817/118079634191075000000"
          },
          {
            "series": "all calibration scores",
            "index": 745,
            "x": "746",
            "y": "1.0762984757648508",
            "defined": true,
            "xExact": "746",
            "yExact": "1016711442389801412983/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 746,
            "x": "747",
            "y": "1.0913371555878129",
            "defined": true,
            "xExact": "747",
            "yExact": "1030917536887498016381/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 747,
            "x": "748",
            "y": "1.1085131441861109",
            "defined": true,
            "xExact": "748",
            "yExact": "1047142612491954810383/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 748,
            "x": "749",
            "y": "1.1275140613967862",
            "defined": true,
            "xExact": "749",
            "yExact": "532545791660103169007/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 749,
            "x": "750",
            "y": "1.1688337630203167",
            "defined": true,
            "xExact": "750",
            "yExact": "1104123705340933144447/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 750,
            "x": "751",
            "y": "1.1900205182833086",
            "defined": true,
            "xExact": "751",
            "yExact": "1124137499830132454341/944637073528600000000"
          },
          {
            "series": "all calibration scores",
            "index": 751,
            "x": "752",
            "y": "1.250951866930645",
            "defined": true,
            "xExact": "752",
            "yExact": "236339102140500614121/188927414705720000000"
          },
          {
            "series": "all calibration scores",
            "index": 752,
            "x": "753",
            "y": "1.40242991965597",
            "defined": true,
            "xExact": "753",
            "yExact": "662393647566382512287/472318536764300000000"
          },
          {
            "series": "all calibration scores",
            "index": 753,
            "x": "754",
            "y": "1.9013087514807836",
            "defined": true,
            "xExact": "754",
            "yExact": "1796046734873123609137/944637073528600000000"
          }
        ],
        "plotFile": "ml20-code/python-realdata-person-result/plot.svg",
        "fullResultFile": "ml20-code/python-realdata-person-result/full.json",
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      },
      "company": {
        "api": "realdata",
        "variant": "company",
        "language": "python",
        "title": "Actual churn: calibration and prediction sets",
        "input": {
          "kind": "company"
        },
        "expectedFailure": false,
        "codeFile": "ml20-code/realdata-company.py",
        "codeSHA256": "546f37d7f770ff64b04ddd2fd009ff7bf3021f291090b81dc4b04b600a12c3f3",
        "code": "\"\"\"ML20 standalone fixed example, not an arbitrary-input validator.\nFinite Python Fraction algebra; natural logs use Decimal1800 approximation\nthen a final binary64 display projection. Realdata reads4factual CSVs only,\nreusing the frozen public reader/fit implementation by value; all other inputs\nare complete fixed literals. No engine/model/computed/checker imported.\nRun: python this-file.py NEW-OUTPUT\n\"\"\"\nfrom pathlib import Path\nimport csv,json,hashlib,sys,math,html\nif hasattr(sys,'set_int_max_str_digits'):sys.set_int_max_str_digits(100000)\n\"\"\"Owned standalone exact finite optimization primitives for ML19 public programs.\nThis is an author implementation, never an independent numerical oracle.\n\"\"\"\nfrom fractions import Fraction as Q\ndef number(v):return v if isinstance(v,Q)else Q(str(v))\ndef dot(a,b):return sum((x*y for x,y in zip(a,b)),Q(0))\ndef frame(rows,p=2,scale='range'):\n rr=[]\n for i,r in enumerate(rows):\n  x=[None if v is None else number(v)for v in r['x']];y=None if r['y']is None else number(r['y']);w=number(r.get('weight',1));role=r.get('role','train');rr.append(dict(id=r.get('id','row:'+str(i+1)),index=i,x=x,y=y,w=w,role=role,eligible=y is not None and all(v is not None for v in x)and w>0))\n train=[r for r in rr if r['role']=='train'and r['eligible']];W=sum((r['w']for r in train),Q(0))\n if not W:return dict(defined=False,p=p,rows=rr,train=[],W=W)\n mean=[sum(r['w']*r['x'][j]for r in train)/W for j in range(p)];ranges=[max(r['x'][j]for r in train)-min(r['x'][j]for r in train)or Q(1)for j in range(p)];scales=ranges if scale=='range'else[Q(1)]*p\n for r in rr:r['z']=None if None in r['x']else[Q(1)]+[(r['x'][j]-mean[j])/scales[j]for j in range(p)]\n return dict(defined=True,p=p,rows=rr,train=train,W=W,mean=mean,ranges=ranges,scales=scales,meanY=sum(r['w']*r['y']for r in train)/W)\ndef quadratic(f,lam=Q(0),role='train'):\n rr=[r for r in f['rows']if r['role']==role and r['eligible']];W=sum((r['w']for r in rr),Q(0));n=f['p']+1\n if not W:return None\n H=[[sum(r['w']*r['z'][j]*r['z'][k]for r in rr)/W+(lam if j==k and j else 0)for k in range(n)]for j in range(n)];b=[sum(r['w']*r['y']*r['z'][j]for r in rr)/W for j in range(n)];d=sum(r['w']*r['y']**2 for r in rr)/(2*W);return H,b,d\ndef state(q,theta):\n H,b,d=q;gradient=[dot(row,theta)-bb for row,bb in zip(H,b)];return dict(theta=theta,objective=dot(theta,[dot(row,theta)for row in H])/2-dot(theta,b)+d,gradient=gradient,gradientNormSquared=dot(gradient,gradient))\ndef solve(H,b):\n n=len(b);A=[row[:]+[bb]for row,bb in zip(H,b)];piv=[];row=0\n for j in range(n):\n  k=next((i for i in range(row,n)if A[i][j]),None)\n  if k is None:continue\n  A[row],A[k]=A[k],A[row];z=A[row][j];A[row]=[v/z for v in A[row]]\n  for i in range(n):\n   if i!=row:\n    z=A[i][j];A[i]=[v-z*u for v,u in zip(A[i],A[row])]\n  piv.append(j);row+=1\n  if row==n:break\n assert not any(not any(r[:n])and r[n]for r in A)\n beta=[Q(0)]*n\n for i,j in enumerate(piv):beta[j]=A[i][n]\n nullspace=[]\n for j in range(n):\n  if j not in piv:\n   v=[Q(0)]*n;v[j]=Q(1)\n   for i,k in enumerate(piv):v[k]=-A[i][j]\n   nullspace.append(v)\n return dict(rank=len(piv),particular=beta,nullspace=nullspace,unique=len(piv)==n)\n\n\ndef fixed_source(kind):\n selectedKind=kind\n SRC=Path(__file__).resolve().parent/\"data\"\n read=lambda n:list(csv.DictReader((SRC/n).open(encoding='utf8',newline='')))\n def native(v):return None if v in['','.']else v\n\n models={};original=read('actual48-country-revised-original-2023-2024.csv');lookup={(r['countryISO3'],r['indicatorID'],r['date']):r for r in original};rows=[]\n for iso in sorted({r['countryISO3']for r in original}):\n  g=lookup[iso,'NY.GDP.PCAP.KD','2023'];p=lookup[iso,'FP.CPI.TOTL.ZG','2023'];y=lookup[iso,'NY.GDP.MKTP.KD.ZG','2024'];rows.append(dict(id=iso+':2024',x=[None if not g['originalValueToken']else str(number(g['originalValueToken'])/10000),None if not p['originalValueToken']else str(number(p['originalValueToken'])/10)],y=native(y['originalValueToken']),sourceRow=iso))\n models['country']=dict(rows=rows,names=['g','pi'],unit='annual GDP growth percentage points')\n for kind,file,keys,ykey,ID in [('person','actual3613-NLS-original52-fields-and-conformal-frame.csv',['ed76','age76'],'lwage76','person-row:'),('company','actual3150-churn-original14-fields-and-conformal-frame.csv',['Call  Failure','Seconds of Use'],'Churn','customer-row:')]:\n  source=read(file);models[kind]=dict(rows=[dict(id=ID+r['sourceRow'],sourceRow=r['sourceRow'],x=[native(r[k])for k in keys],y=native(r[ykey]))for r in source],names=['ed76','age76']if kind=='person'else['CallFailure','SecondsUse'],unit='native trimmed1976log hourly wage'if kind=='person'else'native Churn0/1')\n for kind,m in models.items():\n  for rank,r in enumerate(sorted(m['rows'],key=lambda r:(hashlib.sha256(('ML20|'+kind+'|'+r['id']).encode()).digest(),r['id']))):r.update(splitRank=rank,plannedRole=['test','calibration','train','train'][rank%4]);r['role']=r['plannedRole']if r['y']is not None and None not in r['x']else'excluded';r['weight']='1'\n  m['trainingIDs']=[r['id']for r in sorted(m['rows'],key=lambda r:r['splitRank'])if r['role']=='train']\n\n models={selectedKind:models[selectedKind]}\n # New public actual-source study; exact finite Fraction fit/rank/membership.\n # Default single declared model, not a hyperparameter Cartesian dump.\n from decimal import Decimal,localcontext\n from collections import Counter\n outputs={k:[]for k in['study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins']}\n alpha=number('1/5');lam=number('1/100')\n if not 0<alpha<1 or lam<0:raise ValueError('Require0<alpha<1 and nonnegative ridge')\n def metric(kind,name,value,unit,arithmetic='exact rational'):\n  outputs['study-metrics'].append(dict(kind=kind,metric=name,value=''if value is None else value,unit=unit,defined=int(value is not None),arithmetic=arithmetic))\n def bins(rr,B=5):\n  groups=[[]for _ in range(B)]\n  for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n  n=len(rr);yb=sum((r['y']for r in rr),Q(0))/n if n else None;ece=rel=res=var=cov=Q(0);result=[]\n  for j,gg in enumerate(groups):\n   nn=len(gg);pm=sum((r['p']for r in gg),Q(0))/nn if nn else None;ym=sum((r['y']for r in gg),Q(0))/nn if nn else None;v=sum(((r['p']-pm)**2 for r in gg),Q(0))/nn if nn else None;co=sum(((r['p']-pm)*(r['y']-ym)for r in gg),Q(0))/nn if nn else None\n   result.append(dict(bin=j,lower=Q(j,B),upper=Q(j+1,B),rightClosed=int(j==B-1),rows=nn,meanP=pm,frequencyY1=ym,gap=None if not nn else pm-ym,withinVarianceP=v,withinCovariancePY=co))\n   if nn:weight=Q(nn,n);ece+=weight*abs(pm-ym);rel+=weight*(pm-ym)**2;res+=weight*(ym-yb)**2;var+=weight*v;cov+=weight*co\n  return result,dict(ECE=ece if n else None,Brier=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/n if n else None,uncertainty=yb*(1-yb)if n else None,resolution=res if n else None,reliability=rel if n else None,withinVarianceP=var if n else None,withinCovariancePY=cov if n else None)\n def meanlog(rr):\n  if not rr:return None\n  pp=[r['p']if r['y']else 1-r['p']for r in rr]\n  if any(not p for p in pp):return'+infinity'\n  with localcontext()as ctx:\n   ctx.prec=60;return str(-sum(((Decimal(p.numerator)/Decimal(p.denominator)).ln()for p in pp),Decimal(0))/len(pp))\n for kind,m in models.items():\n  f=frame(m['rows']);n=len(f['train']);assert n>0;H,b,d=quadratic(f,lam);fit=solve(H,b);theta=fit['particular'];minimum=state((H,b,d),theta)['objective'];beta=[theta[j+1]/f['scales'][j]for j in range(2)];intercept=theta[0]-dot(beta,f['mean']);rr=[]\n  for r in f['rows']:\n   native=m['rows'][r['index']];raw=None if r['z']is None else dot(r['z'],theta);pred=None if raw is None else max(Q(0),min(Q(1),raw))if kind=='company'else raw;group='missing-X'if r['z']is None else('schooling-at-most12'if r['x'][0]<=12 else'schooling-over12')if kind=='person'else('zero-call-failures'if r['x'][0]==0 else'positive-call-failures')if kind=='company'else('GDPpc-at-most-training-mean'if r['x'][0]<=f['mean'][0]else'GDPpc-above-training-mean');rr.append(dict(id=r['id'],sourceRow=native['sourceRow'],sourceIndex0=r['index'],plannedRole=native['plannedRole'],role=r['role'],group=group,y=r['y'],raw=raw,prediction=pred,eligible=r['eligible']))\n  cal=[r for r in rr if r['role']=='calibration'and r['prediction']is not None and r['y']is not None]\n  for i,r in enumerate(cal):r['calibrationIndex0']=i;r['score']=(1-r['prediction']if r['y']else r['prediction'])if kind=='company'else abs(r['y']-r['prediction'])\n  ordered=sorted(cal,key=lambda r:(r['score'],r['calibrationIndex0']));rankQ=(len(cal)+1)*(1-alpha);k=(rankQ.numerator+rankQ.denominator-1)//rankQ.denominator;threshold=ordered[k-1]['score']if k<=len(cal)else None;unbounded=threshold is None\n  for j,r in enumerate(ordered,1):outputs['calibration-scores'].append(dict(kind=kind,rank=j,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],calibrationIndex0=r['calibrationIndex0'],score=r['score'],threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded)))\n  for j,name in enumerate(m['names']):outputs['training-coefficients'].append(dict(kind=kind,feature=name,mean=f['mean'][j],scale=f['scales'][j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[0],nativeIntercept=intercept,rank=fit['rank'],unique=int(fit['unique']),lambdaValue=lam,minimumObjective=minimum))\n  for name,value,unit in[('sourceRows',len(rr),'rows'),('trainingRows',n,'rows'),('calibrationScores',len(cal),'unit-count scores'),('testLabeledRows',sum(r['role']=='test'and r['y']is not None for r in rr),'rows'),('excludedRows',sum(r['role']=='excluded'for r in rr),'rows'),('alpha',alpha,'probability'),('ridge',lam,'transformed slope penalty'),('quantileRank',k,'one-based rank'),('threshold','+infinity'if unbounded else threshold,'dimensionless score'if kind=='company'else m['unit']),('minimumObjective',minimum,'('+m['unit']+') squared')]:metric(kind,name,value,unit,'mathematical infinity'if value=='+infinity'else'exact rational')\n  for r in rr:\n   defined=r['prediction']is not None;labeled=defined and r['y']is not None\n   if not defined:lo=hi=width=size=None;labels='';covered=None\n   elif kind=='company':\n    labelsList=[j for j,s in enumerate([r['prediction'],1-r['prediction']])if unbounded or s<=threshold];labels='|'.join(map(str,labelsList));size=len(labelsList);lo=hi=width=None;covered=int(int(r['y'])in labelsList)if labeled else None\n   else:lo='-infinity'if unbounded else r['prediction']-threshold;hi='+infinity'if unbounded else r['prediction']+threshold;width='+infinity'if unbounded else 2*threshold;labels='';size=None;covered=int(unbounded or abs(r['y']-r['prediction'])<=threshold)if labeled else None\n   r.update(defined=defined,labeled=labeled,lower=lo,upper=hi,width=width,labels=labels,size=size,covered=covered)\n   outputs['row-predictions'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],sourceIndex0=r['sourceIndex0'],plannedRole=r['plannedRole'],role=r['role'],group=r['group'],actualY=r['y'],rawLinear=r['raw'],prediction=r['prediction'],predictionDefined=int(defined),threshold='+infinity'if unbounded else threshold,thresholdInfinite=int(unbounded),lower=lo,upper=hi,width=width,setLabels=labels,setSize=size,covered=covered,labeledPrediction=int(labeled)))\n   outputs['eligibility'].append(dict(kind=kind,id=r['id'],sourceRow=r['sourceRow'],plannedRole=r['plannedRole'],role=r['role'],requiredComplete=int(r['eligible']),trainingUsed=int(r['role']=='train'and r['eligible']),reason='missing-required-field'if not r['eligible']else''))\n  roles=list(dict.fromkeys(r['role']for r in rr));groups=list(dict.fromkeys(r['group']for r in rr))\n  for role in roles:\n   for group in['all']+groups:\n    use=[r for r in rr if r['role']==role and(group=='all'or r['group']==group)];defined=[r for r in use if r['defined']];scored=[r for r in use if r['labeled']and role not in['excluded','unused']];covered=sum(r['covered']for r in scored);nn=len(defined);nscore=len(scored);unboundedCount=sum(r['width']=='+infinity'for r in defined);size=Q(sum(r['size']for r in defined),nn)if kind=='company'and nn else None;width=('+infinity'if unboundedCount else sum(r['width']for r in defined)/nn)if kind!='company'and nn else None\n    outputs['role-group-coverage'].append(dict(kind=kind,role=role,group=group,originalRows=len(use),definedPredictions=nn,scoredLabels=nscore,coveredRows=covered,coverage=Q(covered,nscore)if nscore else None,meanSetSize=size,meanIntervalWidth=width,unboundedIntervals=unboundedCount))\n  if kind=='company':\n   for role in['train','calibration','test']:\n    use=[dict(p=r['prediction'],y=r['y'])for r in rr if r['role']==role and r['labeled']];bb,mm=bins(use)\n    for row in bb:outputs['reliability-bins'].append(dict(kind=kind,role=role,**row))\n    for name,value in mm.items():metric(kind,role+':'+name,value,'dimensionless'if name=='ECE'else'squared probability')\n    metric(kind,role+':meanLogLoss',meanlog(use),'nats','Decimal60 approximation or genuine infinity')\n return outputs\n\n# Owned ML20 fixed-example adapters. Finite rational calculations; logs approximate.\nfrom fractions import Fraction as Q\nfrom decimal import Decimal,localcontext\nimport math\ndef num(v):return v if isinstance(v,Q)else Q(str(v))\ndef ceilq(q):return-((-q.numerator)//q.denominator)\ndef fixed_quantile(scores,alpha):\n a=num(alpha)\n if not 0<a<1:raise ValueError('alpha-must-be-strictly-between-zero-and-one')\n ordered=sorted([(num(v),i)for i,v in enumerate(scores)if v is not None]);n=len(ordered);k=ceilq((n+1)*(1-a));q=None if k>n else ordered[k-1][0]\n return dict(n=n,k=k,threshold=q,infinite=q is None,ordered=ordered)\ndef fixed_score(rows):\n rr=[dict(p=num(r['p']),y=num(r['y']),w=num(r.get('weight',1)))for r in rows];rr=[r for r in rr if r['w']>0];mass=sum((r['w']for r in rr),Q(0));brier=sum((r['w']*(r['p']-r['y'])**2 for r in rr),Q(0))/mass if mass else None;logs=[];genuine=False\n with localcontext()as ctx:\n  ctx.prec=1800\n  total=Decimal(0)\n  for r in rr:\n   p=r['p']if r['y']else 1-r['p']\n   if not p:genuine=True;logs.append('+infinity');continue\n   loss=-(Decimal(p.numerator)/Decimal(p.denominator)).ln();logs.append(str(loss));w=r['w']/mass;total+=Decimal(w.numerator)/Decimal(w.denominator)*loss\n  display='+infinity'if genuine else None if not mass else repr(float(total));raw='+infinity'if genuine else None if not mass else str(total)\n return dict(rows=rr,mass=mass,Brier=brier,meanLogLoss=display,naturalLogApprox1800=raw,individualLogLoss=logs,genuineInfinite=genuine,BrierPositive=brier is not None and brier>0)\ndef fixed_calibration(rows,B):\n rr=[dict(p=num(r['p']),y=num(r['y']))for r in rows];N=len(rr);yb=sum((r['y']for r in rr),Q(0))/N;groups=[[]for _ in range(B)]\n for r in rr:groups[min(B-1,int(r['p']*B))].append(r)\n result=[];ece=rel=res=vp=cp=Q(0)\n for j,g in enumerate(groups):\n  n=len(g);pm=sum((r['p']for r in g),Q(0))/n if n else None;ym=sum((r['y']for r in g),Q(0))/n if n else None;v=sum(((r['p']-pm)**2 for r in g),Q(0))/n if n else None;c=sum(((r['p']-pm)*(r['y']-ym)for r in g),Q(0))/n if n else None;result.append(dict(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c))\n  if n:z=Q(n,N);ece+=z*abs(pm-ym);rel+=z*(pm-ym)**2;res+=z*(ym-yb)**2;vp+=z*v;cp+=z*c\n bs=sum(((r['p']-r['y'])**2 for r in rr),Q(0))/N;u=yb*(1-yb)\n return dict(rows=N,bins=result,Brier=bs,ECE=ece,uncertainty=u,resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=u-res+rel+vp-2*cp)\ndef fixed_predict(a):\n q=fixed_quantile(a['scores'],a['alpha']);out=[];classification=a['mode']=='classification'\n for i,row in enumerate(a['queries']):\n  p=num(row['p']if classification else row['center']);y=None if row.get('y')is None else num(row['y']);threshold=q['threshold'];unbounded=q['infinite']\n  if classification:labels=[v for v,s in[(0,p),(1,1-p)]if unbounded or s<=threshold];lo=hi=width=None;size=len(labels);covered=None if y is None else int(int(y)in labels)\n  else:labels=None;size=None;lo='-infinity'if unbounded else p-threshold;hi='+infinity'if unbounded else p+threshold;width='+infinity'if unbounded else 2*threshold;covered=None if y is None else int(unbounded or abs(y-p)<=threshold)\n  out.append(dict(id=row.get('id',str(i)),prediction=p,actualY=y,labels=labels,size=size,lower=lo,upper=hi,width=width,covered=covered))\n scored=[r for r in out if r['covered']is not None];coverage=Q(sum(r['covered']for r in scored),len(scored))if scored else None;meanSize=Q(sum(r['size']for r in out),len(out))if classification and out else None;meanWidth=('+infinity'if q['infinite']else 2*q['threshold'])if not classification and out else None\n return dict(quantile=q,rows=out,scoredLabels=len(scored),coverage=coverage,meanSetSize=meanSize,meanWidth=meanWidth)\ndef fixed_ranklaw(a):\n scores=list(map(num,a['scores']));trials=[]\n for i,y in enumerate(scores):q=fixed_quantile(scores[:i]+scores[i+1:],a['alpha']);trials.append(dict(heldout=i,score=y,k=q['k'],threshold=q['threshold'],infinite=q['infinite'],covered=int(q['infinite']or y<=q['threshold'])))\n return dict(N=len(scores),distinct=len(set(scores))==len(scores),trials=trials,coverage=Q(sum(t['covered']for t in trials),len(trials)))\ndef fixed_operation(api,a):\n return fixed_score(a['rows'])if api=='score'else fixed_calibration(a['rows'],a['bins'])if api=='calibration'else fixed_quantile(a['scores'],a['alpha'])if api=='quantile'else fixed_predict(a)if api=='predict'else fixed_ranklaw(a)if api=='ranklaw'else fixed_source(a['kind'])\ndef report_values(api,z):\n summary=[];series=[]\n def add(k,v,u):summary.append((k,v,u))\n if api=='score':\n  for k,u in[('mass','analysis weight'),('Brier','squared probability'),('meanLogLoss','nats; numerical logarithm'),('genuineInfinite','indicator'),('BrierPositive','mathematical indicator')]:add(k,z[k],u)\n  series=[('squared error',[(i,(r['p']-r['y'])**2)for i,r in enumerate(z['rows'])])]\n elif api=='calibration':\n  for k in['Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity']:add(k,z[k],'probability'if k=='ECE'else'squared probability')\n  series=[('bin probability',[(r['bin'],r['meanP'])for r in z['bins']]),('bin outcome frequency',[(r['bin'],r['frequency'])for r in z['bins']])]\n elif api=='quantile':\n  for k,u in[('n','scores'),('k','one-based rank'),('infinite','mathematical indicator')]:add(k,z[k],u)\n  add('threshold','+infinity'if z['infinite']else z['threshold'],'score units');series=[('sorted score',[(i+1,v)for i,(v,index)in enumerate(z['ordered'])])]\n elif api=='predict':\n  for k,u in[('scoredLabels','labels'),('coverage','fraction'),('meanSetSize','classes'),('meanWidth','outcome units')]:add(k,z[k],u)\n  add('thresholdInfinite',z['quantile']['infinite'],'mathematical indicator');series=[('predicted center or probability',[(i,r['prediction'])for i,r in enumerate(z['rows'])]),('observed label or outcome',[(i,r['actualY'])for i,r in enumerate(z['rows'])])]\n elif api=='ranklaw':\n  for k,u in[('N','scores'),('distinct','indicator'),('coverage','fraction')]:add(k,z[k],u)\n  series=[('held-out coverage',[(r['heldout'],r['covered'])for r in z['trials']])]\n else:\n  mt={r['metric']:r for r in z['study-metrics']};cv=next(r for r in z['role-group-coverage']if r['role']=='test'and r['group']=='all')\n  for k in['sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold']:add(k,mt[k]['value'],mt[k]['unit'])\n  for k,u in[('coverage','fraction'),('meanSetSize','classes'),('meanIntervalWidth','outcome units')]:add(k,cv[k],u)\n  series=[('all calibration scores',[(r['rank'],r['score'])for r in z['calibration-scores']])]\n return summary,series\n\nnumber=num\n\nFIXED={'api': 'realdata', 'variant': 'company', 'title': 'Actual churn: calibration and prediction sets', 'input': {'kind': 'company'}, 'expectedFailure': False}\n\ndef fixed_svg(points,title):\n good=[p for p in points if p['y'] is not None];xx=[float(p['x'])for p in good];yy=[float(p['y'])for p in good];xmin=min(xx)if xx else 0;xmax=max(xx)if xx else 1;ymin=min([0]+yy);ymax=max([0]+yy)\n if xmin==xmax:xmin-=.5;xmax+=.5\n if ymin==ymax:ymin-=.5;ymax+=.5\n pad=(ymax-ymin)*.08;ymin-=pad;ymax+=pad;X=lambda x:82+(float(x)-xmin)/(xmax-xmin)*608;Y=lambda y:354-(float(y)-ymin)/(ymax-ymin)*290;e=html.escape\n out=['<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"'+e(title)+'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">'+e(title)+'</text>']\n for j in range(5):\n  y=ymin+(ymax-ymin)*j/4;x=xmin+(xmax-xmin)*j/4;out.append('<line x1=\"82\" y1=\"'+str(Y(y))+'\" x2=\"690\" y2=\"'+str(Y(y))+'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"'+str(Y(y)+4)+'\" text-anchor=\"end\">'+format(y,'.3g')+'</text><text x=\"'+str(X(x))+'\" y=\"380\" text-anchor=\"middle\">'+format(x,'.3g')+'</text>')\n series=list(dict.fromkeys(p['series']for p in good))\n for j,s in enumerate(series):\n  pp=[p for p in good if p['series']==s];color=['#0f766e','#c76622','#4f46e5','#b23857'][j%4];out.append('<polyline fill=\"none\" stroke=\"'+color+'\" stroke-width=\"1.5\" points=\"'+' '.join(format(X(p['x']),'.6f')+','+format(Y(p['y']),'.6f')for p in pp)+'\"/>')\n  for p in pp:out.append('<circle cx=\"'+format(X(p['x']),'.6f')+'\" cy=\"'+format(Y(p['y']),'.6f')+'\" r=\"2.6\" fill=\"'+color+'\"><title>'+e(s+': '+str(p['y']))+'</title></circle>')\n  out.append('<text x=\"'+str(82+(j%2)*310)+'\" y=\"'+str(432+(j//2)*23)+'\" fill=\"'+color+'\">'+e(s)+'</text>')\n out.append('<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>');return''.join(out)\n\nOUT=Path(sys.argv[1]);OUT.mkdir(parents=True,exist_ok=False)\nresult=fixed_operation(FIXED['api'],FIXED['input']);summary,series=report_values(FIXED['api'],result)\ndef encode(v):\n if isinstance(v,Q):return str(v)\n if isinstance(v,dict):return{k:encode(x)for k,x in v.items()}\n if isinstance(v,(list,tuple)):return[encode(x)for x in v]\n return v\n(OUT/'full.json').write_text(json.dumps(dict(arithmetic='Exact finite Fraction algebra except approximate natural logs; declared fixed examples, no exchangeability certification',result=encode(result)),ensure_ascii=False,indent=2)+'\\n',encoding='utf8')\nsummaryRows=[dict(metric=m,value=''if v is None else str(int(v))if isinstance(v,bool)else str(v),unit=u,defined=int(v is not None))for m,v,u in summary]\npoints=[dict(series=name,index=i,x=str(x),y=''if y is None else str(y),defined=int(y is not None))for name,pp in series for i,(x,y)in enumerate(pp)]\nfor name,rows in [('summary',summaryRows),('plot-points',points)]:\n with(OUT/(name+'.csv')).open('w',encoding='utf8',newline='')as f:writer=csv.DictWriter(f,fieldnames=list(rows[0]));writer.writeheader();writer.writerows(rows)\n(OUT/'plot.svg').write_text(fixed_svg([dict(p,x=number(p['x']),y=None if not p['defined']else number(p['y']))for p in points],FIXED['title']),encoding='utf8');print(FIXED['api']+'/'+FIXED['variant'])\n",
        "returnCode": 0,
        "stdout": "realdata/company\r\n",
        "stderr": "",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/python-realdata-company-result",
        "kind": "company",
        "inputFiles": [
          {
            "file": "ml20-code/data/actual48-country-revised-original-2023-2024.csv",
            "sha256": "bd444c284344c21f8b980885aea1b76af20754bb31e31d9d9e111ecd44c1454e"
          },
          {
            "file": "ml20-code/data/derived16-country-features-and-roles.csv",
            "sha256": "e3a4a00edafdd14b873c163a9a045d75e7314ed6416048507bb2aa58fdb4f62a"
          },
          {
            "file": "ml20-code/data/actual3613-NLS-original52-fields-and-conformal-frame.csv",
            "sha256": "27290a3ca7b659af0e2a96d52149c30d42274a8119444d3c843e71f92eb9d7c2"
          },
          {
            "file": "ml20-code/data/actual3150-churn-original14-fields-and-conformal-frame.csv",
            "sha256": "4389b8e17f2829529b5200e3b1d5e27d4a4ec101947a2beb46e91bbe7efdbe34"
          }
        ],
        "files": [
          {
            "file": "ml20-code/python-realdata-company-result/full.json",
            "sha256": "133518679b96b4cd3394f24a89ee4cad75b19028d419df15c4a7cce053b3659f",
            "bytes": 3345881
          },
          {
            "file": "ml20-code/python-realdata-company-result/plot-points.csv",
            "sha256": "a86d7b2d0568bfef860e38b67a453366d958354407434bb620fd85e3747f6a26",
            "bytes": 56085
          },
          {
            "file": "ml20-code/python-realdata-company-result/plot.svg",
            "sha256": "48e1848be6b81857b06baac21c26f8268389cac27f9628ca41d82906685d6054",
            "bytes": 134891
          },
          {
            "file": "ml20-code/python-realdata-company-result/summary.csv",
            "sha256": "fd83303212bfec3a665810684221fc0316bf034fdd26ece989a9f8fd6a7f15a2",
            "bytes": 376
          },
          {
            "file": "ml20-code/python-realdata-company-result/stdout.txt",
            "sha256": "75c0d85d04b7f730fc7a47fc9a6e40905a176de58ade8415a4a3ef252434c4a1",
            "bytes": 18
          },
          {
            "file": "ml20-code/python-realdata-company-result/stderr.txt",
            "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
            "bytes": 0
          }
        ],
        "summaryRows": [
          {
            "metric": "sourceRows",
            "value": "3150",
            "unit": "rows",
            "defined": "true",
            "exactFraction": "3150",
            "rawValue": "3150",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "trainingRows",
            "value": "1574",
            "unit": "rows",
            "defined": "true",
            "exactFraction": "1574",
            "rawValue": "1574",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "calibrationScores",
            "value": "788",
            "unit": "unit-count scores",
            "defined": "true",
            "exactFraction": "788",
            "rawValue": "788",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "testLabeledRows",
            "value": "788",
            "unit": "rows",
            "defined": "true",
            "exactFraction": "788",
            "rawValue": "788",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "excludedRows",
            "value": "0",
            "unit": "rows",
            "defined": "true",
            "exactFraction": "0",
            "rawValue": "0",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "quantileRank",
            "value": "632",
            "unit": "one-based rank",
            "defined": "true",
            "exactFraction": "632",
            "rawValue": "632",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "threshold",
            "value": "0.241054369",
            "unit": "dimensionless score",
            "defined": "true",
            "exactFraction": "6546331827239041581/27157076022604960714",
            "rawValue": "6546331827239041581/27157076022604960714",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "coverage",
            "value": "0.774111675",
            "unit": "fraction",
            "defined": "true",
            "exactFraction": "305/394",
            "rawValue": "305/394",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "meanSetSize",
            "value": "0.897208122",
            "unit": "classes",
            "defined": "true",
            "exactFraction": "707/788",
            "rawValue": "707/788",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          },
          {
            "metric": "meanIntervalWidth",
            "value": "undefined",
            "unit": "outcome units",
            "defined": "false",
            "exactFraction": "",
            "rawValue": "",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "Exact finite Fraction"
          }
        ],
        "plotRows": [
          {
            "series": "all calibration scores",
            "index": 0,
            "x": "1",
            "y": "0",
            "defined": true,
            "xExact": "1",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 1,
            "x": "2",
            "y": "0",
            "defined": true,
            "xExact": "2",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 2,
            "x": "3",
            "y": "0",
            "defined": true,
            "xExact": "3",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 3,
            "x": "4",
            "y": "0",
            "defined": true,
            "xExact": "4",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 4,
            "x": "5",
            "y": "0",
            "defined": true,
            "xExact": "5",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 5,
            "x": "6",
            "y": "0",
            "defined": true,
            "xExact": "6",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 6,
            "x": "7",
            "y": "0",
            "defined": true,
            "xExact": "7",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 7,
            "x": "8",
            "y": "0",
            "defined": true,
            "xExact": "8",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 8,
            "x": "9",
            "y": "0",
            "defined": true,
            "xExact": "9",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 9,
            "x": "10",
            "y": "0",
            "defined": true,
            "xExact": "10",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 10,
            "x": "11",
            "y": "0",
            "defined": true,
            "xExact": "11",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 11,
            "x": "12",
            "y": "0",
            "defined": true,
            "xExact": "12",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 12,
            "x": "13",
            "y": "0",
            "defined": true,
            "xExact": "13",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 13,
            "x": "14",
            "y": "0",
            "defined": true,
            "xExact": "14",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 14,
            "x": "15",
            "y": "0",
            "defined": true,
            "xExact": "15",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 15,
            "x": "16",
            "y": "0",
            "defined": true,
            "xExact": "16",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 16,
            "x": "17",
            "y": "0",
            "defined": true,
            "xExact": "17",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 17,
            "x": "18",
            "y": "0",
            "defined": true,
            "xExact": "18",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 18,
            "x": "19",
            "y": "0",
            "defined": true,
            "xExact": "19",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 19,
            "x": "20",
            "y": "0",
            "defined": true,
            "xExact": "20",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 20,
            "x": "21",
            "y": "0",
            "defined": true,
            "xExact": "21",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 21,
            "x": "22",
            "y": "0",
            "defined": true,
            "xExact": "22",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 22,
            "x": "23",
            "y": "0",
            "defined": true,
            "xExact": "23",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 23,
            "x": "24",
            "y": "0",
            "defined": true,
            "xExact": "24",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 24,
            "x": "25",
            "y": "0",
            "defined": true,
            "xExact": "25",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 25,
            "x": "26",
            "y": "0",
            "defined": true,
            "xExact": "26",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 26,
            "x": "27",
            "y": "0",
            "defined": true,
            "xExact": "27",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 27,
            "x": "28",
            "y": "0",
            "defined": true,
            "xExact": "28",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 28,
            "x": "29",
            "y": "0",
            "defined": true,
            "xExact": "29",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 29,
            "x": "30",
            "y": "0",
            "defined": true,
            "xExact": "30",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 30,
            "x": "31",
            "y": "0",
            "defined": true,
            "xExact": "31",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 31,
            "x": "32",
            "y": "0",
            "defined": true,
            "xExact": "32",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 32,
            "x": "33",
            "y": "0",
            "defined": true,
            "xExact": "33",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 33,
            "x": "34",
            "y": "0",
            "defined": true,
            "xExact": "34",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 34,
            "x": "35",
            "y": "0",
            "defined": true,
            "xExact": "35",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 35,
            "x": "36",
            "y": "0",
            "defined": true,
            "xExact": "36",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 36,
            "x": "37",
            "y": "0",
            "defined": true,
            "xExact": "37",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 37,
            "x": "38",
            "y": "0",
            "defined": true,
            "xExact": "38",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 38,
            "x": "39",
            "y": "0",
            "defined": true,
            "xExact": "39",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 39,
            "x": "40",
            "y": "0",
            "defined": true,
            "xExact": "40",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 40,
            "x": "41",
            "y": "0",
            "defined": true,
            "xExact": "41",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 41,
            "x": "42",
            "y": "0",
            "defined": true,
            "xExact": "42",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 42,
            "x": "43",
            "y": "0",
            "defined": true,
            "xExact": "43",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 43,
            "x": "44",
            "y": "0",
            "defined": true,
            "xExact": "44",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 44,
            "x": "45",
            "y": "0",
            "defined": true,
            "xExact": "45",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 45,
            "x": "46",
            "y": "0",
            "defined": true,
            "xExact": "46",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 46,
            "x": "47",
            "y": "0",
            "defined": true,
            "xExact": "47",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 47,
            "x": "48",
            "y": "0",
            "defined": true,
            "xExact": "48",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 48,
            "x": "49",
            "y": "0",
            "defined": true,
            "xExact": "49",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 49,
            "x": "50",
            "y": "0",
            "defined": true,
            "xExact": "50",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 50,
            "x": "51",
            "y": "0",
            "defined": true,
            "xExact": "51",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 51,
            "x": "52",
            "y": "0",
            "defined": true,
            "xExact": "52",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 52,
            "x": "53",
            "y": "0",
            "defined": true,
            "xExact": "53",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 53,
            "x": "54",
            "y": "0",
            "defined": true,
            "xExact": "54",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 54,
            "x": "55",
            "y": "0",
            "defined": true,
            "xExact": "55",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 55,
            "x": "56",
            "y": "0",
            "defined": true,
            "xExact": "56",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 56,
            "x": "57",
            "y": "0",
            "defined": true,
            "xExact": "57",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 57,
            "x": "58",
            "y": "0",
            "defined": true,
            "xExact": "58",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 58,
            "x": "59",
            "y": "0",
            "defined": true,
            "xExact": "59",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 59,
            "x": "60",
            "y": "0",
            "defined": true,
            "xExact": "60",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 60,
            "x": "61",
            "y": "0",
            "defined": true,
            "xExact": "61",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 61,
            "x": "62",
            "y": "0",
            "defined": true,
            "xExact": "62",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 62,
            "x": "63",
            "y": "0",
            "defined": true,
            "xExact": "63",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 63,
            "x": "64",
            "y": "0",
            "defined": true,
            "xExact": "64",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 64,
            "x": "65",
            "y": "0",
            "defined": true,
            "xExact": "65",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 65,
            "x": "66",
            "y": "0",
            "defined": true,
            "xExact": "66",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 66,
            "x": "67",
            "y": "0",
            "defined": true,
            "xExact": "67",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 67,
            "x": "68",
            "y": "0",
            "defined": true,
            "xExact": "68",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 68,
            "x": "69",
            "y": "0",
            "defined": true,
            "xExact": "69",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 69,
            "x": "70",
            "y": "0",
            "defined": true,
            "xExact": "70",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 70,
            "x": "71",
            "y": "0",
            "defined": true,
            "xExact": "71",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 71,
            "x": "72",
            "y": "0",
            "defined": true,
            "xExact": "72",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 72,
            "x": "73",
            "y": "0",
            "defined": true,
            "xExact": "73",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 73,
            "x": "74",
            "y": "0",
            "defined": true,
            "xExact": "74",
            "yExact": "0"
          },
          {
            "series": "all calibration scores",
            "index": 74,
            "x": "75",
            "y": "0.0018651627567199318",
            "defined": true,
            "xExact": "75",
            "yExact": "25326183389387316/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 75,
            "x": "76",
            "y": "0.0037109916021930214",
            "defined": true,
            "xExact": "76",
            "yExact": "50389840530002236/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 76,
            "x": "77",
            "y": "0.0079352636632766486",
            "defined": true,
            "xExact": "77",
            "yExact": "107749279281509346/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 77,
            "x": "78",
            "y": "0.0084876833646997333",
            "defined": true,
            "xExact": "78",
            "yExact": "115250331195475051/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 78,
            "x": "79",
            "y": "0.015593176062605876",
            "defined": true,
            "xExact": "79",
            "yExact": "423465067766051677/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 79,
            "x": "80",
            "y": "0.016162143190765994",
            "defined": true,
            "xExact": "80",
            "yExact": "219458275659929616/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 80,
            "x": "81",
            "y": "0.019962988107777201",
            "defined": true,
            "xExact": "81",
            "yExact": "542136385681264217/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 81,
            "x": "82",
            "y": "0.021018249706410773",
            "defined": true,
            "xExact": "82",
            "yExact": "285397102569545866/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 82,
            "x": "83",
            "y": "0.02285414364824179",
            "defined": true,
            "xExact": "83",
            "yExact": "310325858243418286/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 83,
            "x": "84",
            "y": "0.028199802538908619",
            "defined": true,
            "xExact": "84",
            "yExact": "765824181371589757/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 84,
            "x": "85",
            "y": "0.028752254478330956",
            "defined": true,
            "xExact": "85",
            "yExact": "390413580344658866/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 85,
            "x": "86",
            "y": "0.029579909882900927",
            "defined": true,
            "xExact": "86",
            "yExact": "401651930715872143/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 86,
            "x": "87",
            "y": "0.030402901059505244",
            "defined": true,
            "xExact": "87",
            "yExact": "825653895380720817/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 87,
            "x": "88",
            "y": "0.031844533882480035",
            "defined": true,
            "xExact": "88",
            "yExact": "864804427550929903/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 88,
            "x": "89",
            "y": "0.03341713979593406",
            "defined": true,
            "xExact": "89",
            "yExact": "907511805896198851/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 89,
            "x": "90",
            "y": "0.035739328208238531",
            "defined": true,
            "xExact": "90",
            "yExact": "970575653147963651/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 90,
            "x": "91",
            "y": "0.037750566845083461",
            "defined": true,
            "xExact": "91",
            "yExact": "1025195013708361811/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 91,
            "x": "92",
            "y": "0.038150163115614609",
            "defined": true,
            "xExact": "92",
            "yExact": "518023440002762836/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 92,
            "x": "93",
            "y": "0.038401567945220226",
            "defined": true,
            "xExact": "93",
            "yExact": "521437150037787721/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 93,
            "x": "94",
            "y": "0.040264615141139624",
            "defined": true,
            "xExact": "94",
            "yExact": "1093469214408859511/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 94,
            "x": "95",
            "y": "0.040611949912621084",
            "defined": true,
            "xExact": "95",
            "yExact": "1102901811203275731/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 95,
            "x": "96",
            "y": "0.041690339223087403",
            "defined": true,
            "xExact": "96",
            "yExact": "1132187711689573971/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 96,
            "x": "97",
            "y": "0.042275853777984554",
            "defined": true,
            "xExact": "97",
            "yExact": "1148088574969257671/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 97,
            "x": "98",
            "y": "0.044606635246512552",
            "defined": true,
            "xExact": "98",
            "yExact": "1211385784502151303/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 98,
            "x": "99",
            "y": "0.045331715948112458",
            "defined": true,
            "xExact": "99",
            "yExact": "1231076856238023697/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 99,
            "x": "100",
            "y": "0.046386977546746026",
            "defined": true,
            "xExact": "100",
            "yExact": "629867337847925606/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 100,
            "x": "101",
            "y": "0.046615222426519644",
            "defined": true,
            "xExact": "101",
            "yExact": "632966569623816846/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 101,
            "x": "102",
            "y": "0.047214632951315998",
            "defined": true,
            "xExact": "102",
            "yExact": "641105688219138883/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 102,
            "x": "103",
            "y": "0.048951306808723311",
            "defined": true,
            "xExact": "103",
            "yExact": "664687180205179433/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 103,
            "x": "104",
            "y": "0.049139205626217881",
            "defined": true,
            "xExact": "104",
            "yExact": "667238571440808196/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 104,
            "x": "105",
            "y": "0.049390610455823498",
            "defined": true,
            "xExact": "105",
            "yExact": "670652281475833081/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 105,
            "x": "106",
            "y": "0.049390610455823498",
            "defined": true,
            "xExact": "106",
            "yExact": "670652281475833081/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 106,
            "x": "107",
            "y": "0.051401849092668428",
            "defined": true,
            "xExact": "107",
            "yExact": "697961961756032161/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 107,
            "x": "108",
            "y": "0.051584444996487323",
            "defined": true,
            "xExact": "108",
            "yExact": "700441347176745153/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 108,
            "x": "109",
            "y": "0.051904658751879662",
            "defined": true,
            "xExact": "109",
            "yExact": "704789381826081931/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 109,
            "x": "110",
            "y": "0.05298966058544094",
            "defined": true,
            "xExact": "110",
            "yExact": "1439044240930853247/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 110,
            "x": "111",
            "y": "0.053817315990010911",
            "defined": true,
            "xExact": "111",
            "yExact": "1461520941673279801/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 111,
            "x": "112",
            "y": "0.053915897388724592",
            "defined": true,
            "xExact": "112",
            "yExact": "732099062106281011/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 112,
            "x": "113",
            "y": "0.054623791977877444",
            "defined": true,
            "xExact": "113",
            "yExact": "741711235693088376/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 113,
            "x": "114",
            "y": "0.055200042552841798",
            "defined": true,
            "xExact": "114",
            "yExact": "749535876029276768/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 114,
            "x": "115",
            "y": "0.055424326366358287",
            "defined": true,
            "xExact": "115",
            "yExact": "752581322316430321/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 115,
            "x": "116",
            "y": "0.056555648099583564",
            "defined": true,
            "xExact": "116",
            "yExact": "1535886034948084607/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 116,
            "x": "117",
            "y": "0.057154387700670641",
            "defined": true,
            "xExact": "117",
            "yExact": "1552146051812550597/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 117,
            "x": "118",
            "y": "0.058189779492020068",
            "defined": true,
            "xExact": "118",
            "yExact": "790132132701704056/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 118,
            "x": "119",
            "y": "0.058441184321625685",
            "defined": true,
            "xExact": "119",
            "yExact": "793545842736728941/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 119,
            "x": "120",
            "y": "0.058689937694393464",
            "defined": true,
            "xExact": "120",
            "yExact": "1593847099728591881/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 120,
            "x": "121",
            "y": "0.058788519093107151",
            "defined": true,
            "xExact": "121",
            "yExact": "798262141133937051/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 121,
            "x": "122",
            "y": "0.059149078910778537",
            "defined": true,
            "xExact": "122",
            "yExact": "803158016323536306/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 122,
            "x": "123",
            "y": "0.059794138411529613",
            "defined": true,
            "xExact": "123",
            "yExact": "811916981274036591/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 123,
            "x": "124",
            "y": "0.060141473183011079",
            "defined": true,
            "xExact": "124",
            "yExact": "816633279671244701/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 124,
            "x": "125",
            "y": "0.061080935032484657",
            "defined": true,
            "xExact": "125",
            "yExact": "1658779596208980467/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 125,
            "x": "126",
            "y": "0.062136835316828246",
            "defined": true,
            "xExact": "126",
            "yExact": "1687454760503189501/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 126,
            "x": "127",
            "y": "0.06263897405233021",
            "defined": true,
            "xExact": "127",
            "yExact": "1701091380317110957/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 127,
            "x": "128",
            "y": "0.063092173669329593",
            "defined": true,
            "xExact": "128",
            "yExact": "1713398956769378627/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 128,
            "x": "129",
            "y": "0.063118623761709444",
            "defined": true,
            "xExact": "129",
            "yExact": "1714117263938943207/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 129,
            "x": "130",
            "y": "0.063466629456900181",
            "defined": true,
            "xExact": "130",
            "yExact": "1723568081059537511/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 130,
            "x": "131",
            "y": "0.063757070739365554",
            "defined": true,
            "xExact": "131",
            "yExact": "865727808523776316/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 131,
            "x": "132",
            "y": "0.064097792987752061",
            "defined": true,
            "xExact": "132",
            "yExact": "1740708637049577707/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 132,
            "x": "133",
            "y": "0.06444908882549065",
            "defined": true,
            "xExact": "133",
            "yExact": "1750248804821469301/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 133,
            "x": "134",
            "y": "0.065043196436611328",
            "defined": true,
            "xExact": "134",
            "yExact": "1766383030382281833/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 134,
            "x": "135",
            "y": "0.065391202131802065",
            "defined": true,
            "xExact": "135",
            "yExact": "1775833847502876137/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 135,
            "x": "136",
            "y": "0.065953556736867217",
            "defined": true,
            "xExact": "136",
            "yExact": "1791105754264292547/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 136,
            "x": "137",
            "y": "0.066506647361999571",
            "defined": true,
            "xExact": "137",
            "yExact": "1806126078418402041/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 137,
            "x": "138",
            "y": "0.066758052191605188",
            "defined": true,
            "xExact": "138",
            "yExact": "1812953498488451811/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 138,
            "x": "139",
            "y": "0.067141101035399303",
            "defined": true,
            "xExact": "139",
            "yExact": "1823355985059739527/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 139,
            "x": "140",
            "y": "0.067617460602230686",
            "defined": true,
            "xExact": "140",
            "yExact": "1836292518030274487/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 140,
            "x": "141",
            "y": "0.067687579137436699",
            "defined": true,
            "xExact": "141",
            "yExact": "919098366210728938/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 141,
            "x": "142",
            "y": "0.068050790411945922",
            "defined": true,
            "xExact": "142",
            "yExact": "1848060488615572157/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 142,
            "x": "143",
            "y": "0.068497377505850346",
            "defined": true,
            "xExact": "143",
            "yExact": "930094244137724341/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 143,
            "x": "144",
            "y": "0.068533762501872264",
            "defined": true,
            "xExact": "144",
            "yExact": "930588299189249131/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 144,
            "x": "145",
            "y": "0.068560883517961385",
            "defined": true,
            "xExact": "145",
            "yExact": "930956562937120463/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 145,
            "x": "146",
            "y": "0.069192047048813266",
            "defined": true,
            "xExact": "146",
            "yExact": "939526840932140561/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 146,
            "x": "147",
            "y": "0.070373649747959663",
            "defined": true,
            "xExact": "147",
            "yExact": "1911142556193515041/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 147,
            "x": "148",
            "y": "0.070684599523419198",
            "defined": true,
            "xExact": "148",
            "yExact": "1919587042884881681/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 148,
            "x": "149",
            "y": "0.071452039058425981",
            "defined": true,
            "xExact": "149",
            "yExact": "1940428456679813281/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 149,
            "x": "150",
            "y": "0.071852306252666406",
            "defined": true,
            "xExact": "150",
            "yExact": "975649271651577613/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 150,
            "x": "151",
            "y": "0.072583360791651258",
            "defined": true,
            "xExact": "151",
            "yExact": "985575923497518623/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 151,
            "x": "152",
            "y": "0.074343194598890563",
            "defined": true,
            "xExact": "152",
            "yExact": "1009471893742692818/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 152,
            "x": "153",
            "y": "0.074743461793130989",
            "defined": true,
            "xExact": "153",
            "yExact": "2029813874108727581/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 153,
            "x": "154",
            "y": "0.074743461793130989",
            "defined": true,
            "xExact": "154",
            "yExact": "2029813874108727581/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 154,
            "x": "155",
            "y": "0.075712696115531525",
            "defined": true,
            "xExact": "155",
            "yExact": "2056135444285877081/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 155,
            "x": "156",
            "y": "0.075725250238012187",
            "defined": true,
            "xExact": "156",
            "yExact": "2056476377544481287/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 156,
            "x": "157",
            "y": "0.07620822232793853",
            "defined": true,
            "xExact": "157",
            "yExact": "1034796243653703696/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 157,
            "x": "158",
            "y": "0.076866506874879531",
            "defined": true,
            "xExact": "158",
            "yExact": "1043734785396595126/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 158,
            "x": "159",
            "y": "0.078047438650316658",
            "defined": true,
            "xExact": "159",
            "yExact": "2119540224796246087/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 159,
            "x": "160",
            "y": "0.079202591257083205",
            "defined": true,
            "xExact": "160",
            "yExact": "1075455395977957713/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 160,
            "x": "161",
            "y": "0.079437448659951782",
            "defined": true,
            "xExact": "161",
            "yExact": "2157288832300089051/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 161,
            "x": "162",
            "y": "0.079688853489557399",
            "defined": true,
            "xExact": "162",
            "yExact": "2164116252370138821/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 162,
            "x": "163",
            "y": "0.080489387878038235",
            "defined": true,
            "xExact": "163",
            "yExact": "2185856425616822711/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 163,
            "x": "164",
            "y": "0.081064296605584049",
            "defined": true,
            "xExact": "164",
            "yExact": "2201469265636843327/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 164,
            "x": "165",
            "y": "0.081606142717655039",
            "defined": true,
            "xExact": "165",
            "yExact": "1108092110847454109/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 165,
            "x": "166",
            "y": "0.082093746797547787",
            "defined": true,
            "xExact": "166",
            "yExact": "2229426122761487781/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 166,
            "x": "167",
            "y": "0.082093746797547787",
            "defined": true,
            "xExact": "167",
            "yExact": "2229426122761487781/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 167,
            "x": "168",
            "y": "0.082900222785414326",
            "defined": true,
            "xExact": "168",
            "yExact": "1125663826237192366/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 168,
            "x": "169",
            "y": "0.08338648501788852",
            "defined": true,
            "xExact": "169",
            "yExact": "2264533112888608127/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 169,
            "x": "170",
            "y": "0.083809912161960945",
            "defined": true,
            "xExact": "170",
            "yExact": "1138016078015108681/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 170,
            "x": "171",
            "y": "0.084421876809237947",
            "defined": true,
            "xExact": "171",
            "yExact": "1146325663239732821/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 171,
            "x": "172",
            "y": "0.084686506685033483",
            "defined": true,
            "xExact": "172",
            "yExact": "1149918950067148851/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 172,
            "x": "173",
            "y": "0.085096037859206705",
            "defined": true,
            "xExact": "173",
            "yExact": "2310959569364946563/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 173,
            "x": "174",
            "y": "0.085827763321900841",
            "defined": true,
            "xExact": "174",
            "yExact": "2330831093383006667/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 174,
            "x": "175",
            "y": "0.086611750283644651",
            "defined": true,
            "xExact": "175",
            "yExact": "1176060943451907206/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 175,
            "x": "176",
            "y": "0.088686494932600626",
            "defined": true,
            "xExact": "176",
            "yExact": "1204232942531502408/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 176,
            "x": "177",
            "y": "0.089086762126841051",
            "defined": true,
            "xExact": "177",
            "yExact": "2419335971686346761/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 177,
            "x": "178",
            "y": "0.089628608238912041",
            "defined": true,
            "xExact": "178",
            "yExact": "1217025463872205826/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 178,
            "x": "179",
            "y": "0.090190962843977193",
            "defined": true,
            "xExact": "179",
            "yExact": "1224661417252914031/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 179,
            "x": "180",
            "y": "0.090759929972137318",
            "defined": true,
            "xExact": "180",
            "yExact": "2464774318059635617/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 180,
            "x": "181",
            "y": "0.092288196519055898",
            "defined": true,
            "xExact": "181",
            "yExact": "1253138784428553836/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 181,
            "x": "182",
            "y": "0.092519763779376624",
            "defined": true,
            "xExact": "182",
            "yExact": "2512566258549984007/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 182,
            "x": "183",
            "y": "0.092992800965660899",
            "defined": true,
            "xExact": "183",
            "yExact": "1262706282689712556/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 183,
            "x": "184",
            "y": "0.093902490342207517",
            "defined": true,
            "xExact": "184",
            "yExact": "1275058534467628871/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 184,
            "x": "185",
            "y": "0.09461105585506964",
            "defined": true,
            "xExact": "185",
            "yExact": "1284679818217525278/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 185,
            "x": "186",
            "y": "0.095891239952929724",
            "defined": true,
            "xExact": "186",
            "yExact": "1302062846651783348/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 186,
            "x": "187",
            "y": "0.096724166033176115",
            "defined": true,
            "xExact": "187",
            "yExact": "2626745530186028227/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 187,
            "x": "188",
            "y": "0.096820766898761235",
            "defined": true,
            "xExact": "188",
            "yExact": "2629368927236572761/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 188,
            "x": "189",
            "y": "0.097752945301430583",
            "defined": true,
            "xExact": "189",
            "yExact": "2654684166984494597/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 189,
            "x": "190",
            "y": "0.097849546167015702",
            "defined": true,
            "xExact": "190",
            "yExact": "2657307564035039131/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 190,
            "x": "191",
            "y": "0.098980867900240965",
            "defined": true,
            "xExact": "191",
            "yExact": "1344015477175131548/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 191,
            "x": "192",
            "y": "0.098980867900240965",
            "defined": true,
            "xExact": "192",
            "yExact": "1344015477175131548/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 192,
            "x": "193",
            "y": "0.099684801423136696",
            "defined": true,
            "xExact": "193",
            "yExact": "1353573865273201226/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 193,
            "x": "194",
            "y": "0.099876661306888395",
            "defined": true,
            "xExact": "194",
            "yExact": "1356179041997567676/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 194,
            "x": "195",
            "y": "0.10011218963346624",
            "defined": true,
            "xExact": "195",
            "yExact": "2718754344665487061/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 195,
            "x": "196",
            "y": "0.10116345792784344",
            "defined": true,
            "xExact": "196",
            "yExact": "2747303717656042637/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 196,
            "x": "197",
            "y": "0.10135531781159512",
            "defined": true,
            "xExact": "197",
            "yExact": "2752514071104775537/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 197,
            "x": "198",
            "y": "0.10253030798764656",
            "defined": true,
            "xExact": "198",
            "yExact": "2784423368641618311/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 198,
            "x": "199",
            "y": "0.10278171281725218",
            "defined": true,
            "xExact": "199",
            "yExact": "2791250788711668081/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 199,
            "x": "200",
            "y": "0.10343999736419318",
            "defined": true,
            "xExact": "200",
            "yExact": "2809127872197450941/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 200,
            "x": "201",
            "y": "0.10424647335205972",
            "defined": true,
            "xExact": "201",
            "yExact": "1415514700955173946/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 201,
            "x": "202",
            "y": "0.10477905548419791",
            "defined": true,
            "xExact": "202",
            "yExact": "2845492775361105867/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 202,
            "x": "203",
            "y": "0.10542411498494898",
            "defined": true,
            "xExact": "203",
            "yExact": "2863010705262106437/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 203,
            "x": "204",
            "y": "0.10584354882476503",
            "defined": true,
            "xExact": "204",
            "yExact": "2874401301936443733/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 204,
            "x": "205",
            "y": "0.10633115290465776",
            "defined": true,
            "xExact": "205",
            "yExact": "1443821601501511648/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 205,
            "x": "206",
            "y": "0.10696627750176677",
            "defined": true,
            "xExact": "206",
            "yExact": "1452445664985269433/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 206,
            "x": "207",
            "y": "0.10796793575393211",
            "defined": true,
            "xExact": "207",
            "yExact": "1466046719636631286/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 207,
            "x": "208",
            "y": "0.10922230844512236",
            "defined": true,
            "xExact": "208",
            "yExact": "2966158533808595651/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 208,
            "x": "209",
            "y": "0.10955574724670462",
            "defined": true,
            "xExact": "209",
            "yExact": "2975213756692051497/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 209,
            "x": "210",
            "y": "0.1109847937091995",
            "defined": true,
            "xExact": "210",
            "yExact": "1507011240056929906/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 210,
            "x": "211",
            "y": "0.11123619853880512",
            "defined": true,
            "xExact": "211",
            "yExact": "1510424950091954791/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 211,
            "x": "212",
            "y": "0.11277836105562292",
            "defined": true,
            "xExact": "212",
            "yExact": "3062730524892342011/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 212,
            "x": "213",
            "y": "0.11293383594335268",
            "defined": true,
            "xExact": "213",
            "yExact": "3066952768238025331/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 213,
            "x": "214",
            "y": "0.11351800865083128",
            "defined": true,
            "xExact": "214",
            "yExact": "3082817190865352863/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 214,
            "x": "215",
            "y": "0.11355110350430536",
            "defined": true,
            "xExact": "215",
            "yExact": "3083715950317105153/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 215,
            "x": "216",
            "y": "0.11412735407926972",
            "defined": true,
            "xExact": "216",
            "yExact": "3099365230989481937/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 216,
            "x": "217",
            "y": "0.11412735407926972",
            "defined": true,
            "xExact": "217",
            "yExact": "3099365230989481937/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 217,
            "x": "218",
            "y": "0.11456796733578918",
            "defined": true,
            "xExact": "218",
            "yExact": "1555665499346674418/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 218,
            "x": "219",
            "y": "0.11468638630378776",
            "defined": true,
            "xExact": "219",
            "yExact": "1557273455804902246/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 219,
            "x": "220",
            "y": "0.11499733607924729",
            "defined": true,
            "xExact": "220",
            "yExact": "1561495699150585566/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 220,
            "x": "221",
            "y": "0.11613859271611464",
            "defined": true,
            "xExact": "221",
            "yExact": "3153984591549880097/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 221,
            "x": "222",
            "y": "0.11633045259986634",
            "defined": true,
            "xExact": "222",
            "yExact": "3159194944998612997/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 222,
            "x": "223",
            "y": "0.11700857471609223",
            "defined": true,
            "xExact": "223",
            "yExact": "1588805379430784646/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 223,
            "x": "224",
            "y": "0.117094569754326",
            "defined": true,
            "xExact": "224",
            "yExact": "1589973066326225371/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 224,
            "x": "225",
            "y": "0.11752131927894553",
            "defined": true,
            "xExact": "225",
            "yExact": "1595767700967576916/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 225,
            "x": "226",
            "y": "0.11780645764773524",
            "defined": true,
            "xExact": "226",
            "yExact": "3199278926293337411/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 226,
            "x": "227",
            "y": "0.11865264101217081",
            "defined": true,
            "xExact": "227",
            "yExact": "3222258792250377797/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 227,
            "x": "228",
            "y": "0.11937708302806069",
            "defined": true,
            "xExact": "228",
            "yExact": "1620966259574934336/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 228,
            "x": "229",
            "y": "0.12023051760130124",
            "defined": true,
            "xExact": "229",
            "yExact": "1632554653367840861/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 229,
            "x": "230",
            "y": "0.12032711846688636",
            "defined": true,
            "xExact": "230",
            "yExact": "1633866351893113128/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 230,
            "x": "231",
            "y": "0.12096157214028609",
            "defined": true,
            "xExact": "231",
            "yExact": "1642481305213781871/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 231,
            "x": "232",
            "y": "0.12154379655263539",
            "defined": true,
            "xExact": "232",
            "yExact": "1650387061527975076/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 232,
            "x": "233",
            "y": "0.1223185195344464",
            "defined": true,
            "xExact": "233",
            "yExact": "3321813333969450981/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 233,
            "x": "234",
            "y": "0.12302245305734213",
            "defined": true,
            "xExact": "234",
            "yExact": "3340930110165590337/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 234,
            "x": "235",
            "y": "0.12316467066088271",
            "defined": true,
            "xExact": "235",
            "yExact": "1672396162218347401/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 235,
            "x": "236",
            "y": "0.12321827400735096",
            "defined": true,
            "xExact": "236",
            "yExact": "3346248034591798611/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 236,
            "x": "237",
            "y": "0.12321827400735096",
            "defined": true,
            "xExact": "237",
            "yExact": "3346248034591798611/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 237,
            "x": "238",
            "y": "0.12321827400735096",
            "defined": true,
            "xExact": "238",
            "yExact": "3346248034591798611/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 238,
            "x": "239",
            "y": "0.12352261125971553",
            "defined": true,
            "xExact": "239",
            "yExact": "1677256472245387053/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 239,
            "x": "240",
            "y": "0.12374689507323201",
            "defined": true,
            "xExact": "240",
            "yExact": "1680301918532540606/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 240,
            "x": "241",
            "y": "0.12434959574057623",
            "defined": true,
            "xExact": "241",
            "yExact": "1688485712453511288/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 241,
            "x": "242",
            "y": "0.12549085237744356",
            "defined": true,
            "xExact": "242",
            "yExact": "3407964618155731541/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 242,
            "x": "243",
            "y": "0.12572570978031214",
            "defined": true,
            "xExact": "243",
            "yExact": "1707171329249952583/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 243,
            "x": "244",
            "y": "0.12813060308830254",
            "defined": true,
            "xExact": "244",
            "yExact": "1739826264445627063/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 244,
            "x": "245",
            "y": "0.12921164385560668",
            "defined": true,
            "xExact": "245",
            "yExact": "3509010435192468137/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 245,
            "x": "246",
            "y": "0.12961520119239497",
            "defined": true,
            "xExact": "246",
            "yExact": "1759984936233553686/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 246,
            "x": "247",
            "y": "0.13034957811192693",
            "defined": true,
            "xExact": "247",
            "yExact": "3539913402300083247/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 247,
            "x": "248",
            "y": "0.13056855901176775",
            "defined": true,
            "xExact": "248",
            "yExact": "3545860283244558811/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 248,
            "x": "249",
            "y": "0.13056855901176775",
            "defined": true,
            "xExact": "249",
            "yExact": "3545860283244558811/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 249,
            "x": "250",
            "y": "0.13102175862876714",
            "defined": true,
            "xExact": "250",
            "yExact": "3558167859696826481/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 250,
            "x": "251",
            "y": "0.13102175862876714",
            "defined": true,
            "xExact": "251",
            "yExact": "3558167859696826481/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 251,
            "x": "252",
            "y": "0.13145508843848236",
            "defined": true,
            "xExact": "252",
            "yExact": "3569935830282124151/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 252,
            "x": "253",
            "y": "0.13169988074499303",
            "defined": true,
            "xExact": "253",
            "yExact": "1788291836779891388/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 253,
            "x": "254",
            "y": "0.13198370950436344",
            "defined": true,
            "xExact": "254",
            "yExact": "1792145816377703376/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 254,
            "x": "255",
            "y": "0.1322053418610421",
            "defined": true,
            "xExact": "255",
            "yExact": "3590310519514798087/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 255,
            "x": "256",
            "y": "0.13247990664047971",
            "defined": true,
            "xExact": "256",
            "yExact": "3597766896103115147/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 256,
            "x": "257",
            "y": "0.13322485714936375",
            "defined": true,
            "xExact": "257",
            "yExact": "3617997573705957541/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 257,
            "x": "258",
            "y": "0.13418680802496005",
            "defined": true,
            "xExact": "258",
            "yExact": "1822060673382268906/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 258,
            "x": "259",
            "y": "0.13522219981630948",
            "defined": true,
            "xExact": "259",
            "yExact": "3672239560355395327/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 259,
            "x": "260",
            "y": "0.1368040697096963",
            "defined": true,
            "xExact": "260",
            "yExact": "3715198521307971191/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 260,
            "x": "261",
            "y": "0.13685367975190815",
            "defined": true,
            "xExact": "261",
            "yExact": "3716545784995803061/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 261,
            "x": "262",
            "y": "0.13724733442305362",
            "defined": true,
            "xExact": "262",
            "yExact": "3727236294826753861/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 262,
            "x": "263",
            "y": "0.13725659840298643",
            "defined": true,
            "xExact": "263",
            "yExact": "3727487877434060777/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 263,
            "x": "264",
            "y": "0.13809747885374632",
            "defined": true,
            "xExact": "264",
            "yExact": "3750323731761269621/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 264,
            "x": "265",
            "y": "0.13991685760683956",
            "defined": true,
            "xExact": "265",
            "yExact": "3799732738872934881/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 265,
            "x": "266",
            "y": "0.14100847196349578",
            "defined": true,
            "xExact": "266",
            "yExact": "3829377792944015411/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 266,
            "x": "267",
            "y": "0.142199338642575",
            "defined": true,
            "xExact": "267",
            "yExact": "1930859124940278123/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 267,
            "x": "268",
            "y": "0.14228469499509874",
            "defined": true,
            "xExact": "268",
            "yExact": "3864036278835056177/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 268,
            "x": "269",
            "y": "0.1434590142474409",
            "defined": true,
            "xExact": "269",
            "yExact": "3895927356045720867/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 269,
            "x": "270",
            "y": "0.14410142229135414",
            "defined": true,
            "xExact": "270",
            "yExact": "1956686640065902833/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 270,
            "x": "271",
            "y": "0.1446730408763521",
            "defined": true,
            "xExact": "271",
            "yExact": "1964448384750264496/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 271,
            "x": "272",
            "y": "0.14470942587237404",
            "defined": true,
            "xExact": "272",
            "yExact": "1964942439801789286/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 272,
            "x": "273",
            "y": "0.14509314563987741",
            "defined": true,
            "xExact": "273",
            "yExact": "1970152793250522186/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 273,
            "x": "274",
            "y": "0.1454629694374816",
            "defined": true,
            "xExact": "274",
            "yExact": "1975174459743774899/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 274,
            "x": "275",
            "y": "0.14561911524892066",
            "defined": true,
            "xExact": "275",
            "yExact": "1977294691579705601/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 275,
            "x": "276",
            "y": "0.14655592564155639",
            "defined": true,
            "xExact": "276",
            "yExact": "1990015207105493248/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 276,
            "x": "277",
            "y": "0.14668427951319704",
            "defined": true,
            "xExact": "277",
            "yExact": "1991758065030463576/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 277,
            "x": "278",
            "y": "0.14668427951319704",
            "defined": true,
            "xExact": "278",
            "yExact": "1991758065030463576/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 278,
            "x": "279",
            "y": "0.14743849400201389",
            "defined": true,
            "xExact": "279",
            "yExact": "2001999195135538231/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 279,
            "x": "280",
            "y": "0.14776001736682551",
            "defined": true,
            "xExact": "280",
            "yExact": "4012730024732309621/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 280,
            "x": "281",
            "y": "0.14819270849083072",
            "defined": true,
            "xExact": "281",
            "yExact": "2012240325240612886/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 281,
            "x": "282",
            "y": "0.14828863843270657",
            "defined": true,
            "xExact": "282",
            "yExact": "2013542913602796111/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 282,
            "x": "283",
            "y": "0.14854004326231218",
            "defined": true,
            "xExact": "283",
            "yExact": "2016956623637820996/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 283,
            "x": "284",
            "y": "0.14869551815004195",
            "defined": true,
            "xExact": "284",
            "yExact": "2019067745310662656/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 284,
            "x": "285",
            "y": "0.14971171105781653",
            "defined": true,
            "xExact": "285",
            "yExact": "4065732318671390911/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 285,
            "x": "286",
            "y": "0.14972825848455354",
            "defined": true,
            "xExact": "286",
            "yExact": "2033090849198633528/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 286,
            "x": "287",
            "y": "0.14977390746050828",
            "defined": true,
            "xExact": "287",
            "yExact": "2033710695553811776/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 287,
            "x": "288",
            "y": "0.15020394712767565",
            "defined": true,
            "xExact": "288",
            "yExact": "2039550005520811966/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 288,
            "x": "289",
            "y": "0.15020394712767565",
            "defined": true,
            "xExact": "289",
            "yExact": "2039550005520811966/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 289,
            "x": "290",
            "y": "0.15024033212369758",
            "defined": true,
            "xExact": "290",
            "yExact": "2040044060572336756/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 290,
            "x": "291",
            "y": "0.15074314178290882",
            "defined": true,
            "xExact": "291",
            "yExact": "2046871480642386526/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 291,
            "x": "292",
            "y": "0.15085958021777882",
            "defined": true,
            "xExact": "292",
            "yExact": "4096905088712491021/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 292,
            "x": "293",
            "y": "0.15140803885294479",
            "defined": true,
            "xExact": "293",
            "yExact": "4111799621562947057/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 293,
            "x": "294",
            "y": "0.15146097127570374",
            "defined": true,
            "xExact": "294",
            "yExact": "2056618555695936391/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 294,
            "x": "295",
            "y": "0.15231111570639644",
            "defined": true,
            "xExact": "295",
            "yExact": "2068162274163194271/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 295,
            "x": "296",
            "y": "0.15288008283455656",
            "defined": true,
            "xExact": "296",
            "yExact": "4151776031880196097/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 296,
            "x": "297",
            "y": "0.15309510266814025",
            "defined": true,
            "xExact": "297",
            "yExact": "4157615341847196287/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 297,
            "x": "298",
            "y": "0.15322080508294306",
            "defined": true,
            "xExact": "298",
            "yExact": "2080514525941110586/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 298,
            "x": "299",
            "y": "0.15410072198656272",
            "defined": true,
            "xExact": "299",
            "yExact": "4184925022127395367/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 299,
            "x": "300",
            "y": "0.15412784300265184",
            "defined": true,
            "xExact": "300",
            "yExact": "4185661549623138031/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 300,
            "x": "301",
            "y": "0.15442422588450291",
            "defined": true,
            "xExact": "301",
            "yExact": "4193710442077366213/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 301,
            "x": "302",
            "y": "0.15460353164577395",
            "defined": true,
            "xExact": "302",
            "yExact": "4198579862267494907/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 302,
            "x": "303",
            "y": "0.15464387770805299",
            "defined": true,
            "xExact": "303",
            "yExact": "4199675543348019861/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 303,
            "x": "304",
            "y": "0.1546994615876498",
            "defined": true,
            "xExact": "304",
            "yExact": "4201185038991861357/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 304,
            "x": "305",
            "y": "0.15617811809235654",
            "defined": true,
            "xExact": "305",
            "yExact": "2120670513050750771/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 305,
            "x": "306",
            "y": "0.15622111561147342",
            "defined": true,
            "xExact": "306",
            "yExact": "4242508712996942267/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 306,
            "x": "307",
            "y": "0.15649568039091102",
            "defined": true,
            "xExact": "307",
            "yExact": "4249965089585259327/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 307,
            "x": "308",
            "y": "0.15706860858532828",
            "defined": true,
            "xExact": "308",
            "yExact": "2132762072058271128/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 308,
            "x": "309",
            "y": "0.15746226325647375",
            "defined": true,
            "xExact": "309",
            "yExact": "2138107326973746528/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 309,
            "x": "310",
            "y": "0.1580107218916397",
            "defined": true,
            "xExact": "310",
            "yExact": "2145554593398974546/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 310,
            "x": "311",
            "y": "0.1580934267873256",
            "defined": true,
            "xExact": "311",
            "yExact": "2146677604968766626/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 311,
            "x": "312",
            "y": "0.1581734802261737",
            "defined": true,
            "xExact": "312",
            "yExact": "4295529227262201641/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 312,
            "x": "313",
            "y": "0.1582250708015141",
            "defined": true,
            "xExact": "313",
            "yExact": "2148465138219385599/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 313,
            "x": "314",
            "y": "0.15842421413207003",
            "defined": true,
            "xExact": "314",
            "yExact": "4302338427006073327/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 314,
            "x": "315",
            "y": "0.15895018374111328",
            "defined": true,
            "xExact": "315",
            "yExact": "4316622223664440157/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 315,
            "x": "316",
            "y": "0.15909639464891023",
            "defined": true,
            "xExact": "316",
            "yExact": "4320592884402816561/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 316,
            "x": "317",
            "y": "0.15917446755462977",
            "defined": true,
            "xExact": "317",
            "yExact": "4322713116238747263/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 317,
            "x": "318",
            "y": "0.15933125205177884",
            "defined": true,
            "xExact": "318",
            "yExact": "2163485462373495093/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 318,
            "x": "319",
            "y": "0.15985326059456492",
            "defined": true,
            "xExact": "319",
            "yExact": "2170573575213940821/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 319,
            "x": "320",
            "y": "0.1609018774321043",
            "defined": true,
            "xExact": "320",
            "yExact": "4369624517603521447/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 320,
            "x": "321",
            "y": "0.16109108585901813",
            "defined": true,
            "xExact": "321",
            "yExact": "2187381432618669288/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 321,
            "x": "322",
            "y": "0.16114005721551997",
            "defined": true,
            "xExact": "322",
            "yExact": "4376092784088788927/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 322,
            "x": "323",
            "y": "0.16144174301104672",
            "defined": true,
            "xExact": "323",
            "yExact": "4384285688172848651/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 323,
            "x": "324",
            "y": "0.16174937040595913",
            "defined": true,
            "xExact": "324",
            "yExact": "2196319974361560718/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 324,
            "x": "325",
            "y": "0.16181156680865091",
            "defined": true,
            "xExact": "325",
            "yExact": "4394329021159354077/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 325,
            "x": "326",
            "y": "0.16227137894874524",
            "defined": true,
            "xExact": "326",
            "yExact": "2203408087202006446/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 326,
            "x": "327",
            "y": "0.16256974236372487",
            "defined": true,
            "xExact": "327",
            "yExact": "4414918852346978761/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 327,
            "x": "328",
            "y": "0.16324457433740291",
            "defined": true,
            "xExact": "328",
            "yExact": "2216622657779318883/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 328,
            "x": "329",
            "y": "0.16395246892655577",
            "defined": true,
            "xExact": "329",
            "yExact": "2226234831366126248/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 329,
            "x": "330",
            "y": "0.16433289855151131",
            "defined": true,
            "xExact": "330",
            "yExact": "2231400509489210503/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 330,
            "x": "331",
            "y": "0.16433289855151131",
            "defined": true,
            "xExact": "331",
            "yExact": "2231400509489210503/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 331,
            "x": "332",
            "y": "0.16433289855151131",
            "defined": true,
            "xExact": "332",
            "yExact": "2231400509489210503/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 332,
            "x": "333",
            "y": "0.16454063493829077",
            "defined": true,
            "xExact": "333",
            "yExact": "4468442531826851967/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 333,
            "x": "334",
            "y": "0.16465707337316077",
            "defined": true,
            "xExact": "334",
            "yExact": "2235802329627284968/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 334,
            "x": "335",
            "y": "0.1647622672949694",
            "defined": true,
            "xExact": "335",
            "yExact": "2237230709293121651/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 335,
            "x": "336",
            "y": "0.16498389965164806",
            "defined": true,
            "xExact": "336",
            "yExact": "4480480305345634637/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 336,
            "x": "337",
            "y": "0.16516253448920984",
            "defined": true,
            "xExact": "337",
            "yExact": "4485331505209585247/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 337,
            "x": "338",
            "y": "0.16561902424875707",
            "defined": true,
            "xExact": "338",
            "yExact": "4497728432313150207/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 338,
            "x": "339",
            "y": "0.16584132752914499",
            "defined": true,
            "xExact": "339",
            "yExact": "2251882769699359813/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 339,
            "x": "340",
            "y": "0.16614499385780029",
            "defined": true,
            "xExact": "340",
            "yExact": "4512012228971517037/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 340,
            "x": "341",
            "y": "0.16787505519211265",
            "defined": true,
            "xExact": "341",
            "yExact": "2279497818075603496/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 341,
            "x": "342",
            "y": "0.16806030255276938",
            "defined": true,
            "xExact": "342",
            "yExact": "4564026412807548747/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 342,
            "x": "343",
            "y": "0.16834147985530196",
            "defined": true,
            "xExact": "343",
            "yExact": "2285831183094128476/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 343,
            "x": "344",
            "y": "0.16845063484336772",
            "defined": true,
            "xExact": "344",
            "yExact": "2287313348248702846/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 344,
            "x": "345",
            "y": "0.16849430328619389",
            "defined": true,
            "xExact": "345",
            "yExact": "4575812603719024501/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 345,
            "x": "346",
            "y": "0.16863984327028159",
            "defined": true,
            "xExact": "346",
            "yExact": "4579765044131222821/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 346,
            "x": "347",
            "y": "0.16885818548441239",
            "defined": true,
            "xExact": "347",
            "yExact": "2292847290119658433/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 347,
            "x": "348",
            "y": "0.16894683197948401",
            "defined": true,
            "xExact": "348",
            "yExact": "4588101959845114087/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 348,
            "x": "349",
            "y": "0.168969991929316",
            "defined": true,
            "xExact": "349",
            "yExact": "4588730916363381377/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 349,
            "x": "350",
            "y": "0.16902027289523713",
            "defined": true,
            "xExact": "350",
            "yExact": "4590096400377391331/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 350,
            "x": "351",
            "y": "0.16922139675892162",
            "defined": true,
            "xExact": "351",
            "yExact": "4595558336433431147/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 351,
            "x": "352",
            "y": "0.16948602663471715",
            "defined": true,
            "xExact": "352",
            "yExact": "4602744910088263207/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 352,
            "x": "353",
            "y": "0.16970037554459158",
            "defined": true,
            "xExact": "353",
            "yExact": "4608565999729085313/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 353,
            "x": "354",
            "y": "0.17064315977461228",
            "defined": true,
            "xExact": "354",
            "yExact": "4634169262736670233/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 354,
            "x": "355",
            "y": "0.17078010670247645",
            "defined": true,
            "xExact": "355",
            "yExact": "4637888340867739721/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 355,
            "x": "356",
            "y": "0.170944845570139",
            "defined": true,
            "xExact": "356",
            "yExact": "4642362166820729957/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 356,
            "x": "357",
            "y": "0.17114331797698568",
            "defined": true,
            "xExact": "357",
            "yExact": "2323876048530927001/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 357,
            "x": "358",
            "y": "0.17114727904324278",
            "defined": true,
            "xExact": "358",
            "yExact": "2323929834019664688/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 358,
            "x": "359",
            "y": "0.17129614140787761",
            "defined": true,
            "xExact": "359",
            "yExact": "4651902334592621551/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 359,
            "x": "360",
            "y": "0.17142449527951825",
            "defined": true,
            "xExact": "360",
            "yExact": "4655388050442562207/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 360,
            "x": "361",
            "y": "0.17169906005895585",
            "defined": true,
            "xExact": "361",
            "yExact": "4662844427030879267/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 361,
            "x": "362",
            "y": "0.17199742347393548",
            "defined": true,
            "xExact": "362",
            "yExact": "2335473552486922568/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 362,
            "x": "363",
            "y": "0.17257897696257551",
            "defined": true,
            "xExact": "363",
            "yExact": "2343370198638026731/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 363,
            "x": "364",
            "y": "0.17335302902067726",
            "defined": true,
            "xExact": "364",
            "yExact": "4707761387863376207/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 364,
            "x": "365",
            "y": "0.17338015003676638",
            "defined": true,
            "xExact": "365",
            "yExact": "4708497915359118871/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 365,
            "x": "366",
            "y": "0.1739491171649265",
            "defined": true,
            "xExact": "366",
            "yExact": "2361974699456463213/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 366,
            "x": "367",
            "y": "0.17426271839722388",
            "defined": true,
            "xExact": "367",
            "yExact": "4732465891419208837/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 367,
            "x": "368",
            "y": "0.17478207548317215",
            "defined": true,
            "xExact": "368",
            "yExact": "2373285055642592261/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 368,
            "x": "369",
            "y": "0.17498054789001879",
            "defined": true,
            "xExact": "369",
            "yExact": "4751960041526308567/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 369,
            "x": "370",
            "y": "0.17511286282791658",
            "defined": true,
            "xExact": "370",
            "yExact": "4755553328353724597/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 370,
            "x": "371",
            "y": "0.17604571215429518",
            "defined": true,
            "xExact": "371",
            "yExact": "4780886788427824517/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 371,
            "x": "372",
            "y": "0.17604571215429518",
            "defined": true,
            "xExact": "372",
            "yExact": "4780886788427824517/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 372,
            "x": "373",
            "y": "0.1761191530700483",
            "defined": true,
            "xExact": "373",
            "yExact": "4782881228960101761/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 373,
            "x": "374",
            "y": "0.17628124048087304",
            "defined": true,
            "xExact": "374",
            "yExact": "2393641524549088113/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 374,
            "x": "375",
            "y": "0.17693952502781404",
            "defined": true,
            "xExact": "375",
            "yExact": "2402580066291979543/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 375,
            "x": "376",
            "y": "0.17747210715995224",
            "defined": true,
            "xExact": "376",
            "yExact": "4819623506034717061/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 376,
            "x": "377",
            "y": "0.17774996208193772",
            "defined": true,
            "xExact": "377",
            "yExact": "4827169233274331411/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 377,
            "x": "378",
            "y": "0.17785847838429347",
            "defined": true,
            "xExact": "378",
            "yExact": "2415058109373549316/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 378,
            "x": "379",
            "y": "0.17787831595357834",
            "defined": true,
            "xExact": "379",
            "yExact": "4830654949124272067/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 379,
            "x": "380",
            "y": "0.17803446176501739",
            "defined": true,
            "xExact": "380",
            "yExact": "4834895412796133471/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 380,
            "x": "381",
            "y": "0.17810988321389909",
            "defined": true,
            "xExact": "381",
            "yExact": "2418471819408574201/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 381,
            "x": "382",
            "y": "0.17831496814384071",
            "defined": true,
            "xExact": "382",
            "yExact": "2421256572925331796/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 382,
            "x": "383",
            "y": "0.17833812809367269",
            "defined": true,
            "xExact": "383",
            "yExact": "2421571051184465441/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 383,
            "x": "384",
            "y": "0.17851411147439664",
            "defined": true,
            "xExact": "384",
            "yExact": "4847921296417965721/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 384,
            "x": "385",
            "y": "0.17861930539620527",
            "defined": true,
            "xExact": "385",
            "yExact": "4850778055749639087/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 385,
            "x": "386",
            "y": "0.17954618088519894",
            "defined": true,
            "xExact": "386",
            "yExact": "4875949283867729381/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 386,
            "x": "387",
            "y": "0.17974401460633557",
            "defined": true,
            "xExact": "387",
            "yExact": "4881321869272471907/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 387,
            "x": "388",
            "y": "0.17986971702113838",
            "defined": true,
            "xExact": "388",
            "yExact": "2442367789653748396/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 388,
            "x": "389",
            "y": "0.18041552419946652",
            "defined": true,
            "xExact": "389",
            "yExact": "4899558106343037057/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 389,
            "x": "390",
            "y": "0.18098449132762662",
            "defined": true,
            "xExact": "390",
            "yExact": "2457504794948422306/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 390,
            "x": "391",
            "y": "0.18099177477443087",
            "defined": true,
            "xExact": "391",
            "yExact": "4915207387015413841/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 391,
            "x": "392",
            "y": "0.18169966936358373",
            "defined": true,
            "xExact": "392",
            "yExact": "4934431734189028571/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 392,
            "x": "393",
            "y": "0.18217535800670584",
            "defined": true,
            "xExact": "393",
            "yExact": "4947350046833385447/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 393,
            "x": "394",
            "y": "0.18224812799874968",
            "defined": true,
            "xExact": "394",
            "yExact": "4949326267039484607/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 394,
            "x": "395",
            "y": "0.18224812799874968",
            "defined": true,
            "xExact": "395",
            "yExact": "4949326267039484607/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 395,
            "x": "396",
            "y": "0.18235134138742976",
            "defined": true,
            "xExact": "396",
            "yExact": "2476064620441210143/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 396,
            "x": "397",
            "y": "0.18240427381018873",
            "defined": true,
            "xExact": "397",
            "yExact": "4953566730711346011/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 397,
            "x": "398",
            "y": "0.18243733642566354",
            "defined": true,
            "xExact": "398",
            "yExact": "2477232307336650868/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 398,
            "x": "399",
            "y": "0.1824624769086241",
            "defined": true,
            "xExact": "399",
            "yExact": "4955147356680306713/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 399,
            "x": "400",
            "y": "0.18255974869791849",
            "defined": true,
            "xExact": "400",
            "yExact": "4957788974057029331/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 400,
            "x": "401",
            "y": "0.18306255835712973",
            "defined": true,
            "xExact": "401",
            "yExact": "4971443814197128871/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 401,
            "x": "402",
            "y": "0.18356865815888881",
            "defined": true,
            "xExact": "402",
            "yExact": "4985188004988525701/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 402,
            "x": "403",
            "y": "0.18379361289611457",
            "defined": true,
            "xExact": "403",
            "yExact": "4991297117889010891/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 403,
            "x": "404",
            "y": "0.18394247526074939",
            "defined": true,
            "xExact": "404",
            "yExact": "2497669892221151533/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 404,
            "x": "405",
            "y": "0.1840681776755522",
            "defined": true,
            "xExact": "405",
            "yExact": "4998753494477327951/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 405,
            "x": "406",
            "y": "0.18408405417857995",
            "defined": true,
            "xExact": "406",
            "yExact": "2499592326938513006/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 406,
            "x": "407",
            "y": "0.18414359912443387",
            "defined": true,
            "xExact": "407",
            "yExact": "2500400860249171441/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 407,
            "x": "408",
            "y": "0.18428981003223083",
            "defined": true,
            "xExact": "408",
            "yExact": "2502386190618359643/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 408,
            "x": "409",
            "y": "0.18469867028269479",
            "defined": true,
            "xExact": "409",
            "yExact": "5015875830141190063/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 409,
            "x": "410",
            "y": "0.1847489512486159",
            "defined": true,
            "xExact": "410",
            "yExact": "5017241314155200017/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 410,
            "x": "411",
            "y": "0.18507379699397464",
            "defined": true,
            "xExact": "411",
            "yExact": "5026063174757527031/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 411,
            "x": "412",
            "y": "0.18507379699397464",
            "defined": true,
            "xExact": "412",
            "yExact": "5026063174757527031/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 412,
            "x": "413",
            "y": "0.18513928353921427",
            "defined": true,
            "xExact": "413",
            "yExact": "2513920798922528481/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 413,
            "x": "414",
            "y": "0.18522198843490018",
            "defined": true,
            "xExact": "414",
            "yExact": "2515043810492320561/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 414,
            "x": "415",
            "y": "0.18532849196612813",
            "defined": true,
            "xExact": "415",
            "yExact": "5032979945478874091/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 415,
            "x": "416",
            "y": "0.18545090423838306",
            "defined": true,
            "xExact": "416",
            "yExact": "2518152152431300843/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 416,
            "x": "417",
            "y": "0.18550977826052772",
            "defined": true,
            "xExact": "417",
            "yExact": "2518951575578870236/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 417,
            "x": "418",
            "y": "0.18570892159108365",
            "defined": true,
            "xExact": "418",
            "yExact": "5043311301725042601/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 418,
            "x": "419",
            "y": "0.18572214663727357",
            "defined": true,
            "xExact": "419",
            "yExact": "5043670455309824891/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 419,
            "x": "420",
            "y": "0.18612506528835185",
            "defined": true,
            "xExact": "420",
            "yExact": "5054612547748082607/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 420,
            "x": "421",
            "y": "0.18624811624631682",
            "defined": true,
            "xExact": "421",
            "yExact": "5057954251968191721/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 421,
            "x": "422",
            "y": "0.18640624259088442",
            "defined": true,
            "xExact": "422",
            "yExact": "2531124250564395406/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 422,
            "x": "423",
            "y": "0.18658222597160834",
            "defined": true,
            "xExact": "423",
            "yExact": "5067027695177825651/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 423,
            "x": "424",
            "y": "0.18661794004392099",
            "defined": true,
            "xExact": "424",
            "yExact": "5067997584954697147/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 424,
            "x": "425",
            "y": "0.18665764742049004",
            "defined": true,
            "xExact": "425",
            "yExact": "2534537960599420291/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 425,
            "x": "426",
            "y": "0.18741186190930689",
            "defined": true,
            "xExact": "426",
            "yExact": "2544779090704494946/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 426,
            "x": "427",
            "y": "0.18741186190930689",
            "defined": true,
            "xExact": "427",
            "yExact": "2544779090704494946/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 427,
            "x": "428",
            "y": "0.18811314397536477",
            "defined": true,
            "xExact": "428",
            "yExact": "5108602951790213477/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 428,
            "x": "429",
            "y": "0.18857030465862129",
            "defined": true,
            "xExact": "429",
            "yExact": "5121018099219956521/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 429,
            "x": "430",
            "y": "0.18938406409329206",
            "defined": true,
            "xExact": "430",
            "yExact": "5143117426051422701/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 430,
            "x": "431",
            "y": "0.18954615150411677",
            "defined": true,
            "xExact": "431",
            "yExact": "2573759623094748583/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 431,
            "x": "432",
            "y": "0.18959180048007152",
            "defined": true,
            "xExact": "432",
            "yExact": "2574379469449926831/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 432,
            "x": "433",
            "y": "0.19048494242988109",
            "defined": true,
            "xExact": "433",
            "yExact": "5173014062729810147/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 433,
            "x": "434",
            "y": "0.1908627205979988",
            "defined": true,
            "xExact": "434",
            "yExact": "2591636706580531443/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 434,
            "x": "435",
            "y": "0.19121931934941305",
            "defined": true,
            "xExact": "435",
            "yExact": "2596478796281393011/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 435,
            "x": "436",
            "y": "0.19125570434543498",
            "defined": true,
            "xExact": "436",
            "yExact": "2596972851332917801/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 436,
            "x": "437",
            "y": "0.19143433918299674",
            "defined": true,
            "xExact": "437",
            "yExact": "2599398451264893106/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 437,
            "x": "438",
            "y": "0.19182467147359508",
            "defined": true,
            "xExact": "438",
            "yExact": "5209397186219643157/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 438,
            "x": "439",
            "y": "0.19206019980017294",
            "defined": true,
            "xExact": "439",
            "yExact": "2607896723444997433/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 439,
            "x": "440",
            "y": "0.19206285125701078",
            "defined": true,
            "xExact": "440",
            "yExact": "5215865452704910637/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 440,
            "x": "441",
            "y": "0.19211246129922263",
            "defined": true,
            "xExact": "441",
            "yExact": "5217212716392742507/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 441,
            "x": "442",
            "y": "0.19211246129922263",
            "defined": true,
            "xExact": "442",
            "yExact": "5217212716392742507/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 442,
            "x": "443",
            "y": "0.19265826847755074",
            "defined": true,
            "xExact": "443",
            "yExact": "2616017621714141386/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 443,
            "x": "444",
            "y": "0.19273170939330389",
            "defined": true,
            "xExact": "444",
            "yExact": "2617014841980280008/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 444,
            "x": "445",
            "y": "0.19287724937739156",
            "defined": true,
            "xExact": "445",
            "yExact": "2618991062186379168/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 445,
            "x": "446",
            "y": "0.19318423808659399",
            "defined": true,
            "xExact": "446",
            "yExact": "2623159520043324801/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 446,
            "x": "447",
            "y": "0.19319417299023606",
            "defined": true,
            "xExact": "447",
            "yExact": "2623294421510067301/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 447,
            "x": "448",
            "y": "0.19403505344099595",
            "defined": true,
            "xExact": "448",
            "yExact": "2634712348673671723/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 448,
            "x": "449",
            "y": "0.1950102293627822",
            "defined": true,
            "xExact": "449",
            "yExact": "5295907623990706007/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 449,
            "x": "450",
            "y": "0.19501751280958643",
            "defined": true,
            "xExact": "450",
            "yExact": "2648052710554637618/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 450,
            "x": "451",
            "y": "0.19524179662310293",
            "defined": true,
            "xExact": "451",
            "yExact": "2651098156841791171/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 451,
            "x": "452",
            "y": "0.1952556925930021",
            "defined": true,
            "xExact": "452",
            "yExact": "2651286843797271358/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 452,
            "x": "453",
            "y": "0.19553354751498758",
            "defined": true,
            "xExact": "453",
            "yExact": "2655059707417078533/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 453,
            "x": "454",
            "y": "0.19566190138662823",
            "defined": true,
            "xExact": "454",
            "yExact": "2656802565342048861/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 454,
            "x": "455",
            "y": "0.19567579735652743",
            "defined": true,
            "xExact": "455",
            "yExact": "2656991252297529048/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 455,
            "x": "456",
            "y": "0.19591330621623385",
            "defined": true,
            "xExact": "456",
            "yExact": "2660216275377073746/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 456,
            "x": "457",
            "y": "0.19595962611589784",
            "defined": true,
            "xExact": "457",
            "yExact": "2660845231895341036/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 457,
            "x": "458",
            "y": "0.19608532853070065",
            "defined": true,
            "xExact": "458",
            "yExact": "5325104173825706957/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 458,
            "x": "459",
            "y": "0.19617397502577225",
            "defined": true,
            "xExact": "459",
            "yExact": "2663755776715752089/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 459,
            "x": "460",
            "y": "0.19633673336030627",
            "defined": true,
            "xExact": "460",
            "yExact": "5331931593895756727/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 460,
            "x": "461",
            "y": "0.1968395430195175",
            "defined": true,
            "xExact": "461",
            "yExact": "5345586434035856267/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 461,
            "x": "462",
            "y": "0.19700163043034222",
            "defined": true,
            "xExact": "462",
            "yExact": "2674994127086965366/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 462,
            "x": "463",
            "y": "0.19762087852442348",
            "defined": true,
            "xExact": "463",
            "yExact": "5366805221741748241/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 463,
            "x": "464",
            "y": "0.19771945992313716",
            "defined": true,
            "xExact": "464",
            "yExact": "2684741202140515231/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 464,
            "x": "465",
            "y": "0.19771945992313716",
            "defined": true,
            "xExact": "465",
            "yExact": "2684741202140515231/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 465,
            "x": "466",
            "y": "0.19771945992313716",
            "defined": true,
            "xExact": "466",
            "yExact": "2684741202140515231/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 466,
            "x": "467",
            "y": "0.19794109227981582",
            "defined": true,
            "xExact": "467",
            "yExact": "5375501291040421797/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 467,
            "x": "468",
            "y": "0.19897648407116522",
            "defined": true,
            "xExact": "468",
            "yExact": "2701809752315639656/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 468,
            "x": "469",
            "y": "0.19897648407116522",
            "defined": true,
            "xExact": "469",
            "yExact": "2701809752315639656/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 469,
            "x": "470",
            "y": "0.19897648407116522",
            "defined": true,
            "xExact": "470",
            "yExact": "2701809752315639656/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 470,
            "x": "471",
            "y": "0.19901948159028213",
            "defined": true,
            "xExact": "471",
            "yExact": "5404787191526720037/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 471,
            "x": "472",
            "y": "0.19903999008327627",
            "defined": true,
            "xExact": "472",
            "yExact": "2702672071115035778/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 472,
            "x": "473",
            "y": "0.19909953502913022",
            "defined": true,
            "xExact": "473",
            "yExact": "2703480604425694213/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 473,
            "x": "474",
            "y": "0.19919811642784388",
            "defined": true,
            "xExact": "474",
            "yExact": "5409638391390670647/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 474,
            "x": "475",
            "y": "0.19922788890077084",
            "defined": true,
            "xExact": "475",
            "yExact": "2705223462350664541/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 475,
            "x": "476",
            "y": "0.1993343924319988",
            "defined": true,
            "xExact": "476",
            "yExact": "5413339249195562051/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 476,
            "x": "477",
            "y": "0.1993343924319988",
            "defined": true,
            "xExact": "477",
            "yExact": "5413339249195562051/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 477,
            "x": "478",
            "y": "0.1993343924319988",
            "defined": true,
            "xExact": "478",
            "yExact": "5413339249195562051/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 478,
            "x": "479",
            "y": "0.19935359131557365",
            "defined": true,
            "xExact": "479",
            "yExact": "5413860634736353967/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 479,
            "x": "480",
            "y": "0.19973069855998207",
            "defined": true,
            "xExact": "480",
            "yExact": "2712050882420714311/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 480,
            "x": "481",
            "y": "0.19973731108307705",
            "defined": true,
            "xExact": "481",
            "yExact": "5424281341633819767/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 481,
            "x": "482",
            "y": "0.19988285106716475",
            "defined": true,
            "xExact": "482",
            "yExact": "5428233782046018087/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 482,
            "x": "483",
            "y": "0.1999589434397557",
            "defined": true,
            "xExact": "483",
            "yExact": "2715150114196605551/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 483,
            "x": "484",
            "y": "0.19997481994278346",
            "defined": true,
            "xExact": "484",
            "yExact": "5430731387792909163/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 484,
            "x": "485",
            "y": "0.20007205949407861",
            "defined": true,
            "xExact": "485",
            "yExact": "2716686064839917608/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 485,
            "x": "486",
            "y": "0.20040949159991725",
            "defined": true,
            "xExact": "486",
            "yExact": "5442535799030563001/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 486,
            "x": "487",
            "y": "0.20048491304879892",
            "defined": true,
            "xExact": "487",
            "yExact": "2722292012525788966/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 487,
            "x": "488",
            "y": "0.20091230125912848",
            "defined": true,
            "xExact": "488",
            "yExact": "5456190639170662541/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 488,
            "x": "489",
            "y": "0.20130528500656467",
            "defined": true,
            "xExact": "489",
            "yExact": "5466862928675435257/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 489,
            "x": "490",
            "y": "0.20141443999463043",
            "defined": true,
            "xExact": "490",
            "yExact": "5469827258984583997/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 490,
            "x": "491",
            "y": "0.20141511091833972",
            "defined": true,
            "xExact": "491",
            "yExact": "5469845479310762081/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 491,
            "x": "492",
            "y": "0.20147398494048435",
            "defined": true,
            "xExact": "492",
            "yExact": "5471444325605900867/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 492,
            "x": "493",
            "y": "0.20211904444123543",
            "defined": true,
            "xExact": "493",
            "yExact": "5488962255506901437/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 493,
            "x": "494",
            "y": "0.20271513258548468",
            "defined": true,
            "xExact": "494",
            "yExact": "2752575133278225828/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 494,
            "x": "495",
            "y": "0.20289903809872287",
            "defined": true,
            "xExact": "495",
            "yExact": "5510144602560437243/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 495,
            "x": "496",
            "y": "0.20293015241906837",
            "defined": true,
            "xExact": "496",
            "yExact": "2755494788261725923/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 496,
            "x": "497",
            "y": "0.20370420447717011",
            "defined": true,
            "xExact": "497",
            "yExact": "5532010567110774591/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 497,
            "x": "498",
            "y": "0.20375317583367195",
            "defined": true,
            "xExact": "498",
            "yExact": "2766670242981112471/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 498,
            "x": "499",
            "y": "0.20407073813222645",
            "defined": true,
            "xExact": "499",
            "yExact": "5541964549445982727/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 499,
            "x": "500",
            "y": "0.20415938462729805",
            "defined": true,
            "xExact": "500",
            "yExact": "2772185964525889974/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 500,
            "x": "501",
            "y": "0.20432214296183207",
            "defined": true,
            "xExact": "501",
            "yExact": "5548791969516032497/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 501,
            "x": "502",
            "y": "0.20463309273729161",
            "defined": true,
            "xExact": "502",
            "yExact": "5557236456207399137/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 502,
            "x": "503",
            "y": "0.20487456266325516",
            "defined": true,
            "xExact": "503",
            "yExact": "5563794073343963907/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 503,
            "x": "504",
            "y": "0.20513590239650284",
            "defined": true,
            "xExact": "504",
            "yExact": "5570891296347498677/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 504,
            "x": "505",
            "y": "0.20522918088154085",
            "defined": true,
            "xExact": "505",
            "yExact": "2786712233628474678/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 505,
            "x": "506",
            "y": "0.20639953906762587",
            "defined": true,
            "xExact": "506",
            "yExact": "2802603986745069336/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 506,
            "x": "507",
            "y": "0.20664433137413654",
            "defined": true,
            "xExact": "507",
            "yExact": "5611855816767797297/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 507,
            "x": "508",
            "y": "0.20687257625391015",
            "defined": true,
            "xExact": "508",
            "yExact": "5618054280319579777/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 508,
            "x": "509",
            "y": "0.20725629602141354",
            "defined": true,
            "xExact": "509",
            "yExact": "5628474987217045577/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 509,
            "x": "510",
            "y": "0.20736877339002643",
            "defined": true,
            "xExact": "510",
            "yExact": "2815764771833644086/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 510,
            "x": "511",
            "y": "0.20741177090914331",
            "defined": true,
            "xExact": "511",
            "yExact": "5632697230562728897/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 511,
            "x": "512",
            "y": "0.20832874373249416",
            "defined": true,
            "xExact": "512",
            "yExact": "2828799765618565378/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 512,
            "x": "513",
            "y": "0.20838761775463882",
            "defined": true,
            "xExact": "513",
            "yExact": "2829599188766134771/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 513,
            "x": "514",
            "y": "0.20883155339170539",
            "defined": true,
            "xExact": "514",
            "yExact": "2835627185688615148/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 514,
            "x": "515",
            "y": "0.20893607638980477",
            "defined": true,
            "xExact": "515",
            "yExact": "2837046455191362789/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 515,
            "x": "516",
            "y": "0.20946006546571944",
            "defined": true,
            "xExact": "516",
            "yExact": "5688322921552354721/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 516,
            "x": "517",
            "y": "0.20977430538372682",
            "defined": true,
            "xExact": "517",
            "yExact": "5696856758895018651/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 517,
            "x": "518",
            "y": "0.20994632769819363",
            "defined": true,
            "xExact": "518",
            "yExact": "2850764190983289058/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 518,
            "x": "519",
            "y": "0.20996287512493067",
            "defined": true,
            "xExact": "519",
            "yExact": "5701977761692454261/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 519,
            "x": "520",
            "y": "0.21042201634131574",
            "defined": true,
            "xExact": "520",
            "yExact": "2857223347305467496/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 520,
            "x": "521",
            "y": "0.21059071627523543",
            "defined": true,
            "xExact": "521",
            "yExact": "2859514045770700301/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 521,
            "x": "522",
            "y": "0.21091556202059417",
            "defined": true,
            "xExact": "522",
            "yExact": "2863924976071863808/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 522,
            "x": "523",
            "y": "0.21108030088825674",
            "defined": true,
            "xExact": "523",
            "yExact": "2866161889048358926/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 523,
            "x": "524",
            "y": "0.21116696685019978",
            "defined": true,
            "xExact": "524",
            "yExact": "2867338686106888693/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 524,
            "x": "525",
            "y": "0.21121261582615453",
            "defined": true,
            "xExact": "525",
            "yExact": "2867958532462066941/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 525,
            "x": "526",
            "y": "0.21121261582615453",
            "defined": true,
            "xExact": "526",
            "yExact": "2867958532462066941/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 526,
            "x": "527",
            "y": "0.21121261582615453",
            "defined": true,
            "xExact": "527",
            "yExact": "2867958532462066941/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 527,
            "x": "528",
            "y": "0.21142102313664324",
            "defined": true,
            "xExact": "528",
            "yExact": "5741576798098742927/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 528,
            "x": "529",
            "y": "0.21147130410256437",
            "defined": true,
            "xExact": "529",
            "yExact": "5742942282112752881/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 529,
            "x": "530",
            "y": "0.21173858543519775",
            "defined": true,
            "xExact": "530",
            "yExact": "2875100430791250356/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 530,
            "x": "531",
            "y": "0.21173858543519775",
            "defined": true,
            "xExact": "531",
            "yExact": "2875100430791250356/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 531,
            "x": "532",
            "y": "0.21197411376177561",
            "defined": true,
            "xExact": "532",
            "yExact": "5756597122252852421/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 532,
            "x": "533",
            "y": "0.21209649379603129",
            "defined": true,
            "xExact": "533",
            "yExact": "5759920606146783451/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 533,
            "x": "534",
            "y": "0.21218185014855506",
            "defined": true,
            "xExact": "534",
            "yExact": "2881119317550641691/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 534,
            "x": "535",
            "y": "0.21254902248932142",
            "defined": true,
            "xExact": "535",
            "yExact": "5772209962272873037/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 535,
            "x": "536",
            "y": "0.21267804728467132",
            "defined": true,
            "xExact": "536",
            "yExact": "5775713898448991777/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 536,
            "x": "537",
            "y": "0.21280771076573127",
            "defined": true,
            "xExact": "537",
            "yExact": "2889617589730746018/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 537,
            "x": "538",
            "y": "0.21309153952510168",
            "defined": true,
            "xExact": "538",
            "yExact": "2893471569328558006/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 538,
            "x": "539",
            "y": "0.21410377136661909",
            "defined": true,
            "xExact": "539",
            "yExact": "5814432395729706237/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 539,
            "x": "540",
            "y": "0.214146768885736",
            "defined": true,
            "xExact": "540",
            "yExact": "2907800041312573481/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 540,
            "x": "541",
            "y": "0.21421359727839415",
            "defined": true,
            "xExact": "541",
            "yExact": "5817414946365033061/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 541,
            "x": "542",
            "y": "0.21448816205783178",
            "defined": true,
            "xExact": "542",
            "yExact": "5824871322953350121/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 542,
            "x": "543",
            "y": "0.21454703607997641",
            "defined": true,
            "xExact": "543",
            "yExact": "5826470169248488907/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 543,
            "x": "544",
            "y": "0.21459731704589755",
            "defined": true,
            "xExact": "544",
            "yExact": "5827835653262498861/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 544,
            "x": "545",
            "y": "0.21516628417405767",
            "defined": true,
            "xExact": "545",
            "yExact": "2921643568408153208/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 545,
            "x": "546",
            "y": "0.21526486557277133",
            "defined": true,
            "xExact": "546",
            "yExact": "5845964319355588637/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 546,
            "x": "547",
            "y": "0.21589337764678537",
            "defined": true,
            "xExact": "547",
            "yExact": "2931516434765356531/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 547,
            "x": "548",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "548",
            "yExact": "2944183164802406491/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 548,
            "x": "549",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "549",
            "yExact": "2944183164802406491/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 549,
            "x": "550",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "550",
            "yExact": "2944183164802406491/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 550,
            "x": "551",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "551",
            "yExact": "2944183164802406491/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 551,
            "x": "552",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "552",
            "yExact": "2944183164802406491/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 552,
            "x": "553",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "553",
            "yExact": "2944183164802406491/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 553,
            "x": "554",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "554",
            "yExact": "2944183164802406491/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 554,
            "x": "555",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "555",
            "yExact": "2944183164802406491/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 555,
            "x": "556",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "556",
            "yExact": "2944183164802406491/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 556,
            "x": "557",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "557",
            "yExact": "2944183164802406491/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 557,
            "x": "558",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "558",
            "yExact": "2944183164802406491/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 558,
            "x": "559",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "559",
            "yExact": "2944183164802406491/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 559,
            "x": "560",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "560",
            "yExact": "2944183164802406491/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 560,
            "x": "561",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "561",
            "yExact": "2944183164802406491/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 561,
            "x": "562",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "562",
            "yExact": "2944183164802406491/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 562,
            "x": "563",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "563",
            "yExact": "2944183164802406491/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 563,
            "x": "564",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "564",
            "yExact": "2944183164802406491/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 564,
            "x": "565",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "565",
            "yExact": "2944183164802406491/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 565,
            "x": "566",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "566",
            "yExact": "2944183164802406491/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 566,
            "x": "567",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "567",
            "yExact": "2944183164802406491/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 567,
            "x": "568",
            "y": "0.21736542162839714",
            "defined": true,
            "xExact": "568",
            "yExact": "2951504639923981051/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 568,
            "x": "569",
            "y": "0.21768033247011381",
            "defined": true,
            "xExact": "569",
            "yExact": "2955780668758402058/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 569,
            "x": "570",
            "y": "0.21769620897314157",
            "defined": true,
            "xExact": "570",
            "yExact": "5911992496916502177/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 570,
            "x": "571",
            "y": "0.21783580735784358",
            "defined": true,
            "xExact": "571",
            "yExact": "2957891790431243718/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 571,
            "x": "572",
            "y": "0.21799128224557335",
            "defined": true,
            "xExact": "572",
            "yExact": "2960002912104085378/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 572,
            "x": "573",
            "y": "0.21799128224557335",
            "defined": true,
            "xExact": "573",
            "yExact": "2960002912104085378/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 573,
            "x": "574",
            "y": "0.21834788099698763",
            "defined": true,
            "xExact": "574",
            "yExact": "2964845001804946946/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 574,
            "x": "575",
            "y": "0.21896712909106886",
            "defined": true,
            "xExact": "575",
            "yExact": "5946506971177711401/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 575,
            "x": "576",
            "y": "0.21896712909106886",
            "defined": true,
            "xExact": "576",
            "yExact": "5946506971177711401/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 576,
            "x": "577",
            "y": "0.21906571048978254",
            "defined": true,
            "xExact": "577",
            "yExact": "2974592076858496811/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 577,
            "x": "578",
            "y": "0.21918214892465254",
            "defined": true,
            "xExact": "578",
            "yExact": "5952346281144711591/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 578,
            "x": "579",
            "y": "0.21973060755981852",
            "defined": true,
            "xExact": "579",
            "yExact": "5967240813995167627/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 579,
            "x": "580",
            "y": "0.22056487548748344",
            "defined": true,
            "xExact": "580",
            "yExact": "2994948545764992663/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 580,
            "x": "581",
            "y": "0.22088243778603794",
            "defined": true,
            "xExact": "581",
            "yExact": "5998521155013743111/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 581,
            "x": "582",
            "y": "0.22109084509652668",
            "defined": true,
            "xExact": "582",
            "yExact": "3002090444094176078/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 582,
            "x": "583",
            "y": "0.22123903653745222",
            "defined": true,
            "xExact": "583",
            "yExact": "6008205334415466247/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 583,
            "x": "584",
            "y": "0.22145405637103591",
            "defined": true,
            "xExact": "584",
            "yExact": "6014044644382466437/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 584,
            "x": "585",
            "y": "0.22185828463153345",
            "defined": true,
            "xExact": "585",
            "yExact": "3012511150991641878/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 585,
            "x": "586",
            "y": "0.22195686603024714",
            "defined": true,
            "xExact": "586",
            "yExact": "6027699484522565977/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 586,
            "x": "587",
            "y": "0.2221784983869258",
            "defined": true,
            "xExact": "587",
            "yExact": "3016859185640978656/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 587,
            "x": "588",
            "y": "0.22271108051906399",
            "defined": true,
            "xExact": "588",
            "yExact": "6048181744732715287/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 588,
            "x": "589",
            "y": "0.2233369411362402",
            "defined": true,
            "xExact": "589",
            "yExact": "6065178289092923941/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 589,
            "x": "590",
            "y": "0.22336671360916716",
            "defined": true,
            "xExact": "590",
            "yExact": "3032993411201791188/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 590,
            "x": "591",
            "y": "0.22359099742268365",
            "defined": true,
            "xExact": "591",
            "yExact": "3036038857488944741/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 591,
            "x": "592",
            "y": "0.22397471719018702",
            "defined": true,
            "xExact": "592",
            "yExact": "3041249210937677641/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 592,
            "x": "593",
            "y": "0.22450068679923027",
            "defined": true,
            "xExact": "593",
            "yExact": "3048391109266861056/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 593,
            "x": "594",
            "y": "0.22458074023807834",
            "defined": true,
            "xExact": "594",
            "yExact": "6098956235858390501/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 594,
            "x": "595",
            "y": "0.22469254668298194",
            "defined": true,
            "xExact": "595",
            "yExact": "3050996285991227506/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 595,
            "x": "596",
            "y": "0.22554269111367464",
            "defined": true,
            "xExact": "596",
            "yExact": "3062540004458485386/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 596,
            "x": "597",
            "y": "0.22560223605952856",
            "defined": true,
            "xExact": "597",
            "yExact": "3063348537769143821/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 597,
            "x": "598",
            "y": "0.22622809667670477",
            "defined": true,
            "xExact": "598",
            "yExact": "3071846809949248148/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 598,
            "x": "599",
            "y": "0.22709411761042522",
            "defined": true,
            "xExact": "599",
            "yExact": "6167212216232710117/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 599,
            "x": "600",
            "y": "0.22769285721151231",
            "defined": true,
            "xExact": "600",
            "yExact": "6183472233097176107/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 600,
            "x": "601",
            "y": "0.22799058194078192",
            "defined": true,
            "xExact": "601",
            "yExact": "6191557566203760457/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 601,
            "x": "602",
            "y": "0.22830814423933643",
            "defined": true,
            "xExact": "602",
            "yExact": "3100090814843759121/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 602,
            "x": "603",
            "y": "0.22839679073440805",
            "defined": true,
            "xExact": "603",
            "yExact": "6202589009293315463/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 603,
            "x": "604",
            "y": "0.2284311951973014",
            "defined": true,
            "xExact": "604",
            "yExact": "3101761666953813678/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 604,
            "x": "605",
            "y": "0.22849339159999316",
            "defined": true,
            "xExact": "605",
            "yExact": "6205212406343859997/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 605,
            "x": "606",
            "y": "0.22926811458180418",
            "defined": true,
            "xExact": "606",
            "yExact": "3113125808628680413/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 606,
            "x": "607",
            "y": "0.22937330850361282",
            "defined": true,
            "xExact": "607",
            "yExact": "3114554188294517096/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 607,
            "x": "608",
            "y": "0.22967499429913957",
            "defined": true,
            "xExact": "608",
            "yExact": "3118650640336546958/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 608,
            "x": "609",
            "y": "0.23005871406664294",
            "defined": true,
            "xExact": "609",
            "yExact": "3123860993785279858/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 609,
            "x": "610",
            "y": "0.23063694517473587",
            "defined": true,
            "xExact": "610",
            "yExact": "6263425053731674187/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 610,
            "x": "611",
            "y": "0.23075338360960587",
            "defined": true,
            "xExact": "611",
            "yExact": "3133293590579696078/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 611,
            "x": "612",
            "y": "0.23087908602440868",
            "defined": true,
            "xExact": "612",
            "yExact": "6270000891194417041/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 612,
            "x": "613",
            "y": "0.23217514662529654",
            "defined": true,
            "xExact": "613",
            "yExact": "3152599053731315621/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 613,
            "x": "614",
            "y": "0.23256614983960414",
            "defined": true,
            "xExact": "614",
            "yExact": "6315816611478666271/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 614,
            "x": "615",
            "y": "0.23276462224645081",
            "defined": true,
            "xExact": "615",
            "yExact": "3160603270859895158/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 615,
            "x": "616",
            "y": "0.23306895949881537",
            "defined": true,
            "xExact": "616",
            "yExact": "6329471451618765811/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 616,
            "x": "617",
            "y": "0.23308483600184315",
            "defined": true,
            "xExact": "617",
            "yExact": "3164951305509231936/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 617,
            "x": "618",
            "y": "0.23317348249691475",
            "defined": true,
            "xExact": "618",
            "yExact": "6332309990624261093/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 618,
            "x": "619",
            "y": "0.23352810071520044",
            "defined": true,
            "xExact": "619",
            "yExact": "3170970192268623271/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 619,
            "x": "620",
            "y": "0.23358764566105436",
            "defined": true,
            "xExact": "620",
            "yExact": "3171778725579281706/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 620,
            "x": "621",
            "y": "0.23465942244842572",
            "defined": true,
            "xExact": "621",
            "yExact": "6372663774852470507/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 621,
            "x": "622",
            "y": "0.23540437295730979",
            "defined": true,
            "xExact": "622",
            "yExact": "6392894452455312901/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 622,
            "x": "623",
            "y": "0.23562600531398842",
            "defined": true,
            "xExact": "623",
            "yExact": "3199456669607352118/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 623,
            "x": "624",
            "y": "0.2359826040654027",
            "defined": true,
            "xExact": "624",
            "yExact": "3204298759308213686/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 624,
            "x": "625",
            "y": "0.23707754080260604",
            "defined": true,
            "xExact": "625",
            "yExact": "6438332798828601757/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 625,
            "x": "626",
            "y": "0.23719663069431388",
            "defined": true,
            "xExact": "626",
            "yExact": "6441566932071235497/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 626,
            "x": "627",
            "y": "0.2379574577062257",
            "defined": true,
            "xExact": "627",
            "yExact": "3231114384536887976/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 627,
            "x": "628",
            "y": "0.23829817995461219",
            "defined": true,
            "xExact": "628",
            "yExact": "6471481789075801027/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 628,
            "x": "629",
            "y": "0.23940369028116765",
            "defined": true,
            "xExact": "629",
            "yExact": "6501504217057841931/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 629,
            "x": "630",
            "y": "0.24034580358747906",
            "defined": true,
            "xExact": "630",
            "yExact": "6527089259739248767/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 630,
            "x": "631",
            "y": "0.24084794232298101",
            "defined": true,
            "xExact": "631",
            "yExact": "6540725879553170223/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 631,
            "x": "632",
            "y": "0.24105436910034117",
            "defined": true,
            "xExact": "632",
            "yExact": "6546331827239041581/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 632,
            "x": "633",
            "y": "0.24106363308027398",
            "defined": true,
            "xExact": "633",
            "yExact": "6546583409846348497/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 633,
            "x": "634",
            "y": "0.24106363308027398",
            "defined": true,
            "xExact": "634",
            "yExact": "6546583409846348497/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 634,
            "x": "635",
            "y": "0.24106363308027398",
            "defined": true,
            "xExact": "635",
            "yExact": "6546583409846348497/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 635,
            "x": "636",
            "y": "0.24106363308027398",
            "defined": true,
            "xExact": "636",
            "yExact": "6546583409846348497/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 636,
            "x": "637",
            "y": "0.24106363308027398",
            "defined": true,
            "xExact": "637",
            "yExact": "6546583409846348497/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 637,
            "x": "638",
            "y": "0.24350887245054342",
            "defined": true,
            "xExact": "638",
            "yExact": "6612988961318222411/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 638,
            "x": "639",
            "y": "0.24371660883732288",
            "defined": true,
            "xExact": "639",
            "yExact": "3309315237083326686/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 639,
            "x": "640",
            "y": "0.2439680136669285",
            "defined": true,
            "xExact": "640",
            "yExact": "3312728947118351571/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 640,
            "x": "641",
            "y": "0.24405071856261443",
            "defined": true,
            "xExact": "641",
            "yExact": "3313851958688143651/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 641,
            "x": "642",
            "y": "0.24518204029583968",
            "defined": true,
            "xExact": "642",
            "yExact": "6658427307691511267/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 642,
            "x": "643",
            "y": "0.24518204029583968",
            "defined": true,
            "xExact": "643",
            "yExact": "6658427307691511267/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 643,
            "x": "644",
            "y": "0.24532825120363666",
            "defined": true,
            "xExact": "644",
            "yExact": "6662397968429887671/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 644,
            "x": "645",
            "y": "0.24641590449403578",
            "defined": true,
            "xExact": "645",
            "yExact": "6691935451523492827/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 645,
            "x": "646",
            "y": "0.24757434724335017",
            "defined": true,
            "xExact": "646",
            "yExact": "3361697684667229728/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 646,
            "x": "647",
            "y": "0.24870832043341329",
            "defined": true,
            "xExact": "647",
            "yExact": "3377095382732299596/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 647,
            "x": "648",
            "y": "0.24955185234101102",
            "defined": true,
            "xExact": "648",
            "yExact": "6777098625606723807/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 648,
            "x": "649",
            "y": "0.25020087290801923",
            "defined": true,
            "xExact": "649",
            "yExact": "6794724126485199751/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 649,
            "x": "650",
            "y": "0.25021409795420912",
            "defined": true,
            "xExact": "650",
            "yExact": "6795083280069982041/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 650,
            "x": "651",
            "y": "0.25116282378361554",
            "defined": true,
            "xExact": "651",
            "yExact": "3410423949771890011/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 651,
            "x": "652",
            "y": "0.2525362863665136",
            "defined": true,
            "xExact": "652",
            "yExact": "6858147127321746841/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 652,
            "x": "653",
            "y": "0.25273079770710316",
            "defined": true,
            "xExact": "653",
            "yExact": "3431714743292697756/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 653,
            "x": "654",
            "y": "0.25361071461072282",
            "defined": true,
            "xExact": "654",
            "yExact": "6887325456830569707/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 654,
            "x": "655",
            "y": "0.25364444814990689",
            "defined": true,
            "xExact": "655",
            "yExact": "3444120780559351758/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 655,
            "x": "656",
            "y": "0.25641255273240648",
            "defined": true,
            "xExact": "656",
            "yExact": "6963415187704166757/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 656,
            "x": "657",
            "y": "0.25986341142109842",
            "defined": true,
            "xExact": "657",
            "yExact": "7057130419456239751/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 657,
            "x": "658",
            "y": "0.26266524954278214",
            "defined": true,
            "xExact": "658",
            "yExact": "7133220150329836801/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 658,
            "x": "659",
            "y": "0.26363713532202049",
            "defined": true,
            "xExact": "659",
            "yExact": "3579806863160951036/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 659,
            "x": "660",
            "y": "0.2636410963882776",
            "defined": true,
            "xExact": "660",
            "yExact": "3579860648649688723/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 660,
            "x": "661",
            "y": "0.26941944640294968",
            "defined": true,
            "xExact": "661",
            "yExact": "3658322193966523391/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 661,
            "x": "662",
            "y": "0.26970723622857723",
            "defined": true,
            "xExact": "662",
            "yExact": "3662229959053073066/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 662,
            "x": "663",
            "y": "0.27231060194341428",
            "defined": true,
            "xExact": "663",
            "yExact": "7395159718738619137/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 663,
            "x": "664",
            "y": "0.2732202913199609",
            "defined": true,
            "xExact": "664",
            "yExact": "7419864222294451767/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 664,
            "x": "665",
            "y": "0.27407704827374851",
            "defined": true,
            "xExact": "665",
            "yExact": "3721565618010679336/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 665,
            "x": "666",
            "y": "0.29365685251005963",
            "defined": true,
            "xExact": "666",
            "yExact": "7974861468174582297/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 666,
            "x": "667",
            "y": "0.29654800805052423",
            "defined": true,
            "xExact": "667",
            "yExact": "4026688399490077326/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 667,
            "x": "668",
            "y": "0.29802666455523097",
            "defined": true,
            "xExact": "668",
            "yExact": "8093532786089794837/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 668,
            "x": "669",
            "y": "0.62819595285916274",
            "defined": true,
            "xExact": "669",
            "yExact": "8529982624444521691/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 669,
            "x": "670",
            "y": "0.64662127541241654",
            "defined": true,
            "xExact": "670",
            "yExact": "8780171567104387876/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 670,
            "x": "671",
            "y": "0.65243335896627264",
            "defined": true,
            "xExact": "671",
            "yExact": "17718182329130578897/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 671,
            "x": "672",
            "y": "0.65928744683457319",
            "defined": true,
            "xExact": "672",
            "yExact": "8952159657217815351/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 672,
            "x": "673",
            "y": "0.67189407331087592",
            "defined": true,
            "xExact": "673",
            "yExact": "9123339214020584391/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 673,
            "x": "674",
            "y": "0.67667076507338264",
            "defined": true,
            "xExact": "674",
            "yExact": "9188199704686057206/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 674,
            "x": "675",
            "y": "0.6808553297578972",
            "defined": true,
            "xExact": "675",
            "yExact": "18490039950630985197/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 675,
            "x": "676",
            "y": "0.68578749640813375",
            "defined": true,
            "xExact": "676",
            "yExact": "18623983175307614147/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 676,
            "x": "677",
            "y": "0.68590658629984158",
            "defined": true,
            "xExact": "677",
            "yExact": "18627217308550247887/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 677,
            "x": "678",
            "y": "0.68902598672007975",
            "defined": true,
            "xExact": "678",
            "yExact": "9355965551453801361/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 678,
            "x": "679",
            "y": "0.69289298910603991",
            "defined": true,
            "xExact": "679",
            "yExact": "9408473790341357861/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 679,
            "x": "680",
            "y": "0.69741827603894102",
            "defined": true,
            "xExact": "680",
            "yExact": "9469920570971805791/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 680,
            "x": "681",
            "y": "0.70229089774332354",
            "defined": true,
            "xExact": "681",
            "yExact": "9536083649999461831/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 681,
            "x": "682",
            "y": "0.73849980572962726",
            "defined": true,
            "xExact": "682",
            "yExact": "20055495366878481687/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 682,
            "x": "683",
            "y": "0.74130164385131092",
            "defined": true,
            "xExact": "683",
            "yExact": "20131585097752078737/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 683,
            "x": "684",
            "y": "0.7418434899633819",
            "defined": true,
            "xExact": "684",
            "yExact": "10073150026905071814/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 684,
            "x": "685",
            "y": "0.74617426555569355",
            "defined": true,
            "xExact": "685",
            "yExact": "20263911255807390817/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 685,
            "x": "686",
            "y": "0.74935586237862351",
            "defined": true,
            "xExact": "686",
            "yExact": "20350314122600978293/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 686,
            "x": "687",
            "y": "0.75069955248859466",
            "defined": true,
            "xExact": "687",
            "yExact": "20386804817068286677/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 687,
            "x": "688",
            "y": "0.75095095731820027",
            "defined": true,
            "xExact": "688",
            "yExact": "20393632237138336447/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 688,
            "x": "689",
            "y": "0.75184013820175266",
            "defined": true,
            "xExact": "689",
            "yExact": "10208889894995408779/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 689,
            "x": "690",
            "y": "0.75563437059566896",
            "defined": true,
            "xExact": "690",
            "yExact": "10260410023779915699/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 690,
            "x": "691",
            "y": "0.75739420440290828",
            "defined": true,
            "xExact": "691",
            "yExact": "10284305994025089894/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 691,
            "x": "692",
            "y": "0.75791023910830935",
            "defined": true,
            "xExact": "692",
            "yExact": "10291312990887530809/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 692,
            "x": "693",
            "y": "0.75893636691972599",
            "defined": true,
            "xExact": "693",
            "yExact": "20610492612758612217/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 693,
            "x": "694",
            "y": "0.75893636691972599",
            "defined": true,
            "xExact": "694",
            "yExact": "20610492612758612217/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 694,
            "x": "695",
            "y": "0.75904223176524399",
            "defined": true,
            "xExact": "695",
            "yExact": "20613367592416463667/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 695,
            "x": "696",
            "y": "0.76182752246019059",
            "defined": true,
            "xExact": "696",
            "yExact": "10344503971782092286/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 696,
            "x": "697",
            "y": "0.76228005115348074",
            "defined": true,
            "xExact": "697",
            "yExact": "10350648649845137079/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 697,
            "x": "698",
            "y": "0.76228005115348074",
            "defined": true,
            "xExact": "698",
            "yExact": "10350648649845137079/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 698,
            "x": "699",
            "y": "0.76512820917482838",
            "defined": true,
            "xExact": "699",
            "yExact": "10389322471800202894/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 699,
            "x": "700",
            "y": "0.7660808960704919",
            "defined": true,
            "xExact": "700",
            "yExact": "20804517134051679143/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 700,
            "x": "701",
            "y": "0.76648777578782734",
            "defined": true,
            "xExact": "701",
            "yExact": "20815566797467412233/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 701,
            "x": "702",
            "y": "0.77121220605128438",
            "defined": true,
            "xExact": "702",
            "yExact": "10471934254647805111/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 702,
            "x": "703",
            "y": "0.77183343467849419",
            "defined": true,
            "xExact": "703",
            "yExact": "10480369631176082709/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 703,
            "x": "704",
            "y": "0.77232301929151548",
            "defined": true,
            "xExact": "704",
            "yExact": "10487017474453741334/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 704,
            "x": "705",
            "y": "0.77359326848573351",
            "defined": true,
            "xExact": "705",
            "yExact": "10504265601421256904/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 705,
            "x": "706",
            "y": "0.77472459021895868",
            "defined": true,
            "xExact": "706",
            "yExact": "21039254593157737773/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 706,
            "x": "707",
            "y": "0.77493695859570455",
            "defined": true,
            "xExact": "707",
            "yExact": "10522510948654911096/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 707,
            "x": "708",
            "y": "0.77518836342531017",
            "defined": true,
            "xExact": "708",
            "yExact": "10525924658689935981/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 708,
            "x": "709",
            "y": "0.77667695483365906",
            "defined": true,
            "xExact": "709",
            "yExact": "21092275107422997147/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 709,
            "x": "710",
            "y": "0.77720225351899297",
            "defined": true,
            "xExact": "710",
            "yExact": "21106540683755185893/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 710,
            "x": "711",
            "y": "0.77761574575942327",
            "defined": true,
            "xExact": "711",
            "yExact": "10558884961981655064/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 711,
            "x": "712",
            "y": "0.77853204765906492",
            "defined": true,
            "xExact": "712",
            "yExact": "21142654004311533903/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 712,
            "x": "713",
            "y": "0.78104676687883035",
            "defined": true,
            "xExact": "713",
            "yExact": "21210946425338209687/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 713,
            "x": "714",
            "y": "0.78126111578870472",
            "defined": true,
            "xExact": "714",
            "yExact": "21216767514979031793/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 714,
            "x": "715",
            "y": "0.78276293224324345",
            "defined": true,
            "xExact": "715",
            "yExact": "10628776229303469634/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 715,
            "x": "716",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "716",
            "yExact": "10634354846500073866/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 716,
            "x": "717",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "717",
            "yExact": "10634354846500073866/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 717,
            "x": "718",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "718",
            "yExact": "10634354846500073866/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 718,
            "x": "719",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "719",
            "yExact": "10634354846500073866/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 719,
            "x": "720",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "720",
            "yExact": "10634354846500073866/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 720,
            "x": "721",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "721",
            "yExact": "10634354846500073866/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 721,
            "x": "722",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "722",
            "yExact": "10634354846500073866/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 722,
            "x": "723",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "723",
            "yExact": "10634354846500073866/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 723,
            "x": "724",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "724",
            "yExact": "10634354846500073866/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 724,
            "x": "725",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "725",
            "yExact": "10634354846500073866/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 725,
            "x": "726",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "726",
            "yExact": "10634354846500073866/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 726,
            "x": "727",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "727",
            "yExact": "10634354846500073866/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 727,
            "x": "728",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "728",
            "yExact": "10634354846500073866/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 728,
            "x": "729",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "729",
            "yExact": "10634354846500073866/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 729,
            "x": "730",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "730",
            "yExact": "10634354846500073866/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 730,
            "x": "731",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "731",
            "yExact": "10634354846500073866/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 731,
            "x": "732",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "732",
            "yExact": "10634354846500073866/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 732,
            "x": "733",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "733",
            "yExact": "10634354846500073866/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 733,
            "x": "734",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "734",
            "yExact": "10634354846500073866/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 734,
            "x": "735",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "735",
            "yExact": "10634354846500073866/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 735,
            "x": "736",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "736",
            "yExact": "10634354846500073866/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 736,
            "x": "737",
            "y": "0.78337489689052053",
            "defined": true,
            "xExact": "737",
            "yExact": "10637085814528093774/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 737,
            "x": "738",
            "y": "0.7838049365576879",
            "defined": true,
            "xExact": "738",
            "yExact": "10642925124495093964/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 738,
            "x": "739",
            "y": "0.7849137692647904",
            "defined": true,
            "xExact": "739",
            "yExact": "21315962903113322687/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 739,
            "x": "740",
            "y": "0.78606492856730059",
            "defined": true,
            "xExact": "740",
            "yExact": "21347225023805720087/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 740,
            "x": "741",
            "y": "0.78619989496203624",
            "defined": true,
            "xExact": "741",
            "yExact": "10675445158224025944/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 741,
            "x": "742",
            "y": "0.78651745726059075",
            "defined": true,
            "xExact": "742",
            "yExact": "21359514379931809673/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 742,
            "x": "743",
            "y": "0.78815225957673651",
            "defined": true,
            "xExact": "743",
            "yExact": "10701955415356655631/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 743,
            "x": "744",
            "y": "0.79070930539190953",
            "defined": true,
            "xExact": "744",
            "yExact": "21473352718309249687/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 744,
            "x": "745",
            "y": "0.79099974667437489",
            "defined": true,
            "xExact": "745",
            "yExact": "10740620127148632404/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 745,
            "x": "746",
            "y": "0.79099974667437489",
            "defined": true,
            "xExact": "746",
            "yExact": "10740620127148632404/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 746,
            "x": "747",
            "y": "0.79280257800073106",
            "defined": true,
            "xExact": "747",
            "yExact": "21530199881683053923/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 747,
            "x": "748",
            "y": "0.79320284519497153",
            "defined": true,
            "xExact": "748",
            "yExact": "10770534984153197934/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 748,
            "x": "749",
            "y": "0.79320284519497153",
            "defined": true,
            "xExact": "749",
            "yExact": "10770534984153197934/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 749,
            "x": "750",
            "y": "0.79418530456356196",
            "defined": true,
            "xExact": "750",
            "yExact": "10783875346034163829/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 750,
            "x": "751",
            "y": "0.79423823698632101",
            "defined": true,
            "xExact": "751",
            "yExact": "21569188181897253383/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 751,
            "x": "752",
            "y": "0.79431167790207413",
            "defined": true,
            "xExact": "752",
            "yExact": "21571182622429530627/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 752,
            "x": "753",
            "y": "0.79483697658740804",
            "defined": true,
            "xExact": "753",
            "yExact": "21585448198761719373/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 753,
            "x": "754",
            "y": "0.79504008098422108",
            "defined": true,
            "xExact": "754",
            "yExact": "10795481960153248438/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 754,
            "x": "755",
            "y": "0.79581943595599847",
            "defined": true,
            "xExact": "755",
            "yExact": "21612128922523651163/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 755,
            "x": "756",
            "y": "0.79656042539862548",
            "defined": true,
            "xExact": "756",
            "yExact": "21632252029149018183/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 756,
            "x": "757",
            "y": "0.79745356734843498",
            "defined": true,
            "xExact": "757",
            "yExact": "10828253576489487334/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 757,
            "x": "758",
            "y": "0.79761367422613116",
            "defined": true,
            "xExact": "758",
            "yExact": "10830427593814155723/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 758,
            "x": "759",
            "y": "0.7978306745928434",
            "defined": true,
            "xExact": "759",
            "yExact": "21666748283084049323/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 759,
            "x": "760",
            "y": "0.79896199632606868",
            "defined": true,
            "xExact": "760",
            "yExact": "10848735836699636644/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 760,
            "x": "761",
            "y": "0.79896199632606868",
            "defined": true,
            "xExact": "761",
            "yExact": "10848735836699636644/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 761,
            "x": "762",
            "y": "0.79901492874882762",
            "defined": true,
            "xExact": "762",
            "yExact": "21698909163228199013/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 762,
            "x": "763",
            "y": "0.80091436094076895",
            "defined": true,
            "xExact": "763",
            "yExact": "10875246093832266331/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 763,
            "x": "764",
            "y": "0.80185315186653328",
            "defined": true,
            "xExact": "764",
            "yExact": "21775987004204845643/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 764,
            "x": "765",
            "y": "0.80380551648123355",
            "defined": true,
            "xExact": "765",
            "yExact": "21829007518470105017/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 765,
            "x": "766",
            "y": "0.80433081516656757",
            "defined": true,
            "xExact": "766",
            "yExact": "21843273094802293763/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 766,
            "x": "767",
            "y": "0.80517169561732749",
            "defined": true,
            "xExact": "767",
            "yExact": "21866108949129502607/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 767,
            "x": "768",
            "y": "0.80521536406015359",
            "defined": true,
            "xExact": "768",
            "yExact": "10933647428175560708/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 768,
            "x": "769",
            "y": "0.80549852189581472",
            "defined": true,
            "xExact": "769",
            "yExact": "10937492297610283654/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 769,
            "x": "770",
            "y": "0.80751704397946389",
            "defined": true,
            "xExact": "770",
            "yExact": "21929801752899534697/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 770,
            "x": "771",
            "y": "0.80939992874466815",
            "defined": true,
            "xExact": "771",
            "yExact": "21980935397609992201/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 771,
            "x": "772",
            "y": "0.80989149389081805",
            "defined": true,
            "xExact": "772",
            "yExact": "10997142434827023569/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 772,
            "x": "773",
            "y": "0.81288982388621989",
            "defined": true,
            "xExact": "773",
            "yExact": "11037855372640015273/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 773,
            "x": "774",
            "y": "0.81291496436918043",
            "defined": true,
            "xExact": "774",
            "yExact": "22076393487287035523/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 774,
            "x": "775",
            "y": "0.81580611990964502",
            "defined": true,
            "xExact": "775",
            "yExact": "11077454409046303939/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 775,
            "x": "776",
            "y": "0.81716635744635313",
            "defined": true,
            "xExact": "776",
            "yExact": "22191848892285792407/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 776,
            "x": "777",
            "y": "0.81744025130208153",
            "defined": true,
            "xExact": "777",
            "yExact": "22199287048547931383/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 777,
            "x": "778",
            "y": "0.81766651564872661",
            "defined": true,
            "xExact": "778",
            "yExact": "11102715863305488088/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 778,
            "x": "779",
            "y": "0.81854908400918402",
            "defined": true,
            "xExact": "779",
            "yExact": "11114699851335533071/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 779,
            "x": "780",
            "y": "0.82226061150741436",
            "defined": true,
            "xExact": "780",
            "yExact": "11165096968550247911/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 780,
            "x": "781",
            "y": "0.82463506141876852",
            "defined": true,
            "xExact": "781",
            "yExact": "22394677053855008263/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 781,
            "x": "782",
            "y": "0.82628308878110424",
            "defined": true,
            "xExact": "782",
            "yExact": "11219716329110646071/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 782,
            "x": "783",
            "y": "0.83268995086979036",
            "defined": true,
            "xExact": "783",
            "yExact": "22613424299030085903/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 783,
            "x": "784",
            "y": "0.83282622687394525",
            "defined": true,
            "xExact": "784",
            "yExact": "22617125156834977307/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 784,
            "x": "785",
            "y": "0.84761876575839756",
            "defined": true,
            "xExact": "785",
            "yExact": "23018847259887388783/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 785,
            "x": "786",
            "y": "0.85447285362669811",
            "defined": true,
            "xExact": "786",
            "yExact": "11602492122596220294/13578538011302480357"
          },
          {
            "series": "all calibration scores",
            "index": 786,
            "x": "787",
            "y": "0.86273944053075646",
            "defined": true,
            "xExact": "787",
            "yExact": "23429480574193424563/27157076022604960714"
          },
          {
            "series": "all calibration scores",
            "index": 787,
            "x": "788",
            "y": "0.87896166456341362",
            "defined": true,
            "xExact": "788",
            "yExact": "23870028745504025873/27157076022604960714"
          }
        ],
        "plotFile": "ml20-code/python-realdata-company-result/plot.svg",
        "fullResultFile": "ml20-code/python-realdata-company-result/full.json",
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      }
    },
    "r": {
      "country": {
        "api": "realdata",
        "variant": "country",
        "language": "r",
        "title": "Country growth: factual calibration and intervals",
        "input": {
          "kind": "country"
        },
        "expectedFailure": false,
        "codeFile": "ml20-code/realdata-country.R",
        "codeSHA256": "6425bf28afc643b9eaf7215d97e82517f90d67ce21b422da1184a220123d6c4e",
        "code": "# ML20 complete standalone numerical fixed examples, no browser/model/results.\n# Base-R QR1e-12/membership1e-12; tiny log loss uses log-domain normalized\n# weights to avoid early underflow. This is an approximate counterpart, not\n# a general exact-rational numeric-token validator. Fixed alpha uses small fractions.\noptions(digits=17)\nfixedSource<-function(kind){\n src<-file.path(dirname(sub(\"^--file=\",\"\",grep(\"^--file=\",commandArgs(),value=TRUE)[1])),\"data\")\nreadnative<-function(n)read.csv(file.path(src,n),check.names=FALSE,colClasses='character',na.strings=NULL,stringsAsFactors=FALSE)\nnum<-function(x){a<-suppressWarnings(as.numeric(x));a[x%in%c('','.')] <- NA_real_;a}\nroles<-function(d){n<-nrow(d);rank<-as.integer(d$splitRank);if(!identical(sort(rank),0:(n-1)))stop('splitRank permutation');planned<-c('test','calibration','train','train')[rank%%4+1];if(any(planned!=d$plannedRole))stop('planned roles');list(rank=rank,planned=planned)}\noriginal<-readnative('actual48-country-revised-original-2023-2024.csv');derived<-readnative('derived16-country-features-and-roles.csv');isos<-sort(unique(original$countryISO3));lookup<-function(iso,code,year){r<-original[original$countryISO3==iso&original$indicatorID==code&original$date==year,,drop=FALSE];if(nrow(r)!=1)stop('country identity');num(r$originalValueToken)}\ncr<-roles(derived);if(!identical(isos,derived$countryISO3))stop('country order');country<-list(id=paste0(isos,':2024'),sourceRow=isos,x=cbind(vapply(isos,lookup,numeric(1),code='NY.GDP.PCAP.KD',year='2023')/10000,vapply(isos,lookup,numeric(1),code='FP.CPI.TOTL.ZG',year='2023')/10),y=vapply(isos,lookup,numeric(1),code='NY.GDP.MKTP.KD.ZG',year='2024'),rank=cr$rank,planned=cr$planned,names=c('g','pi'),unit='annual GDP growth percentage points')\npd<-readnative('actual3613-NLS-original52-fields-and-conformal-frame.csv');pr<-roles(pd);person<-list(id=paste0('person-row:',pd$sourceRow),sourceRow=pd$sourceRow,x=cbind(num(pd$ed76),num(pd$age76)),y=num(pd$lwage76),rank=pr$rank,planned=pr$planned,names=c('ed76','age76'),unit='native trimmed1976log hourly wage')\ncd<-readnative('actual3150-churn-original14-fields-and-conformal-frame.csv');rr<-roles(cd);company<-list(id=paste0('customer-row:',cd$sourceRow),sourceRow=cd$sourceRow,x=cbind(num(cd[['Call  Failure']]),num(cd[['Seconds of Use']])),y=num(cd$Churn),rank=rr$rank,planned=rr$planned,names=c('CallFailure','SecondsUse'),unit='native Churn0/1')\nmodels<-list(country=country,person=person,company=company)\n\nmodels<-models[kind]\nalphaToken<-\"1/5\";ridgeToken<-\"1/100\"\nqnum<-function(s){v<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(v)==2)as.numeric(v[1])/as.numeric(v[2])else as.numeric(v)}\nalphaParts<-function(s){v<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(v)==2&&all(grepl('^[0-9]+$',v))){a<-as.numeric(v[1]);b<-as.numeric(v[2])}else if(grepl('^[0-9]+([.][0-9]{1,6})?$',s)){n<-if(grepl('.',s,fixed=TRUE))nchar(sub('^[^.]*[.]','',s))else 0;a<-as.numeric(gsub('.','',s,fixed=TRUE));b<-10^n}else stop('Base-R alpha needs small integer fraction or <=6decimal places');if(a<=0||a>=b||b>1e6)stop('Require0<alpha<1 with denominator<=1e6');c(a,b)}\nap<-alphaParts(alphaToken);alpha<-ap[1]/ap[2];lambda<-qnum(ridgeToken);if(!is.finite(lambda)||lambda<0)stop('nonnegative finite ridge required')\nnamesOut<-c('study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins');outputs<-setNames(lapply(namesOut,function(n)list()),namesOut)\nemit<-function(name,row)outputs[[name]][[length(outputs[[name]])+1L]]<<-row\nmetric<-function(kind,name,value,unit,arithmetic='binary64 approximation'){emit('study-metrics',list(kind=kind,metric=name,value=if(is.null(value))NA else value,unit=unit,defined=as.integer(!is.null(value)&&!is.na(value)),arithmetic=arithmetic))}\nfor(kind in names(models)){\n m<-models[[kind]];complete<-rowSums(is.na(m$x))==0&!is.na(m$y);role<-ifelse(complete,m$planned,'excluded');train<-which(role=='train');n<-length(train);stopifnot(n>0);meanX<-colMeans(m$x[train,,drop=FALSE]);scale<-apply(m$x[train,,drop=FALSE],2,function(x)diff(range(x)));scale[scale==0]<-1;Z<-cbind(1,sweep(sweep(m$x,2,meanX,'-'),2,scale,'/'));H<-crossprod(Z[train,,drop=FALSE])/n+diag(c(0,lambda,lambda));b<-as.vector(crossprod(Z[train,,drop=FALSE],m$y[train]))/n;qrfit<-qr(H,tol=1e-12,LAPACK=FALSE);theta<-qr.coef(qrfit,b);theta[is.na(theta)]<-0;minimum<-as.numeric(crossprod(theta,H%*%theta)/2-sum(theta*b)+sum(m$y[train]^2)/(2*n));beta<-theta[-1]/scale;intercept<-theta[1]-sum(beta*meanX);raw<-as.vector(Z%*%theta);pred<-if(kind=='company')pmax(0,pmin(1,raw))else raw;defined<-!is.na(pred);group<-if(kind=='person')ifelse(m$x[,1]<=12,'schooling-at-most12','schooling-over12')else if(kind=='company')ifelse(m$x[,1]==0,'zero-call-failures','positive-call-failures')else ifelse(m$x[,1]<=meanX[1],'GDPpc-at-most-training-mean','GDPpc-above-training-mean');group[is.na(raw)]<-'missing-X';cal<-which(role=='calibration'&defined&!is.na(m$y));score<-if(kind=='company')ifelse(m$y[cal]==1,1-pred[cal],pred[cal])else abs(m$y[cal]-pred[cal]);ordered<-order(score,seq_along(score));k<-ceiling((length(cal)+1)*(ap[2]-ap[1])/ap[2]);threshold<-if(k<=length(cal))score[ordered[k]]else Inf;unbounded<-is.infinite(threshold)\n for(j in seq_along(ordered)){slot<-ordered[j];i<-cal[slot];emit('calibration-scores',list(kind=kind,rank=j,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,calibrationIndex0=slot-1,score=score[slot],threshold=threshold,thresholdInfinite=as.integer(unbounded)))}\n for(j in 1:2)emit('training-coefficients',list(kind=kind,feature=m$names[j],mean=meanX[j],scale=scale[j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[1],nativeIntercept=intercept,rank=qrfit$rank,unique=as.integer(qrfit$rank==3),lambdaValue=lambda,minimumObjective=minimum))\n metrics<-list(sourceRows=length(role),trainingRows=n,calibrationScores=length(cal),testLabeledRows=sum(role=='test'&!is.na(m$y)),excludedRows=sum(role=='excluded'),alpha=alpha,ridge=lambda,quantileRank=k,threshold=threshold,minimumObjective=minimum);units<-c('rows','rows','unit-count scores','rows','rows','probability','transformed slope penalty','one-based rank',if(kind=='company')'dimensionless score'else m$unit,paste0('(',m$unit,') squared'))\n for(j in seq_along(metrics))metric(kind,names(metrics)[j],metrics[[j]],units[j],if(is.infinite(metrics[[j]]))'mathematical infinity'else if(j%in%c(1:5,8))'integer count'else'binary64 approximation')\n labeled<-defined&!is.na(m$y);covered<-rep(NA_integer_,length(role));lo<-hi<-width<-rep(NA_real_,length(role));setSize<-rep(NA_integer_,length(role));setLabels<-rep('',length(role))\n if(kind=='company'){\n  zero<-defined&(unbounded|pred<=threshold+1e-12);one<-defined&(unbounded|1-pred<=threshold+1e-12);setSize[defined]<-as.integer(zero[defined])+as.integer(one[defined]);setLabels[zero&!one]<-'0';setLabels[!zero&one]<-'1';setLabels[zero&one]<-'0|1';covered[labeled]<-as.integer((m$y[labeled]==0&zero[labeled])|(m$y[labeled]==1&one[labeled]))\n }else{lo[defined]<-pred[defined]-threshold;hi[defined]<-pred[defined]+threshold;width[defined]<-2*threshold;tol<-1e-12*pmax(1,abs(m$y[labeled]),abs(pred[labeled]),if(is.finite(threshold))abs(threshold)else 1);covered[labeled]<-as.integer(unbounded|abs(m$y[labeled]-pred[labeled])<=threshold+tol)}\n for(i in seq_along(role)){\n  emit('row-predictions',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,plannedRole=m$planned[i],role=role[i],group=group[i],actualY=m$y[i],rawLinear=raw[i],prediction=pred[i],predictionDefined=as.integer(defined[i]),threshold=threshold,thresholdInfinite=as.integer(unbounded),lower=lo[i],upper=hi[i],width=width[i],setLabels=setLabels[i],setSize=setSize[i],covered=covered[i],labeledPrediction=as.integer(labeled[i])))\n  emit('eligibility',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],plannedRole=m$planned[i],role=role[i],requiredComplete=as.integer(complete[i]),trainingUsed=as.integer(role[i]=='train'&complete[i]),reason=if(complete[i])''else'missing-required-field'))\n }\n for(rol in unique(role))for(gr in c('all',unique(group))){use<-which(role==rol&(gr=='all'|group==gr));def<-use[defined[use]];scored<-use[labeled[use]&!role[use]%in%c('excluded','unused')];nn<-length(def);ns<-length(scored);cv<-sum(covered[scored]);ub<-if(kind=='company')0 else sum(is.infinite(width[def]));emit('role-group-coverage',list(kind=kind,role=rol,group=gr,originalRows=length(use),definedPredictions=nn,scoredLabels=ns,coveredRows=cv,coverage=if(ns)cv/ns else NA_real_,meanSetSize=if(kind=='company'&&nn)mean(setSize[def])else NA_real_,meanIntervalWidth=if(kind!='company'&&nn)mean(width[def])else NA_real_,unboundedIntervals=ub))}\n if(kind=='company')for(rol in c('train','calibration','test')){\n  ix<-which(role==rol&labeled);pp<-pred[ix];yy<-m$y[ix];N<-length(ix);bin<-pmin(4,floor(pp*5));yb<-if(N)mean(yy)else NA_real_;ece<-rel<-res<-vp<-cp<-0\n  for(j in 0:4){take<-which(bin==j);nb<-length(take);pm<-if(nb)mean(pp[take])else NA_real_;ym<-if(nb)mean(yy[take])else NA_real_;v<-if(nb)mean((pp[take]-pm)^2)else NA_real_;co<-if(nb)mean((pp[take]-pm)*(yy[take]-ym))else NA_real_;emit('reliability-bins',list(kind=kind,role=rol,bin=j,lower=j/5,upper=(j+1)/5,rightClosed=as.integer(j==4),rows=nb,meanP=pm,frequencyY1=ym,gap=pm-ym,withinVarianceP=v,withinCovariancePY=co));if(nb){z<-nb/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*co}}\n  mm<-list(ECE=if(N)ece else NA_real_,Brier=if(N)mean((pp-yy)^2)else NA_real_,uncertainty=yb*(1-yb),resolution=if(N)res else NA_real_,reliability=if(N)rel else NA_real_,withinVarianceP=if(N)vp else NA_real_,withinCovariancePY=if(N)cp else NA_real_);for(name in names(mm))metric(kind,paste0(rol,':',name),mm[[name]],if(name=='ECE')'dimensionless'else'squared probability');prob<-ifelse(yy==1,pp,1-pp);ll<-if(!N)NA_real_ else if(any(prob==0))Inf else-mean(log(prob));metric(kind,paste0(rol,':meanLogLoss'),ll,'nats','binary64 approximation or genuine infinity')\n }\n}\n\noutputs\n}\n\n# New fixed-example numerical adapters. Not arbitrary exact-input validators.\nnum20<-function(v){s<-as.character(v);a<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(a)==2)as.numeric(a[1])/as.numeric(a[2])else as.numeric(s)}\nalpha20<-function(s){a<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(a)==2){n<-as.numeric(a[1]);d<-as.numeric(a[2])}else{n<-as.numeric(a[1]);d<-1};if(n<=0||n>=d)stop('alpha-must-be-strictly-between-zero-and-one');c(n,d)}\nquantile20<-function(scores,alpha){ap<-alpha20(alpha);keep<-which(!vapply(scores,is.null,logical(1)));vv<-vapply(scores[keep],num20,numeric(1));ix<-order(vv,keep);n<-length(vv);k<-((n+1)*(ap[2]-ap[1])+ap[2]-1)%/%ap[2];list(n=n,k=k,threshold=if(k>n)NULL else vv[ix[k]],infinite=k>n,ordered=lapply(ix,function(j)list(score=vv[j],index=keep[j]-1)))}\nlogPositive20<-function(v){s<-tolower(as.character(v));part<-strsplit(s,'e',fixed=TRUE)[[1]];mantissa<-as.numeric(part[1]);power<-if(length(part)==2)as.numeric(part[2])else 0;if(mantissa<=0)stop('fixed positive weight required');log(mantissa)+power*log(10)}\nscore20<-function(rows){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));lw<-vapply(rows,function(r)logPositive20(if(is.null(r$weight))1 else r$weight),numeric(1));mx<-max(lw);lm<-mx+log(sum(exp(lw-mx)));mass<-exp(lm);w<-exp(lw-lm);observed<-ifelse(y==1,p,1-p);genuine<-any(observed==0);loss<-ifelse(observed==1,0,-log(observed));terms<-lw-lm+log(loss);finite<-terms[is.finite(terms)];ll<-if(genuine)'+infinity'else if(length(finite)){top<-max(finite);exp(top+log(sum(exp(finite-top))))}else 0;bs<-sum(w*(p-y)^2);list(rows=lapply(seq_along(rows),function(i)list(p=p[i],y=y[i],w=w[i])),mass=mass,Brier=bs,meanLogLoss=ll,genuineInfinite=genuine,BrierPositive=any(p!=y))}\ncalibration20<-function(rows,B){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));N<-length(p);bin<-pmin(B-1,floor(p*B));yb<-mean(y);ece<-rel<-res<-vp<-cp<-0;out<-list()\n for(j in 0:(B-1)){ix<-which(bin==j);n<-length(ix);pm<-if(n)mean(p[ix])else NULL;ym<-if(n)mean(y[ix])else NULL;v<-if(n)mean((p[ix]-pm)^2)else NULL;c<-if(n)mean((p[ix]-pm)*(y[ix]-ym))else NULL;out[[j+1]]<-list(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c);if(n){z<-n/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*c}}\n list(rows=N,bins=out,Brier=mean((p-y)^2),ECE=ece,uncertainty=yb*(1-yb),resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=yb*(1-yb)-res+rel+vp-2*cp)}\npredict20<-function(a){q<-quantile20(a$scores,a$alpha);classification<-a$mode=='classification';rows<-list()\n for(i in seq_along(a$queries)){r<-a$queries[[i]];p<-num20(if(classification)r$p else r$center);y<-if(is.null(r$y))NULL else num20(r$y)\n  if(classification){labels<-if(q$infinite)0:1 else which(c(p,1-p)<=q$threshold)-1;lo<-hi<-width<-NULL;size<-length(labels);covered<-if(is.null(y))NULL else as.integer(y%in%labels)}else{labels<-NULL;size<-NULL;lo<-if(q$infinite)'-infinity'else p-q$threshold;hi<-if(q$infinite)'+infinity'else p+q$threshold;width<-if(q$infinite)'+infinity'else 2*q$threshold;covered<-if(is.null(y))NULL else as.integer(q$infinite||abs(y-p)<=q$threshold+1e-12)}\n  rows[[i]]<-list(id=if(is.null(r$id))as.character(i-1)else r$id,prediction=p,actualY=y,labels=as.list(labels),size=size,lower=lo,upper=hi,width=width,covered=covered)\n };scored<-Filter(function(r)!is.null(r$covered),rows);coverage<-if(length(scored))mean(vapply(scored,`[[`,numeric(1),'covered'))else NULL;list(quantile=q,rows=rows,scoredLabels=length(scored),coverage=coverage,meanSetSize=if(classification&&length(rows))mean(vapply(rows,`[[`,numeric(1),'size'))else NULL,meanWidth=if(!classification&&length(rows))if(q$infinite)'+infinity'else 2*q$threshold else NULL)}\nranklaw20<-function(a){v<-vapply(a$scores,num20,numeric(1));trials<-lapply(seq_along(v),function(i){q<-quantile20(as.list(v[-i]),a$alpha);list(heldout=i-1,score=v[i],k=q$k,threshold=q$threshold,infinite=q$infinite,covered=as.integer(q$infinite||v[i]<=q$threshold))});list(N=length(v),distinct=length(unique(v))==length(v),trials=trials,coverage=mean(vapply(trials,`[[`,numeric(1),'covered')))}\nfixedOperation<-function(api,a)switch(api,score=score20(a$rows),calibration=calibration20(a$rows,a$bins),quantile=quantile20(a$scores,a$alpha),predict=predict20(a),ranklaw=ranklaw20(a),realdata=fixedSource(a$kind))\nreportValues<-function(api,z){summary<-list();points<-list();add<-function(k,v,u)summary[[length(summary)+1]]<<-list(metric=k,value=if(is.null(v)||length(v)==0||anyNA(v))NULL else unname(v),unit=u);pt<-function(s,i,x,y)points[[length(points)+1]]<<-list(series=s,index=i,x=x,y=y)\n if(api=='score'){for(k in c('mass','Brier','meanLogLoss','genuineInfinite','BrierPositive'))add(k,z[[k]],switch(k,mass='analysis weight',Brier='squared probability',meanLogLoss='nats; numerical logarithm',genuineInfinite='indicator',BrierPositive='mathematical indicator'));for(i in seq_along(z$rows)){r<-z$rows[[i]];pt('squared error',i-1,i-1,(r$p-r$y)^2)}\n }else if(api=='calibration'){for(k in c('Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity'))add(k,z[[k]],if(k=='ECE')'probability'else'squared probability');for(r in z$bins){pt('bin probability',r$bin,r$bin,r$meanP);pt('bin outcome frequency',r$bin,r$bin,r$frequency)}\n }else if(api=='quantile'){add('n',z$n,'scores');add('k',z$k,'one-based rank');add('infinite',z$infinite,'mathematical indicator');add('threshold',if(z$infinite)'+infinity'else z$threshold,'score units');for(i in seq_along(z$ordered))pt('sorted score',i-1,i,z$ordered[[i]]$score)\n }else if(api=='predict'){for(k in c('scoredLabels','coverage','meanSetSize','meanWidth'))add(k,z[[k]],switch(k,scoredLabels='labels',coverage='fraction',meanSetSize='classes',meanWidth='outcome units'));add('thresholdInfinite',z$quantile$infinite,'mathematical indicator');for(i in seq_along(z$rows)){pt('predicted center or probability',i-1,i-1,z$rows[[i]]$prediction);pt('observed label or outcome',i-1,i-1,z$rows[[i]]$actualY)}\n }else if(api=='ranklaw'){add('N',z$N,'scores');add('distinct',z$distinct,'indicator');add('coverage',z$coverage,'fraction');for(r in z$trials)pt('held-out coverage',r$heldout,r$heldout,r$covered)\n }else{for(k in c('sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold')){r<-Filter(function(r)r$metric==k,z[['study-metrics']])[[1]];add(k,r$value,r$unit)};cv<-Filter(function(r)r$role=='test'&&r$group=='all',z[['role-group-coverage']])[[1]];for(k in c('coverage','meanSetSize','meanIntervalWidth'))add(k,cv[[k]],switch(k,coverage='fraction',meanSetSize='classes',meanIntervalWidth='outcome units'));for(i in seq_along(z[['calibration-scores']])){r<-z[['calibration-scores']][[i]];pt('all calibration scores',i-1,r$rank,r$score)}}\n list(summary=summary,points=points)}\n\nescapeXML<-function(s){s<-gsub('&','&amp;',s,fixed=TRUE);s<-gsub('<','&lt;',s,fixed=TRUE);s<-gsub('>','&gt;',s,fixed=TRUE);gsub('\"','&quot;',s,fixed=TRUE)}\nsvgPlot<-function(pp,title){\n xx<-vapply(pp,function(p)as.numeric(p$x),numeric(1));yy<-vapply(pp,function(p)as.numeric(p$y),numeric(1));xmin<-if(length(xx))min(xx)else 0;xmax<-if(length(xx))max(xx)else 1;ymin<-min(c(0,yy));ymax<-max(c(0,yy));if(xmin==xmax){xmin<-xmin-.5;xmax<-xmax+.5};if(ymin==ymax){ymin<-ymin-.5;ymax<-ymax+.5};pad<-(ymax-ymin)*.08;ymin<-ymin-pad;ymax<-ymax+pad;X<-function(x)82+(as.numeric(x)-xmin)/(xmax-xmin)*608;Y<-function(y)354-(as.numeric(y)-ymin)/(ymax-ymin)*290\n out<-paste0('<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"',escapeXML(title),'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">',escapeXML(title),'</text>')\n for(j in 0:4){y<-ymin+(ymax-ymin)*j/4;x<-xmin+(xmax-xmin)*j/4;out<-paste0(out,'<line x1=\"82\" y1=\"',Y(y),'\" x2=\"690\" y2=\"',Y(y),'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"',Y(y)+4,'\" text-anchor=\"end\">',sprintf('%.3g',y),'</text><text x=\"',X(x),'\" y=\"380\" text-anchor=\"middle\">',sprintf('%.3g',x),'</text>')}\n ss<-unique(vapply(pp,`[[`,character(1),'series'));cols<-c('#0f766e','#c76622','#4f46e5','#b23857')\n for(j in seq_along(ss)){rr<-Filter(function(p)p$series==ss[j],pp);xy<-vapply(rr,function(p)sprintf('%.6f,%.6f',X(p$x),Y(p$y)),character(1));col<-cols[(j-1)%%4+1];out<-paste0(out,'<polyline fill=\"none\" stroke=\"',col,'\" stroke-width=\"1.5\" points=\"',paste(xy,collapse=' '),'\"/>');for(p in rr)out<-paste0(out,'<circle cx=\"',sprintf('%.6f',X(p$x)),'\" cy=\"',sprintf('%.6f',Y(p$y)),'\" r=\"2.6\" fill=\"',col,'\"><title>',escapeXML(ss[j]),': ',escapeXML(p$y),'</title></circle>');out<-paste0(out,'<text x=\"',82+((j-1)%%2)*310,'\" y=\"',432+floor((j-1)/2)*23,'\" fill=\"',col,'\">',escapeXML(ss[j]),'</text>')}\n paste0(out,'<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>')\n}\n\ntoJSON<-function(x){\n if(is.null(x))return('null');if(is.list(x)){v<-vapply(x,toJSON,character(1));if(!is.null(names(x)))paste0('{',paste(paste0(vapply(names(x),toJSON,character(1)),':',v),collapse=','),'}')else paste0('[',paste(v,collapse=','),']')}\n else if(length(x)!=1){if(!is.null(names(x)))toJSON(as.list(x))else paste0('[',paste(vapply(as.list(x),toJSON,character(1)),collapse=','),']')}\n else if(is.na(x))'null'else if(is.logical(x))if(x)'true'else'false'else if(is.numeric(x))if(is.finite(x))sprintf('%.17g',x)else'null'else paste0('\"',gsub('\\n','\\\\n',gsub('\"','\\\\\"',gsub('\\\\','\\\\\\\\',x,fixed=TRUE),fixed=TRUE),fixed=TRUE),'\"')\n}\n\nFIXED<-list(\"api\"=\"realdata\",\"variant\"=\"country\",\"title\"=\"Country growth: factual calibration and intervals\",\"input\"=list(\"kind\"=\"country\"),\"expectedFailure\"=FALSE)\n\nargs<-commandArgs(trailingOnly=TRUE);out<-if(length(args))args[1]else stop('NEW output directory required');if(dir.exists(out))stop('Preserve previous output directory');dir.create(out,recursive=TRUE)\nz<-fixedOperation(FIXED$api,FIXED$input);rr<-reportValues(FIXED$api,z)\nwriteLines(toJSON(list(arithmetic='BaseR numerical counterpart; QR and membership1e-12, log-domain tiny weights; source splitRank read from factualCSV',result=z)),file.path(out,'full.json'),useBytes=TRUE)\nsums<-do.call(rbind,lapply(rr$summary,function(row)data.frame(metric=row$metric,value=if(is.null(row$value))''else if(is.logical(row$value))as.character(as.integer(row$value))else format(row$value,digits=17,scientific=NA,trim=TRUE),unit=row$unit,defined=as.integer(!is.null(row$value)),stringsAsFactors=FALSE)))\npoints<-do.call(rbind,lapply(rr$points,function(p)data.frame(series=p$series,index=p$index,x=p$x,y=if(is.null(p$y))NA_real_ else p$y,defined=as.integer(!is.null(p$y)),stringsAsFactors=FALSE)))\nwrite.csv(sums,file.path(out,'summary.csv'),row.names=FALSE,na='');write.csv(points,file.path(out,'plot-points.csv'),row.names=FALSE,na='');writeLines(svgPlot(Filter(function(p)!is.null(p$y),rr$points),FIXED$title),file.path(out,'plot.svg'),useBytes=TRUE);cat(FIXED$api,'/',FIXED$variant,'\\n',sep='')\n",
        "returnCode": 0,
        "stdout": "realdata/country\r\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed ",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/r-realdata-country-result",
        "kind": "country",
        "inputFiles": [
          {
            "file": "ml20-code/data/actual48-country-revised-original-2023-2024.csv",
            "sha256": "bd444c284344c21f8b980885aea1b76af20754bb31e31d9d9e111ecd44c1454e"
          },
          {
            "file": "ml20-code/data/derived16-country-features-and-roles.csv",
            "sha256": "e3a4a00edafdd14b873c163a9a045d75e7314ed6416048507bb2aa58fdb4f62a"
          },
          {
            "file": "ml20-code/data/actual3613-NLS-original52-fields-and-conformal-frame.csv",
            "sha256": "27290a3ca7b659af0e2a96d52149c30d42274a8119444d3c843e71f92eb9d7c2"
          },
          {
            "file": "ml20-code/data/actual3150-churn-original14-fields-and-conformal-frame.csv",
            "sha256": "4389b8e17f2829529b5200e3b1d5e27d4a4ec101947a2beb46e91bbe7efdbe34"
          }
        ],
        "files": [
          {
            "file": "ml20-code/r-realdata-country-result/full.json",
            "sha256": "0637b50591e06f595e896e5fac3946451b62ee34305ea9cae68ba8a614c17f03",
            "bytes": 14639
          },
          {
            "file": "ml20-code/r-realdata-country-result/plot-points.csv",
            "sha256": "7e008566e955b60418bfbdc875bf1fa0a7c9733253e66f206f58511fe4ddf48d",
            "bytes": 232
          },
          {
            "file": "ml20-code/r-realdata-country-result/plot.svg",
            "sha256": "cb5cffc5351ab8debd7feae9e25b7611881ea32a50f3458aeaf1c4810044ddc8",
            "bytes": 2023
          },
          {
            "file": "ml20-code/r-realdata-country-result/summary.csv",
            "sha256": "8796233525f8fe4eeb179f88abfcd19b05f8d3e679a9a683ca2d75d6f0eb936c",
            "bytes": 432
          },
          {
            "file": "ml20-code/r-realdata-country-result/stdout.txt",
            "sha256": "99648b1e288ee01e8332f6c578bcd776743cb74d8ee58527058c637cc5d5744a",
            "bytes": 18
          },
          {
            "file": "ml20-code/r-realdata-country-result/stderr.txt",
            "sha256": "b807bd2d0f7060ea384b0ac2317cda2d63a4f59f63b4a901b9e665fead79627d",
            "bytes": 182
          }
        ],
        "summaryRows": [
          {
            "metric": "sourceRows",
            "value": "16",
            "unit": "rows",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "16",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "trainingRows",
            "value": "8",
            "unit": "rows",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "8",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "calibrationScores",
            "value": "4",
            "unit": "unit-count scores",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "4",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "testLabeledRows",
            "value": "4",
            "unit": "rows",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "4",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "excludedRows",
            "value": "0",
            "unit": "rows",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "quantileRank",
            "value": "4",
            "unit": "one-based rank",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "4",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "threshold",
            "value": "3.4743234",
            "unit": "annual GDP growth percentage points",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "3.4743234027822805",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "coverage",
            "value": "1",
            "unit": "fraction",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "1",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "meanSetSize",
            "value": "undefined",
            "unit": "classes",
            "defined": "false",
            "exactFraction": "",
            "rawValue": "",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "meanIntervalWidth",
            "value": "6.94864681",
            "unit": "outcome units",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "6.9486468055645609",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          }
        ],
        "plotRows": [
          {
            "series": "all calibration scores",
            "index": 0,
            "x": "1",
            "y": "2.7891887471627901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 1,
            "x": "2",
            "y": "3.0615873806991201",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 2,
            "x": "3",
            "y": "3.1544778807136198",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 3,
            "x": "4",
            "y": "3.47432340278228",
            "defined": true,
            "xExact": "",
            "yExact": ""
          }
        ],
        "plotFile": "ml20-code/r-realdata-country-result/plot.svg",
        "fullResultFile": "ml20-code/r-realdata-country-result/full.json",
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      },
      "person": {
        "api": "realdata",
        "variant": "person",
        "language": "r",
        "title": "Native log wages: factual calibration and intervals",
        "input": {
          "kind": "person"
        },
        "expectedFailure": false,
        "codeFile": "ml20-code/realdata-person.R",
        "codeSHA256": "a0bb35f933c9cd60294d68b5d0f1ce1e39a36d1006635aa25431ba96c3aec414",
        "code": "# ML20 complete standalone numerical fixed examples, no browser/model/results.\n# Base-R QR1e-12/membership1e-12; tiny log loss uses log-domain normalized\n# weights to avoid early underflow. This is an approximate counterpart, not\n# a general exact-rational numeric-token validator. Fixed alpha uses small fractions.\noptions(digits=17)\nfixedSource<-function(kind){\n src<-file.path(dirname(sub(\"^--file=\",\"\",grep(\"^--file=\",commandArgs(),value=TRUE)[1])),\"data\")\nreadnative<-function(n)read.csv(file.path(src,n),check.names=FALSE,colClasses='character',na.strings=NULL,stringsAsFactors=FALSE)\nnum<-function(x){a<-suppressWarnings(as.numeric(x));a[x%in%c('','.')] <- NA_real_;a}\nroles<-function(d){n<-nrow(d);rank<-as.integer(d$splitRank);if(!identical(sort(rank),0:(n-1)))stop('splitRank permutation');planned<-c('test','calibration','train','train')[rank%%4+1];if(any(planned!=d$plannedRole))stop('planned roles');list(rank=rank,planned=planned)}\noriginal<-readnative('actual48-country-revised-original-2023-2024.csv');derived<-readnative('derived16-country-features-and-roles.csv');isos<-sort(unique(original$countryISO3));lookup<-function(iso,code,year){r<-original[original$countryISO3==iso&original$indicatorID==code&original$date==year,,drop=FALSE];if(nrow(r)!=1)stop('country identity');num(r$originalValueToken)}\ncr<-roles(derived);if(!identical(isos,derived$countryISO3))stop('country order');country<-list(id=paste0(isos,':2024'),sourceRow=isos,x=cbind(vapply(isos,lookup,numeric(1),code='NY.GDP.PCAP.KD',year='2023')/10000,vapply(isos,lookup,numeric(1),code='FP.CPI.TOTL.ZG',year='2023')/10),y=vapply(isos,lookup,numeric(1),code='NY.GDP.MKTP.KD.ZG',year='2024'),rank=cr$rank,planned=cr$planned,names=c('g','pi'),unit='annual GDP growth percentage points')\npd<-readnative('actual3613-NLS-original52-fields-and-conformal-frame.csv');pr<-roles(pd);person<-list(id=paste0('person-row:',pd$sourceRow),sourceRow=pd$sourceRow,x=cbind(num(pd$ed76),num(pd$age76)),y=num(pd$lwage76),rank=pr$rank,planned=pr$planned,names=c('ed76','age76'),unit='native trimmed1976log hourly wage')\ncd<-readnative('actual3150-churn-original14-fields-and-conformal-frame.csv');rr<-roles(cd);company<-list(id=paste0('customer-row:',cd$sourceRow),sourceRow=cd$sourceRow,x=cbind(num(cd[['Call  Failure']]),num(cd[['Seconds of Use']])),y=num(cd$Churn),rank=rr$rank,planned=rr$planned,names=c('CallFailure','SecondsUse'),unit='native Churn0/1')\nmodels<-list(country=country,person=person,company=company)\n\nmodels<-models[kind]\nalphaToken<-\"1/5\";ridgeToken<-\"1/100\"\nqnum<-function(s){v<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(v)==2)as.numeric(v[1])/as.numeric(v[2])else as.numeric(v)}\nalphaParts<-function(s){v<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(v)==2&&all(grepl('^[0-9]+$',v))){a<-as.numeric(v[1]);b<-as.numeric(v[2])}else if(grepl('^[0-9]+([.][0-9]{1,6})?$',s)){n<-if(grepl('.',s,fixed=TRUE))nchar(sub('^[^.]*[.]','',s))else 0;a<-as.numeric(gsub('.','',s,fixed=TRUE));b<-10^n}else stop('Base-R alpha needs small integer fraction or <=6decimal places');if(a<=0||a>=b||b>1e6)stop('Require0<alpha<1 with denominator<=1e6');c(a,b)}\nap<-alphaParts(alphaToken);alpha<-ap[1]/ap[2];lambda<-qnum(ridgeToken);if(!is.finite(lambda)||lambda<0)stop('nonnegative finite ridge required')\nnamesOut<-c('study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins');outputs<-setNames(lapply(namesOut,function(n)list()),namesOut)\nemit<-function(name,row)outputs[[name]][[length(outputs[[name]])+1L]]<<-row\nmetric<-function(kind,name,value,unit,arithmetic='binary64 approximation'){emit('study-metrics',list(kind=kind,metric=name,value=if(is.null(value))NA else value,unit=unit,defined=as.integer(!is.null(value)&&!is.na(value)),arithmetic=arithmetic))}\nfor(kind in names(models)){\n m<-models[[kind]];complete<-rowSums(is.na(m$x))==0&!is.na(m$y);role<-ifelse(complete,m$planned,'excluded');train<-which(role=='train');n<-length(train);stopifnot(n>0);meanX<-colMeans(m$x[train,,drop=FALSE]);scale<-apply(m$x[train,,drop=FALSE],2,function(x)diff(range(x)));scale[scale==0]<-1;Z<-cbind(1,sweep(sweep(m$x,2,meanX,'-'),2,scale,'/'));H<-crossprod(Z[train,,drop=FALSE])/n+diag(c(0,lambda,lambda));b<-as.vector(crossprod(Z[train,,drop=FALSE],m$y[train]))/n;qrfit<-qr(H,tol=1e-12,LAPACK=FALSE);theta<-qr.coef(qrfit,b);theta[is.na(theta)]<-0;minimum<-as.numeric(crossprod(theta,H%*%theta)/2-sum(theta*b)+sum(m$y[train]^2)/(2*n));beta<-theta[-1]/scale;intercept<-theta[1]-sum(beta*meanX);raw<-as.vector(Z%*%theta);pred<-if(kind=='company')pmax(0,pmin(1,raw))else raw;defined<-!is.na(pred);group<-if(kind=='person')ifelse(m$x[,1]<=12,'schooling-at-most12','schooling-over12')else if(kind=='company')ifelse(m$x[,1]==0,'zero-call-failures','positive-call-failures')else ifelse(m$x[,1]<=meanX[1],'GDPpc-at-most-training-mean','GDPpc-above-training-mean');group[is.na(raw)]<-'missing-X';cal<-which(role=='calibration'&defined&!is.na(m$y));score<-if(kind=='company')ifelse(m$y[cal]==1,1-pred[cal],pred[cal])else abs(m$y[cal]-pred[cal]);ordered<-order(score,seq_along(score));k<-ceiling((length(cal)+1)*(ap[2]-ap[1])/ap[2]);threshold<-if(k<=length(cal))score[ordered[k]]else Inf;unbounded<-is.infinite(threshold)\n for(j in seq_along(ordered)){slot<-ordered[j];i<-cal[slot];emit('calibration-scores',list(kind=kind,rank=j,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,calibrationIndex0=slot-1,score=score[slot],threshold=threshold,thresholdInfinite=as.integer(unbounded)))}\n for(j in 1:2)emit('training-coefficients',list(kind=kind,feature=m$names[j],mean=meanX[j],scale=scale[j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[1],nativeIntercept=intercept,rank=qrfit$rank,unique=as.integer(qrfit$rank==3),lambdaValue=lambda,minimumObjective=minimum))\n metrics<-list(sourceRows=length(role),trainingRows=n,calibrationScores=length(cal),testLabeledRows=sum(role=='test'&!is.na(m$y)),excludedRows=sum(role=='excluded'),alpha=alpha,ridge=lambda,quantileRank=k,threshold=threshold,minimumObjective=minimum);units<-c('rows','rows','unit-count scores','rows','rows','probability','transformed slope penalty','one-based rank',if(kind=='company')'dimensionless score'else m$unit,paste0('(',m$unit,') squared'))\n for(j in seq_along(metrics))metric(kind,names(metrics)[j],metrics[[j]],units[j],if(is.infinite(metrics[[j]]))'mathematical infinity'else if(j%in%c(1:5,8))'integer count'else'binary64 approximation')\n labeled<-defined&!is.na(m$y);covered<-rep(NA_integer_,length(role));lo<-hi<-width<-rep(NA_real_,length(role));setSize<-rep(NA_integer_,length(role));setLabels<-rep('',length(role))\n if(kind=='company'){\n  zero<-defined&(unbounded|pred<=threshold+1e-12);one<-defined&(unbounded|1-pred<=threshold+1e-12);setSize[defined]<-as.integer(zero[defined])+as.integer(one[defined]);setLabels[zero&!one]<-'0';setLabels[!zero&one]<-'1';setLabels[zero&one]<-'0|1';covered[labeled]<-as.integer((m$y[labeled]==0&zero[labeled])|(m$y[labeled]==1&one[labeled]))\n }else{lo[defined]<-pred[defined]-threshold;hi[defined]<-pred[defined]+threshold;width[defined]<-2*threshold;tol<-1e-12*pmax(1,abs(m$y[labeled]),abs(pred[labeled]),if(is.finite(threshold))abs(threshold)else 1);covered[labeled]<-as.integer(unbounded|abs(m$y[labeled]-pred[labeled])<=threshold+tol)}\n for(i in seq_along(role)){\n  emit('row-predictions',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,plannedRole=m$planned[i],role=role[i],group=group[i],actualY=m$y[i],rawLinear=raw[i],prediction=pred[i],predictionDefined=as.integer(defined[i]),threshold=threshold,thresholdInfinite=as.integer(unbounded),lower=lo[i],upper=hi[i],width=width[i],setLabels=setLabels[i],setSize=setSize[i],covered=covered[i],labeledPrediction=as.integer(labeled[i])))\n  emit('eligibility',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],plannedRole=m$planned[i],role=role[i],requiredComplete=as.integer(complete[i]),trainingUsed=as.integer(role[i]=='train'&complete[i]),reason=if(complete[i])''else'missing-required-field'))\n }\n for(rol in unique(role))for(gr in c('all',unique(group))){use<-which(role==rol&(gr=='all'|group==gr));def<-use[defined[use]];scored<-use[labeled[use]&!role[use]%in%c('excluded','unused')];nn<-length(def);ns<-length(scored);cv<-sum(covered[scored]);ub<-if(kind=='company')0 else sum(is.infinite(width[def]));emit('role-group-coverage',list(kind=kind,role=rol,group=gr,originalRows=length(use),definedPredictions=nn,scoredLabels=ns,coveredRows=cv,coverage=if(ns)cv/ns else NA_real_,meanSetSize=if(kind=='company'&&nn)mean(setSize[def])else NA_real_,meanIntervalWidth=if(kind!='company'&&nn)mean(width[def])else NA_real_,unboundedIntervals=ub))}\n if(kind=='company')for(rol in c('train','calibration','test')){\n  ix<-which(role==rol&labeled);pp<-pred[ix];yy<-m$y[ix];N<-length(ix);bin<-pmin(4,floor(pp*5));yb<-if(N)mean(yy)else NA_real_;ece<-rel<-res<-vp<-cp<-0\n  for(j in 0:4){take<-which(bin==j);nb<-length(take);pm<-if(nb)mean(pp[take])else NA_real_;ym<-if(nb)mean(yy[take])else NA_real_;v<-if(nb)mean((pp[take]-pm)^2)else NA_real_;co<-if(nb)mean((pp[take]-pm)*(yy[take]-ym))else NA_real_;emit('reliability-bins',list(kind=kind,role=rol,bin=j,lower=j/5,upper=(j+1)/5,rightClosed=as.integer(j==4),rows=nb,meanP=pm,frequencyY1=ym,gap=pm-ym,withinVarianceP=v,withinCovariancePY=co));if(nb){z<-nb/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*co}}\n  mm<-list(ECE=if(N)ece else NA_real_,Brier=if(N)mean((pp-yy)^2)else NA_real_,uncertainty=yb*(1-yb),resolution=if(N)res else NA_real_,reliability=if(N)rel else NA_real_,withinVarianceP=if(N)vp else NA_real_,withinCovariancePY=if(N)cp else NA_real_);for(name in names(mm))metric(kind,paste0(rol,':',name),mm[[name]],if(name=='ECE')'dimensionless'else'squared probability');prob<-ifelse(yy==1,pp,1-pp);ll<-if(!N)NA_real_ else if(any(prob==0))Inf else-mean(log(prob));metric(kind,paste0(rol,':meanLogLoss'),ll,'nats','binary64 approximation or genuine infinity')\n }\n}\n\noutputs\n}\n\n# New fixed-example numerical adapters. Not arbitrary exact-input validators.\nnum20<-function(v){s<-as.character(v);a<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(a)==2)as.numeric(a[1])/as.numeric(a[2])else as.numeric(s)}\nalpha20<-function(s){a<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(a)==2){n<-as.numeric(a[1]);d<-as.numeric(a[2])}else{n<-as.numeric(a[1]);d<-1};if(n<=0||n>=d)stop('alpha-must-be-strictly-between-zero-and-one');c(n,d)}\nquantile20<-function(scores,alpha){ap<-alpha20(alpha);keep<-which(!vapply(scores,is.null,logical(1)));vv<-vapply(scores[keep],num20,numeric(1));ix<-order(vv,keep);n<-length(vv);k<-((n+1)*(ap[2]-ap[1])+ap[2]-1)%/%ap[2];list(n=n,k=k,threshold=if(k>n)NULL else vv[ix[k]],infinite=k>n,ordered=lapply(ix,function(j)list(score=vv[j],index=keep[j]-1)))}\nlogPositive20<-function(v){s<-tolower(as.character(v));part<-strsplit(s,'e',fixed=TRUE)[[1]];mantissa<-as.numeric(part[1]);power<-if(length(part)==2)as.numeric(part[2])else 0;if(mantissa<=0)stop('fixed positive weight required');log(mantissa)+power*log(10)}\nscore20<-function(rows){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));lw<-vapply(rows,function(r)logPositive20(if(is.null(r$weight))1 else r$weight),numeric(1));mx<-max(lw);lm<-mx+log(sum(exp(lw-mx)));mass<-exp(lm);w<-exp(lw-lm);observed<-ifelse(y==1,p,1-p);genuine<-any(observed==0);loss<-ifelse(observed==1,0,-log(observed));terms<-lw-lm+log(loss);finite<-terms[is.finite(terms)];ll<-if(genuine)'+infinity'else if(length(finite)){top<-max(finite);exp(top+log(sum(exp(finite-top))))}else 0;bs<-sum(w*(p-y)^2);list(rows=lapply(seq_along(rows),function(i)list(p=p[i],y=y[i],w=w[i])),mass=mass,Brier=bs,meanLogLoss=ll,genuineInfinite=genuine,BrierPositive=any(p!=y))}\ncalibration20<-function(rows,B){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));N<-length(p);bin<-pmin(B-1,floor(p*B));yb<-mean(y);ece<-rel<-res<-vp<-cp<-0;out<-list()\n for(j in 0:(B-1)){ix<-which(bin==j);n<-length(ix);pm<-if(n)mean(p[ix])else NULL;ym<-if(n)mean(y[ix])else NULL;v<-if(n)mean((p[ix]-pm)^2)else NULL;c<-if(n)mean((p[ix]-pm)*(y[ix]-ym))else NULL;out[[j+1]]<-list(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c);if(n){z<-n/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*c}}\n list(rows=N,bins=out,Brier=mean((p-y)^2),ECE=ece,uncertainty=yb*(1-yb),resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=yb*(1-yb)-res+rel+vp-2*cp)}\npredict20<-function(a){q<-quantile20(a$scores,a$alpha);classification<-a$mode=='classification';rows<-list()\n for(i in seq_along(a$queries)){r<-a$queries[[i]];p<-num20(if(classification)r$p else r$center);y<-if(is.null(r$y))NULL else num20(r$y)\n  if(classification){labels<-if(q$infinite)0:1 else which(c(p,1-p)<=q$threshold)-1;lo<-hi<-width<-NULL;size<-length(labels);covered<-if(is.null(y))NULL else as.integer(y%in%labels)}else{labels<-NULL;size<-NULL;lo<-if(q$infinite)'-infinity'else p-q$threshold;hi<-if(q$infinite)'+infinity'else p+q$threshold;width<-if(q$infinite)'+infinity'else 2*q$threshold;covered<-if(is.null(y))NULL else as.integer(q$infinite||abs(y-p)<=q$threshold+1e-12)}\n  rows[[i]]<-list(id=if(is.null(r$id))as.character(i-1)else r$id,prediction=p,actualY=y,labels=as.list(labels),size=size,lower=lo,upper=hi,width=width,covered=covered)\n };scored<-Filter(function(r)!is.null(r$covered),rows);coverage<-if(length(scored))mean(vapply(scored,`[[`,numeric(1),'covered'))else NULL;list(quantile=q,rows=rows,scoredLabels=length(scored),coverage=coverage,meanSetSize=if(classification&&length(rows))mean(vapply(rows,`[[`,numeric(1),'size'))else NULL,meanWidth=if(!classification&&length(rows))if(q$infinite)'+infinity'else 2*q$threshold else NULL)}\nranklaw20<-function(a){v<-vapply(a$scores,num20,numeric(1));trials<-lapply(seq_along(v),function(i){q<-quantile20(as.list(v[-i]),a$alpha);list(heldout=i-1,score=v[i],k=q$k,threshold=q$threshold,infinite=q$infinite,covered=as.integer(q$infinite||v[i]<=q$threshold))});list(N=length(v),distinct=length(unique(v))==length(v),trials=trials,coverage=mean(vapply(trials,`[[`,numeric(1),'covered')))}\nfixedOperation<-function(api,a)switch(api,score=score20(a$rows),calibration=calibration20(a$rows,a$bins),quantile=quantile20(a$scores,a$alpha),predict=predict20(a),ranklaw=ranklaw20(a),realdata=fixedSource(a$kind))\nreportValues<-function(api,z){summary<-list();points<-list();add<-function(k,v,u)summary[[length(summary)+1]]<<-list(metric=k,value=if(is.null(v)||length(v)==0||anyNA(v))NULL else unname(v),unit=u);pt<-function(s,i,x,y)points[[length(points)+1]]<<-list(series=s,index=i,x=x,y=y)\n if(api=='score'){for(k in c('mass','Brier','meanLogLoss','genuineInfinite','BrierPositive'))add(k,z[[k]],switch(k,mass='analysis weight',Brier='squared probability',meanLogLoss='nats; numerical logarithm',genuineInfinite='indicator',BrierPositive='mathematical indicator'));for(i in seq_along(z$rows)){r<-z$rows[[i]];pt('squared error',i-1,i-1,(r$p-r$y)^2)}\n }else if(api=='calibration'){for(k in c('Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity'))add(k,z[[k]],if(k=='ECE')'probability'else'squared probability');for(r in z$bins){pt('bin probability',r$bin,r$bin,r$meanP);pt('bin outcome frequency',r$bin,r$bin,r$frequency)}\n }else if(api=='quantile'){add('n',z$n,'scores');add('k',z$k,'one-based rank');add('infinite',z$infinite,'mathematical indicator');add('threshold',if(z$infinite)'+infinity'else z$threshold,'score units');for(i in seq_along(z$ordered))pt('sorted score',i-1,i,z$ordered[[i]]$score)\n }else if(api=='predict'){for(k in c('scoredLabels','coverage','meanSetSize','meanWidth'))add(k,z[[k]],switch(k,scoredLabels='labels',coverage='fraction',meanSetSize='classes',meanWidth='outcome units'));add('thresholdInfinite',z$quantile$infinite,'mathematical indicator');for(i in seq_along(z$rows)){pt('predicted center or probability',i-1,i-1,z$rows[[i]]$prediction);pt('observed label or outcome',i-1,i-1,z$rows[[i]]$actualY)}\n }else if(api=='ranklaw'){add('N',z$N,'scores');add('distinct',z$distinct,'indicator');add('coverage',z$coverage,'fraction');for(r in z$trials)pt('held-out coverage',r$heldout,r$heldout,r$covered)\n }else{for(k in c('sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold')){r<-Filter(function(r)r$metric==k,z[['study-metrics']])[[1]];add(k,r$value,r$unit)};cv<-Filter(function(r)r$role=='test'&&r$group=='all',z[['role-group-coverage']])[[1]];for(k in c('coverage','meanSetSize','meanIntervalWidth'))add(k,cv[[k]],switch(k,coverage='fraction',meanSetSize='classes',meanIntervalWidth='outcome units'));for(i in seq_along(z[['calibration-scores']])){r<-z[['calibration-scores']][[i]];pt('all calibration scores',i-1,r$rank,r$score)}}\n list(summary=summary,points=points)}\n\nescapeXML<-function(s){s<-gsub('&','&amp;',s,fixed=TRUE);s<-gsub('<','&lt;',s,fixed=TRUE);s<-gsub('>','&gt;',s,fixed=TRUE);gsub('\"','&quot;',s,fixed=TRUE)}\nsvgPlot<-function(pp,title){\n xx<-vapply(pp,function(p)as.numeric(p$x),numeric(1));yy<-vapply(pp,function(p)as.numeric(p$y),numeric(1));xmin<-if(length(xx))min(xx)else 0;xmax<-if(length(xx))max(xx)else 1;ymin<-min(c(0,yy));ymax<-max(c(0,yy));if(xmin==xmax){xmin<-xmin-.5;xmax<-xmax+.5};if(ymin==ymax){ymin<-ymin-.5;ymax<-ymax+.5};pad<-(ymax-ymin)*.08;ymin<-ymin-pad;ymax<-ymax+pad;X<-function(x)82+(as.numeric(x)-xmin)/(xmax-xmin)*608;Y<-function(y)354-(as.numeric(y)-ymin)/(ymax-ymin)*290\n out<-paste0('<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"',escapeXML(title),'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">',escapeXML(title),'</text>')\n for(j in 0:4){y<-ymin+(ymax-ymin)*j/4;x<-xmin+(xmax-xmin)*j/4;out<-paste0(out,'<line x1=\"82\" y1=\"',Y(y),'\" x2=\"690\" y2=\"',Y(y),'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"',Y(y)+4,'\" text-anchor=\"end\">',sprintf('%.3g',y),'</text><text x=\"',X(x),'\" y=\"380\" text-anchor=\"middle\">',sprintf('%.3g',x),'</text>')}\n ss<-unique(vapply(pp,`[[`,character(1),'series'));cols<-c('#0f766e','#c76622','#4f46e5','#b23857')\n for(j in seq_along(ss)){rr<-Filter(function(p)p$series==ss[j],pp);xy<-vapply(rr,function(p)sprintf('%.6f,%.6f',X(p$x),Y(p$y)),character(1));col<-cols[(j-1)%%4+1];out<-paste0(out,'<polyline fill=\"none\" stroke=\"',col,'\" stroke-width=\"1.5\" points=\"',paste(xy,collapse=' '),'\"/>');for(p in rr)out<-paste0(out,'<circle cx=\"',sprintf('%.6f',X(p$x)),'\" cy=\"',sprintf('%.6f',Y(p$y)),'\" r=\"2.6\" fill=\"',col,'\"><title>',escapeXML(ss[j]),': ',escapeXML(p$y),'</title></circle>');out<-paste0(out,'<text x=\"',82+((j-1)%%2)*310,'\" y=\"',432+floor((j-1)/2)*23,'\" fill=\"',col,'\">',escapeXML(ss[j]),'</text>')}\n paste0(out,'<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>')\n}\n\ntoJSON<-function(x){\n if(is.null(x))return('null');if(is.list(x)){v<-vapply(x,toJSON,character(1));if(!is.null(names(x)))paste0('{',paste(paste0(vapply(names(x),toJSON,character(1)),':',v),collapse=','),'}')else paste0('[',paste(v,collapse=','),']')}\n else if(length(x)!=1){if(!is.null(names(x)))toJSON(as.list(x))else paste0('[',paste(vapply(as.list(x),toJSON,character(1)),collapse=','),']')}\n else if(is.na(x))'null'else if(is.logical(x))if(x)'true'else'false'else if(is.numeric(x))if(is.finite(x))sprintf('%.17g',x)else'null'else paste0('\"',gsub('\\n','\\\\n',gsub('\"','\\\\\"',gsub('\\\\','\\\\\\\\',x,fixed=TRUE),fixed=TRUE),fixed=TRUE),'\"')\n}\n\nFIXED<-list(\"api\"=\"realdata\",\"variant\"=\"person\",\"title\"=\"Native log wages: factual calibration and intervals\",\"input\"=list(\"kind\"=\"person\"),\"expectedFailure\"=FALSE)\n\nargs<-commandArgs(trailingOnly=TRUE);out<-if(length(args))args[1]else stop('NEW output directory required');if(dir.exists(out))stop('Preserve previous output directory');dir.create(out,recursive=TRUE)\nz<-fixedOperation(FIXED$api,FIXED$input);rr<-reportValues(FIXED$api,z)\nwriteLines(toJSON(list(arithmetic='BaseR numerical counterpart; QR and membership1e-12, log-domain tiny weights; source splitRank read from factualCSV',result=z)),file.path(out,'full.json'),useBytes=TRUE)\nsums<-do.call(rbind,lapply(rr$summary,function(row)data.frame(metric=row$metric,value=if(is.null(row$value))''else if(is.logical(row$value))as.character(as.integer(row$value))else format(row$value,digits=17,scientific=NA,trim=TRUE),unit=row$unit,defined=as.integer(!is.null(row$value)),stringsAsFactors=FALSE)))\npoints<-do.call(rbind,lapply(rr$points,function(p)data.frame(series=p$series,index=p$index,x=p$x,y=if(is.null(p$y))NA_real_ else p$y,defined=as.integer(!is.null(p$y)),stringsAsFactors=FALSE)))\nwrite.csv(sums,file.path(out,'summary.csv'),row.names=FALSE,na='');write.csv(points,file.path(out,'plot-points.csv'),row.names=FALSE,na='');writeLines(svgPlot(Filter(function(p)!is.null(p$y),rr$points),FIXED$title),file.path(out,'plot.svg'),useBytes=TRUE);cat(FIXED$api,'/',FIXED$variant,'\\n',sep='')\n",
        "returnCode": 0,
        "stdout": "realdata/person\r\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed ",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/r-realdata-person-result",
        "kind": "person",
        "inputFiles": [
          {
            "file": "ml20-code/data/actual48-country-revised-original-2023-2024.csv",
            "sha256": "bd444c284344c21f8b980885aea1b76af20754bb31e31d9d9e111ecd44c1454e"
          },
          {
            "file": "ml20-code/data/derived16-country-features-and-roles.csv",
            "sha256": "e3a4a00edafdd14b873c163a9a045d75e7314ed6416048507bb2aa58fdb4f62a"
          },
          {
            "file": "ml20-code/data/actual3613-NLS-original52-fields-and-conformal-frame.csv",
            "sha256": "27290a3ca7b659af0e2a96d52149c30d42274a8119444d3c843e71f92eb9d7c2"
          },
          {
            "file": "ml20-code/data/actual3150-churn-original14-fields-and-conformal-frame.csv",
            "sha256": "4389b8e17f2829529b5200e3b1d5e27d4a4ec101947a2beb46e91bbe7efdbe34"
          }
        ],
        "files": [
          {
            "file": "ml20-code/r-realdata-person-result/full.json",
            "sha256": "d1731609b5ed15783620113867fa6992a2515456a13dc675516dc547951589d1",
            "bytes": 2360492
          },
          {
            "file": "ml20-code/r-realdata-person-result/plot-points.csv",
            "sha256": "27521dec4003a5c30c547ad8c47b9b5229c75f224e0bd18b050d800f048c5c8a",
            "bytes": 40595
          },
          {
            "file": "ml20-code/r-realdata-person-result/plot.svg",
            "sha256": "5926ef9abf904039c4fe9501d410b5927c1a39e7ebbf6cab05c987f92434dc5b",
            "bytes": 114549
          },
          {
            "file": "ml20-code/r-realdata-person-result/summary.csv",
            "sha256": "e53bbb8da56ecf3ba336c2bc2046f8185376221edaeaa0baf15d5e89e6621325",
            "bytes": 463
          },
          {
            "file": "ml20-code/r-realdata-person-result/stdout.txt",
            "sha256": "d7e0fa91de26834e6d1043b4c29c76888db28b289bcd21642007f61749704715",
            "bytes": 17
          },
          {
            "file": "ml20-code/r-realdata-person-result/stderr.txt",
            "sha256": "b807bd2d0f7060ea384b0ac2317cda2d63a4f59f63b4a901b9e665fead79627d",
            "bytes": 182
          }
        ],
        "summaryRows": [
          {
            "metric": "sourceRows",
            "value": "3613",
            "unit": "rows",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "3613",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "trainingRows",
            "value": "1496",
            "unit": "rows",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "1496",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "calibrationScores",
            "value": "754",
            "unit": "unit-count scores",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "754",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "testLabeledRows",
            "value": "760",
            "unit": "rows",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "760",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "excludedRows",
            "value": "603",
            "unit": "rows",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "603",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "quantileRank",
            "value": "604",
            "unit": "one-based rank",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "604",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "threshold",
            "value": "0.496327802",
            "unit": "native trimmed1976log hourly wage",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.49632780231649942",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "coverage",
            "value": "0.793421053",
            "unit": "fraction",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.79342105263157892",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "meanSetSize",
            "value": "undefined",
            "unit": "classes",
            "defined": "false",
            "exactFraction": "",
            "rawValue": "",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "meanIntervalWidth",
            "value": "0.992655605",
            "unit": "outcome units",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.99265560463299884",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          }
        ],
        "plotRows": [
          {
            "series": "all calibration scores",
            "index": 0,
            "x": "1",
            "y": "5.4025400929802499e-05",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 1,
            "x": "2",
            "y": "0.00310328613378186",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 2,
            "x": "3",
            "y": "0.00378387093480992",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 3,
            "x": "4",
            "y": "0.0040149411507046703",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 4,
            "x": "5",
            "y": "0.0041691891782305",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 5,
            "x": "6",
            "y": "0.0044104085293934503",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 6,
            "x": "7",
            "y": "0.0044104085293934503",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 7,
            "x": "8",
            "y": "0.0057088009348094104",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 8,
            "x": "9",
            "y": "0.0070839714706067997",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 9,
            "x": "10",
            "y": "0.0074658786032220101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 10,
            "x": "11",
            "y": "0.0086121893360742198",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 11,
            "x": "12",
            "y": "0.0089260860847639699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 12,
            "x": "13",
            "y": "0.010030070614909001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 13,
            "x": "14",
            "y": "0.010030070614909001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 14,
            "x": "15",
            "y": "0.0112957997690151",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 15,
            "x": "16",
            "y": "0.011376535813881501",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 16,
            "x": "17",
            "y": "0.011376535813881501",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 17,
            "x": "18",
            "y": "0.0116890931823832",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 18,
            "x": "19",
            "y": "0.011920228603221599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 19,
            "x": "20",
            "y": "0.012229438332338",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 20,
            "x": "21",
            "y": "0.0124955505508852",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 21,
            "x": "22",
            "y": "0.0134457809348101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 22,
            "x": "23",
            "y": "0.013588421234719501",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 23,
            "x": "24",
            "y": "0.0145130313967785",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 24,
            "x": "25",
            "y": "0.0152609534822936",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 25,
            "x": "26",
            "y": "0.016323496133781899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 26,
            "x": "27",
            "y": "0.016373374186118301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 27,
            "x": "28",
            "y": "0.018197916133782001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 28,
            "x": "29",
            "y": "0.0185251238021946",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 29,
            "x": "30",
            "y": "0.020888898603222301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 30,
            "x": "31",
            "y": "0.021243090934809999",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 31,
            "x": "32",
            "y": "0.0216699467045771",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 32,
            "x": "33",
            "y": "0.024339799611172299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 33,
            "x": "34",
            "y": "0.024930761716679399",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 34,
            "x": "35",
            "y": "0.024994580501867401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 35,
            "x": "36",
            "y": "0.0251524087652806",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 36,
            "x": "37",
            "y": "0.025718409385091501",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 37,
            "x": "38",
            "y": "0.027514039902049699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 38,
            "x": "39",
            "y": "0.027758926979674699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 39,
            "x": "40",
            "y": "0.027758926979674699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 40,
            "x": "41",
            "y": "0.0295474956518227",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 41,
            "x": "42",
            "y": "0.0299387286032218",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 42,
            "x": "43",
            "y": "0.030991447570460899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 43,
            "x": "44",
            "y": "0.031440934648086803",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 44,
            "x": "45",
            "y": "0.033068076133782001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 45,
            "x": "46",
            "y": "0.033348237870370702",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 46,
            "x": "47",
            "y": "0.033451290501867299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 47,
            "x": "48",
            "y": "0.033642562316498599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 48,
            "x": "49",
            "y": "0.033733556113790399",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 49,
            "x": "50",
            "y": "0.034365086817616401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 50,
            "x": "51",
            "y": "0.034654503802194397",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 51,
            "x": "52",
            "y": "0.034788873049350001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 52,
            "x": "53",
            "y": "0.035935183782201299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 53,
            "x": "54",
            "y": "0.035963462720416402",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 54,
            "x": "55",
            "y": "0.0364833430203255",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 55,
            "x": "56",
            "y": "0.0367230012347202",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 56,
            "x": "57",
            "y": "0.037396387363600098",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 57,
            "x": "58",
            "y": "0.037789082203457398",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 58,
            "x": "59",
            "y": "0.040531606817616299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 59,
            "x": "60",
            "y": "0.040711959469106801",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 60,
            "x": "61",
            "y": "0.042690684186118801",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 61,
            "x": "62",
            "y": "0.042824228283320699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 62,
            "x": "63",
            "y": "0.042931055400930299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 63,
            "x": "64",
            "y": "0.042931055400930299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 64,
            "x": "65",
            "y": "0.044015311716679099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 65,
            "x": "66",
            "y": "0.0448294178703703",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 66,
            "x": "67",
            "y": "0.045975728603221598",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 67,
            "x": "68",
            "y": "0.0460072230203252",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 68,
            "x": "69",
            "y": "0.046443513133365102",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 69,
            "x": "70",
            "y": "0.046708404648087197",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 70,
            "x": "71",
            "y": "0.047604011283737299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 71,
            "x": "72",
            "y": "0.049190281170696799",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 72,
            "x": "73",
            "y": "0.050050541347760102",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 73,
            "x": "74",
            "y": "0.051263254112290803",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 74,
            "x": "75",
            "y": "0.051598179769014998",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 75,
            "x": "76",
            "y": "0.051621268032428197",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 76,
            "x": "77",
            "y": "0.053890801234719503",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 77,
            "x": "78",
            "y": "0.054074559336074302",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 78,
            "x": "79",
            "y": "0.0548542579834113",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 79,
            "x": "80",
            "y": "0.057146879449114799",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 80,
            "x": "81",
            "y": "0.058229201234719398",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 81,
            "x": "82",
            "y": "0.0593664835663077",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 82,
            "x": "83",
            "y": "0.059929448603221601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 83,
            "x": "84",
            "y": "0.060885441716679103",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 84,
            "x": "85",
            "y": "0.061847139385091197",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 85,
            "x": "86",
            "y": "0.062669835813881705",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 86,
            "x": "87",
            "y": "0.063047573802194307",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 87,
            "x": "88",
            "y": "0.064840606979674795",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 88,
            "x": "89",
            "y": "0.065004783482293299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 89,
            "x": "90",
            "y": "0.065069942420506302",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 90,
            "x": "91",
            "y": "0.065599968332337596",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 91,
            "x": "92",
            "y": "0.065753793866218005",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 92,
            "x": "93",
            "y": "0.065841293256211103",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 93,
            "x": "94",
            "y": "0.067086550614908994",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 94,
            "x": "95",
            "y": "0.068194967870370604",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 95,
            "x": "96",
            "y": "0.068732998652239793",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 96,
            "x": "97",
            "y": "0.069719354186118701",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 97,
            "x": "98",
            "y": "0.069879309385091098",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 98,
            "x": "99",
            "y": "0.071244036979674505",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 99,
            "x": "100",
            "y": "0.071324266743789402",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 100,
            "x": "101",
            "y": "0.072434228849295401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 101,
            "x": "102",
            "y": "0.072864299449114406",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 102,
            "x": "103",
            "y": "0.073423378219297702",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 103,
            "x": "104",
            "y": "0.074232454967988901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 104,
            "x": "105",
            "y": "0.074464552316499094",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 105,
            "x": "106",
            "y": "0.074476557570460705",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 106,
            "x": "107",
            "y": "0.074979945032011705",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 107,
            "x": "108",
            "y": "0.075135493020325406",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 108,
            "x": "109",
            "y": "0.075546198519206506",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 109,
            "x": "110",
            "y": "0.076597302533547101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 110,
            "x": "111",
            "y": "0.077083075784855695",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 111,
            "x": "112",
            "y": "0.078395027344378795",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 112,
            "x": "113",
            "y": "0.0788187250320114",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 113,
            "x": "114",
            "y": "0.079061800501867702",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 114,
            "x": "115",
            "y": "0.080825338219297799",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 115,
            "x": "116",
            "y": "0.081668318716261901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 116,
            "x": "117",
            "y": "0.081933210230984904",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 117,
            "x": "118",
            "y": "0.083063643802193901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 118,
            "x": "119",
            "y": "0.083825360230984594",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 119,
            "x": "120",
            "y": "0.083934561150704703",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 120,
            "x": "121",
            "y": "0.084606348652239496",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 121,
            "x": "122",
            "y": "0.086330653866217397",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 122,
            "x": "123",
            "y": "0.087739146197805901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 123,
            "x": "124",
            "y": "0.089088789769015797",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 124,
            "x": "125",
            "y": "0.089581585238872399",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 125,
            "x": "126",
            "y": "0.090121045700840299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 126,
            "x": "127",
            "y": "0.090235100501868004",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 127,
            "x": "128",
            "y": "0.090922844834955704",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 128,
            "x": "129",
            "y": "0.092298667683500896",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 129,
            "x": "130",
            "y": "0.092307696084763996",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 130,
            "x": "131",
            "y": "0.0931515702019583",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 131,
            "x": "132",
            "y": "0.094483976084764401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 132,
            "x": "133",
            "y": "0.094639524073079101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 133,
            "x": "134",
            "y": "0.095154254186118295",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 134,
            "x": "135",
            "y": "0.095667568012435894",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 135,
            "x": "136",
            "y": "0.096780073866217897",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 136,
            "x": "137",
            "y": "0.097396301696687004",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 137,
            "x": "138",
            "y": "0.097552373020325198",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 138,
            "x": "139",
            "y": "0.097894641396778503",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 139,
            "x": "140",
            "y": "0.098120248603222202",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 140,
            "x": "141",
            "y": "0.099791535651823096",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 141,
            "x": "142",
            "y": "0.10017736464808701",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 142,
            "x": "143",
            "y": "0.100978599449115",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 143,
            "x": "144",
            "y": "0.101201400521861",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 144,
            "x": "145",
            "y": "0.101971084648087",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 145,
            "x": "146",
            "y": "0.10211344876528",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 146,
            "x": "147",
            "y": "0.102187686817617",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 147,
            "x": "148",
            "y": "0.103256283182383",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 148,
            "x": "149",
            "y": "0.104402593915236",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 149,
            "x": "150",
            "y": "0.104402593915236",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 150,
            "x": "151",
            "y": "0.104944159769015",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 151,
            "x": "152",
            "y": "0.104944159769015",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 152,
            "x": "153",
            "y": "0.105891188839109",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 153,
            "x": "154",
            "y": "0.10693295418611901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 154,
            "x": "155",
            "y": "0.10777864356630799",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 155,
            "x": "156",
            "y": "0.108463458219298",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 156,
            "x": "157",
            "y": "0.108537339995098",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 157,
            "x": "158",
            "y": "0.108543047166545",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 158,
            "x": "159",
            "y": "0.109689357899396",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 159,
            "x": "160",
            "y": "0.11057450906519101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 160,
            "x": "161",
            "y": "0.110940805267898",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 161,
            "x": "162",
            "y": "0.11214562231649899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 162,
            "x": "163",
            "y": "0.113576042400513",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 163,
            "x": "164",
            "y": "0.113685262316499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 164,
            "x": "165",
            "y": "0.115149563369252",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 165,
            "x": "166",
            "y": "0.11570448736360001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 166,
            "x": "167",
            "y": "0.117045195971725",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 167,
            "x": "168",
            "y": "0.11734363115070499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 168,
            "x": "169",
            "y": "0.11740607944911501",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 169,
            "x": "170",
            "y": "0.118534476433692",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 170,
            "x": "171",
            "y": "0.118980783482294",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 171,
            "x": "172",
            "y": "0.12096656304935",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 172,
            "x": "173",
            "y": "0.121608899498132",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 173,
            "x": "174",
            "y": "0.12524890860322199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 174,
            "x": "175",
            "y": "0.12524890860322199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 175,
            "x": "176",
            "y": "0.12524890860322199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 176,
            "x": "177",
            "y": "0.125509811396778",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 177,
            "x": "178",
            "y": "0.12663303386621699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 178,
            "x": "179",
            "y": "0.12663303386621699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 179,
            "x": "180",
            "y": "0.12663303386621699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 180,
            "x": "181",
            "y": "0.12952268651770599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 181,
            "x": "182",
            "y": "0.13032848581388101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 182,
            "x": "183",
            "y": "0.130835853915236",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 183,
            "x": "184",
            "y": "0.13086915171667901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 184,
            "x": "185",
            "y": "0.13198216464808701",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 185,
            "x": "186",
            "y": "0.13311944697967501",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 186,
            "x": "187",
            "y": "0.13311944697967501",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 187,
            "x": "188",
            "y": "0.13311944697967501",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 188,
            "x": "189",
            "y": "0.13316177318238301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 189,
            "x": "190",
            "y": "0.13345366302032499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 190,
            "x": "191",
            "y": "0.133927589036165",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 191,
            "x": "192",
            "y": "0.13425585949813301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 192,
            "x": "193",
            "y": "0.13541206844537901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 193,
            "x": "194",
            "y": "0.13594952356630799",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 194,
            "x": "195",
            "y": "0.13736652123471901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 195,
            "x": "196",
            "y": "0.13740613350228401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 196,
            "x": "197",
            "y": "0.13777730581388201",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 197,
            "x": "198",
            "y": "0.138179696733602",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 198,
            "x": "199",
            "y": "0.14031742884929499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 199,
            "x": "200",
            "y": "0.141021289149204",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 200,
            "x": "201",
            "y": "0.14347146410210401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 201,
            "x": "202",
            "y": "0.143631910663926",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 202,
            "x": "203",
            "y": "0.14579931464808699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 203,
            "x": "204",
            "y": "0.14736943313336601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 204,
            "x": "205",
            "y": "0.147460071047851",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 205,
            "x": "206",
            "y": "0.14805119418611801",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 206,
            "x": "207",
            "y": "0.148288431150704",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 207,
            "x": "208",
            "y": "0.14858775139677799",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 208,
            "x": "209",
            "y": "0.14881907410210399",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 209,
            "x": "210",
            "y": "0.148847525813881",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 210,
            "x": "211",
            "y": "0.150813270388828",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 211,
            "x": "212",
            "y": "0.15084149713751799",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 212,
            "x": "213",
            "y": "0.15092929294649701",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 213,
            "x": "214",
            "y": "0.15256219906519",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 214,
            "x": "215",
            "y": "0.153001704186119",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 215,
            "x": "216",
            "y": "0.15326424061490901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 216,
            "x": "217",
            "y": "0.153391591254712",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 217,
            "x": "218",
            "y": "0.15409665459906999",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 218,
            "x": "219",
            "y": "0.154562623020325",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 219,
            "x": "220",
            "y": "0.154562623020325",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 220,
            "x": "221",
            "y": "0.15678026503201101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 221,
            "x": "222",
            "y": "0.157492023153358",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 222,
            "x": "223",
            "y": "0.157624120501867",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 223,
            "x": "224",
            "y": "0.15849489201658901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 224,
            "x": "225",
            "y": "0.162047321987564",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 225,
            "x": "226",
            "y": "0.16372255442200501",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 226,
            "x": "227",
            "y": "0.163894589582147",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 227,
            "x": "228",
            "y": "0.16461643933607401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 228,
            "x": "229",
            "y": "0.16461643933607401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 229,
            "x": "230",
            "y": "0.166252708003403",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 230,
            "x": "231",
            "y": "0.16853500558779999",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 231,
            "x": "232",
            "y": "0.16856985976901601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 232,
            "x": "233",
            "y": "0.16915239461906101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 233,
            "x": "234",
            "y": "0.16995654171667901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 234,
            "x": "235",
            "y": "0.17029390429916",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 235,
            "x": "236",
            "y": "0.17029870535191299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 236,
            "x": "237",
            "y": "0.17058110318238401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 237,
            "x": "238",
            "y": "0.171005909769016",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 238,
            "x": "239",
            "y": "0.17128882570084",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 239,
            "x": "240",
            "y": "0.17169744190354799",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 240,
            "x": "241",
            "y": "0.17330723348229299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 241,
            "x": "242",
            "y": "0.174118132429539",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 242,
            "x": "243",
            "y": "0.17485568139677801",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 243,
            "x": "244",
            "y": "0.17566854503201099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 244,
            "x": "245",
            "y": "0.17586503023098499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 245,
            "x": "246",
            "y": "0.176805173502284",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 246,
            "x": "247",
            "y": "0.17707847768350099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 247,
            "x": "248",
            "y": "0.177742902316499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 248,
            "x": "249",
            "y": "0.17812865418611901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 249,
            "x": "250",
            "y": "0.17853871619780601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 250,
            "x": "251",
            "y": "0.18024410570084001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 251,
            "x": "252",
            "y": "0.18027333831234599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 252,
            "x": "253",
            "y": "0.18118632464808701",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 253,
            "x": "254",
            "y": "0.18190960697967501",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 254,
            "x": "255",
            "y": "0.18213316535191301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 255,
            "x": "256",
            "y": "0.18259523348229301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 256,
            "x": "257",
            "y": "0.183279476084764",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 257,
            "x": "258",
            "y": "0.183455568303313",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 258,
            "x": "259",
            "y": "0.18413487348229399",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 259,
            "x": "260",
            "y": "0.18489731673360199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 260,
            "x": "261",
            "y": "0.18500778779654201",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 261,
            "x": "262",
            "y": "0.18519019041785301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 262,
            "x": "263",
            "y": "0.18978742860322201",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 263,
            "x": "264",
            "y": "0.19008933009795001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 264,
            "x": "265",
            "y": "0.19262602313336499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 265,
            "x": "266",
            "y": "0.194996478219298",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 266,
            "x": "267",
            "y": "0.195450945813882",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 267,
            "x": "268",
            "y": "0.19579815558779901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 268,
            "x": "269",
            "y": "0.19684483050186799",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 269,
            "x": "270",
            "y": "0.19766821608476401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 270,
            "x": "271",
            "y": "0.197743572316499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 271,
            "x": "272",
            "y": "0.19822895576486299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 272,
            "x": "273",
            "y": "0.19881452681761699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 273,
            "x": "274",
            "y": "0.20015839283345599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 274,
            "x": "275",
            "y": "0.20227646263640001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 275,
            "x": "276",
            "y": "0.202431775813881",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 276,
            "x": "277",
            "y": "0.202431775813881",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 277,
            "x": "278",
            "y": "0.20343392643369199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 278,
            "x": "279",
            "y": "0.20475769508102901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 279,
            "x": "280",
            "y": "0.20534298434817699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 280,
            "x": "281",
            "y": "0.206159562016589",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 281,
            "x": "282",
            "y": "0.206327658032428",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 282,
            "x": "283",
            "y": "0.206369906979675",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 283,
            "x": "284",
            "y": "0.20776487210060399",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 284,
            "x": "285",
            "y": "0.20784050178070201",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 285,
            "x": "286",
            "y": "0.20906163968500099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 286,
            "x": "287",
            "y": "0.20909419020195899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 287,
            "x": "288",
            "y": "0.21170071841635399",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 288,
            "x": "289",
            "y": "0.21205507736359999",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 289,
            "x": "290",
            "y": "0.21235011503201101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 290,
            "x": "291",
            "y": "0.21241062570083999",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 291,
            "x": "292",
            "y": "0.21276679938509099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 292,
            "x": "293",
            "y": "0.213164401160891",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 293,
            "x": "294",
            "y": "0.214057508716262",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 294,
            "x": "295",
            "y": "0.215139650614909",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 295,
            "x": "296",
            "y": "0.21536377464808701",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 296,
            "x": "297",
            "y": "0.21552741759948599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 297,
            "x": "298",
            "y": "0.21596411231649901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 298,
            "x": "299",
            "y": "0.21644542085079499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 299,
            "x": "300",
            "y": "0.21735204231649899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 300,
            "x": "301",
            "y": "0.21820394516504399",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 301,
            "x": "302",
            "y": "0.21881471210060399",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 302,
            "x": "303",
            "y": "0.219128608849295",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 303,
            "x": "304",
            "y": "0.219808941160892",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 304,
            "x": "305",
            "y": "0.221561306733602",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 305,
            "x": "306",
            "y": "0.22249606434817701",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 306,
            "x": "307",
            "y": "0.22355550302032501",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 307,
            "x": "308",
            "y": "0.22355550302032501",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 308,
            "x": "309",
            "y": "0.22396444906519",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 309,
            "x": "310",
            "y": "0.22432700386621801",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 310,
            "x": "311",
            "y": "0.22631850011794399",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 311,
            "x": "312",
            "y": "0.22683167852939301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 312,
            "x": "313",
            "y": "0.22815331686663401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 313,
            "x": "314",
            "y": "0.22957593771252599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 314,
            "x": "315",
            "y": "0.23060942860322201",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 315,
            "x": "316",
            "y": "0.23063668938509099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 316,
            "x": "317",
            "y": "0.23155294789939601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 317,
            "x": "318",
            "y": "0.23155294789939601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 318,
            "x": "319",
            "y": "0.23173227350228401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 319,
            "x": "320",
            "y": "0.23182206716654499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 320,
            "x": "321",
            "y": "0.232069636084764",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 321,
            "x": "322",
            "y": "0.23327090736360001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 322,
            "x": "323",
            "y": "0.23460007208061201",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 323,
            "x": "324",
            "y": "0.23550856828332101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 324,
            "x": "325",
            "y": "0.236056341716679",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 325,
            "x": "326",
            "y": "0.239394201396778",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 326,
            "x": "327",
            "y": "0.24141912789939601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 327,
            "x": "328",
            "y": "0.24201082231649901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 328,
            "x": "329",
            "y": "0.24255641023098501",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 329,
            "x": "330",
            "y": "0.24282066789939499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 330,
            "x": "331",
            "y": "0.24360727055088599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 331,
            "x": "332",
            "y": "0.24384508508102901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 332,
            "x": "333",
            "y": "0.24436404434817699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 333,
            "x": "334",
            "y": "0.24499139581388099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 334,
            "x": "335",
            "y": "0.24507978613378301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 335,
            "x": "336",
            "y": "0.245510355081029",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 336,
            "x": "337",
            "y": "0.24573753453504699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 337,
            "x": "338",
            "y": "0.24629437766350901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 338,
            "x": "339",
            "y": "0.24665666581388099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 339,
            "x": "340",
            "y": "0.24698969283345601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 340,
            "x": "341",
            "y": "0.247528088849295",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 341,
            "x": "342",
            "y": "0.24868530895214899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 342,
            "x": "343",
            "y": "0.24890423871626199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 343,
            "x": "344",
            "y": "0.24954740613378201",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 344,
            "x": "345",
            "y": "0.25028422643369203",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 345,
            "x": "346",
            "y": "0.25271433503201102",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 346,
            "x": "347",
            "y": "0.25403951768350103",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 347,
            "x": "348",
            "y": "0.25517382316239101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 348,
            "x": "349",
            "y": "0.25579259884929501",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 349,
            "x": "350",
            "y": "0.25617825136775302",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 350,
            "x": "351",
            "y": "0.25624010821929799",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 351,
            "x": "352",
            "y": "0.25723537441220001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 352,
            "x": "353",
            "y": "0.257789873256211",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 353,
            "x": "354",
            "y": "0.25878030860322199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 354,
            "x": "355",
            "y": "0.25878030860322199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 355,
            "x": "356",
            "y": "0.25947330350228398",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 356,
            "x": "357",
            "y": "0.25992661933607403",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 357,
            "x": "358",
            "y": "0.26023703976901602",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 358,
            "x": "359",
            "y": "0.26023703976901602",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 359,
            "x": "360",
            "y": "0.26063402863224699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 360,
            "x": "361",
            "y": "0.26430881705350301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 361,
            "x": "362",
            "y": "0.26431275063490001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 362,
            "x": "363",
            "y": "0.26433650944911402",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 363,
            "x": "364",
            "y": "0.26498223789939601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 364,
            "x": "365",
            "y": "0.26595096431915199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 365,
            "x": "366",
            "y": "0.26614813093480999",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 366,
            "x": "367",
            "y": "0.26643280055088497",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 367,
            "x": "368",
            "y": "0.26660537210060398",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 368,
            "x": "369",
            "y": "0.26685192388620899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 369,
            "x": "370",
            "y": "0.26844075240051302",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 370,
            "x": "371",
            "y": "0.268678566930658",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 371,
            "x": "372",
            "y": "0.27090849565182301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 372,
            "x": "373",
            "y": "0.27117521023098501",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 373,
            "x": "374",
            "y": "0.272058690550885",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 374,
            "x": "375",
            "y": "0.27357376876528",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 375,
            "x": "376",
            "y": "0.27372978828332101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 376,
            "x": "377",
            "y": "0.27372978828332101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 377,
            "x": "378",
            "y": "0.27372978828332101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 378,
            "x": "379",
            "y": "0.27388353759948603",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 379,
            "x": "380",
            "y": "0.274140572862482",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 380,
            "x": "381",
            "y": "0.27472007949813199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 381,
            "x": "382",
            "y": "0.27721862938509101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 382,
            "x": "383",
            "y": "0.28132567705350298",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 383,
            "x": "384",
            "y": "0.283910114535047",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 384,
            "x": "385",
            "y": "0.28412904429916003",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 385,
            "x": "386",
            "y": "0.28436272128373702",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 386,
            "x": "387",
            "y": "0.28452751441220098",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 387,
            "x": "388",
            "y": "0.28460241055088498",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 388,
            "x": "389",
            "y": "0.28495351600074997",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 389,
            "x": "390",
            "y": "0.28547020418611901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 390,
            "x": "391",
            "y": "0.28680186828332099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 391,
            "x": "392",
            "y": "0.28680186828332099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 392,
            "x": "393",
            "y": "0.28695969654673298",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 393,
            "x": "394",
            "y": "0.28866297949813302",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 394,
            "x": "395",
            "y": "0.29071334860322201",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 395,
            "x": "396",
            "y": "0.29084223464808701",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 396,
            "x": "397",
            "y": "0.29117503759948699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 397,
            "x": "398",
            "y": "0.29371522798341099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 398,
            "x": "399",
            "y": "0.293718673266397",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 399,
            "x": "400",
            "y": "0.295461845351913",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 400,
            "x": "401",
            "y": "0.295461845351913",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 401,
            "x": "402",
            "y": "0.296325859498133",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 402,
            "x": "403",
            "y": "0.29671571496798899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 403,
            "x": "404",
            "y": "0.299080315052004",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 404,
            "x": "405",
            "y": "0.29939411434817698",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 405,
            "x": "406",
            "y": "0.30010400085079503",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 406,
            "x": "407",
            "y": "0.30024932233649099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 407,
            "x": "408",
            "y": "0.30052095023098402",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 408,
            "x": "409",
            "y": "0.30126783876528102",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 409,
            "x": "410",
            "y": "0.30162574938509101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 410,
            "x": "411",
            "y": "0.302582928603222",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 411,
            "x": "412",
            "y": "0.30427844643369201",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 412,
            "x": "413",
            "y": "0.30494115231649899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 413,
            "x": "414",
            "y": "0.30595817944911502",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 414,
            "x": "415",
            "y": "0.30796431705350402",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 415,
            "x": "416",
            "y": "0.308172607599487",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 416,
            "x": "417",
            "y": "0.30825080091481899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 417,
            "x": "418",
            "y": "0.30826851334022698",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 418,
            "x": "419",
            "y": "0.30848975464808698",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 419,
            "x": "420",
            "y": "0.30909532442200499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 420,
            "x": "421",
            "y": "0.30956520766350998",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 421,
            "x": "422",
            "y": "0.31117748681761598",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 422,
            "x": "423",
            "y": "0.31140096464808698",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 423,
            "x": "424",
            "y": "0.31173717326639799",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 424,
            "x": "425",
            "y": "0.312102096979675",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 425,
            "x": "426",
            "y": "0.31316765302032501",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 426,
            "x": "427",
            "y": "0.313470108283321",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 427,
            "x": "428",
            "y": "0.31375915244953101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 428,
            "x": "429",
            "y": "0.314056881716679",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 429,
            "x": "430",
            "y": "0.31575194464808698",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 430,
            "x": "431",
            "y": "0.31668442883910902",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 431,
            "x": "432",
            "y": "0.32103819139677803",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 432,
            "x": "433",
            "y": "0.321427541583647",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 433,
            "x": "434",
            "y": "0.32188014833233802",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 434,
            "x": "435",
            "y": "0.32215902263640001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 435,
            "x": "436",
            "y": "0.32289069592692099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 436,
            "x": "437",
            "y": "0.32363683608476501",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 437,
            "x": "438",
            "y": "0.32423308139677798",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 438,
            "x": "439",
            "y": "0.32533717705350301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 439,
            "x": "440",
            "y": "0.32574644302032502",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 440,
            "x": "441",
            "y": "0.32624148442200501",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 441,
            "x": "442",
            "y": "0.32639984318238402",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 442,
            "x": "443",
            "y": "0.32723572348229402",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 443,
            "x": "444",
            "y": "0.32784649041785302",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 444,
            "x": "445",
            "y": "0.32824195779654203",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 445,
            "x": "446",
            "y": "0.329229919769015",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 446,
            "x": "447",
            "y": "0.32993732906519002",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 447,
            "x": "448",
            "y": "0.33006612746645297",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 448,
            "x": "449",
            "y": "0.33017484675359299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 449,
            "x": "450",
            "y": "0.330463891367753",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 450,
            "x": "451",
            "y": "0.33068665093480998",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 451,
            "x": "452",
            "y": "0.33129906178070301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 452,
            "x": "453",
            "y": "0.331970306979675",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 453,
            "x": "454",
            "y": "0.33199262038882799",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 454,
            "x": "455",
            "y": "0.33365916863224698",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 455,
            "x": "456",
            "y": "0.33414795565182298",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 456,
            "x": "457",
            "y": "0.33776674938509099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 457,
            "x": "458",
            "y": "0.33933675968500099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 458,
            "x": "459",
            "y": "0.33959415651770603",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 459,
            "x": "460",
            "y": "0.33959415651770603",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 460,
            "x": "461",
            "y": "0.34018875597172499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 461,
            "x": "462",
            "y": "0.34079727418611799",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 462,
            "x": "463",
            "y": "0.34147742082177002",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 463,
            "x": "464",
            "y": "0.343190991396778",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 464,
            "x": "465",
            "y": "0.34365072828332099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 465,
            "x": "466",
            "y": "0.34626256224266999",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 466,
            "x": "467",
            "y": "0.34633113906518997",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 467,
            "x": "468",
            "y": "0.34704480324640702",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 468,
            "x": "469",
            "y": "0.347093544648087",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 469,
            "x": "470",
            "y": "0.34724614787037",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 470,
            "x": "471",
            "y": "0.347891198332338",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 471,
            "x": "472",
            "y": "0.34811788965597601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 472,
            "x": "473",
            "y": "0.35123332503201199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 473,
            "x": "474",
            "y": "0.351812123295423",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 474,
            "x": "475",
            "y": "0.35225348348229302",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 475,
            "x": "476",
            "y": "0.352697961470606",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 476,
            "x": "477",
            "y": "0.35279238789939599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 477,
            "x": "478",
            "y": "0.35321341496798903",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 478,
            "x": "479",
            "y": "0.35654943789939603",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 479,
            "x": "480",
            "y": "0.35687127693065801",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 480,
            "x": "481",
            "y": "0.35825126464808699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 481,
            "x": "482",
            "y": "0.35825719326639799",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 482,
            "x": "483",
            "y": "0.35844128675359299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 483,
            "x": "484",
            "y": "0.35883792503201101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 484,
            "x": "485",
            "y": "0.3594849726364",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 485,
            "x": "486",
            "y": "0.36016790759948702",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 486,
            "x": "487",
            "y": "0.36101579315335802",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 487,
            "x": "488",
            "y": "0.36102134464808699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 488,
            "x": "489",
            "y": "0.36117687302032497",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 489,
            "x": "490",
            "y": "0.36649976789939598",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 490,
            "x": "491",
            "y": "0.367057767250559",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 491,
            "x": "492",
            "y": "0.36811308418611899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 492,
            "x": "493",
            "y": "0.36878375242953998",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 493,
            "x": "494",
            "y": "0.368981766979675",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 494,
            "x": "495",
            "y": "0.36925939491897097",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 495,
            "x": "496",
            "y": "0.37036234020195802",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 496,
            "x": "497",
            "y": "0.370698933502284",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 497,
            "x": "498",
            "y": "0.374119303482294",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 498,
            "x": "499",
            "y": "0.37655987228747401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 499,
            "x": "500",
            "y": "0.37655987228747401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 500,
            "x": "501",
            "y": "0.376763685926921",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 501,
            "x": "502",
            "y": "0.37770618302032499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 502,
            "x": "503",
            "y": "0.37855210139677797",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 503,
            "x": "504",
            "y": "0.37898424613378301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 504,
            "x": "505",
            "y": "0.37912668600075",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 505,
            "x": "506",
            "y": "0.37998976608476498",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 506,
            "x": "507",
            "y": "0.38210254155462098",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 507,
            "x": "508",
            "y": "0.38636561496798899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 508,
            "x": "509",
            "y": "0.38679911434817699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 509,
            "x": "510",
            "y": "0.388525403246406",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 510,
            "x": "511",
            "y": "0.38903522589789602",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 511,
            "x": "512",
            "y": "0.38943070968500099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 512,
            "x": "513",
            "y": "0.38980346104785102",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 513,
            "x": "514",
            "y": "0.39057702041785403",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 514,
            "x": "515",
            "y": "0.39093198055088502",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 515,
            "x": "516",
            "y": "0.39099634464808702",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 516,
            "x": "517",
            "y": "0.39118344876528",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 517,
            "x": "518",
            "y": "0.391384693182383",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 518,
            "x": "519",
            "y": "0.39206949325621099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 519,
            "x": "520",
            "y": "0.392157867899396",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 520,
            "x": "521",
            "y": "0.39260863380219402",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 521,
            "x": "522",
            "y": "0.39292055421514399",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 522,
            "x": "523",
            "y": "0.39310009171667898",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 523,
            "x": "524",
            "y": "0.393175071170696",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 524,
            "x": "525",
            "y": "0.39381267979804102",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 525,
            "x": "526",
            "y": "0.39464047748644498",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 526,
            "x": "527",
            "y": "0.39509063828332103",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 527,
            "x": "528",
            "y": "0.39653902391523599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 528,
            "x": "529",
            "y": "0.39799923139677801",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 529,
            "x": "530",
            "y": "0.399142075813882",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 530,
            "x": "531",
            "y": "0.399142075813882",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 531,
            "x": "532",
            "y": "0.399989951367753",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 532,
            "x": "533",
            "y": "0.40197215240051298",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 533,
            "x": "534",
            "y": "0.40219157903616498",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 534,
            "x": "535",
            "y": "0.40370462196757201",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 535,
            "x": "536",
            "y": "0.40432987464808701",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 536,
            "x": "537",
            "y": "0.40552001906518997",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 537,
            "x": "538",
            "y": "0.406053124206111",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 538,
            "x": "539",
            "y": "0.40802769565182301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 539,
            "x": "540",
            "y": "0.41093679231649899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 540,
            "x": "541",
            "y": "0.41178467787036999",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 541,
            "x": "542",
            "y": "0.41178467787036999",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 542,
            "x": "543",
            "y": "0.41195276388620999",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 543,
            "x": "544",
            "y": "0.412801603482293",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 544,
            "x": "545",
            "y": "0.41447301654673302",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 545,
            "x": "546",
            "y": "0.41591605190354802",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 546,
            "x": "547",
            "y": "0.416539312749441",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 547,
            "x": "548",
            "y": "0.41665926579388801",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 548,
            "x": "549",
            "y": "0.41816666779654199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 549,
            "x": "550",
            "y": "0.418842069769015",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 550,
            "x": "551",
            "y": "0.42000793085079602",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 551,
            "x": "552",
            "y": "0.42224307748644602",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 552,
            "x": "553",
            "y": "0.42298479491897101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 553,
            "x": "554",
            "y": "0.42455435592691998",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 554,
            "x": "555",
            "y": "0.42549684302032498",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 555,
            "x": "556",
            "y": "0.42561492380219401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 556,
            "x": "557",
            "y": "0.42669659380219499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 557,
            "x": "558",
            "y": "0.42986379851920598",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 558,
            "x": "559",
            "y": "0.43009106423513599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 559,
            "x": "560",
            "y": "0.43031909358629999",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 560,
            "x": "561",
            "y": "0.43158429199659798",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 561,
            "x": "562",
            "y": "0.43298511968500097",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 562,
            "x": "563",
            "y": "0.43351047789939601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 563,
            "x": "564",
            "y": "0.435277741150705",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 564,
            "x": "565",
            "y": "0.43695983936509902",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 565,
            "x": "566",
            "y": "0.43768151242953901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 566,
            "x": "567",
            "y": "0.43802936196757197",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 567,
            "x": "568",
            "y": "0.44127792978900798",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 568,
            "x": "569",
            "y": "0.44227629318238398",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 569,
            "x": "570",
            "y": "0.44376957503201098",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 570,
            "x": "571",
            "y": "0.44384447117069697",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 571,
            "x": "572",
            "y": "0.446660235165044",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 572,
            "x": "573",
            "y": "0.44715183757046101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 573,
            "x": "574",
            "y": "0.44756119473210199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 574,
            "x": "575",
            "y": "0.44815579418611901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 575,
            "x": "576",
            "y": "0.44886353938509099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 576,
            "x": "577",
            "y": "0.44905799231649901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 577,
            "x": "578",
            "y": "0.45091438407307899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 578,
            "x": "579",
            "y": "0.451405841987564",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 579,
            "x": "580",
            "y": "0.45176281240051402",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 580,
            "x": "581",
            "y": "0.452767961396778",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 581,
            "x": "582",
            "y": "0.45413055670457703",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 582,
            "x": "583",
            "y": "0.46377506592692103",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 583,
            "x": "584",
            "y": "0.46685128976901502",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 584,
            "x": "585",
            "y": "0.46775383411229099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 585,
            "x": "586",
            "y": "0.46813494581388099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 586,
            "x": "587",
            "y": "0.47120396613378202",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 587,
            "x": "588",
            "y": "0.47200620199659798",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 588,
            "x": "589",
            "y": "0.473359332129629",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 589,
            "x": "590",
            "y": "0.47343025976901598",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 590,
            "x": "591",
            "y": "0.47500351883910902",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 591,
            "x": "592",
            "y": "0.47619348871626199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 592,
            "x": "593",
            "y": "0.47721247787037102",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 593,
            "x": "594",
            "y": "0.47864327516504401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 594,
            "x": "595",
            "y": "0.47879535683760899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 595,
            "x": "596",
            "y": "0.479789585897896",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 596,
            "x": "597",
            "y": "0.48117371116089103",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 597,
            "x": "598",
            "y": "0.482234289036165",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 598,
            "x": "599",
            "y": "0.48719741171667902",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 599,
            "x": "600",
            "y": "0.48939430697967401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 600,
            "x": "601",
            "y": "0.48986533523887299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 601,
            "x": "602",
            "y": "0.49269594860322202",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 602,
            "x": "603",
            "y": "0.49567773990205",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 603,
            "x": "604",
            "y": "0.49632780231649898",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 604,
            "x": "605",
            "y": "0.49869788023098499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 605,
            "x": "606",
            "y": "0.49943882643369297",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 606,
            "x": "607",
            "y": "0.50135803326639705",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 607,
            "x": "608",
            "y": "0.50172198274944102",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 608,
            "x": "609",
            "y": "0.50335975139677802",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 609,
            "x": "610",
            "y": "0.50335975139677802",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 610,
            "x": "611",
            "y": "0.50424422705350302",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 611,
            "x": "612",
            "y": "0.50535394768350095",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 612,
            "x": "613",
            "y": "0.50572735231649901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 613,
            "x": "614",
            "y": "0.50901230651770701",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 614,
            "x": "615",
            "y": "0.51346215306934195",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 615,
            "x": "616",
            "y": "0.51565704697967396",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 616,
            "x": "617",
            "y": "0.51702052908518104",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 617,
            "x": "618",
            "y": "0.51804739600075",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 618,
            "x": "619",
            "y": "0.51855295949813196",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 619,
            "x": "620",
            "y": "0.52204433755046897",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 620,
            "x": "621",
            "y": "0.52417531196757206",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 621,
            "x": "622",
            "y": "0.52516153697967505",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 622,
            "x": "623",
            "y": "0.52947220558779895",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 623,
            "x": "624",
            "y": "0.52967705139677801",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 624,
            "x": "625",
            "y": "0.53095297233649097",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 625,
            "x": "626",
            "y": "0.536092857663509",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 626,
            "x": "627",
            "y": "0.53736161801243698",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 627,
            "x": "628",
            "y": "0.53772568326639802",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 628,
            "x": "629",
            "y": "0.539094886950649",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 629,
            "x": "630",
            "y": "0.54039474356630801",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 630,
            "x": "631",
            "y": "0.54102925011794301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 631,
            "x": "632",
            "y": "0.54363576833233795",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 632,
            "x": "633",
            "y": "0.54809865727055096",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 633,
            "x": "634",
            "y": "0.54879284581388199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 634,
            "x": "635",
            "y": "0.54981944418611794",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 635,
            "x": "636",
            "y": "0.54996866576486303",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 636,
            "x": "637",
            "y": "0.55652803821929697",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 637,
            "x": "638",
            "y": "0.55841545386621805",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 638,
            "x": "639",
            "y": "0.56002773302032505",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 639,
            "x": "640",
            "y": "0.56360179693065804",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 640,
            "x": "641",
            "y": "0.56429187050186802",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 641,
            "x": "642",
            "y": "0.56440437865224002",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 642,
            "x": "643",
            "y": "0.56665232484514205",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 643,
            "x": "644",
            "y": "0.56944971683760903",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 644,
            "x": "645",
            "y": "0.57009520496798904",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 645,
            "x": "646",
            "y": "0.57495567329542296",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 646,
            "x": "647",
            "y": "0.58007489503201104",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 647,
            "x": "648",
            "y": "0.58546813697967504",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 648,
            "x": "649",
            "y": "0.58581510809645099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 649,
            "x": "650",
            "y": "0.58613726906519004",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 650,
            "x": "651",
            "y": "0.58729792884929599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 651,
            "x": "652",
            "y": "0.58759065576486302",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 652,
            "x": "653",
            "y": "0.58796918325620995",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 653,
            "x": "654",
            "y": "0.58805455673360196",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 654,
            "x": "655",
            "y": "0.59118599093480995",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 655,
            "x": "656",
            "y": "0.59218351828332105",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 656,
            "x": "657",
            "y": "0.59249394871626204",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 657,
            "x": "658",
            "y": "0.59364025944911403",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 658,
            "x": "659",
            "y": "0.59525253860322203",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 659,
            "x": "660",
            "y": "0.59525253860322203",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 660,
            "x": "661",
            "y": "0.595771233866218",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 661,
            "x": "662",
            "y": "0.59910882283345601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 662,
            "x": "663",
            "y": "0.60084973302032596",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 663,
            "x": "664",
            "y": "0.601031532420506",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 664,
            "x": "665",
            "y": "0.60229969139677797",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 665,
            "x": "666",
            "y": "0.60740586464808699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 666,
            "x": "667",
            "y": "0.61020201828332099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 667,
            "x": "668",
            "y": "0.61108313407308001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 668,
            "x": "669",
            "y": "0.61124104675359403",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 669,
            "x": "670",
            "y": "0.61322368386621795",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 670,
            "x": "671",
            "y": "0.61601732464808701",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 671,
            "x": "672",
            "y": "0.62066394505200395",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 672,
            "x": "673",
            "y": "0.62182291325621097",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 673,
            "x": "674",
            "y": "0.62250917418611895",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 674,
            "x": "675",
            "y": "0.62648143976901505",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 675,
            "x": "676",
            "y": "0.63276996565182297",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 676,
            "x": "677",
            "y": "0.64024990860322195",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 677,
            "x": "678",
            "y": "0.64340934302032504",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 678,
            "x": "679",
            "y": "0.64340934302032504",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 679,
            "x": "680",
            "y": "0.64475320903616495",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 680,
            "x": "681",
            "y": "0.64547403155462102",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 681,
            "x": "682",
            "y": "0.64593926326639695",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 682,
            "x": "683",
            "y": "0.64662657464808704",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 683,
            "x": "684",
            "y": "0.65148998670457703",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 684,
            "x": "685",
            "y": "0.65547830697967502",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 685,
            "x": "686",
            "y": "0.65589373503201098",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 686,
            "x": "687",
            "y": "0.65689809946910804",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 687,
            "x": "688",
            "y": "0.65944678294649695",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 688,
            "x": "689",
            "y": "0.661939603266398",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 689,
            "x": "690",
            "y": "0.66583949508102902",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 690,
            "x": "691",
            "y": "0.66684846050186797",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 691,
            "x": "692",
            "y": "0.66799477123471995",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 692,
            "x": "693",
            "y": "0.67137960176148204",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 693,
            "x": "694",
            "y": "0.67721043535191305",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 694,
            "x": "695",
            "y": "0.67755530313336498",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 695,
            "x": "696",
            "y": "0.68889758313336502",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 696,
            "x": "697",
            "y": "0.68999483976901599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 697,
            "x": "698",
            "y": "0.69456514588770901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 698,
            "x": "699",
            "y": "0.70380487768350097",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 699,
            "x": "700",
            "y": "0.71042905038882798",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 700,
            "x": "701",
            "y": "0.71652947134776002",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 701,
            "x": "702",
            "y": "0.72308590860322197",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 702,
            "x": "703",
            "y": "0.73469155345326698",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 703,
            "x": "704",
            "y": "0.73615176093481005",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 704,
            "x": "705",
            "y": "0.73663419581388101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 705,
            "x": "706",
            "y": "0.74565385597172495",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 706,
            "x": "707",
            "y": "0.74565385597172495",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 707,
            "x": "708",
            "y": "0.75080447581388099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 708,
            "x": "709",
            "y": "0.75193471263639999",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 709,
            "x": "710",
            "y": "0.75422733410210396",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 710,
            "x": "711",
            "y": "0.75550321651770702",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 711,
            "x": "712",
            "y": "0.755859342016589",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 712,
            "x": "713",
            "y": "0.76985182496798898",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 713,
            "x": "714",
            "y": "0.77440093410210398",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 714,
            "x": "715",
            "y": "0.77514115588770904",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 715,
            "x": "716",
            "y": "0.78202497228747303",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 716,
            "x": "717",
            "y": "0.78317128302032502",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 717,
            "x": "718",
            "y": "0.78830429938509095",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 718,
            "x": "719",
            "y": "0.78830429938509095",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 719,
            "x": "720",
            "y": "0.78989551066392605",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 720,
            "x": "721",
            "y": "0.79695372771252604",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 721,
            "x": "722",
            "y": "0.79940339023098395",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 722,
            "x": "723",
            "y": "0.80099215139677804",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 723,
            "x": "724",
            "y": "0.80959206933607397",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 724,
            "x": "725",
            "y": "0.81696560884929503",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 725,
            "x": "726",
            "y": "0.81802705286248101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 726,
            "x": "727",
            "y": "0.82946658705350296",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 727,
            "x": "728",
            "y": "0.845929457550469",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 728,
            "x": "729",
            "y": "0.855005019449115",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 729,
            "x": "730",
            "y": "0.86367123418611902",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 730,
            "x": "731",
            "y": "0.86398513093481",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 731,
            "x": "732",
            "y": "0.87656902020195804",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 732,
            "x": "733",
            "y": "0.88700638588770897",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 733,
            "x": "734",
            "y": "0.89022982503201098",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 734,
            "x": "735",
            "y": "0.89543713324640695",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 735,
            "x": "736",
            "y": "0.91049922231649905",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 736,
            "x": "737",
            "y": "0.927509437550468",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 737,
            "x": "738",
            "y": "0.93259949558779998",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 738,
            "x": "739",
            "y": "0.93443474210060495",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 739,
            "x": "740",
            "y": "0.944273215351913",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 740,
            "x": "741",
            "y": "0.94808993294649602",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 741,
            "x": "742",
            "y": "0.96247093139677797",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 742,
            "x": "743",
            "y": "0.96502686459906994",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 743,
            "x": "744",
            "y": "0.96602856697967399",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 744,
            "x": "745",
            "y": "1.0176453814706099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 745,
            "x": "746",
            "y": "1.0762984757648599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 746,
            "x": "747",
            "y": "1.0913371555878",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 747,
            "x": "748",
            "y": "1.10851314418612",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 748,
            "x": "749",
            "y": "1.12751406139678",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 749,
            "x": "750",
            "y": "1.16883376302033",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 750,
            "x": "751",
            "y": "1.1900205182833199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 751,
            "x": "752",
            "y": "1.2509518669306601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 752,
            "x": "753",
            "y": "1.40242991965598",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 753,
            "x": "754",
            "y": "1.90130875148079",
            "defined": true,
            "xExact": "",
            "yExact": ""
          }
        ],
        "plotFile": "ml20-code/r-realdata-person-result/plot.svg",
        "fullResultFile": "ml20-code/r-realdata-person-result/full.json",
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      },
      "company": {
        "api": "realdata",
        "variant": "company",
        "language": "r",
        "title": "Actual churn: calibration and prediction sets",
        "input": {
          "kind": "company"
        },
        "expectedFailure": false,
        "codeFile": "ml20-code/realdata-company.R",
        "codeSHA256": "b2ba9d1b8fd255387680b8ba7db41eab0320a1fc38f9ee467cccd8141641b2a8",
        "code": "# ML20 complete standalone numerical fixed examples, no browser/model/results.\n# Base-R QR1e-12/membership1e-12; tiny log loss uses log-domain normalized\n# weights to avoid early underflow. This is an approximate counterpart, not\n# a general exact-rational numeric-token validator. Fixed alpha uses small fractions.\noptions(digits=17)\nfixedSource<-function(kind){\n src<-file.path(dirname(sub(\"^--file=\",\"\",grep(\"^--file=\",commandArgs(),value=TRUE)[1])),\"data\")\nreadnative<-function(n)read.csv(file.path(src,n),check.names=FALSE,colClasses='character',na.strings=NULL,stringsAsFactors=FALSE)\nnum<-function(x){a<-suppressWarnings(as.numeric(x));a[x%in%c('','.')] <- NA_real_;a}\nroles<-function(d){n<-nrow(d);rank<-as.integer(d$splitRank);if(!identical(sort(rank),0:(n-1)))stop('splitRank permutation');planned<-c('test','calibration','train','train')[rank%%4+1];if(any(planned!=d$plannedRole))stop('planned roles');list(rank=rank,planned=planned)}\noriginal<-readnative('actual48-country-revised-original-2023-2024.csv');derived<-readnative('derived16-country-features-and-roles.csv');isos<-sort(unique(original$countryISO3));lookup<-function(iso,code,year){r<-original[original$countryISO3==iso&original$indicatorID==code&original$date==year,,drop=FALSE];if(nrow(r)!=1)stop('country identity');num(r$originalValueToken)}\ncr<-roles(derived);if(!identical(isos,derived$countryISO3))stop('country order');country<-list(id=paste0(isos,':2024'),sourceRow=isos,x=cbind(vapply(isos,lookup,numeric(1),code='NY.GDP.PCAP.KD',year='2023')/10000,vapply(isos,lookup,numeric(1),code='FP.CPI.TOTL.ZG',year='2023')/10),y=vapply(isos,lookup,numeric(1),code='NY.GDP.MKTP.KD.ZG',year='2024'),rank=cr$rank,planned=cr$planned,names=c('g','pi'),unit='annual GDP growth percentage points')\npd<-readnative('actual3613-NLS-original52-fields-and-conformal-frame.csv');pr<-roles(pd);person<-list(id=paste0('person-row:',pd$sourceRow),sourceRow=pd$sourceRow,x=cbind(num(pd$ed76),num(pd$age76)),y=num(pd$lwage76),rank=pr$rank,planned=pr$planned,names=c('ed76','age76'),unit='native trimmed1976log hourly wage')\ncd<-readnative('actual3150-churn-original14-fields-and-conformal-frame.csv');rr<-roles(cd);company<-list(id=paste0('customer-row:',cd$sourceRow),sourceRow=cd$sourceRow,x=cbind(num(cd[['Call  Failure']]),num(cd[['Seconds of Use']])),y=num(cd$Churn),rank=rr$rank,planned=rr$planned,names=c('CallFailure','SecondsUse'),unit='native Churn0/1')\nmodels<-list(country=country,person=person,company=company)\n\nmodels<-models[kind]\nalphaToken<-\"1/5\";ridgeToken<-\"1/100\"\nqnum<-function(s){v<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(v)==2)as.numeric(v[1])/as.numeric(v[2])else as.numeric(v)}\nalphaParts<-function(s){v<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(v)==2&&all(grepl('^[0-9]+$',v))){a<-as.numeric(v[1]);b<-as.numeric(v[2])}else if(grepl('^[0-9]+([.][0-9]{1,6})?$',s)){n<-if(grepl('.',s,fixed=TRUE))nchar(sub('^[^.]*[.]','',s))else 0;a<-as.numeric(gsub('.','',s,fixed=TRUE));b<-10^n}else stop('Base-R alpha needs small integer fraction or <=6decimal places');if(a<=0||a>=b||b>1e6)stop('Require0<alpha<1 with denominator<=1e6');c(a,b)}\nap<-alphaParts(alphaToken);alpha<-ap[1]/ap[2];lambda<-qnum(ridgeToken);if(!is.finite(lambda)||lambda<0)stop('nonnegative finite ridge required')\nnamesOut<-c('study-metrics','training-coefficients','calibration-scores','row-predictions','eligibility','role-group-coverage','reliability-bins');outputs<-setNames(lapply(namesOut,function(n)list()),namesOut)\nemit<-function(name,row)outputs[[name]][[length(outputs[[name]])+1L]]<<-row\nmetric<-function(kind,name,value,unit,arithmetic='binary64 approximation'){emit('study-metrics',list(kind=kind,metric=name,value=if(is.null(value))NA else value,unit=unit,defined=as.integer(!is.null(value)&&!is.na(value)),arithmetic=arithmetic))}\nfor(kind in names(models)){\n m<-models[[kind]];complete<-rowSums(is.na(m$x))==0&!is.na(m$y);role<-ifelse(complete,m$planned,'excluded');train<-which(role=='train');n<-length(train);stopifnot(n>0);meanX<-colMeans(m$x[train,,drop=FALSE]);scale<-apply(m$x[train,,drop=FALSE],2,function(x)diff(range(x)));scale[scale==0]<-1;Z<-cbind(1,sweep(sweep(m$x,2,meanX,'-'),2,scale,'/'));H<-crossprod(Z[train,,drop=FALSE])/n+diag(c(0,lambda,lambda));b<-as.vector(crossprod(Z[train,,drop=FALSE],m$y[train]))/n;qrfit<-qr(H,tol=1e-12,LAPACK=FALSE);theta<-qr.coef(qrfit,b);theta[is.na(theta)]<-0;minimum<-as.numeric(crossprod(theta,H%*%theta)/2-sum(theta*b)+sum(m$y[train]^2)/(2*n));beta<-theta[-1]/scale;intercept<-theta[1]-sum(beta*meanX);raw<-as.vector(Z%*%theta);pred<-if(kind=='company')pmax(0,pmin(1,raw))else raw;defined<-!is.na(pred);group<-if(kind=='person')ifelse(m$x[,1]<=12,'schooling-at-most12','schooling-over12')else if(kind=='company')ifelse(m$x[,1]==0,'zero-call-failures','positive-call-failures')else ifelse(m$x[,1]<=meanX[1],'GDPpc-at-most-training-mean','GDPpc-above-training-mean');group[is.na(raw)]<-'missing-X';cal<-which(role=='calibration'&defined&!is.na(m$y));score<-if(kind=='company')ifelse(m$y[cal]==1,1-pred[cal],pred[cal])else abs(m$y[cal]-pred[cal]);ordered<-order(score,seq_along(score));k<-ceiling((length(cal)+1)*(ap[2]-ap[1])/ap[2]);threshold<-if(k<=length(cal))score[ordered[k]]else Inf;unbounded<-is.infinite(threshold)\n for(j in seq_along(ordered)){slot<-ordered[j];i<-cal[slot];emit('calibration-scores',list(kind=kind,rank=j,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,calibrationIndex0=slot-1,score=score[slot],threshold=threshold,thresholdInfinite=as.integer(unbounded)))}\n for(j in 1:2)emit('training-coefficients',list(kind=kind,feature=m$names[j],mean=meanX[j],scale=scale[j],theta=theta[j+1],nativeSlope=beta[j],transformedIntercept=theta[1],nativeIntercept=intercept,rank=qrfit$rank,unique=as.integer(qrfit$rank==3),lambdaValue=lambda,minimumObjective=minimum))\n metrics<-list(sourceRows=length(role),trainingRows=n,calibrationScores=length(cal),testLabeledRows=sum(role=='test'&!is.na(m$y)),excludedRows=sum(role=='excluded'),alpha=alpha,ridge=lambda,quantileRank=k,threshold=threshold,minimumObjective=minimum);units<-c('rows','rows','unit-count scores','rows','rows','probability','transformed slope penalty','one-based rank',if(kind=='company')'dimensionless score'else m$unit,paste0('(',m$unit,') squared'))\n for(j in seq_along(metrics))metric(kind,names(metrics)[j],metrics[[j]],units[j],if(is.infinite(metrics[[j]]))'mathematical infinity'else if(j%in%c(1:5,8))'integer count'else'binary64 approximation')\n labeled<-defined&!is.na(m$y);covered<-rep(NA_integer_,length(role));lo<-hi<-width<-rep(NA_real_,length(role));setSize<-rep(NA_integer_,length(role));setLabels<-rep('',length(role))\n if(kind=='company'){\n  zero<-defined&(unbounded|pred<=threshold+1e-12);one<-defined&(unbounded|1-pred<=threshold+1e-12);setSize[defined]<-as.integer(zero[defined])+as.integer(one[defined]);setLabels[zero&!one]<-'0';setLabels[!zero&one]<-'1';setLabels[zero&one]<-'0|1';covered[labeled]<-as.integer((m$y[labeled]==0&zero[labeled])|(m$y[labeled]==1&one[labeled]))\n }else{lo[defined]<-pred[defined]-threshold;hi[defined]<-pred[defined]+threshold;width[defined]<-2*threshold;tol<-1e-12*pmax(1,abs(m$y[labeled]),abs(pred[labeled]),if(is.finite(threshold))abs(threshold)else 1);covered[labeled]<-as.integer(unbounded|abs(m$y[labeled]-pred[labeled])<=threshold+tol)}\n for(i in seq_along(role)){\n  emit('row-predictions',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],sourceIndex0=i-1,plannedRole=m$planned[i],role=role[i],group=group[i],actualY=m$y[i],rawLinear=raw[i],prediction=pred[i],predictionDefined=as.integer(defined[i]),threshold=threshold,thresholdInfinite=as.integer(unbounded),lower=lo[i],upper=hi[i],width=width[i],setLabels=setLabels[i],setSize=setSize[i],covered=covered[i],labeledPrediction=as.integer(labeled[i])))\n  emit('eligibility',list(kind=kind,id=m$id[i],sourceRow=m$sourceRow[i],plannedRole=m$planned[i],role=role[i],requiredComplete=as.integer(complete[i]),trainingUsed=as.integer(role[i]=='train'&complete[i]),reason=if(complete[i])''else'missing-required-field'))\n }\n for(rol in unique(role))for(gr in c('all',unique(group))){use<-which(role==rol&(gr=='all'|group==gr));def<-use[defined[use]];scored<-use[labeled[use]&!role[use]%in%c('excluded','unused')];nn<-length(def);ns<-length(scored);cv<-sum(covered[scored]);ub<-if(kind=='company')0 else sum(is.infinite(width[def]));emit('role-group-coverage',list(kind=kind,role=rol,group=gr,originalRows=length(use),definedPredictions=nn,scoredLabels=ns,coveredRows=cv,coverage=if(ns)cv/ns else NA_real_,meanSetSize=if(kind=='company'&&nn)mean(setSize[def])else NA_real_,meanIntervalWidth=if(kind!='company'&&nn)mean(width[def])else NA_real_,unboundedIntervals=ub))}\n if(kind=='company')for(rol in c('train','calibration','test')){\n  ix<-which(role==rol&labeled);pp<-pred[ix];yy<-m$y[ix];N<-length(ix);bin<-pmin(4,floor(pp*5));yb<-if(N)mean(yy)else NA_real_;ece<-rel<-res<-vp<-cp<-0\n  for(j in 0:4){take<-which(bin==j);nb<-length(take);pm<-if(nb)mean(pp[take])else NA_real_;ym<-if(nb)mean(yy[take])else NA_real_;v<-if(nb)mean((pp[take]-pm)^2)else NA_real_;co<-if(nb)mean((pp[take]-pm)*(yy[take]-ym))else NA_real_;emit('reliability-bins',list(kind=kind,role=rol,bin=j,lower=j/5,upper=(j+1)/5,rightClosed=as.integer(j==4),rows=nb,meanP=pm,frequencyY1=ym,gap=pm-ym,withinVarianceP=v,withinCovariancePY=co));if(nb){z<-nb/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*co}}\n  mm<-list(ECE=if(N)ece else NA_real_,Brier=if(N)mean((pp-yy)^2)else NA_real_,uncertainty=yb*(1-yb),resolution=if(N)res else NA_real_,reliability=if(N)rel else NA_real_,withinVarianceP=if(N)vp else NA_real_,withinCovariancePY=if(N)cp else NA_real_);for(name in names(mm))metric(kind,paste0(rol,':',name),mm[[name]],if(name=='ECE')'dimensionless'else'squared probability');prob<-ifelse(yy==1,pp,1-pp);ll<-if(!N)NA_real_ else if(any(prob==0))Inf else-mean(log(prob));metric(kind,paste0(rol,':meanLogLoss'),ll,'nats','binary64 approximation or genuine infinity')\n }\n}\n\noutputs\n}\n\n# New fixed-example numerical adapters. Not arbitrary exact-input validators.\nnum20<-function(v){s<-as.character(v);a<-strsplit(s,'/',fixed=TRUE)[[1]];if(length(a)==2)as.numeric(a[1])/as.numeric(a[2])else as.numeric(s)}\nalpha20<-function(s){a<-strsplit(as.character(s),'/',fixed=TRUE)[[1]];if(length(a)==2){n<-as.numeric(a[1]);d<-as.numeric(a[2])}else{n<-as.numeric(a[1]);d<-1};if(n<=0||n>=d)stop('alpha-must-be-strictly-between-zero-and-one');c(n,d)}\nquantile20<-function(scores,alpha){ap<-alpha20(alpha);keep<-which(!vapply(scores,is.null,logical(1)));vv<-vapply(scores[keep],num20,numeric(1));ix<-order(vv,keep);n<-length(vv);k<-((n+1)*(ap[2]-ap[1])+ap[2]-1)%/%ap[2];list(n=n,k=k,threshold=if(k>n)NULL else vv[ix[k]],infinite=k>n,ordered=lapply(ix,function(j)list(score=vv[j],index=keep[j]-1)))}\nlogPositive20<-function(v){s<-tolower(as.character(v));part<-strsplit(s,'e',fixed=TRUE)[[1]];mantissa<-as.numeric(part[1]);power<-if(length(part)==2)as.numeric(part[2])else 0;if(mantissa<=0)stop('fixed positive weight required');log(mantissa)+power*log(10)}\nscore20<-function(rows){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));lw<-vapply(rows,function(r)logPositive20(if(is.null(r$weight))1 else r$weight),numeric(1));mx<-max(lw);lm<-mx+log(sum(exp(lw-mx)));mass<-exp(lm);w<-exp(lw-lm);observed<-ifelse(y==1,p,1-p);genuine<-any(observed==0);loss<-ifelse(observed==1,0,-log(observed));terms<-lw-lm+log(loss);finite<-terms[is.finite(terms)];ll<-if(genuine)'+infinity'else if(length(finite)){top<-max(finite);exp(top+log(sum(exp(finite-top))))}else 0;bs<-sum(w*(p-y)^2);list(rows=lapply(seq_along(rows),function(i)list(p=p[i],y=y[i],w=w[i])),mass=mass,Brier=bs,meanLogLoss=ll,genuineInfinite=genuine,BrierPositive=any(p!=y))}\ncalibration20<-function(rows,B){p<-vapply(rows,function(r)num20(r$p),numeric(1));y<-vapply(rows,function(r)num20(r$y),numeric(1));N<-length(p);bin<-pmin(B-1,floor(p*B));yb<-mean(y);ece<-rel<-res<-vp<-cp<-0;out<-list()\n for(j in 0:(B-1)){ix<-which(bin==j);n<-length(ix);pm<-if(n)mean(p[ix])else NULL;ym<-if(n)mean(y[ix])else NULL;v<-if(n)mean((p[ix]-pm)^2)else NULL;c<-if(n)mean((p[ix]-pm)*(y[ix]-ym))else NULL;out[[j+1]]<-list(bin=j,n=n,meanP=pm,frequency=ym,withinVariance=v,withinCovariance=c);if(n){z<-n/N;ece<-ece+z*abs(pm-ym);rel<-rel+z*(pm-ym)^2;res<-res+z*(ym-yb)^2;vp<-vp+z*v;cp<-cp+z*c}}\n list(rows=N,bins=out,Brier=mean((p-y)^2),ECE=ece,uncertainty=yb*(1-yb),resolution=res,reliability=rel,withinVariance=vp,withinCovariance=cp,identity=yb*(1-yb)-res+rel+vp-2*cp)}\npredict20<-function(a){q<-quantile20(a$scores,a$alpha);classification<-a$mode=='classification';rows<-list()\n for(i in seq_along(a$queries)){r<-a$queries[[i]];p<-num20(if(classification)r$p else r$center);y<-if(is.null(r$y))NULL else num20(r$y)\n  if(classification){labels<-if(q$infinite)0:1 else which(c(p,1-p)<=q$threshold)-1;lo<-hi<-width<-NULL;size<-length(labels);covered<-if(is.null(y))NULL else as.integer(y%in%labels)}else{labels<-NULL;size<-NULL;lo<-if(q$infinite)'-infinity'else p-q$threshold;hi<-if(q$infinite)'+infinity'else p+q$threshold;width<-if(q$infinite)'+infinity'else 2*q$threshold;covered<-if(is.null(y))NULL else as.integer(q$infinite||abs(y-p)<=q$threshold+1e-12)}\n  rows[[i]]<-list(id=if(is.null(r$id))as.character(i-1)else r$id,prediction=p,actualY=y,labels=as.list(labels),size=size,lower=lo,upper=hi,width=width,covered=covered)\n };scored<-Filter(function(r)!is.null(r$covered),rows);coverage<-if(length(scored))mean(vapply(scored,`[[`,numeric(1),'covered'))else NULL;list(quantile=q,rows=rows,scoredLabels=length(scored),coverage=coverage,meanSetSize=if(classification&&length(rows))mean(vapply(rows,`[[`,numeric(1),'size'))else NULL,meanWidth=if(!classification&&length(rows))if(q$infinite)'+infinity'else 2*q$threshold else NULL)}\nranklaw20<-function(a){v<-vapply(a$scores,num20,numeric(1));trials<-lapply(seq_along(v),function(i){q<-quantile20(as.list(v[-i]),a$alpha);list(heldout=i-1,score=v[i],k=q$k,threshold=q$threshold,infinite=q$infinite,covered=as.integer(q$infinite||v[i]<=q$threshold))});list(N=length(v),distinct=length(unique(v))==length(v),trials=trials,coverage=mean(vapply(trials,`[[`,numeric(1),'covered')))}\nfixedOperation<-function(api,a)switch(api,score=score20(a$rows),calibration=calibration20(a$rows,a$bins),quantile=quantile20(a$scores,a$alpha),predict=predict20(a),ranklaw=ranklaw20(a),realdata=fixedSource(a$kind))\nreportValues<-function(api,z){summary<-list();points<-list();add<-function(k,v,u)summary[[length(summary)+1]]<<-list(metric=k,value=if(is.null(v)||length(v)==0||anyNA(v))NULL else unname(v),unit=u);pt<-function(s,i,x,y)points[[length(points)+1]]<<-list(series=s,index=i,x=x,y=y)\n if(api=='score'){for(k in c('mass','Brier','meanLogLoss','genuineInfinite','BrierPositive'))add(k,z[[k]],switch(k,mass='analysis weight',Brier='squared probability',meanLogLoss='nats; numerical logarithm',genuineInfinite='indicator',BrierPositive='mathematical indicator'));for(i in seq_along(z$rows)){r<-z$rows[[i]];pt('squared error',i-1,i-1,(r$p-r$y)^2)}\n }else if(api=='calibration'){for(k in c('Brier','ECE','uncertainty','resolution','reliability','withinVariance','withinCovariance','identity'))add(k,z[[k]],if(k=='ECE')'probability'else'squared probability');for(r in z$bins){pt('bin probability',r$bin,r$bin,r$meanP);pt('bin outcome frequency',r$bin,r$bin,r$frequency)}\n }else if(api=='quantile'){add('n',z$n,'scores');add('k',z$k,'one-based rank');add('infinite',z$infinite,'mathematical indicator');add('threshold',if(z$infinite)'+infinity'else z$threshold,'score units');for(i in seq_along(z$ordered))pt('sorted score',i-1,i,z$ordered[[i]]$score)\n }else if(api=='predict'){for(k in c('scoredLabels','coverage','meanSetSize','meanWidth'))add(k,z[[k]],switch(k,scoredLabels='labels',coverage='fraction',meanSetSize='classes',meanWidth='outcome units'));add('thresholdInfinite',z$quantile$infinite,'mathematical indicator');for(i in seq_along(z$rows)){pt('predicted center or probability',i-1,i-1,z$rows[[i]]$prediction);pt('observed label or outcome',i-1,i-1,z$rows[[i]]$actualY)}\n }else if(api=='ranklaw'){add('N',z$N,'scores');add('distinct',z$distinct,'indicator');add('coverage',z$coverage,'fraction');for(r in z$trials)pt('held-out coverage',r$heldout,r$heldout,r$covered)\n }else{for(k in c('sourceRows','trainingRows','calibrationScores','testLabeledRows','excludedRows','quantileRank','threshold')){r<-Filter(function(r)r$metric==k,z[['study-metrics']])[[1]];add(k,r$value,r$unit)};cv<-Filter(function(r)r$role=='test'&&r$group=='all',z[['role-group-coverage']])[[1]];for(k in c('coverage','meanSetSize','meanIntervalWidth'))add(k,cv[[k]],switch(k,coverage='fraction',meanSetSize='classes',meanIntervalWidth='outcome units'));for(i in seq_along(z[['calibration-scores']])){r<-z[['calibration-scores']][[i]];pt('all calibration scores',i-1,r$rank,r$score)}}\n list(summary=summary,points=points)}\n\nescapeXML<-function(s){s<-gsub('&','&amp;',s,fixed=TRUE);s<-gsub('<','&lt;',s,fixed=TRUE);s<-gsub('>','&gt;',s,fixed=TRUE);gsub('\"','&quot;',s,fixed=TRUE)}\nsvgPlot<-function(pp,title){\n xx<-vapply(pp,function(p)as.numeric(p$x),numeric(1));yy<-vapply(pp,function(p)as.numeric(p$y),numeric(1));xmin<-if(length(xx))min(xx)else 0;xmax<-if(length(xx))max(xx)else 1;ymin<-min(c(0,yy));ymax<-max(c(0,yy));if(xmin==xmax){xmin<-xmin-.5;xmax<-xmax+.5};if(ymin==ymax){ymin<-ymin-.5;ymax<-ymax+.5};pad<-(ymax-ymin)*.08;ymin<-ymin-pad;ymax<-ymax+pad;X<-function(x)82+(as.numeric(x)-xmin)/(xmax-xmin)*608;Y<-function(y)354-(as.numeric(y)-ymin)/(ymax-ymin)*290\n out<-paste0('<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"720\" height=\"480\" viewBox=\"0 0 720 480\" role=\"img\" aria-label=\"',escapeXML(title),'\"><rect width=\"720\" height=\"480\" fill=\"white\"/><g font-family=\"Arial,sans-serif\" font-size=\"13\" fill=\"#18232f\"><text x=\"360\" y=\"25\" text-anchor=\"middle\">',escapeXML(title),'</text>')\n for(j in 0:4){y<-ymin+(ymax-ymin)*j/4;x<-xmin+(xmax-xmin)*j/4;out<-paste0(out,'<line x1=\"82\" y1=\"',Y(y),'\" x2=\"690\" y2=\"',Y(y),'\" stroke=\"#e2e8f0\"/><text x=\"73\" y=\"',Y(y)+4,'\" text-anchor=\"end\">',sprintf('%.3g',y),'</text><text x=\"',X(x),'\" y=\"380\" text-anchor=\"middle\">',sprintf('%.3g',x),'</text>')}\n ss<-unique(vapply(pp,`[[`,character(1),'series'));cols<-c('#0f766e','#c76622','#4f46e5','#b23857')\n for(j in seq_along(ss)){rr<-Filter(function(p)p$series==ss[j],pp);xy<-vapply(rr,function(p)sprintf('%.6f,%.6f',X(p$x),Y(p$y)),character(1));col<-cols[(j-1)%%4+1];out<-paste0(out,'<polyline fill=\"none\" stroke=\"',col,'\" stroke-width=\"1.5\" points=\"',paste(xy,collapse=' '),'\"/>');for(p in rr)out<-paste0(out,'<circle cx=\"',sprintf('%.6f',X(p$x)),'\" cy=\"',sprintf('%.6f',Y(p$y)),'\" r=\"2.6\" fill=\"',col,'\"><title>',escapeXML(ss[j]),': ',escapeXML(p$y),'</title></circle>');out<-paste0(out,'<text x=\"',82+((j-1)%%2)*310,'\" y=\"',432+floor((j-1)/2)*23,'\" fill=\"',col,'\">',escapeXML(ss[j]),'</text>')}\n paste0(out,'<text x=\"360\" y=\"405\" text-anchor=\"middle\">Declared rank / bin / case index; units in summary</text></g></svg>')\n}\n\ntoJSON<-function(x){\n if(is.null(x))return('null');if(is.list(x)){v<-vapply(x,toJSON,character(1));if(!is.null(names(x)))paste0('{',paste(paste0(vapply(names(x),toJSON,character(1)),':',v),collapse=','),'}')else paste0('[',paste(v,collapse=','),']')}\n else if(length(x)!=1){if(!is.null(names(x)))toJSON(as.list(x))else paste0('[',paste(vapply(as.list(x),toJSON,character(1)),collapse=','),']')}\n else if(is.na(x))'null'else if(is.logical(x))if(x)'true'else'false'else if(is.numeric(x))if(is.finite(x))sprintf('%.17g',x)else'null'else paste0('\"',gsub('\\n','\\\\n',gsub('\"','\\\\\"',gsub('\\\\','\\\\\\\\',x,fixed=TRUE),fixed=TRUE),fixed=TRUE),'\"')\n}\n\nFIXED<-list(\"api\"=\"realdata\",\"variant\"=\"company\",\"title\"=\"Actual churn: calibration and prediction sets\",\"input\"=list(\"kind\"=\"company\"),\"expectedFailure\"=FALSE)\n\nargs<-commandArgs(trailingOnly=TRUE);out<-if(length(args))args[1]else stop('NEW output directory required');if(dir.exists(out))stop('Preserve previous output directory');dir.create(out,recursive=TRUE)\nz<-fixedOperation(FIXED$api,FIXED$input);rr<-reportValues(FIXED$api,z)\nwriteLines(toJSON(list(arithmetic='BaseR numerical counterpart; QR and membership1e-12, log-domain tiny weights; source splitRank read from factualCSV',result=z)),file.path(out,'full.json'),useBytes=TRUE)\nsums<-do.call(rbind,lapply(rr$summary,function(row)data.frame(metric=row$metric,value=if(is.null(row$value))''else if(is.logical(row$value))as.character(as.integer(row$value))else format(row$value,digits=17,scientific=NA,trim=TRUE),unit=row$unit,defined=as.integer(!is.null(row$value)),stringsAsFactors=FALSE)))\npoints<-do.call(rbind,lapply(rr$points,function(p)data.frame(series=p$series,index=p$index,x=p$x,y=if(is.null(p$y))NA_real_ else p$y,defined=as.integer(!is.null(p$y)),stringsAsFactors=FALSE)))\nwrite.csv(sums,file.path(out,'summary.csv'),row.names=FALSE,na='');write.csv(points,file.path(out,'plot-points.csv'),row.names=FALSE,na='');writeLines(svgPlot(Filter(function(p)!is.null(p$y),rr$points),FIXED$title),file.path(out,'plot.svg'),useBytes=TRUE);cat(FIXED$api,'/',FIXED$variant,'\\n',sep='')\n",
        "returnCode": 0,
        "stdout": "realdata/company\r\n",
        "stderr": "During startup - Warning messages:\n1: Setting LC_COLLATE=C.UTF-8 failed \n2: Setting LC_CTYPE=C.UTF-8 failed \n3: Setting LC_MONETARY=C.UTF-8 failed \n4: Setting LC_TIME=C.UTF-8 failed ",
        "diagnosticScope": "Public projection omits local absolute paths/traceback frames; original native streams, commands, timing and old failed-output code bindings are preserved privately.",
        "resultFolder": "ml20-code/r-realdata-company-result",
        "kind": "company",
        "inputFiles": [
          {
            "file": "ml20-code/data/actual48-country-revised-original-2023-2024.csv",
            "sha256": "bd444c284344c21f8b980885aea1b76af20754bb31e31d9d9e111ecd44c1454e"
          },
          {
            "file": "ml20-code/data/derived16-country-features-and-roles.csv",
            "sha256": "e3a4a00edafdd14b873c163a9a045d75e7314ed6416048507bb2aa58fdb4f62a"
          },
          {
            "file": "ml20-code/data/actual3613-NLS-original52-fields-and-conformal-frame.csv",
            "sha256": "27290a3ca7b659af0e2a96d52149c30d42274a8119444d3c843e71f92eb9d7c2"
          },
          {
            "file": "ml20-code/data/actual3150-churn-original14-fields-and-conformal-frame.csv",
            "sha256": "4389b8e17f2829529b5200e3b1d5e27d4a4ec101947a2beb46e91bbe7efdbe34"
          }
        ],
        "files": [
          {
            "file": "ml20-code/r-realdata-company-result/full.json",
            "sha256": "3465dbc7f73071fc5d8e39194559076fb6c173917b7ad660fb82bc9f1a7e5d08",
            "bytes": 1924719
          },
          {
            "file": "ml20-code/r-realdata-company-result/plot-points.csv",
            "sha256": "0343564a15f668326f3afd7c284d3dba9a4a86349aea456d35e32e3cdef93d5e",
            "bytes": 41241
          },
          {
            "file": "ml20-code/r-realdata-company-result/plot.svg",
            "sha256": "ed64d0aea67f3faf6abcdea8794b4b5ea3a5d23cb2a7cf060b7e36fd7e5f1ffa",
            "bytes": 118435
          },
          {
            "file": "ml20-code/r-realdata-company-result/summary.csv",
            "sha256": "8df67807889eba8bb743033345b0ed8fcb705b47769f36d0825392625ce4efeb",
            "bytes": 446
          },
          {
            "file": "ml20-code/r-realdata-company-result/stdout.txt",
            "sha256": "75c0d85d04b7f730fc7a47fc9a6e40905a176de58ade8415a4a3ef252434c4a1",
            "bytes": 18
          },
          {
            "file": "ml20-code/r-realdata-company-result/stderr.txt",
            "sha256": "b807bd2d0f7060ea384b0ac2317cda2d63a4f59f63b4a901b9e665fead79627d",
            "bytes": 182
          }
        ],
        "summaryRows": [
          {
            "metric": "sourceRows",
            "value": "3150",
            "unit": "rows",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "3150",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "trainingRows",
            "value": "1574",
            "unit": "rows",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "1574",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "calibrationScores",
            "value": "788",
            "unit": "unit-count scores",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "788",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "testLabeledRows",
            "value": "788",
            "unit": "rows",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "788",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "excludedRows",
            "value": "0",
            "unit": "rows",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "quantileRank",
            "value": "632",
            "unit": "one-based rank",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "632",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "threshold",
            "value": "0.241054369",
            "unit": "dimensionless score",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.24105436910034123",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "coverage",
            "value": "0.774111675",
            "unit": "fraction",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.7741116751269036",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "meanSetSize",
            "value": "0.897208122",
            "unit": "classes",
            "defined": "true",
            "exactFraction": "",
            "rawValue": "0.89720812182741116",
            "mathematicallyPositive": true,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          },
          {
            "metric": "meanIntervalWidth",
            "value": "undefined",
            "unit": "outcome units",
            "defined": "false",
            "exactFraction": "",
            "rawValue": "",
            "mathematicallyPositive": false,
            "displayUnderflow": false,
            "displayRoundedToOne": false,
            "mathematicallyInfinite": false,
            "arithmetic": "BaseR numerical counterpart"
          }
        ],
        "plotRows": [
          {
            "series": "all calibration scores",
            "index": 0,
            "x": "1",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 1,
            "x": "2",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 2,
            "x": "3",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 3,
            "x": "4",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 4,
            "x": "5",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 5,
            "x": "6",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 6,
            "x": "7",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 7,
            "x": "8",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 8,
            "x": "9",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 9,
            "x": "10",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 10,
            "x": "11",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 11,
            "x": "12",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 12,
            "x": "13",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 13,
            "x": "14",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 14,
            "x": "15",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 15,
            "x": "16",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 16,
            "x": "17",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 17,
            "x": "18",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 18,
            "x": "19",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 19,
            "x": "20",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 20,
            "x": "21",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 21,
            "x": "22",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 22,
            "x": "23",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 23,
            "x": "24",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 24,
            "x": "25",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 25,
            "x": "26",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 26,
            "x": "27",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 27,
            "x": "28",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 28,
            "x": "29",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 29,
            "x": "30",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 30,
            "x": "31",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 31,
            "x": "32",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 32,
            "x": "33",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 33,
            "x": "34",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 34,
            "x": "35",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 35,
            "x": "36",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 36,
            "x": "37",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 37,
            "x": "38",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 38,
            "x": "39",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 39,
            "x": "40",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 40,
            "x": "41",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 41,
            "x": "42",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 42,
            "x": "43",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 43,
            "x": "44",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 44,
            "x": "45",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 45,
            "x": "46",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 46,
            "x": "47",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 47,
            "x": "48",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 48,
            "x": "49",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 49,
            "x": "50",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 50,
            "x": "51",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 51,
            "x": "52",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 52,
            "x": "53",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 53,
            "x": "54",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 54,
            "x": "55",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 55,
            "x": "56",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 56,
            "x": "57",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 57,
            "x": "58",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 58,
            "x": "59",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 59,
            "x": "60",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 60,
            "x": "61",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 61,
            "x": "62",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 62,
            "x": "63",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 63,
            "x": "64",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 64,
            "x": "65",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 65,
            "x": "66",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 66,
            "x": "67",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 67,
            "x": "68",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 68,
            "x": "69",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 69,
            "x": "70",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 70,
            "x": "71",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 71,
            "x": "72",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 72,
            "x": "73",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 73,
            "x": "74",
            "y": "0",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 74,
            "x": "75",
            "y": "0.00186516275672005",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 75,
            "x": "76",
            "y": "0.0037109916021939599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 76,
            "x": "77",
            "y": "0.0079352636632769608",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 77,
            "x": "78",
            "y": "0.0084876833647006805",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 78,
            "x": "79",
            "y": "0.015593176062607",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 79,
            "x": "80",
            "y": "0.016162143190767302",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 80,
            "x": "81",
            "y": "0.019962988107778398",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 81,
            "x": "82",
            "y": "0.0210182497064102",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 82,
            "x": "83",
            "y": "0.022854143648243001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 83,
            "x": "84",
            "y": "0.028199802538909999",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 84,
            "x": "85",
            "y": "0.028752254478330599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 85,
            "x": "86",
            "y": "0.029579909882900199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 86,
            "x": "87",
            "y": "0.030402901059506798",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 87,
            "x": "88",
            "y": "0.031844533882479702",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 88,
            "x": "89",
            "y": "0.033417139795933498",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 89,
            "x": "90",
            "y": "0.035739328208237803",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 90,
            "x": "91",
            "y": "0.037750566845082802",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 91,
            "x": "92",
            "y": "0.038150163115614297",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 92,
            "x": "93",
            "y": "0.0384015679452199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 93,
            "x": "94",
            "y": "0.040264615141138903",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 94,
            "x": "95",
            "y": "0.040611949912620397",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 95,
            "x": "96",
            "y": "0.041690339223087201",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 96,
            "x": "97",
            "y": "0.042275853777983798",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 97,
            "x": "98",
            "y": "0.044606635246512302",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 98,
            "x": "99",
            "y": "0.045331715948113999",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 99,
            "x": "100",
            "y": "0.046386977546745901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 100,
            "x": "101",
            "y": "0.046615222426519803",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 101,
            "x": "102",
            "y": "0.047214632951315498",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 102,
            "x": "103",
            "y": "0.0489513068087232",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 103,
            "x": "104",
            "y": "0.049139205626217201",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 104,
            "x": "105",
            "y": "0.049390610455822798",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 105,
            "x": "106",
            "y": "0.049390610455822798",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 106,
            "x": "107",
            "y": "0.051401849092667699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 107,
            "x": "108",
            "y": "0.0515844449964869",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 108,
            "x": "109",
            "y": "0.051904658751879003",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 109,
            "x": "110",
            "y": "0.052989660585440898",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 110,
            "x": "111",
            "y": "0.053817315990010599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 111,
            "x": "112",
            "y": "0.053915897388723898",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 112,
            "x": "113",
            "y": "0.054623791977877402",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 113,
            "x": "114",
            "y": "0.055200042552841402",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 114,
            "x": "115",
            "y": "0.0554243263663576",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 115,
            "x": "116",
            "y": "0.056555648099582898",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 116,
            "x": "117",
            "y": "0.057154387700670002",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 117,
            "x": "118",
            "y": "0.058189779492019401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 118,
            "x": "119",
            "y": "0.058441184321624998",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 119,
            "x": "120",
            "y": "0.0586899376943932",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 120,
            "x": "121",
            "y": "0.058788519093106499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 121,
            "x": "122",
            "y": "0.059149078910778502",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 122,
            "x": "123",
            "y": "0.059794138411529002",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 123,
            "x": "124",
            "y": "0.060141473183010503",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 124,
            "x": "125",
            "y": "0.061080935032483998",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 125,
            "x": "126",
            "y": "0.0621368353168276",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 126,
            "x": "127",
            "y": "0.062638974052330307",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 127,
            "x": "128",
            "y": "0.063092173669328899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 128,
            "x": "129",
            "y": "0.063118623761709805",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 129,
            "x": "130",
            "y": "0.063466629456899903",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 130,
            "x": "131",
            "y": "0.063757070739365096",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 131,
            "x": "132",
            "y": "0.064097792987751395",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 132,
            "x": "133",
            "y": "0.064449088825490705",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 133,
            "x": "134",
            "y": "0.065043196436611495",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 134,
            "x": "135",
            "y": "0.065391202131801607",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 135,
            "x": "136",
            "y": "0.065953556736866606",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 136,
            "x": "137",
            "y": "0.066506647361999002",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 137,
            "x": "138",
            "y": "0.066758052191604605",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 138,
            "x": "139",
            "y": "0.067141101035399706",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 139,
            "x": "140",
            "y": "0.067617460602230006",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 140,
            "x": "141",
            "y": "0.067687579137436796",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 141,
            "x": "142",
            "y": "0.068050790411946296",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 142,
            "x": "143",
            "y": "0.068497377505849694",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 143,
            "x": "144",
            "y": "0.068533762501871806",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 144,
            "x": "145",
            "y": "0.068560883517961302",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 145,
            "x": "146",
            "y": "0.069192047048812697",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 146,
            "x": "147",
            "y": "0.070373649747959094",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 147,
            "x": "148",
            "y": "0.070684599523418504",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 148,
            "x": "149",
            "y": "0.071452039058425801",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 149,
            "x": "150",
            "y": "0.071852306252665907",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 150,
            "x": "151",
            "y": "0.072583360791651105",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 151,
            "x": "152",
            "y": "0.074343194598890397",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 152,
            "x": "153",
            "y": "0.074743461793130503",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 153,
            "x": "154",
            "y": "0.074743461793130503",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 154,
            "x": "155",
            "y": "0.0757126961155309",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 155,
            "x": "156",
            "y": "0.075725250238012798",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 156,
            "x": "157",
            "y": "0.076208222327938294",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 157,
            "x": "158",
            "y": "0.076866506874879295",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 158,
            "x": "159",
            "y": "0.078047438650317102",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 159,
            "x": "160",
            "y": "0.079202591257082594",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 160,
            "x": "161",
            "y": "0.079437448659951795",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 161,
            "x": "162",
            "y": "0.079688853489557399",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 162,
            "x": "163",
            "y": "0.080489387878037597",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 163,
            "x": "164",
            "y": "0.081064296605584493",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 164,
            "x": "165",
            "y": "0.081606142717655303",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 165,
            "x": "166",
            "y": "0.082093746797547204",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 166,
            "x": "167",
            "y": "0.082093746797547204",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 167,
            "x": "168",
            "y": "0.082900222785414104",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 168,
            "x": "169",
            "y": "0.083386485017888895",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 169,
            "x": "170",
            "y": "0.083809912161960598",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 170,
            "x": "171",
            "y": "0.084421876809238197",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 171,
            "x": "172",
            "y": "0.084686506685034302",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 172,
            "x": "173",
            "y": "0.085096037859207094",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 173,
            "x": "174",
            "y": "0.085827763321900799",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 174,
            "x": "175",
            "y": "0.086611750283644498",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 175,
            "x": "176",
            "y": "0.088686494932601001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 176,
            "x": "177",
            "y": "0.089086762126841093",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 177,
            "x": "178",
            "y": "0.089628608238911903",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 178,
            "x": "179",
            "y": "0.090190962843976999",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 179,
            "x": "180",
            "y": "0.090759929972137193",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 180,
            "x": "181",
            "y": "0.092288196519056606",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 181,
            "x": "182",
            "y": "0.092519763779376499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 182,
            "x": "183",
            "y": "0.092992800965660899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 183,
            "x": "184",
            "y": "0.093902490342207406",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 184,
            "x": "185",
            "y": "0.094611055855069501",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 185,
            "x": "186",
            "y": "0.095891239952929197",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 186,
            "x": "187",
            "y": "0.096724166033177003",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 187,
            "x": "188",
            "y": "0.096820766898761498",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 188,
            "x": "189",
            "y": "0.097752945301431193",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 189,
            "x": "190",
            "y": "0.097849546167015605",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 190,
            "x": "191",
            "y": "0.098980867900240896",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 191,
            "x": "192",
            "y": "0.098980867900240896",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 192,
            "x": "193",
            "y": "0.099684801423136599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 193,
            "x": "194",
            "y": "0.099876661306888395",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 194,
            "x": "195",
            "y": "0.10011218963346601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 195,
            "x": "196",
            "y": "0.101163457927843",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 196,
            "x": "197",
            "y": "0.101355317811595",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 197,
            "x": "198",
            "y": "0.10253030798764599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 198,
            "x": "199",
            "y": "0.102781712817252",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 199,
            "x": "200",
            "y": "0.103439997364193",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 200,
            "x": "201",
            "y": "0.10424647335206",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 201,
            "x": "202",
            "y": "0.104779055484198",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 202,
            "x": "203",
            "y": "0.105424114984948",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 203,
            "x": "204",
            "y": "0.105843548824766",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 204,
            "x": "205",
            "y": "0.106331152904658",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 205,
            "x": "206",
            "y": "0.106966277501767",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 206,
            "x": "207",
            "y": "0.107967935753932",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 207,
            "x": "208",
            "y": "0.109222308445122",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 208,
            "x": "209",
            "y": "0.109555747246705",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 209,
            "x": "210",
            "y": "0.110984793709199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 210,
            "x": "211",
            "y": "0.111236198538805",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 211,
            "x": "212",
            "y": "0.112778361055623",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 212,
            "x": "213",
            "y": "0.112933835943353",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 213,
            "x": "214",
            "y": "0.113518008650832",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 214,
            "x": "215",
            "y": "0.113551103504305",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 215,
            "x": "216",
            "y": "0.11412735407926899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 216,
            "x": "217",
            "y": "0.11412735407926899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 217,
            "x": "218",
            "y": "0.114567967335789",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 218,
            "x": "219",
            "y": "0.114686386303788",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 219,
            "x": "220",
            "y": "0.114997336079248",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 220,
            "x": "221",
            "y": "0.116138592716114",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 221,
            "x": "222",
            "y": "0.116330452599866",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 222,
            "x": "223",
            "y": "0.117008574716092",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 223,
            "x": "224",
            "y": "0.117094569754327",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 224,
            "x": "225",
            "y": "0.11752131927894501",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 225,
            "x": "226",
            "y": "0.11780645764773499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 226,
            "x": "227",
            "y": "0.11865264101217",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 227,
            "x": "228",
            "y": "0.11937708302805999",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 228,
            "x": "229",
            "y": "0.120230517601302",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 229,
            "x": "230",
            "y": "0.120327118466887",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 230,
            "x": "231",
            "y": "0.12096157214028699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 231,
            "x": "232",
            "y": "0.121543796552635",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 232,
            "x": "233",
            "y": "0.122318519534446",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 233,
            "x": "234",
            "y": "0.123022453057342",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 234,
            "x": "235",
            "y": "0.123164670660884",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 235,
            "x": "236",
            "y": "0.123218274007351",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 236,
            "x": "237",
            "y": "0.123218274007351",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 237,
            "x": "238",
            "y": "0.123218274007351",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 238,
            "x": "239",
            "y": "0.123522611259715",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 239,
            "x": "240",
            "y": "0.123746895073232",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 240,
            "x": "241",
            "y": "0.124349595740577",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 241,
            "x": "242",
            "y": "0.12549085237744301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 242,
            "x": "243",
            "y": "0.125725709780312",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 243,
            "x": "244",
            "y": "0.12813060308830199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 244,
            "x": "245",
            "y": "0.12921164385560599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 245,
            "x": "246",
            "y": "0.129615201192395",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 246,
            "x": "247",
            "y": "0.13034957811192699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 247,
            "x": "248",
            "y": "0.130568559011768",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 248,
            "x": "249",
            "y": "0.130568559011768",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 249,
            "x": "250",
            "y": "0.131021758628767",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 250,
            "x": "251",
            "y": "0.131021758628767",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 251,
            "x": "252",
            "y": "0.131455088438483",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 252,
            "x": "253",
            "y": "0.131699880744993",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 253,
            "x": "254",
            "y": "0.131983709504363",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 254,
            "x": "255",
            "y": "0.13220534186104199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 255,
            "x": "256",
            "y": "0.13247990664047901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 256,
            "x": "257",
            "y": "0.133224857149363",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 257,
            "x": "258",
            "y": "0.13418680802496",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 258,
            "x": "259",
            "y": "0.13522219981630901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 259,
            "x": "260",
            "y": "0.136804069709696",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 260,
            "x": "261",
            "y": "0.13685367975190799",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 261,
            "x": "262",
            "y": "0.13724733442305301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 262,
            "x": "263",
            "y": "0.13725659840298601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 263,
            "x": "264",
            "y": "0.13809747885374599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 264,
            "x": "265",
            "y": "0.139916857606839",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 265,
            "x": "266",
            "y": "0.141008471963496",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 266,
            "x": "267",
            "y": "0.142199338642575",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 267,
            "x": "268",
            "y": "0.14228469499509799",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 268,
            "x": "269",
            "y": "0.14345901424744101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 269,
            "x": "270",
            "y": "0.144101422291354",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 270,
            "x": "271",
            "y": "0.14467304087635199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 271,
            "x": "272",
            "y": "0.14470942587237401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 272,
            "x": "273",
            "y": "0.14509314563987699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 273,
            "x": "274",
            "y": "0.14546296943748199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 274,
            "x": "275",
            "y": "0.14561911524891999",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 275,
            "x": "276",
            "y": "0.14655592564155601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 276,
            "x": "277",
            "y": "0.14668427951319599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 277,
            "x": "278",
            "y": "0.14668427951319599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 278,
            "x": "279",
            "y": "0.147438494002013",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 279,
            "x": "280",
            "y": "0.14776001736682601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 280,
            "x": "281",
            "y": "0.14819270849082999",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 281,
            "x": "282",
            "y": "0.14828863843270601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 282,
            "x": "283",
            "y": "0.14854004326231199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 283,
            "x": "284",
            "y": "0.14869551815004101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 284,
            "x": "285",
            "y": "0.149711711057817",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 285,
            "x": "286",
            "y": "0.14972825848455301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 286,
            "x": "287",
            "y": "0.149773907460508",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 287,
            "x": "288",
            "y": "0.15020394712767501",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 288,
            "x": "289",
            "y": "0.15020394712767501",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 289,
            "x": "290",
            "y": "0.150240332123697",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 290,
            "x": "291",
            "y": "0.15074314178290801",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 291,
            "x": "292",
            "y": "0.15085958021777901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 292,
            "x": "293",
            "y": "0.15140803885294499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 293,
            "x": "294",
            "y": "0.15146097127570299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 294,
            "x": "295",
            "y": "0.15231111570639599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 295,
            "x": "296",
            "y": "0.15288008283455601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 296,
            "x": "297",
            "y": "0.15309510266814",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 297,
            "x": "298",
            "y": "0.153220805082943",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 298,
            "x": "299",
            "y": "0.15410072198656199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 299,
            "x": "300",
            "y": "0.154127843002652",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 300,
            "x": "301",
            "y": "0.154424225884503",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 301,
            "x": "302",
            "y": "0.15460353164577301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 302,
            "x": "303",
            "y": "0.15464387770805299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 303,
            "x": "304",
            "y": "0.154699461587649",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 304,
            "x": "305",
            "y": "0.15617811809235599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 305,
            "x": "306",
            "y": "0.156221115611473",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 306,
            "x": "307",
            "y": "0.156495680390911",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 307,
            "x": "308",
            "y": "0.15706860858532901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 308,
            "x": "309",
            "y": "0.157462263256474",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 309,
            "x": "310",
            "y": "0.15801072189164",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 310,
            "x": "311",
            "y": "0.15809342678732499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 311,
            "x": "312",
            "y": "0.158173480226173",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 312,
            "x": "313",
            "y": "0.15822507080151499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 313,
            "x": "314",
            "y": "0.15842421413207",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 314,
            "x": "315",
            "y": "0.158950183741113",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 315,
            "x": "316",
            "y": "0.15909639464891001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 316,
            "x": "317",
            "y": "0.159174467554629",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 317,
            "x": "318",
            "y": "0.159331252051779",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 318,
            "x": "319",
            "y": "0.15985326059456401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 319,
            "x": "320",
            "y": "0.16090187743210399",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 320,
            "x": "321",
            "y": "0.16109108585901899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 321,
            "x": "322",
            "y": "0.16114005721551899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 322,
            "x": "323",
            "y": "0.161441743011046",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 323,
            "x": "324",
            "y": "0.16174937040595999",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 324,
            "x": "325",
            "y": "0.161811566808651",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 325,
            "x": "326",
            "y": "0.16227137894874499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 326,
            "x": "327",
            "y": "0.16256974236372501",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 327,
            "x": "328",
            "y": "0.163244574337403",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 328,
            "x": "329",
            "y": "0.16395246892655599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 329,
            "x": "330",
            "y": "0.16433289855151101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 330,
            "x": "331",
            "y": "0.16433289855151101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 331,
            "x": "332",
            "y": "0.16433289855151101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 332,
            "x": "333",
            "y": "0.16454063493828999",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 333,
            "x": "334",
            "y": "0.16465707337316099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 334,
            "x": "335",
            "y": "0.16476226729496901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 335,
            "x": "336",
            "y": "0.164983899651648",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 336,
            "x": "337",
            "y": "0.16516253448920901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 337,
            "x": "338",
            "y": "0.16561902424875699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 338,
            "x": "339",
            "y": "0.16584132752914399",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 339,
            "x": "340",
            "y": "0.16614499385779999",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 340,
            "x": "341",
            "y": "0.16787505519211299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 341,
            "x": "342",
            "y": "0.16806030255276899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 342,
            "x": "343",
            "y": "0.16834147985530201",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 343,
            "x": "344",
            "y": "0.168450634843368",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 344,
            "x": "345",
            "y": "0.168494303286194",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 345,
            "x": "346",
            "y": "0.168639843270282",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 346,
            "x": "347",
            "y": "0.168858185484412",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 347,
            "x": "348",
            "y": "0.16894683197948401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 348,
            "x": "349",
            "y": "0.168969991929316",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 349,
            "x": "350",
            "y": "0.16902027289523699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 350,
            "x": "351",
            "y": "0.16922139675892101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 351,
            "x": "352",
            "y": "0.16948602663471701",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 352,
            "x": "353",
            "y": "0.169700375544592",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 353,
            "x": "354",
            "y": "0.170643159774612",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 354,
            "x": "355",
            "y": "0.17078010670247601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 355,
            "x": "356",
            "y": "0.170944845570139",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 356,
            "x": "357",
            "y": "0.17114331797698601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 357,
            "x": "358",
            "y": "0.17114727904324301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 358,
            "x": "359",
            "y": "0.17129614140787799",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 359,
            "x": "360",
            "y": "0.171424495279518",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 360,
            "x": "361",
            "y": "0.17169906005895499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 361,
            "x": "362",
            "y": "0.17199742347393601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 362,
            "x": "363",
            "y": "0.17257897696257499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 363,
            "x": "364",
            "y": "0.17335302902067801",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 364,
            "x": "365",
            "y": "0.17338015003676699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 365,
            "x": "366",
            "y": "0.173949117164927",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 366,
            "x": "367",
            "y": "0.17426271839722399",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 367,
            "x": "368",
            "y": "0.17478207548317201",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 368,
            "x": "369",
            "y": "0.17498054789001899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 369,
            "x": "370",
            "y": "0.17511286282791699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 370,
            "x": "371",
            "y": "0.17604571215429499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 371,
            "x": "372",
            "y": "0.17604571215429499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 372,
            "x": "373",
            "y": "0.176119153070048",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 373,
            "x": "374",
            "y": "0.17628124048087301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 374,
            "x": "375",
            "y": "0.17693952502781399",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 375,
            "x": "376",
            "y": "0.17747210715995199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 376,
            "x": "377",
            "y": "0.177749962081938",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 377,
            "x": "378",
            "y": "0.177858478384293",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 378,
            "x": "379",
            "y": "0.177878315953579",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 379,
            "x": "380",
            "y": "0.178034461765017",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 380,
            "x": "381",
            "y": "0.17810988321389901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 381,
            "x": "382",
            "y": "0.17831496814384101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 382,
            "x": "383",
            "y": "0.178338128093672",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 383,
            "x": "384",
            "y": "0.178514111474396",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 384,
            "x": "385",
            "y": "0.17861930539620499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 385,
            "x": "386",
            "y": "0.1795461808852",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 386,
            "x": "387",
            "y": "0.17974401460633499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 387,
            "x": "388",
            "y": "0.17986971702113799",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 388,
            "x": "389",
            "y": "0.18041552419946599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 389,
            "x": "390",
            "y": "0.18098449132762701",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 390,
            "x": "391",
            "y": "0.18099177477443101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 391,
            "x": "392",
            "y": "0.181699669363584",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 392,
            "x": "393",
            "y": "0.18217535800670601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 393,
            "x": "394",
            "y": "0.18224812799875001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 394,
            "x": "395",
            "y": "0.18224812799875001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 395,
            "x": "396",
            "y": "0.18235134138743",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 396,
            "x": "397",
            "y": "0.18240427381018801",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 397,
            "x": "398",
            "y": "0.18243733642566401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 398,
            "x": "399",
            "y": "0.18246247690862499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 399,
            "x": "400",
            "y": "0.182559748697918",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 400,
            "x": "401",
            "y": "0.18306255835712901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 401,
            "x": "402",
            "y": "0.18356865815889001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 402,
            "x": "403",
            "y": "0.18379361289611401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 403,
            "x": "404",
            "y": "0.183942475260749",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 404,
            "x": "405",
            "y": "0.184068177675552",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 405,
            "x": "406",
            "y": "0.18408405417858001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 406,
            "x": "407",
            "y": "0.18414359912443301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 407,
            "x": "408",
            "y": "0.18428981003222999",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 408,
            "x": "409",
            "y": "0.18469867028269499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 409,
            "x": "410",
            "y": "0.18474895124861601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 410,
            "x": "411",
            "y": "0.185073796993974",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 411,
            "x": "412",
            "y": "0.185073796993974",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 412,
            "x": "413",
            "y": "0.18513928353921499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 413,
            "x": "414",
            "y": "0.18522198843490001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 414,
            "x": "415",
            "y": "0.18532849196612899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 415,
            "x": "416",
            "y": "0.18545090423838301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 416,
            "x": "417",
            "y": "0.185509778260528",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 417,
            "x": "418",
            "y": "0.18570892159108299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 418,
            "x": "419",
            "y": "0.18572214663727399",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 419,
            "x": "420",
            "y": "0.18612506528835099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 420,
            "x": "421",
            "y": "0.18624811624631701",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 421,
            "x": "422",
            "y": "0.18640624259088401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 422,
            "x": "423",
            "y": "0.18658222597160801",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 423,
            "x": "424",
            "y": "0.18661794004392099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 424,
            "x": "425",
            "y": "0.18665764742049001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 425,
            "x": "426",
            "y": "0.187411861909306",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 426,
            "x": "427",
            "y": "0.187411861909306",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 427,
            "x": "428",
            "y": "0.18811314397536499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 428,
            "x": "429",
            "y": "0.18857030465862101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 429,
            "x": "430",
            "y": "0.189384064093292",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 430,
            "x": "431",
            "y": "0.18954615150411699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 431,
            "x": "432",
            "y": "0.18959180048007099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 432,
            "x": "433",
            "y": "0.19048494242988201",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 433,
            "x": "434",
            "y": "0.190862720597999",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 434,
            "x": "435",
            "y": "0.191219319349413",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 435,
            "x": "436",
            "y": "0.19125570434543501",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 436,
            "x": "437",
            "y": "0.19143433918299599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 437,
            "x": "438",
            "y": "0.191824671473595",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 438,
            "x": "439",
            "y": "0.192060199800173",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 439,
            "x": "440",
            "y": "0.19206285125701",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 440,
            "x": "441",
            "y": "0.19211246129922299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 441,
            "x": "442",
            "y": "0.19211246129922299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 442,
            "x": "443",
            "y": "0.19265826847755099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 443,
            "x": "444",
            "y": "0.192731709393304",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 444,
            "x": "445",
            "y": "0.19287724937739301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 445,
            "x": "446",
            "y": "0.19318423808659399",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 446,
            "x": "447",
            "y": "0.193194172990236",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 447,
            "x": "448",
            "y": "0.194035053440996",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 448,
            "x": "449",
            "y": "0.19501022936278301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 449,
            "x": "450",
            "y": "0.19501751280958601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 450,
            "x": "451",
            "y": "0.19524179662310301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 451,
            "x": "452",
            "y": "0.19525569259300199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 452,
            "x": "453",
            "y": "0.195533547514988",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 453,
            "x": "454",
            "y": "0.19566190138662801",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 454,
            "x": "455",
            "y": "0.19567579735652699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 455,
            "x": "456",
            "y": "0.19591330621623401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 456,
            "x": "457",
            "y": "0.19595962611589701",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 457,
            "x": "458",
            "y": "0.19608532853069999",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 458,
            "x": "459",
            "y": "0.196173975025772",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 459,
            "x": "460",
            "y": "0.19633673336030599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 460,
            "x": "461",
            "y": "0.196839543019517",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 461,
            "x": "462",
            "y": "0.197001630430342",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 462,
            "x": "463",
            "y": "0.197620878524423",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 463,
            "x": "464",
            "y": "0.197719459923137",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 464,
            "x": "465",
            "y": "0.197719459923137",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 465,
            "x": "466",
            "y": "0.197719459923137",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 466,
            "x": "467",
            "y": "0.19794109227981499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 467,
            "x": "468",
            "y": "0.198976484071165",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 468,
            "x": "469",
            "y": "0.198976484071165",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 469,
            "x": "470",
            "y": "0.198976484071165",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 470,
            "x": "471",
            "y": "0.19901948159028199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 471,
            "x": "472",
            "y": "0.199039990083276",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 472,
            "x": "473",
            "y": "0.19909953502913",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 473,
            "x": "474",
            "y": "0.19919811642784299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 474,
            "x": "475",
            "y": "0.19922788890077001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 475,
            "x": "476",
            "y": "0.19933439243199899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 476,
            "x": "477",
            "y": "0.19933439243199899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 477,
            "x": "478",
            "y": "0.19933439243199899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 478,
            "x": "479",
            "y": "0.19935359131557301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 479,
            "x": "480",
            "y": "0.19973069855998199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 480,
            "x": "481",
            "y": "0.19973731108307699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 481,
            "x": "482",
            "y": "0.199882851067165",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 482,
            "x": "483",
            "y": "0.19995894343975601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 483,
            "x": "484",
            "y": "0.19997481994278299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 484,
            "x": "485",
            "y": "0.20007205949408",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 485,
            "x": "486",
            "y": "0.200409491599917",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 486,
            "x": "487",
            "y": "0.20048491304879801",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 487,
            "x": "488",
            "y": "0.20091230125912801",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 488,
            "x": "489",
            "y": "0.201305285006564",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 489,
            "x": "490",
            "y": "0.20141443999463099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 490,
            "x": "491",
            "y": "0.201415110918339",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 491,
            "x": "492",
            "y": "0.20147398494048399",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 492,
            "x": "493",
            "y": "0.20211904444123499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 493,
            "x": "494",
            "y": "0.20271513258548499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 494,
            "x": "495",
            "y": "0.202899038098724",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 495,
            "x": "496",
            "y": "0.20293015241906801",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 496,
            "x": "497",
            "y": "0.203704204477171",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 497,
            "x": "498",
            "y": "0.203753175833671",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 498,
            "x": "499",
            "y": "0.20407073813222601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 499,
            "x": "500",
            "y": "0.20415938462729799",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 500,
            "x": "501",
            "y": "0.20432214296183199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 501,
            "x": "502",
            "y": "0.20463309273729099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 502,
            "x": "503",
            "y": "0.20487456266325599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 503,
            "x": "504",
            "y": "0.20513590239650201",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 504,
            "x": "505",
            "y": "0.20522918088154099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 505,
            "x": "506",
            "y": "0.20639953906762601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 506,
            "x": "507",
            "y": "0.20664433137413599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 507,
            "x": "508",
            "y": "0.20687257625391001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 508,
            "x": "509",
            "y": "0.20725629602141399",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 509,
            "x": "510",
            "y": "0.20736877339002599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 510,
            "x": "511",
            "y": "0.20741177090914301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 511,
            "x": "512",
            "y": "0.20832874373249399",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 512,
            "x": "513",
            "y": "0.20838761775463899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 513,
            "x": "514",
            "y": "0.208831553391705",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 514,
            "x": "515",
            "y": "0.20893607638980499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 515,
            "x": "516",
            "y": "0.20946006546571899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 516,
            "x": "517",
            "y": "0.20977430538372799",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 517,
            "x": "518",
            "y": "0.20994632769819399",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 518,
            "x": "519",
            "y": "0.20996287512493",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 519,
            "x": "520",
            "y": "0.21042201634131599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 520,
            "x": "521",
            "y": "0.21059071627523601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 521,
            "x": "522",
            "y": "0.210915562020594",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 522,
            "x": "523",
            "y": "0.211080300888256",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 523,
            "x": "524",
            "y": "0.21116696685020001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 524,
            "x": "525",
            "y": "0.211212615826155",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 525,
            "x": "526",
            "y": "0.211212615826155",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 526,
            "x": "527",
            "y": "0.211212615826155",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 527,
            "x": "528",
            "y": "0.21142102313664299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 528,
            "x": "529",
            "y": "0.21147130410256401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 529,
            "x": "530",
            "y": "0.211738585435197",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 530,
            "x": "531",
            "y": "0.211738585435197",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 531,
            "x": "532",
            "y": "0.211974113761775",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 532,
            "x": "533",
            "y": "0.21209649379603199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 533,
            "x": "534",
            "y": "0.21218185014855501",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 534,
            "x": "535",
            "y": "0.212549022489322",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 535,
            "x": "536",
            "y": "0.21267804728467099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 536,
            "x": "537",
            "y": "0.21280771076573099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 537,
            "x": "538",
            "y": "0.21309153952510099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 538,
            "x": "539",
            "y": "0.21410377136661901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 539,
            "x": "540",
            "y": "0.214146768885736",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 540,
            "x": "541",
            "y": "0.21421359727839401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 541,
            "x": "542",
            "y": "0.214488162057831",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 542,
            "x": "543",
            "y": "0.21454703607997699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 543,
            "x": "544",
            "y": "0.21459731704589799",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 544,
            "x": "545",
            "y": "0.215166284174058",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 545,
            "x": "546",
            "y": "0.215264865572771",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 546,
            "x": "547",
            "y": "0.21589337764678501",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 547,
            "x": "548",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 548,
            "x": "549",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 549,
            "x": "550",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 550,
            "x": "551",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 551,
            "x": "552",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 552,
            "x": "553",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 553,
            "x": "554",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 554,
            "x": "555",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 555,
            "x": "556",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 556,
            "x": "557",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 557,
            "x": "558",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 558,
            "x": "559",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 559,
            "x": "560",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 560,
            "x": "561",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 561,
            "x": "562",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 562,
            "x": "563",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 563,
            "x": "564",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 564,
            "x": "565",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 565,
            "x": "566",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 566,
            "x": "567",
            "y": "0.216826226973164",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 567,
            "x": "568",
            "y": "0.217365421628397",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 568,
            "x": "569",
            "y": "0.21768033247011401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 569,
            "x": "570",
            "y": "0.21769620897314201",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 570,
            "x": "571",
            "y": "0.217835807357844",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 571,
            "x": "572",
            "y": "0.21799128224557399",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 572,
            "x": "573",
            "y": "0.21799128224557399",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 573,
            "x": "574",
            "y": "0.21834788099698799",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 574,
            "x": "575",
            "y": "0.218967129091069",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 575,
            "x": "576",
            "y": "0.218967129091069",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 576,
            "x": "577",
            "y": "0.21906571048978199",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 577,
            "x": "578",
            "y": "0.21918214892465299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 578,
            "x": "579",
            "y": "0.21973060755981899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 579,
            "x": "580",
            "y": "0.22056487548748299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 580,
            "x": "581",
            "y": "0.220882437786038",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 581,
            "x": "582",
            "y": "0.22109084509652599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 582,
            "x": "583",
            "y": "0.221239036537452",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 583,
            "x": "584",
            "y": "0.22145405637103599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 584,
            "x": "585",
            "y": "0.22185828463153401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 585,
            "x": "586",
            "y": "0.221956866030247",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 586,
            "x": "587",
            "y": "0.22217849838692599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 587,
            "x": "588",
            "y": "0.22271108051906399",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 588,
            "x": "589",
            "y": "0.22333694113624",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 589,
            "x": "590",
            "y": "0.22336671360916699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 590,
            "x": "591",
            "y": "0.22359099742268401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 591,
            "x": "592",
            "y": "0.22397471719018699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 592,
            "x": "593",
            "y": "0.22450068679922999",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 593,
            "x": "594",
            "y": "0.224580740238078",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 594,
            "x": "595",
            "y": "0.224692546682982",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 595,
            "x": "596",
            "y": "0.225542691113675",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 596,
            "x": "597",
            "y": "0.22560223605952801",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 597,
            "x": "598",
            "y": "0.22622809667670499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 598,
            "x": "599",
            "y": "0.227094117610426",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 599,
            "x": "600",
            "y": "0.227692857211513",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 600,
            "x": "601",
            "y": "0.22799058194078201",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 601,
            "x": "602",
            "y": "0.22830814423933601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 602,
            "x": "603",
            "y": "0.22839679073440899",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 603,
            "x": "604",
            "y": "0.22843119519730201",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 604,
            "x": "605",
            "y": "0.22849339159999299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 605,
            "x": "606",
            "y": "0.22926811458180399",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 606,
            "x": "607",
            "y": "0.22937330850361301",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 607,
            "x": "608",
            "y": "0.22967499429913901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 608,
            "x": "609",
            "y": "0.23005871406664299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 609,
            "x": "610",
            "y": "0.23063694517473601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 610,
            "x": "611",
            "y": "0.23075338360960601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 611,
            "x": "612",
            "y": "0.23087908602440901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 612,
            "x": "613",
            "y": "0.23217514662529701",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 613,
            "x": "614",
            "y": "0.232566149839604",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 614,
            "x": "615",
            "y": "0.232764622246451",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 615,
            "x": "616",
            "y": "0.23306895949881501",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 616,
            "x": "617",
            "y": "0.23308483600184299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 617,
            "x": "618",
            "y": "0.233173482496915",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 618,
            "x": "619",
            "y": "0.233528100715201",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 619,
            "x": "620",
            "y": "0.233587645661054",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 620,
            "x": "621",
            "y": "0.234659422448426",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 621,
            "x": "622",
            "y": "0.23540437295731001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 622,
            "x": "623",
            "y": "0.235626005313989",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 623,
            "x": "624",
            "y": "0.235982604065403",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 624,
            "x": "625",
            "y": "0.23707754080260601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 625,
            "x": "626",
            "y": "0.23719663069431399",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 626,
            "x": "627",
            "y": "0.23795745770622601",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 627,
            "x": "628",
            "y": "0.238298179954612",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 628,
            "x": "629",
            "y": "0.23940369028116801",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 629,
            "x": "630",
            "y": "0.24034580358747901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 630,
            "x": "631",
            "y": "0.24084794232298201",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 631,
            "x": "632",
            "y": "0.241054369100341",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 632,
            "x": "633",
            "y": "0.24106363308027401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 633,
            "x": "634",
            "y": "0.24106363308027401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 634,
            "x": "635",
            "y": "0.24106363308027401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 635,
            "x": "636",
            "y": "0.24106363308027401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 636,
            "x": "637",
            "y": "0.24106363308027401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 637,
            "x": "638",
            "y": "0.24350887245054401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 638,
            "x": "639",
            "y": "0.24371660883732299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 639,
            "x": "640",
            "y": "0.243968013666929",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 640,
            "x": "641",
            "y": "0.24405071856261401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 641,
            "x": "642",
            "y": "0.24518204029584001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 642,
            "x": "643",
            "y": "0.24518204029584001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 643,
            "x": "644",
            "y": "0.24532825120363699",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 644,
            "x": "645",
            "y": "0.246415904494036",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 645,
            "x": "646",
            "y": "0.24757434724335101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 646,
            "x": "647",
            "y": "0.24870832043341401",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 647,
            "x": "648",
            "y": "0.24955185234101099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 648,
            "x": "649",
            "y": "0.25020087290801901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 649,
            "x": "650",
            "y": "0.25021409795421001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 650,
            "x": "651",
            "y": "0.25116282378361598",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 651,
            "x": "652",
            "y": "0.25253628636651398",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 652,
            "x": "653",
            "y": "0.25273079770710299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 653,
            "x": "654",
            "y": "0.25361071461072299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 654,
            "x": "655",
            "y": "0.253644448149908",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 655,
            "x": "656",
            "y": "0.25641255273240698",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 656,
            "x": "657",
            "y": "0.25986341142109898",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 657,
            "x": "658",
            "y": "0.26266524954278297",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 658,
            "x": "659",
            "y": "0.26363713532202099",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 659,
            "x": "660",
            "y": "0.26364109638827898",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 660,
            "x": "661",
            "y": "0.26941944640295001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 661,
            "x": "662",
            "y": "0.26970723622857801",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 662,
            "x": "663",
            "y": "0.272310601943415",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 663,
            "x": "664",
            "y": "0.27322029131996101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 664,
            "x": "665",
            "y": "0.27407704827374901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 665,
            "x": "666",
            "y": "0.29365685251006002",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 666,
            "x": "667",
            "y": "0.296548008050525",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 667,
            "x": "668",
            "y": "0.29802666455523202",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 668,
            "x": "669",
            "y": "0.62819595285916097",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 669,
            "x": "670",
            "y": "0.64662127541241499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 670,
            "x": "671",
            "y": "0.65243335896627097",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 671,
            "x": "672",
            "y": "0.65928744683457197",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 672,
            "x": "673",
            "y": "0.67189407331087503",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 673,
            "x": "674",
            "y": "0.67667076507338197",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 674,
            "x": "675",
            "y": "0.68085532975789598",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 675,
            "x": "676",
            "y": "0.68578749640813297",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 676,
            "x": "677",
            "y": "0.68590658629984003",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 677,
            "x": "678",
            "y": "0.68902598672007898",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 678,
            "x": "679",
            "y": "0.69289298910603903",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 679,
            "x": "680",
            "y": "0.69741827603894002",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 680,
            "x": "681",
            "y": "0.70229089774332298",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 681,
            "x": "682",
            "y": "0.73849980572962703",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 682,
            "x": "683",
            "y": "0.74130164385131103",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 683,
            "x": "684",
            "y": "0.74184348996338201",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 684,
            "x": "685",
            "y": "0.74617426555569299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 685,
            "x": "686",
            "y": "0.74935586237862295",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 686,
            "x": "687",
            "y": "0.75069955248859499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 687,
            "x": "688",
            "y": "0.75095095731820005",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 688,
            "x": "689",
            "y": "0.75184013820175299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 689,
            "x": "690",
            "y": "0.75563437059566796",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 690,
            "x": "691",
            "y": "0.75739420440290794",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 691,
            "x": "692",
            "y": "0.75791023910830901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 692,
            "x": "693",
            "y": "0.75893636691972599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 693,
            "x": "694",
            "y": "0.75893636691972599",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 694,
            "x": "695",
            "y": "0.75904223176524299",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 695,
            "x": "696",
            "y": "0.76182752246019103",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 696,
            "x": "697",
            "y": "0.76228005115348096",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 697,
            "x": "698",
            "y": "0.76228005115348096",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 698,
            "x": "699",
            "y": "0.76512820917482804",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 699,
            "x": "700",
            "y": "0.76608089607049201",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 700,
            "x": "701",
            "y": "0.76648777578782701",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 701,
            "x": "702",
            "y": "0.77121220605128404",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 702,
            "x": "703",
            "y": "0.77183343467849397",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 703,
            "x": "704",
            "y": "0.77232301929151503",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 704,
            "x": "705",
            "y": "0.77359326848573395",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 705,
            "x": "706",
            "y": "0.77472459021895901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 706,
            "x": "707",
            "y": "0.77493695859570499",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 707,
            "x": "708",
            "y": "0.77518836342531094",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 708,
            "x": "709",
            "y": "0.77667695483365895",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 709,
            "x": "710",
            "y": "0.77720225351899297",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 710,
            "x": "711",
            "y": "0.77761574575942305",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 711,
            "x": "712",
            "y": "0.77853204765906503",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 712,
            "x": "713",
            "y": "0.78104676687883001",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 713,
            "x": "714",
            "y": "0.78126111578870505",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 714,
            "x": "715",
            "y": "0.782762932243243",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 715,
            "x": "716",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 716,
            "x": "717",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 717,
            "x": "718",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 718,
            "x": "719",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 719,
            "x": "720",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 720,
            "x": "721",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 721,
            "x": "722",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 722,
            "x": "723",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 723,
            "x": "724",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 724,
            "x": "725",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 725,
            "x": "726",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 726,
            "x": "727",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 727,
            "x": "728",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 728,
            "x": "729",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 729,
            "x": "730",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 730,
            "x": "731",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 731,
            "x": "732",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 732,
            "x": "733",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 733,
            "x": "734",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 734,
            "x": "735",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 735,
            "x": "736",
            "y": "0.783173773026836",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 736,
            "x": "737",
            "y": "0.78337489689052098",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 737,
            "x": "738",
            "y": "0.78380493655768801",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 738,
            "x": "739",
            "y": "0.78491376926478995",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 739,
            "x": "740",
            "y": "0.78606492856730104",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 740,
            "x": "741",
            "y": "0.78619989496203702",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 741,
            "x": "742",
            "y": "0.78651745726059097",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 742,
            "x": "743",
            "y": "0.78815225957673596",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 743,
            "x": "744",
            "y": "0.79070930539190998",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 744,
            "x": "745",
            "y": "0.790999746674375",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 745,
            "x": "746",
            "y": "0.790999746674375",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 746,
            "x": "747",
            "y": "0.79280257800073195",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 747,
            "x": "748",
            "y": "0.79320284519497197",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 748,
            "x": "749",
            "y": "0.79320284519497197",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 749,
            "x": "750",
            "y": "0.79418530456356295",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 750,
            "x": "751",
            "y": "0.79423823698632101",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 751,
            "x": "752",
            "y": "0.79431167790207402",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 752,
            "x": "753",
            "y": "0.79483697658740804",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 753,
            "x": "754",
            "y": "0.79504008098422196",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 754,
            "x": "755",
            "y": "0.79581943595599902",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 755,
            "x": "756",
            "y": "0.79656042539862504",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 756,
            "x": "757",
            "y": "0.79745356734843598",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 757,
            "x": "758",
            "y": "0.79761367422613105",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 758,
            "x": "759",
            "y": "0.79783067459284396",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 759,
            "x": "760",
            "y": "0.79896199632606901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 760,
            "x": "761",
            "y": "0.79896199632606901",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 761,
            "x": "762",
            "y": "0.79901492874882796",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 762,
            "x": "763",
            "y": "0.80091436094076895",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 763,
            "x": "764",
            "y": "0.80185315186653405",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 764,
            "x": "765",
            "y": "0.803805516481233",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 765,
            "x": "766",
            "y": "0.80433081516656801",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 766,
            "x": "767",
            "y": "0.80517169561732804",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 767,
            "x": "768",
            "y": "0.80521536406015404",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 768,
            "x": "769",
            "y": "0.80549852189581495",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 769,
            "x": "770",
            "y": "0.807517043979464",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 770,
            "x": "771",
            "y": "0.80939992874466904",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 771,
            "x": "772",
            "y": "0.80989149389081805",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 772,
            "x": "773",
            "y": "0.81288982388622",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 773,
            "x": "774",
            "y": "0.81291496436918098",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 774,
            "x": "775",
            "y": "0.81580611990964602",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 775,
            "x": "776",
            "y": "0.81716635744635302",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 776,
            "x": "777",
            "y": "0.81744025130208198",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 777,
            "x": "778",
            "y": "0.81766651564872705",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 778,
            "x": "779",
            "y": "0.81854908400918402",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 779,
            "x": "780",
            "y": "0.82226061150741503",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 780,
            "x": "781",
            "y": "0.82463506141876897",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 781,
            "x": "782",
            "y": "0.82628308878110501",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 782,
            "x": "783",
            "y": "0.83268995086979003",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 783,
            "x": "784",
            "y": "0.83282622687394603",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 784,
            "x": "785",
            "y": "0.84761876575839701",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 785,
            "x": "786",
            "y": "0.854472853626698",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 786,
            "x": "787",
            "y": "0.86273944053075602",
            "defined": true,
            "xExact": "",
            "yExact": ""
          },
          {
            "series": "all calibration scores",
            "index": 787,
            "x": "788",
            "y": "0.87896166456341396",
            "defined": true,
            "xExact": "",
            "yExact": ""
          }
        ],
        "plotFile": "ml20-code/r-realdata-company-result/plot.svg",
        "fullResultFile": "ml20-code/r-realdata-company-result/full.json",
        "arithmeticScope": "Exact Python finite Fraction operations; approximate natural logs. BaseR numerical counterpart with declared QR/membership1e-12 and log-domain tiny weights. Python fixed score rows.w stores original exact weight; R rows.w stores normalized numerical mass. Regression R labels[] is nonapplicable, distinct from classification empty set. Fixed example, not an arbitrary input validator or independent peer.",
        "plotScope": "Markers represent defined observations only. Lines guide available neighboring values; a line does not impute a missing bin or missing label. Infinite bounds are reported in summary/full result and not plotted as finite zeros."
      }
    }
  }
}
