File size: 2,990 Bytes
b84e3dc
1fbd1fa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c9e71f0
b84e3dc
 
 
1fbd1fa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
---
model_name: Crop Recommendation Model using Random Forest
tags:
- tabular-classification
- sklearn
- random-forest
- crop-recommendation
- agriculture
library_name: sklearn
inference: true
model_description: >
  This crop recommendation model uses a Random Forest classifier to recommend
  the best crop

  based on environmental factors such as soil nutrients (N, P, K), pH,
  temperature, rainfall,

  and humidity. The model is trained to assist farmers in making optimal crop
  choices based on 

  available agricultural data.


  **Features Used:**

  - Nitrogen (N)

  - Phosphorus (P)

  - Potassium (K)

  - pH

  - Temperature

  - Rainfall

  - Humidity


  **Example Usage:**

  ```python

  import joblib

  model = joblib.load("crop.pkl")
  prediction = model.predict([[N, P, K, pH, temperature, rainfall, humidity]])
  print("Recommended Crop:", prediction)
metrics:
- accuracy 
language:
- en
pipeline_tag: question-answering
---
---
models:
  - model_name: "Crop Recommendation Model using Random Foresst classification"
    tags:
      - tabular-classification
      - sklearn
      - random-forest
      - crop-recommendation
      - agriculture
    library_name: "sklearn"
    inference: true
    model_description: |
      This crop recommendation model uses a Random Forest classifier to recommend the best crop
      based on environmental factors such as soil nutrients (N, P, K), pH, temperature, rainfall,
      and humidity. The model is trained to assist farmers in making optimal crop choices based on 
      available agricultural data.

      **Features Used:**
      - Nitrogen (N)
      - Phosphorus (P)
      - Potassium (K)
      - pH
      - Temperature
      - Rainfall
      - Humidity

      **Example Usage:**
      ```python
      import joblib
      model = joblib.load("crop.pkl")
      # Predict the crop for a given set of environmental features
      prediction = model.predict([[N, P, K, pH, temperature, rainfall, humidity]])
      print("Recommended Crop:", prediction)
      ```

  - model_name: "Crop recommendation model using Adaboost ensemble method"
    tags:
      - tabular-classification
      - sklearn
      - adaboost
      - decision-tree
      - soil-analysis
    library_name: "sklearn"
    inference: true
    model_description: |
      This soil classification model is built using AdaBoost with a DecisionTreeClassifier as the base estimator. 
      It classifies soil types based on various properties like pH, nutrient levels, and other soil characteristics.
    
      **Algorithm Details:**
      - Base Learner: DecisionTreeClassifier with max_depth=3
      - Boosting Method: AdaBoostClassifier with SAMME.R
      - Number of Estimators: 500
      - Learning Rate: 0.3

      **Example Usage:**
      ```python
      import joblib
      model = joblib.load("adaboost_model_soil.pkl")
      prediction = model.predict([[feature1, feature2, ..., featureN]])
      print("Predicted Soil Type:", prediction)
      ```