Views
No views yet
best_model.pthgcn_model.pth) - Best performingtranse_model.pth) - Translation-baseddistmult_model.pth) - Bilinearcomplex_model.pth) - Complex embeddingsgraphsage_model.pth) - Sampling-basedmodel_metadata.json file contains:1import torch
2from huggingface_hub import hf_hub_download
3
4# Download model
5model_path = hf_hub_download(
6 repo_id="Awongo/soil-crop-recommendation-model",
7 filename="best_model.pth"
8)
9
10# Download metadata
11metadata_path = hf_hub_download(
12 repo_id="Awongo/soil-crop-recommendation-model",
13 filename="model_metadata.json"
14)
15
16# Load model (pseudo-code - adjust to your model architecture)
17# model = GCNModel(num_entities=2513, num_relations=15, embedding_dim=100)
18# model.load_state_dict(torch.load(model_path, map_location='cpu'))
19# model.eval()1@misc{agricultural-ai-graph-models,
2 title={Agricultural AI Graph Embedding Models for Crop Recommendation},
3 year={2025},
4 publisher={Hugging Face}
5}