r/coolgithubprojects • • 2d ago

I built a Random Forest classifier with FastAPI and Docker (92.06% test accuracy)

built a random forest classifier while learning classical machine learning and model deployment

the project classifies 7 dry bean varieties using 16 numerical features

what's included:

  • 100 trees with entropy splitting

  • 5-fold cross validation: 92.54%

  • test accuracy: 92.06%

  • GridSearchCV for hyperparameter tuning

  • FastAPI REST API and HTML/CSS interface

  • Docker and automated pytest tests

  • confusion matrix and feature importance plots

the README includes reproducible training instructions and evaluation results

github: https://github.com/Vaibh37/dry-bean-random-forest

would appreciate technical feedback. if you find it useful, consider starring the repo ⭐

0 Upvotes

0 comments sorted by