Krishnayadav210 / Crop-Recommendation-system

India is an agricultural country as which is well known for agriculture in the world. Agriculture is major field in the world and it is also known as backbone of India. Most of the population and economy in India involved in agriculture. Farmers aware of traditional farming and unaware of climatic conditions influence the crop production and leads

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ML based Crop Recommendation App


Technical Description

This app uses a Dataset with 2200 Datapoins for Training and for Generating predictions.
Model used: Gaussian Naive Bayes
Accuracy: 99.54%


Run it on your Browser now! (New)


How to run on Local Machine

  • Download the Github Package from this repo and Unzip it anywhere.

  • Download and install Anaconda for Windows from this link or Jupyter for Windows from this link.

  • Open Jupyter Notebook and navigate to the Crop-Recommendation folder.

  • Launch a new Jupyter Terminal and type these commands

 pip install streamlit
 pip install pandas
 pip install scikit-learn
  • Now navigate to Crop-Recommendation folder using cd command in the terminal.

  • Type this command

    streamlit run app.py
  • Enjoy!

Inspiration

Many farmers are confused when making the choice before the sowing season. This app will help them with their choice and save them a lot of time and money.

What it does

It takes input about the Farmer's soil and tells them which Crop would be best for their soil type using ML prediction.

How we built it

We have used a dataset of 2200 entries and trained an ML model on it for making the predictions. We have then used Streamlit library to create a user-friendly and simple UI for anyone to use. It uses Jupyter environment to run.

Challenges we ran into

Finding the right dataset, Training the model for high accuracy, Hosting the model as a web-app.

Accomplishments that we're proud of

High Accuracy of our ML model (99.54% during validation). Custom UI elements on Streamlit web-app.

What we learned

Machine Learning, Using Streamlit for Hosting, Creating custom environment on Jupyter.


About

India is an agricultural country as which is well known for agriculture in the world. Agriculture is major field in the world and it is also known as backbone of India. Most of the population and economy in India involved in agriculture. Farmers aware of traditional farming and unaware of climatic conditions influence the crop production and leads


Languages

Language:Jupyter Notebook 88.8%Language:Python 10.7%Language:Swift 0.5%