Instructions to use prathamrajbhar11/Praapthi-yield-prediction with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use prathamrajbhar11/Praapthi-yield-prediction with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("prathamrajbhar11/Praapthi-yield-prediction", "sklearn_model.joblib") ) # only load pickle files from sources you trust # read more about it here https://skops.readthedocs.io/en/stable/persistence.html - Notebooks
- Google Colab
- Kaggle
🌾 Praapthi — Crop Yield Prediction Model
Part of the KissanSahyog agritech platform.
Praapthi (Sanskrit: प्राप्ति) means "that which is obtained / harvest".
Model Files
| File | Description |
|---|---|
yield_pipeline.pkl |
Full sklearn pipeline (preprocessor + model) |
rf_model.pkl |
Random Forest base model artifact |
le_crop.pkl |
Label encoder for crop names |
le_state.pkl |
Label encoder for Indian states |
le_dist.pkl |
Label encoder for districts |
cleaned_dataset.csv |
Training dataset reference |
Inputs
Crop,State,District(categorical)Area (ha),Temperature,Humidity,Rainfall,N,P,K(numeric)
Output
predicted_yieldin kg/ha
Usage
import joblib
import pandas as pd
model = joblib.load("yield_pipeline.pkl")
# Inputs: Crop, State, District, Area, Temp, Humid, Rain, N, P, K
data = pd.DataFrame([[
"Rice", "West Bengal", "PURBA BARDHAMAN",
500, 25.5, 80, 1500, 80, 40, 40
]], columns=[
'Crop', 'State', 'District', 'Area', 'Temperature',
'Humidity', 'Rainfall', 'N', 'P', 'K'
])
prediction = model.predict(data)
print(f"Predicted Yield: {prediction[0]:.2f} kg/ha")
- Downloads last month
- -
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support