Downloads · 30 days
0
GodfreyOwino/NPK_needs_mode2
NPK_needs_mode2 is a machine learning model from GodfreyOwino. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for sklearn. The card lists the license as mit.
This model predicts the NPK (Nitrogen, Phosphorus, Potassium) needs and other soil amendments based on various input parameters for agricultural planning.
Downloads · 30 days
0
Access
Public
Updated Jul 7, 2024
Repo size
199 MB
Likes
1
Public
Click a slice to open those files.
.joblib199 MB · 100%
From the Hugging Face model README
This model predicts the NPK (Nitrogen, Phosphorus, Potassium) needs and other soil amendments based on various input parameters for agricultural planning.
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.
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.
The model was trained on a dataset containing information about various crops, their growing conditions, and the corresponding NPK and soil amendment needs.
The model expects input data in the following format:
input_data = {
'crop_name': ['maize (corn)'],
'target_yield': [150],
'field_size': [10],
'ph': [6.5],
'organic_carbon': [1.2],
'nitrogen': [0.15],
'phosphorus': [20],
'potassium': [150],
'soil_moisture': [30]
}
Output Format
The model returns a dictionary with the following keys:
'nitrogen_need'
'phosphorus_need'
'potassium_need'
'organic_matter_need'
'lime_need'
Each value represents the predicted amount needed for the respective soil amendment.
Ethical Considerations
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.
Citation
If you use this model in your research or application, please cite it as:
[Your Name or Organization]. (2024). NPK and Soil Amendment Needs Prediction Model. https://huggingface.co/[your-username]/npk-needs-model