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 756 of 1000. Catalog page range 6001-7000.

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

Extracted text

measure_pharma_024.py
VOYNICH RESEARCH ARCHIVE | 16 SEPTEMBER 2026 1
measure_pharma_024.py
Source: /Voynich/Voynich_Tests_024_025_reproducibility_bundles.zip!/Voynich_MEASURE_PHARMA_024_reproduci
bility.zip!/measure_pharma_024.py
SHA-256: 5cfda23e5810e2985963d869e1908e7103a0057c042933f87ed037c3df5c57a3
!/usr/bin/env python3
"""Prospective MEASURE->PHARMA structural-series test (audited test 024)."""
from pathlib import Path
import hashlib, json, re
import numpy as np
import pandas as pd
from sklearn.compose import ColumnTransformer
from sklearn.impute import SimpleImputer
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import log_loss, roc_auc_score
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import StandardScaler
ROOT=Path(__file__).resolve().parent
IN=ROOT/'outer_scaffold_coverage_001/corpus_scaffold.csv'
OUT=ROOT/'measure_pharma_024'; OUT.mkdir(exist_ok=True)
SEED=20260829; RNG=np.random.default_rng(SEED)
def section(f):
    m=re.match(r'f(\d+)',str(f)); n=int(m.group(1)) if m else -1
    if 1<=n<=66:return 'Herbal'
    if 87<=n<=102:return 'Pharma'
    if 103<=n<=116:return 'Recipes'
    return 'Other'
def line_features(g):
    g=g.sort_values('index'); n=len(g)
    payload=g.payload.fillna('').astype(str).tolist()
    frame=(g.left_function.fillna('UNRESOLVED').astype(str)+'|'+g.right_function.fillna('UNRESOLVED').as
type(str)).tolist()
    exact=list(zip(frame,payload)); pc=pd.Series(payload).value_counts(); 
fc=pd.Series(frame).value_counts(); ec=pd.Series(exact).value_counts()
    samef=[]; step=[]; varying=[]
    for fr, q in g.assign(_f=frame).groupby('_f'):
        ps=q.payload.fillna('').astype(str).tolist()
        if len(ps)>=2 and len(set(ps))>=2:
            varying.append(len(ps))
            for i in range(len(ps)):
                a=ps[i].split()
                for j in range(i+1,len(ps)):
                    b=ps[j].split(); samef.append(1)
                    step.append(int(len(a)==len(b) and sum(x!=y for x,y in zip(a,b))==1))
    adjf=np.mean([frame[i]==frame[i-1] for i in range(1,n)]) if n>1 else 0
    adjp=np.mean([payload[i]==payload[i-1] for i in range(1,n)]) if n>1 else 0
    runs=[]
    if n:
        cur=1
        for i in range(1,n):
            if frame[i]==frame[i-1]:cur+=1
            else:runs.append(cur);cur=1
        runs.append(cur)
    return {
      'n_tokens':n,'resolved_rate':float(g.both_resolved.mean()),
      'payload_repeat':1-len(pc)/n,'max_payload_mult':pc.max()/n,
      'frame_repeat':1-len(fc)/n,'max_frame_mult':fc.max()/n,
      'exact_repeat':1-len(ec)/n,'max_exact_mult':ec.max()/n,
      'adjacent_frame':adjf,'adjacent_payload':adjp,'longest_frame_run':max(runs)/n,
      'variable_frame_types':len(varying)/n,'variable_frame_mass':sum(varying)/n,
      'single_atom_step_rate':float(np.mean(step)) if step else 0,
      'has_bounded_series':int(bool(varying)),