Views
No views yet
env_sim.py, a compressed
port of the JS world (energy, food, hazards, novelty grid, edge penalty,
action diversity, displacement bonus).1// scripts/neural-familiar/brain.js — LocalNeuralBrain.loadFromHF()
2const url = 'https://huggingface.co/{handle}/eschaton-familiar-brain-v1/resolve/main/policy_v1.json';
3const blob = await fetch(url).then(r => r.json());
4this.applyWeights(blob); // setWeights on the existing tf.sequentialpolicy_v1.safetensors and policy_v1.json. The
JSON path's plain numpy matmul produces predictions equal to sb3's PyTorch
forward pass to <1e-3 max-abs-diff (verified at export time).