Giter Club home page Giter Club logo

crop-recommendation's Introduction

Crop Recommendation System

This project is a Crop Recommendation System that helps farmers make informed decisions about which crops to cultivate based on soil and environmental conditions.

Table of Contents

Introduction

Agriculture is a vital sector for any country. The Crop Recommendation System aims to assist farmers in selecting the most suitable crops to plant based on soil quality and environmental factors. The system is built using machine learning techniques and allows farmers to input their soil and climate conditions to receive crop recommendations.

Features

  • Predicts suitable crops based on soil and climate data.
  • Provides information about the best crop for a given set of conditions.

Data Source

The dataset used for training and testing the model is available on Kaggle: Crop Recommendation Dataset

Prerequisites

Before running the system, you'll need to install the required Python libraries. You can do this using pip:

  1. Clone the repository:

    git clone https://github.com/vikascod/crop-recommendation
    cd crop-recommendation
    
  2. Install the project dependencies:

    pip install -r requirements.txt
    
  • Download the dataset from the provided Kaggle link and save it as Crop_recommendation.csv in the project directory.

Usage

  • Open and run the Jupyter Notebook Crop_Recommendation.ipynb to train the model and explore the data.

Model Training

  • The Jupyter Notebook contains the code for data preprocessing, model training, and evaluation.

Model Evaluation

  • The model is evaluated using accuracy and cross-validation scores. The best model is selected using GridSearchCV.

Predictive System

  • The predictive system allows users to input their soil and climate data and receive crop recommendations.

Saving the Model

  • The trained model, StandardScaler, and LabelEncoder are saved to the crop_recommendation_model.pkl file. You can load this model for future predictions.

crop-recommendation's People

Contributors

vikascod 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.