How mkcodes4/ds-mini-project works
This is a CKD assessment web app: users enter 51 patient features, the Next.js interface submits them through an API route to a Flask service, and the service returns a model prediction and confidence for display. The Python service loads a serialized bagging model; the web API also proxies a health check. A separate analytics page presents performance, model-comparison, dataset, and confusion-matrix views. The README describes data preparation and model training, but no corresponding training code or dataset appears in the supplied tree, so those are not represented as runtime components.
Main entry points: route.ts Prediction API route · app.py Flask prediction service · page.tsx Feature assessment form · ckd_bagging_model.pkl Bagging model artifact
Components 7
User interface
- Feature assessment form
src/app/page.tsx - Prediction results
src/app/page.tsx - Model analytics
src/app/analytics/page.tsx
Web API
- Prediction API route
src/app/api/predict/route.ts
Prediction service
- Flask prediction service
python-server/app.py - Bagging model artifact
public/ckd_bagging_model.pkl
Other components
- Patient or user
Connections 7
- Patient or user → Feature assessment form: enters features
src/app/page.tsx - Feature assessment form → Prediction API route: submits features
src/app/page.tsx - Prediction API route → Flask prediction service: forwards prediction
src/app/api/predict/route.ts - Flask prediction service → Bagging model artifact: loads model
python-server/app.py - Flask prediction service → Bagging model artifact: runs prediction
python-server/app.py - Prediction API route → Flask prediction service: checks health
src/app/api/predict/route.ts - Prediction API route → Prediction results: returns prediction
src/app/api/predict/route.ts