GodfreyOwino commited on
Commit
712b793
1 Parent(s): a42e69b

Update: Add custom NPKPredictionModel implementation

Browse files
Files changed (2) hide show
  1. README.md +57 -0
  2. npk_needs_model.joblib +3 -0
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ tags:
4
+ - agriculture
5
+ - npk-prediction
6
+ - soil-amendment
7
+ - sklearn
8
+ license: mit
9
+ ---
10
+
11
+ # NPK and Soil Amendment Needs Prediction Model
12
+
13
+ This model predicts the NPK (Nitrogen, Phosphorus, Potassium) needs and other soil amendments based on various input parameters for agricultural planning.
14
+
15
+ ## Model Description
16
+
17
+ The model is a Multi-Output Random Forest Regressor trained on agricultural data. It predicts the required amounts of nitrogen, phosphorus, potassium, organic matter, and lime based on crop type, target yield, field characteristics, and current soil properties.
18
+
19
+ ## Intended Uses & Limitations
20
+
21
+ This model is designed for estimating fertilizer and soil amendment needs in agricultural planning. It should not be used as the sole basis for critical farming decisions without expert consultation.
22
+
23
+ ## Training Data
24
+
25
+ The model was trained on a dataset containing information about various crops, their growing conditions, and the corresponding NPK and soil amendment needs.
26
+
27
+ ## Input Format
28
+
29
+ The model expects input data in the following format:
30
+
31
+ ```python
32
+ input_data = {
33
+ 'crop_name': ['maize (corn)'],
34
+ 'target_yield': [150],
35
+ 'field_size': [10],
36
+ 'ph': [6.5],
37
+ 'organic_carbon': [1.2],
38
+ 'nitrogen': [0.15],
39
+ 'phosphorus': [20],
40
+ 'potassium': [150],
41
+ 'soil_moisture': [30]
42
+ }
43
+ Output Format
44
+ The model returns a dictionary with the following keys:
45
+
46
+ 'nitrogen_need'
47
+ 'phosphorus_need'
48
+ 'potassium_need'
49
+ 'organic_matter_need'
50
+ 'lime_need'
51
+
52
+ Each value represents the predicted amount needed for the respective soil amendment.
53
+ Ethical Considerations
54
+ This model should be used as a tool to assist in agricultural planning, not as a replacement for expert knowledge or local farming practices. Always consider environmental impact and local regulations when applying fertilizers and soil amendments.
55
+ Citation
56
+ If you use this model in your research or application, please cite it as:
57
+ [Your Name or Organization]. (2024). NPK and Soil Amendment Needs Prediction Model. https://huggingface.co/[your-username]/npk-needs-model
npk_needs_model.joblib ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4757fa7de9714a93c54d74996e8d47769a08e8a146068250681e4d0577b5af70
3
+ size 199321410