Instructions to use karths/binary_classification_train_comp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use karths/binary_classification_train_comp with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="karths/binary_classification_train_comp")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("karths/binary_classification_train_comp") model = AutoModelForSequenceClassification.from_pretrained("karths/binary_classification_train_comp", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download classification_report.json from karths/binary_classification_train_comp: direct link, hf CLI and curl.
- Browser
- Download file 526 Bytes
-
https://huggingface.co/karths/binary_classification_train_comp/resolve/514c3fc22dcd02da05ab3d3536f7dae99f42a16e/classification_report.json
- Command line
-
hf download hf://karths/binary_classification_train_comp@514c3fc22dcd02da05ab3d3536f7dae99f42a16e/classification_report.json
-
curl -L -o classification_report.json https://huggingface.co/karths/binary_classification_train_comp/resolve/514c3fc22dcd02da05ab3d3536f7dae99f42a16e/classification_report.json
526 Bytes
| {"0": {"precision": 0.9996636394214599, "recall": 0.9983204568357407, "f1-score": 0.9989915966386554, "support": 2977}, "1": {"precision": 0.9982870846180198, "recall": 0.9996569468267581, "f1-score": 0.9989715461090161, "support": 2915}, "accuracy": 0.9989816700610998, "macro avg": {"precision": 0.9989753620197399, "recall": 0.9989887018312493, "f1-score": 0.9989815713738357, "support": 5892}, "weighted avg": {"precision": 0.9989826045857457, "recall": 0.9989816700610998, "f1-score": 0.998981676867118, "support": 5892}} |