Download ScaleDF_rebuttal/python_stubs/sitecustomize.py from VideoUFO/ResearchData_P1: direct link, hf CLI and curl.
- Browser
- Download file 584 Bytes
-
https://huggingface.co/datasets/VideoUFO/ResearchData_P1/resolve/main/ScaleDF_rebuttal/python_stubs/sitecustomize.py
- Command line
-
hf download hf://datasets/VideoUFO/ResearchData_P1/ScaleDF_rebuttal/python_stubs/sitecustomize.py
-
curl -L -o sitecustomize.py https://huggingface.co/datasets/VideoUFO/ResearchData_P1/resolve/main/ScaleDF_rebuttal/python_stubs/sitecustomize.py
584 Bytes
| """Small compatibility shims loaded before the training code. | |
| The ScaleDF release pins augly 1.0.0, which still references NumPy's | |
| deprecated scalar aliases. Newer NumPy versions removed them, so restore the | |
| aliases locally without changing the machine-wide Python environment. | |
| """ | |
| try: | |
| import numpy as _np | |
| _ALIASES = { | |
| "float": float, | |
| "int": int, | |
| "complex": complex, | |
| "object": object, | |
| } | |
| for _name, _value in _ALIASES.items(): | |
| if _name not in _np.__dict__: | |
| setattr(_np, _name, _value) | |
| except Exception: | |
| pass | |