Skip to content

The Avocado Price Prediction Project is a data-driven initiative that leverages machine learning and statistical modeling to forecast the future prices of avocados in the market. This project aims to provide valuable insights for farmers, distributors, retailers, and consumers .

Notifications You must be signed in to change notification settings

rohitinu6/Avocado-Price-Prediction-using-Machine-Learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Avocado Price Prediction Project

Overview

This project focuses on predicting the prices of avocados using various regression algorithms. The dataset was sourced from Kaggle and includes relevant features to facilitate the prediction process.

Features

  • Utilizes various regression algorithms for avocado price prediction.
  • Dataset collected from Kaggle, containing information about avocado prices and characteristics.

Algorithms Used

  • Linear Regression
  • SVR
  • Random Forest
  • Gradient Boosting Models (GBM)
  • Extreme Gradient Boosting (XGBoost)
  • AdaBoostRegressor
  • Decision Tree
  • KNeighborsRegressor(KNN)
  • Artificial Neural Networks (ANN)
  • LSTM(Long Short term Memory)

Dataset

The dataset used in this project is sourced from Kaggle and includes information about avocado prices, types, and characteristics. It contains features such as average price, total volume, type, region, etc.

Project Structure

  • data/: Contains the dataset files.
  • notebooks/: Jupyter notebooks with the code for data exploration, preprocessing, and model training.
  • src/: Python source code for the project.
  • requirements.txt: List of dependencies needed to run the project.

How to Run

  1. Install dependencies using pip install -r requirements.txt.
  2. Execute the notebooks in the notebooks/ folder in the given order.
  3. Run the scripts in the src/ folder for further analysis or model training.

Results

The sequence of all the algorithms used is as follows:

  1. Linear Regression
  2. SVR
  3. Random Forest
  4. Gradient Boosting Models (GBM)
  5. Extreme Gradient Boosting (XGBoost)
  6. AdaBoostRegressor
  7. Decision Tree
  8. KNeighborsRegressor(KNN)
  9. Artificial Neural Networks (ANN)
  10. LSTM(Long Short term Memory)

The Accuracy of all the following 10 Regression Algorithms is provided below:

image

The RMSE of all the following 10 Regression Algorithms is provided below:

image

The MAE of all the following 10 Regression Algorithms is provided below:

image

The MAPE of all the following 10 Regression Algorithms is provided below:

image

The Precision of all the following 10 Regression Algorithms is provided below:

image

The Recall of all the following 10 Regression algorithms is provided below:

image

Future Work

  • This project is a basic comparison of few selected regression algorithms on an avocado dataset.
  • We can also create a dashboard on the same dataset to create a visualization of sales data.

Conclusion

  • Clearly, we can see that the accuracies of the algorithms 1 and 6 are the highest.
  • Also we can see from the chart of rmse that the rmse of algorithm 1 is lower as compared to that of algorithm 6.
  • Thus we conclude that algorithm 6 i.e. AdaBoostRegressor has performed well in the given dataset.

Author

Rohit Dubey

License

This project is licensed under the MIT License.

Acknowledgments

  • Mention any references or external libraries used in the project.

Feel free to customize the content according to your project specifics. Don't forget to include a license file and any other necessary documentation for users to understand and replicate your work.

About

The Avocado Price Prediction Project is a data-driven initiative that leverages machine learning and statistical modeling to forecast the future prices of avocados in the market. This project aims to provide valuable insights for farmers, distributors, retailers, and consumers .

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published