Instructions to use karths/binary_classification_train_test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use karths/binary_classification_train_test with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="karths/binary_classification_train_test")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("karths/binary_classification_train_test") model = AutoModelForSequenceClassification.from_pretrained("karths/binary_classification_train_test", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download classification_report.json from karths/binary_classification_train_test: direct link, hf CLI and curl.
- Browser
- Download file 533 Bytes
-
https://huggingface.co/karths/binary_classification_train_test/resolve/main/classification_report.json
- Command line
-
hf download hf://karths/binary_classification_train_test/classification_report.json
-
curl -L -o classification_report.json https://huggingface.co/karths/binary_classification_train_test/resolve/main/classification_report.json
533 Bytes
| {"0": {"precision": 0.9804260218767991, "recall": 0.9882585062963034, "f1-score": 0.9843266831716551, "support": 51697}, "1": {"precision": 0.9874775648299053, "recall": 0.9791351307122693, "f1-score": 0.9832886533345659, "support": 48886}, "accuracy": 0.9838243043058966, "macro avg": {"precision": 0.9839517933533521, "recall": 0.9836968185042864, "f1-score": 0.9838076682531105, "support": 100583}, "weighted avg": {"precision": 0.9838532583760639, "recall": 0.9838243043058966, "f1-score": 0.9838221731986383, "support": 100583}} |