Avocados. Fruits that contain numerous nutrients and healthy fat, avocados are becoming more and more valuable. For farmers, this increasing trend may create confusion for how to set the prices of avocados. Too high, the avocados will not sell. Too low, the farmer will simply lose money.
Here we provide a simple machine learning algorithm that utilizes a random forest regression to predict the price of an avocado based on various parameters. The code was mostly adapted from the official sci-kit learn documentation.
After completing the model, we used joblib and flask to create a website to implement our model in a more user-friendly way. We used a YouTube tutorial (https://youtu.be/UbCWoMf80PY) to help guide through the steps of implementing the flask.