Download scripts/build_and_train.py from ALAMDIENG/waste-prediction-api: direct link, hf CLI and curl.
- Browser
- Download file 452 Bytes
-
https://huggingface.co/spaces/ALAMDIENG/waste-prediction-api/resolve/main/scripts/build_and_train.py
- Command line
-
hf download hf://spaces/ALAMDIENG/waste-prediction-api/scripts/build_and_train.py
-
curl -L -o build_and_train.py https://huggingface.co/spaces/ALAMDIENG/waste-prediction-api/resolve/main/scripts/build_and_train.py
452 Bytes
| import os | |
| import sys | |
| # Ensure current working directory is in python path | |
| sys.path.append(os.path.dirname(os.path.abspath(__file__))) | |
| from generate_real_kecamatan_dataset import generate_dataset | |
| def run_pipeline(): | |
| print("🚀 Running full data generation and spatial model training pipeline...") | |
| df = generate_dataset() | |
| import train | |
| print("✨ Pipeline build completed successfully!") | |
| if __name__ == "__main__": | |
| run_pipeline() | |