Download example.py from nhnk/FactCascade: direct link, hf CLI and curl.
- Browser
- Download file 385 Bytes
-
https://huggingface.co/nhnk/FactCascade/resolve/main/example.py
- Command line
-
hf download hf://nhnk/FactCascade/example.py
-
curl -L -o example.py https://huggingface.co/nhnk/FactCascade/resolve/main/example.py
385 Bytes
| """Load the trained router; X is the canonical ordered 31-feature matrix.""" | |
| from pathlib import Path | |
| import numpy as np | |
| from factcascade.utility_model import UtilityModel | |
| root=Path(__file__).parent | |
| model=UtilityModel.load(root / "router.json") | |
| # Replace this synthetic vector with the frozen feature implementation output. | |
| X=np.zeros((1,31),dtype=np.float64) | |
| print(model.predict(X)) | |