Downloads · 30 days
0
imaflower/dienbien-coffee-yield
dienbien-coffee-yield is a tabular regression model from imaflower. Use it for the tabular regression 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.
Predicts coffee yield (tons/hectare) for districts in Điện Biên province, NW Vietnam, from growing-season weather features (rainfall timing by phenological stage, frost/cold days, growing degree days, elevation).
Downloads · 30 days
0
Access
Public
Updated Jul 18, 2026
Repo size
6.7 MB
Likes
0
Public
Click a slice to open those files.
.skops6.7 MB · 100%
From the Hugging Face model README
Predicts coffee yield (tons/hectare) for districts in Điện Biên province, NW Vietnam, from growing-season weather features (rainfall timing by phenological stage, frost/cold days, growing degree days, elevation).
Part of a broader yield forecasting & harvest planning pipeline (weather ingestion → feature engineering → model → harvest-window + risk alerts).
model.skops) — safe to
load without pickle's arbitrary-code-execution risk⚠️ Important: this model was trained on synthetic, domain-informed weather+yield data, not real measured yield records (see the parent repo's README for why, and how to retrain on real GSO/ICO data). Treat predictions as illustrative until retrained on real district-level yield history.
dry_spell_rain_mm
flowering_rain_mm
fruitdev_rain_mm
ripening_rain_mm
fruitdev_rain_cv
frost_days_sensitive
mean_annual_temp_c
growing_degree_days
mean_sunshine_ripening
elevation_m
annual_rain_mm
All features are derived from daily weather (tmax_c, tmin_c, tmean_c, precip_mm, et0_mm, sunshine_hours) aggregated over crop-specific
phenological windows — see features.py in the parent repo for exact
definitions (e.g. flowering_rain_mm = total rainfall during the
flowering month(s), frost_days_sensitive = count of nights below the
frost threshold during frost-sensitive months).
from huggingface_hub import hf_hub_download
import skops.io as sio
import pandas as pd
model_path = hf_hub_download(repo_id="imaflower/dienbien-coffee-yield", filename="model.skops")
model = sio.load(model_path, trusted=sio.get_untrusted_types(file=model_path))
X = pd.DataFrame([{
"dry_spell_rain_mm": 30, "flowering_rain_mm": 60, "fruitdev_rain_mm": 450,
"ripening_rain_mm": 120, "fruitdev_rain_cv": 1.8, "frost_days_sensitive": 1,
"mean_annual_temp_c": 21.5, "growing_degree_days": 4200, "mean_sunshine_ripening": 6.2,
"elevation_m": 900, "annual_rain_mm": 1600
}])
predicted_yield_t_ha = model.predict(X)[0]
predict.py).