Downloads · 30 days
0
Awongo/soil-crop-recommendation-model
soil-crop-recommendation-model is a machine learning model from Awongo. 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 pytorch. The card lists the license as mit.
Graph neural network models trained on Ugandan agricultural knowledge graph for crop recommendation.
Downloads · 30 days
0
Access
Public
Updated Oct 29, 2025
Repo size
7.7 MB
Likes
0
Public
Click a slice to open those files.
.pth7.7 MB · 95%
From the Hugging Face model README
Graph neural network models trained on Ugandan agricultural knowledge graph for crop recommendation.
This repository contains multiple graph embedding models trained on an agricultural knowledge graph with 175,318 triples representing crop-soil-climate relationships.
best_model.pthgcn_model.pth) - Best performingtranse_model.pth) - Translation-baseddistmult_model.pth) - Bilinearcomplex_model.pth) - Complex embeddingsgraphsage_model.pth) - Sampling-basedThe model_metadata.json file contains:
import torch
from huggingface_hub import hf_hub_download
# Download model
model_path = hf_hub_download(
repo_id="Awongo/soil-crop-recommendation-model",
filename="best_model.pth"
)
# Download metadata
metadata_path = hf_hub_download(
repo_id="Awongo/soil-crop-recommendation-model",
filename="model_metadata.json"
)
# Load model (pseudo-code - adjust to your model architecture)
# model = GCNModel(num_entities=2513, num_relations=15, embedding_dim=100)
# model.load_state_dict(torch.load(model_path, map_location='cpu'))
# model.eval()
Used in production for agricultural crop recommendations based on:
@misc{agricultural-ai-graph-models,
title={Agricultural AI Graph Embedding Models for Crop Recommendation},
year={2025},
publisher={Hugging Face}
}