prathamrajbhar11's picture
Update README.md
79d8e0b verified
|
Raw
History Blame Contribute Delete
984 Bytes
---
language:
- en
- hi
tags:
- agriculture
- fertilizer-recommendation
- sklearn
- india
- kissansahyog
license: mit
---
# 🧪 Poshan — Fertilizer Recommendation Model
Part of the [KissanSahyog](https://github.com/prathamrajbhar/KissanSahyog) agritech platform.
**Poshan** (Hindi: पोषण) means "nourishment / nutrition".
## Model Files
| File | Description |
|---|---|
| `fertilizer_model.pkl` | Fertilizer classifier |
| `columns.pkl` | Input feature column order |
| `label_encoder.pkl` | Fertilizer name label encoder |
## Inputs
- `Soil Type`, `Crop Type` (categorical)
- `Temperature`, `Humidity`, `Moisture`, `N`, `P`, `K` (numeric)
## Output
- Recommended fertilizer name + dosage notes
## Usage
```python
import joblib
import pandas as pd
model = joblib.load("fertilizer_model.pkl")
cols = joblib.load("columns.pkl")
enc = joblib.load("label_encoder.pkl")
pred = model.predict(pd.DataFrame([your_input], columns=cols))
print(enc.inverse_transform(pred))
```