Downloads · 30 days
0
prathamrajbhar11/Praapthi-yield-prediction
Praapthi-yield-prediction is a machine learning model from prathamrajbhar11. 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.
Part of the KissanSahyog agritech platform.
Downloads · 30 days
0
Access
Public
Updated Apr 6, 2026
Repo size
631 MB
Likes
0
Public
Click a slice to open those files.
.pkl631 MB · 99%
From the Hugging Face model README
Part of the KissanSahyog agritech platform.
Praapthi (Sanskrit: प्राप्ति) means "that which is obtained / harvest".
| 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 |
Crop, State, District (categorical)Area (ha), Temperature, Humidity, Rainfall, N, P, K (numeric)predicted_yield in kg/haimport 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")