"""Freeze original-train membership, fit once, select on validation, freeze test inputs.""" import argparse from collections import Counter import hashlib, json, math, platform, time from pathlib import Path import numpy as np from model import ( CONFIG, PARAMETERS, Adam, features, file_sha, initialize, load_csv, logits_for, nll, normalized, batch_loss_grad, portable, decode_portable, ) def write(path, value): path.write_text( json.dumps(value, ensure_ascii=False, allow_nan=False, indent=2) + "\n" ) def param_digest(p): h = hashlib.sha256() for k in PARAMETERS: h.update(k.encode()) h.update(p[k].astype("