mbert_LusakaLang_Topic
106
license:apache-2.0
by
Kelvinmbewe
Other
OTHER
New
106 downloads
Early-stage
Edge AI:
Mobile
Laptop
Server
Unknown
Mobile
Laptop
Server
Quick Summary
AI model with specialized capabilities.
Code Examples
Training Detailspython
- Base model: `mbert_LusakaLang_Sentiment_Analysis`
- Epochs: 20
- Class weights: enabled (to correct class imbalance)
- Optimizer: AdamW
- Loss: Weighted cross‑entropy
- Temperature scaling: T = 2.3 (applied at inference time)**Why Temperature Scaling?**python
Class‑weighted training sharpens logits.
Temperature scaling at T = 2.3 improves:
- Confidence calibration
- Noise robustness
- Handling of positive/neutral text
- Foreign‑language generalization
- Reduction of overconfident misclassificationsTraining Datapython
The dataset was primarily synthetic, generated to simulate realistic ride‑hailing feedback in Zambia.
To ensure authenticity:
- All samples were reviewed by a native Zambian speaker
- Mixed langauge and slang patterns were corrected
- Local idioms and slang were added
- Unnatural AI‑generated phrasing was removed
- Bemba/Nyanja grammars and tone were validated
This hybrid approach ensures tha the dataset reflects real Zambian communication style.Deploy This Model
Production-ready deployment in minutes
Together.ai
Instant API access to this model
Production-ready inference API. Start free, scale to millions.
Try Free APIReplicate
One-click model deployment
Run models in the cloud with simple API. No DevOps required.
Deploy NowDisclosure: We may earn a commission from these partners. This helps keep LLMYourWay free.