Text Classification
Transformers
ONNX
Safetensors
English
bert
disaster-tweets
fine-tuned
text-embeddings-inference
Instructions to use CollinMa/disaster-tweets-bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CollinMa/disaster-tweets-bert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="CollinMa/disaster-tweets-bert")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("CollinMa/disaster-tweets-bert") model = AutoModelForSequenceClassification.from_pretrained("CollinMa/disaster-tweets-bert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download training_summary.json from CollinMa/disaster-tweets-bert: direct link, hf CLI and curl.
- Browser
- Download file 896 Bytes
-
https://huggingface.co/CollinMa/disaster-tweets-bert/resolve/main/training_summary.json
- Command line
-
hf download hf://CollinMa/disaster-tweets-bert/training_summary.json
-
curl -L -o training_summary.json https://huggingface.co/CollinMa/disaster-tweets-bert/resolve/main/training_summary.json
896 Bytes
| { | |
| "status": "completed", | |
| "base_model": "google-bert/bert-base-uncased", | |
| "base_model_revision": "86b5e0934494bd15c9632b12f734a8a67f723594", | |
| "best_checkpoint": "artifacts\\checkpoints\\checkpoint-750", | |
| "best_validation_f1": 0.8110749185667753, | |
| "test": { | |
| "accuracy": 0.8237650200267023, | |
| "precision": 0.8257839721254355, | |
| "recall": 0.7429467084639498, | |
| "f1": 0.7821782178217822, | |
| "samples": 749, | |
| "confusion_matrix": [ | |
| [ | |
| 380, | |
| 50 | |
| ], | |
| [ | |
| 82, | |
| 237 | |
| ] | |
| ] | |
| }, | |
| "baseline_test": { | |
| "accuracy": 0.7863818424566088, | |
| "precision": 0.8093385214007782, | |
| "recall": 0.6520376175548589, | |
| "f1": 0.7222222222222222 | |
| }, | |
| "training_seconds": 285.7711613000138, | |
| "max_length": 128, | |
| "split_sizes": { | |
| "train": 5986, | |
| "validation": 748, | |
| "test": 749 | |
| }, | |
| "seed": 42 | |
| } |