Aziel Eliab · GodLock.AZ · decryption_complete is false. Cap-7 is not an ICANN name. Paid satellite stays HELD. These pages show the archive file. They do not say the manuscript is decrypted.

Voynich Master Archive - Volume 07 - Pages 6001-7000

Test CSV, JSON, and Markdown records. Sections carry a Source path and a SHA-256 line.

PDF page 770 of 1000. Catalog page range 6001-7000.

First Previous Next Last Plain text of this page PDF at this page

Extracted text

raw_edge_audit_025.py
VOYNICH RESEARCH ARCHIVE | 16 SEPTEMBER 2026 1
raw_edge_audit_025.py
Source: /Voynich/Voynich_Tests_024_025_reproducibility_bundles.zip!/Voynich_RAW_EDGE_AUDIT_025_reproduci
bility.zip!/raw_edge_audit_025.py
SHA-256: efd820772cba6f30db8d8cfecd99efe25509266fda32c87d1509d15bf6248438
!/usr/bin/env python3
"""Raw physical-edge transition audit, independent in ZL and GC."""
from pathlib import Path
import hashlib,json,re
import numpy as np,pandas as pd
from sklearn.compose import ColumnTransformer
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import log_loss
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import OneHotEncoder,StandardScaler
ROOT=Path(__file__).resolve().parent;IN=ROOT/'outer_scaffold_coverage_001/corpus_scaffold.csv';OUT=ROOT/
'raw_edge_audit_025';OUT.mkdir(exist_ok=True)
SEED=20260830;rng=np.random.default_rng(SEED)
CAT_BASE=['current_left','payload_first','payload_last','section','pos_bucket','same_payload_prev']
NUM=['payload_len','rel_pos']; EDGE=['current_right']
def sec(f):
 m=re.match(r'f(\d+)',str(f));n=int(m.group(1)) if m else -1
 return 'Herbal' if n<=66 else 'Astro' if n<=73 else 'Bio' if n<=84 else 'Pharma' if n<=102 else 
'Recipes' if n<=116 else 'Other'
def folds(fs):
 fs=sorted(fs);q=np.random.default_rng(SEED);q.shuffle(fs);return {f:i%5 for i,f in enumerate(fs)}
def pipe(cats):
 pre=ColumnTransformer([('cat',OneHotEncoder(handle_unknown='ignore'),cats),('num',StandardScaler(),NUM)
])
 return Pipeline([('pre',pre),('lr',LogisticRegression(C=.25,max_iter=2000,class_weight='balanced',rando
m_state=SEED))])
def make_data(x,w):
 z=x[x.witness==w].sort_values(['folio','line','index']).copy();z['section']=z.folio.map(sec)
 grp=z.groupby(['folio','line'],sort=False);z['next_left']=grp.left_atom.shift(-1);z['next_index']=grp['
index'].shift(-1);z['line_n']=grp['index'].transform('count');z['ord']=grp.cumcount()
 z=z[(z.next_index==z['index']+1)&z.next_left.notna()].copy();p=z.payload.fillna('').astype(str).str.spl
it()
 z['current_left']=z.left_atom.fillna('NA');z['current_right']=z.right_atom.fillna('NA');z['payload_firs
t']=p.str[0].fillna('EMPTY');z['payload_last']=p.str[-1].fillna('EMPTY');z['payload_len']=p.str.len();z[
'rel_pos']=z['ord']/z.line_n.clip(lower=1)
 z['pos_bucket']=pd.cut(z.rel_pos,[-.01,.2,.8,1.01],labels=['START','MIDDLE','END']).astype(str)
 z['same_payload_prev']=(z.payload==grp.payload.shift(1).reindex(z.index)).astype(str)
 z=z[z.next_left.map(z.next_left.value_counts())>=30].copy();z['fold']=z.folio.map(folds(z.folio.unique(
)));return z
def run(z,w):
 rows=[];cache=[]
 for f in range(5):
  tr=z[z.fold!=f];te=z[z.fold==f]
  mb=pipe(CAT_BASE).fit(tr,tr.next_left);me=pipe(CAT_BASE+EDGE).fit(tr,tr.next_left)
  pb=mb.predict_proba(te);pe=me.predict_proba(te);classes=me.named_steps['lr'].classes_
  # Both models can have same training classes; explicit labels protects held-out missing classes.
  llb=log_loss(te.next_left,pb,labels=mb.named_steps['lr'].classes_)/np.log(2);lle=log_loss(te.next_left
,pe,labels=classes)/np.log(2)
  rows.append({'witness':w,'fold':f,'n':len(te),'base_bits':llb,'edge_bits':lle,'gain_bits':llb-lle})
  cache.append((te,me,llb))
 obs=float(np.average([r['gain_bits'] for r in rows],weights=[r['n'] for r in rows]));null=[]
 for b in range(1000):
  gains=[];ns=[]
  for te0,m,llb in cache:
   te=te0.copy();keys=te.section.astype(str)+'|'+te.pos_bucket.astype(str)+'|'+te.payload_last.astype(st
r)
   vals=te.current_right.to_numpy().copy()
   for k in keys.unique():