Datasets:
Modalities:
Text
Formats:
json
Languages:
English
Size:
< 1K
Tags:
mathematics
information-theory
renyi-entropy
shannon-entropy
hidden-markov-models
bernoulli-convolutions
Download run_checks.py from PureOne/VELORYN-Boundary-Kernel-Entropy: direct link, hf CLI and curl.
- Browser
- Download file 864 Bytes
-
https://huggingface.co/datasets/PureOne/VELORYN-Boundary-Kernel-Entropy/resolve/main/run_checks.py
- Command line
-
hf download hf://datasets/PureOne/VELORYN-Boundary-Kernel-Entropy/run_checks.py
-
curl -L -o run_checks.py https://huggingface.co/datasets/PureOne/VELORYN-Boundary-Kernel-Entropy/resolve/main/run_checks.py
864 Bytes
| """Run the independently enumerated finite tests and write a machine-readable summary.""" | |
| from pathlib import Path | |
| import json | |
| import platform | |
| import sys | |
| import time | |
| import unittest | |
| root=Path(__file__).resolve().parent | |
| sys.path.insert(0,str(root/'tests')) | |
| start=time.perf_counter() | |
| suite=unittest.defaultTestLoader.discover(str(root/'tests'),pattern='test_*.py') | |
| result=unittest.TextTestRunner(verbosity=2).run(suite) | |
| summary={'tests_run':result.testsRun,'failures':len(result.failures),'errors':len(result.errors), | |
| 'passed':result.wasSuccessful(),'python':platform.python_version(), | |
| 'elapsed_seconds_observed':time.perf_counter()-start, | |
| 'finite_tests_are_not_a_formal_proof':True} | |
| (root/'evidence'/'test_summary.json').write_text(json.dumps(summary,indent=2)+'\n',encoding='utf-8') | |
| raise SystemExit(0 if result.wasSuccessful() else 1) | |