Text Classification
Transformers
Safetensors
bert
numberwang
character-level
multilingual
tiny
Eval Results (legacy)
text-embeddings-inference
Run this model with HF Jobs
Run graafhenk/numberwang on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/graafhenk/numberwang. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/graafhenk/numberwang on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use graafhenk/numberwang with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use graafhenk/numberwang with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="graafhenk/numberwang")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("graafhenk/numberwang") model = AutoModelForSequenceClassification.from_pretrained("graafhenk/numberwang", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Add evaluation figures and browser demo link
Browse filesFiles changed (4)
- README.md+24-7
- assets/benchmark.pngAdded
- assets/confusion.pngAdded
- assets/per_class.pngAdded
45 unmodified lines4647484950517 unmodified lines5960616263642 unmodified lines67686970717243 unmodified lines11611711811912012112212312412512612712812945 unmodified lines- type: accuracyvalue: 0.874name: Accuracy (486 reserved held-out cases)- type: accuracyvalue: 0.849name: Accuracy (internal test split)7 unmodified linesany of eleven languages, and it returns one of four verdicts. 356,868parameters, trained from scratch on 187,606 labelled examples.```pythonfrom transformers import pipeline2 unmodified lines# [{'label': 'numberwang', 'score': 0.976}]```## The four verdicts| label | verdict |43 unmodified linestemplates are reserved before the training data is compiled, so theevaluation set cannot leak as that data grows.| class | recall | test rows ||-------|-------:|----------:|| not a number | 0.999 | 3,332 || Wangernumb | 0.867 | 535 || Numberwang | 0.841 | 18,753 || not Numberwang | 0.825 | 14,902 |**Held-out accuracy: 87.4%. Internal test split: 84.9%.**About 2% of the training labels are deliberately inverted, so no modeltrained on this data can exceed roughly 98%.45 unmodified lines4647484950515253547 unmodified lines6263646566676869702 unmodified lines737475767778798043 unmodified lines12412512612712812913013113213313413513613713813914014114214314414514645 unmodified lines- type: accuracyvalue: 0.874name: Accuracy (486 reserved held-out cases)- type: f1value: 0.878name: Macro-F1 (486 reserved held-out cases)- type: accuracyvalue: 0.849name: Accuracy (internal test split)7 unmodified linesany of eleven languages, and it returns one of four verdicts. 356,868parameters, trained from scratch on 187,606 labelled examples.**[▶ Try it in your browser](https://huggingface.co/spaces/graafhenk/numberwang-demo)** —runs client-side, no server, no wait.```pythonfrom transformers import pipeline2 unmodified lines# [{'label': 'numberwang', 'score': 0.976}]```## The four verdicts| label | verdict |43 unmodified linestemplates are reserved before the training data is compiled, so theevaluation set cannot leak as that data grows.**Accuracy 87.4%, macro-F1 0.878.**| class | precision | recall | F1 | n ||-------|----------:|-------:|---:|--:|| Wangernumb | 0.941 | 0.970 | 0.955 | 33 || Numberwang | 0.894 | 0.913 | 0.903 | 241 || not Numberwang | 0.839 | 0.818 | 0.828 | 165 || not a number | 0.844 | 0.809 | 0.826 | 47 |Errors are concentrated between the two principal verdicts — 43 of the 61mistakes are *Numberwang* confused with *not Numberwang*, and almost allof those are arithmetic the model cannot actually compute. Only fourgenuine non-numbers were ever called a number.About 2% of the training labels are deliberately inverted, so no modeltrained on this data can exceed roughly 98%.
README.md+24-7
assets/benchmark.pngAdded

assets/confusion.pngAdded

assets/per_class.pngAdded
