A ready-to-run Django web app with a training script that:
- reads
data/Housedata.csv - trains a strong gradient-boosted regressor (XGBoost) on
price - saves a single
joblibartifact (ml_artifacts/model.joblib) - writes metrics + a plot into
ml_artifacts/
python -m venv venv
# Windows:
venv\Scripts\activate
# macOS/Linux:
source venv/bin/activate
pip install -r requirements.txtpython ml/train.py --data data/Housedata.csvOr via Django:
python manage.py train_model --data data/Housedata.csvpython manage.py migrate
python manage.py createsuperuser
python manage.py runserverOpen: http://127.0.0.1:8000
- If you retrain, the UI automatically uses the newest artifact in
ml_artifacts/model.joblib. - The dashboard stores prediction history per user.