Spaces:
Running
Running
Download pysr/test/params.py from MilesCranmer/PySR: direct link, hf CLI and curl.
- Browser
- Download file 304 Bytes
-
https://huggingface.co/spaces/MilesCranmer/PySR/resolve/main/pysr/test/params.py
- Command line
-
hf download hf://spaces/MilesCranmer/PySR/pysr/test/params.py
-
curl -L -o params.py https://huggingface.co/spaces/MilesCranmer/PySR/resolve/main/pysr/test/params.py
304 Bytes
| import inspect | |
| from pysr import PySRRegressor | |
| DEFAULT_PARAMS = inspect.signature(PySRRegressor.__init__).parameters | |
| DEFAULT_NITERATIONS = DEFAULT_PARAMS["niterations"].default | |
| DEFAULT_POPULATIONS = DEFAULT_PARAMS["populations"].default | |
| DEFAULT_NCYCLES = DEFAULT_PARAMS["ncycles_per_iteration"].default | |