Git Product home page Git Product logo

fruit-price-forecast's Introduction

Fruit Price Forecast

images

Welcome to the Fruit-Price-Forecast repository! In this project, I have developed a model to forecast the prices of fruits and vegetables in India. The data used for this project is sourced from Kaggle's Vegetable and Fruits Price in India dataset. I have reprocessed the data to prepare it for building artificial intelligence models.

Model Details

I have utilized a Random Forest model, which has demonstrated remarkable performance. Here are the details of the model's accuracy:

  • Training Accuracy: 99.9%
  • Test Accuracy: 99.1%

How to Use the Model

To use this model and predict the price of a fruit or vegetable, follow these steps:

1. Download the Encoder:

  • Download the encoder.pkl file attached to this repository. This file contains the list of all fruits and vegetables the model was trained on.

  • Use the following code snippet to load the encoder in your Python environment:

    import joblib
    
    file_path = 'encoder.pkl'
    loaded_encoder = joblib.load(file_path)

2. Provide Input

  • Fruit or Vegetable Name: Ensure the name of the fruit or vegetable you want to predict the price for is in the list of classes from the encoder.
  • Date: Specify the date for which you want to forecast the price.

3. Make a Prediction

Utilize the loaded encoder and the specified date to predict the price using the trained model.

Additional Resources

  • The pre-trained Random Forest model can be downloaded from RF Model.
  • Download the data after reprocessing it to be ready to train models Pre-Processed Data.

Contact Information

If you have any questions or need further assistance, feel free to reach out to me:

Happy predicting!

fruit-price-forecast's People

Contributors

aliraqimustafa avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.