VideoUFO's picture
Add files using upload-large-folder tool
d249f08 verified
Raw History Blame Contribute Delete
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