Instructions to use karths/binary_classification_train_service with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use karths/binary_classification_train_service with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="karths/binary_classification_train_service")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("karths/binary_classification_train_service") model = AutoModelForSequenceClassification.from_pretrained("karths/binary_classification_train_service", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download classification_report.json from karths/binary_classification_train_service: direct link, hf CLI and curl.
- Browser
- Download file 529 Bytes
-
https://huggingface.co/karths/binary_classification_train_service/resolve/main/classification_report.json
- Command line
-
hf download hf://karths/binary_classification_train_service/classification_report.json
-
curl -L -o classification_report.json https://huggingface.co/karths/binary_classification_train_service/resolve/main/classification_report.json
529 Bytes
| {"0": {"precision": 0.9977459201154089, "recall": 0.9973862100045066, "f1-score": 0.9975660326331921, "support": 11095}, "1": {"precision": 0.9971287128712871, "recall": 0.9975237717908082, "f1-score": 0.9973262032085561, "support": 10096}, "accuracy": 0.9974517483837478, "macro avg": {"precision": 0.997437316493348, "recall": 0.9974549908976573, "f1-score": 0.9974461179208741, "support": 21191}, "weighted avg": {"precision": 0.997451864887404, "recall": 0.9974517483837478, "f1-score": 0.9974517710187744, "support": 21191}} |