Spaces:
Running
Running
Download code/claim3_negative_control.py from DineshAI/SOlPHMdSY3: direct link, hf CLI and curl.
- Browser
- Download file 735 Bytes
-
https://huggingface.co/spaces/DineshAI/SOlPHMdSY3/resolve/main/code/claim3_negative_control.py
- Command line
-
hf download hf://spaces/DineshAI/SOlPHMdSY3/code/claim3_negative_control.py
-
curl -L -o claim3_negative_control.py https://huggingface.co/spaces/DineshAI/SOlPHMdSY3/resolve/main/code/claim3_negative_control.py
735 Bytes
| """Control: GeLU violates the scale-invariance invariant and must fail.""" | |
| import json | |
| from reproduction.claim3_independent_checker import check | |
| def main() -> int: | |
| result = check() | |
| values = result["gelu_control"]["E_sigma_prime2"] | |
| falsely_scale_invariant = max(values) - min(values) < 1e-12 | |
| output = { | |
| "mutation": "treat GeLU as scale invariant", | |
| "expected": "failure because E[sigma'(Z)^2] depends on K", | |
| "K": result["gelu_control"]["K"], | |
| "E_sigma_prime2": values, | |
| "mutant_passed": falsely_scale_invariant, | |
| } | |
| print(json.dumps(output, indent=2, sort_keys=True)) | |
| return 0 if falsely_scale_invariant else 1 | |
| if __name__ == "__main__": | |
| raise SystemExit(main()) | |