Repository files navigation Agriculture Price Prediction using Machine Learning
All code is present inside the src folder
All data, along with the cleaned data is present in the data folder
The saved models are stored in the saved folder to be used while inference.
Identified the contributing factors to the price of every commodity, removed redundant data and removed the outliers in the data.
Used an pipiline consisting of Random Forest Regressor and a polinomial regressor.
Used FASTAPI to prepare the model endpoint.
Developed a Frontend for the user.
Pull the code base
Create a conda environment
Install the fastapi library
Make sure you have the standard ML libraries(sklearn, pandas) installed.
go into src/backend folder and type uvicorn main:app --reload
now open the link and go to some link for example to make sure the endpoint works: http://127.0.0.1:8000/make_prediction/?commodity=commodity_name&APMC=APMC_name&date=date&arrival=arrival (fill accordingly)
For the frontend:
go to src/frontend
run npm install
run node server.js
go to the server location, and you're good to go!
Got an MAE of 552 on the Modal Price based on given features.
About
Commodity Modal Price Prediction
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.