Spaces:
Sleeping
Sleeping
Download check.py from Diaure/Home_Credit_API: direct link, hf CLI and curl.
- Browser
- Download file 276 Bytes
-
https://huggingface.co/spaces/Diaure/Home_Credit_API/resolve/main/check.py
- Command line
-
hf download hf://spaces/Diaure/Home_Credit_API/check.py
-
curl -L -o check.py https://huggingface.co/spaces/Diaure/Home_Credit_API/resolve/main/check.py
276 Bytes
| import joblib | |
| pipe = joblib.load("./BestModel/pipeline_complet.joblib") | |
| pre = pipe.named_steps["preprocess"] | |
| print("FEATURES ATTENDUES PAR LE PIPELINE :") | |
| print(list(pre.transformers_[0][2])) # les colonnes passées à 'num' | |
| print("NOMBRE :", len(pre.transformers_[0][2])) | |