Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 867 Bytes

README.md

File metadata and controls

38 lines (30 loc) · 867 Bytes

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%