Instructions to use adarshcod30/margadrishti-models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use adarshcod30/margadrishti-models with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("adarshcod30/margadrishti-models", "sklearn_model.joblib") ) # only load pickle files from sources you trust # read more about it here https://skops.readthedocs.io/en/stable/persistence.html - Notebooks
- Google Colab
- Kaggle
Model Card · B4 — What caused this event, from the operator's free-text note?
Generated 2026-09-02 from reports/ — do not edit by hand.
What this model answers
What caused this event, from the operator's free-text note?
Caveats
- Descriptions mix English and Kannada, often within one entry. Character n-grams are used rather than word tokenisation.
- Per-language F1 is reported because a single macro-F1 could hide a model that works on the English majority and fails on Kannada.
Results
Ranked by Macro F1 ↑ (higher is better). Every family that ran is listed, including those that lost — the comparison is the deliverable. Figures come from a single chronological split, so there is no spread to report.
| Model | Family | Macro F1 ↑ | Accuracy ↑ | Macro F1 · en ↑ | Macro F1 · kn ↑ | Fit | Beats baseline |
|---|---|---|---|---|---|---|---|
tfidf_char_logreg |
nlp | 0.4782 | 0.6555 | 0.4833 | 0.4717 | — | yes |
majority |
baseline | 0.0441 | — | — | — | — | baseline |
Best learned family: tfidf_char_logreg at 0.4782, 10.8x the strongest baseline (majority at 0.0441).
Reproduction
make data && make ingest && make features
make train-b
Seed 42. Splits are chronological, never random.