Text Classification
Transformers
Safetensors
yield-weather-soil
crop-yield
multi-temporal
regression
yield-estimation
custom_code
Instructions to use ICICLE-AI/yield-estimation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ICICLE-AI/yield-estimation with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ICICLE-AI/yield-estimation", trust_remote_code=True)# Load model directly from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("ICICLE-AI/yield-estimation", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 390 Bytes
98024ab | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | from transformers import AutoConfig, AutoModel
from hf.configuration_yield import YieldConfig
from hf.modeling_yield import YieldForRegression
def register_yield_autoclass():
try:
AutoConfig.register("yield-weather-soil", YieldConfig)
except ValueError:
pass
try:
AutoModel.register(YieldConfig, YieldForRegression)
except ValueError:
pass |