r/developersIndia • • 12d ago

I Made This Built a Random Forest classifier with FastAPI and Docker - 92.06% test accuracy

recently built a separate random forest project after experimenting with decision trees on the same dry bean dataset

the implementation includes:

  • 100 trees using bootstrap sampling

  • 5-fold CV + GridSearchCV

  • 92.54% CV accuracy and 92.06% test accuracy

  • FastAPI REST API + HTML/CSS interface

  • Docker containerization

  • input validation and automated pytest tests

the grid search tested 4 configurations and selected the baseline parameters

also included the classification report, confusion matrix and feature importance plots

would appreciate technical feedback on the implementation and evaluation

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

1 Upvotes

2 comments sorted by

•

u/AutoModerator 12d ago

Namaste! Thanks for submitting to r/developersIndia. While participating in this thread, please follow the Community Code of Conduct and rules.

It's possible your query is not unique, use site:reddit.com/r/developersindia KEYWORDS on search engines to search posts from developersIndia. You can also use reddit search directly.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/AutoModerator 12d ago

Thanks for sharing something that you have built with the community. We recommend participating and sharing about your projects on our monthly Showcase Sunday Mega-threads. Keep an eye out on our events calendar to see when is the next mega-thread scheduled.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.