Skip to content

AgriWiseGP/ML--Crop-Recommendation

Repository files navigation

ML--Crop-Recommendation

A machine learning model to determine the best crop based on soil elements, temperature, humidity, and rainfall.

Data

Link to data

Atrributes

Input

  • N - ratio of Nitrogen (NH4+) content in soil
  • P - ratio of Phosphorous (P) content in soil
  • K - ratio of Potassium (K) content in soil
  • temperature
  • humidity
  • ph
  • rainfall

Target

  • Recommended crop

Limitations

Requirments

Requirments

Code

  1. Data Loading and Discovery
  2. Choose a Model:
    • Random Forest Classifier
    • GaussianNB
    • SVC
    • Logistic Regression
    • DecisionTreeClassifier
  3. Testing

Results

  • Train Accuracy = 100%
  • Test Accuracy = 99.3%

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published