Instructions to use karths/binary_classification_train_code with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use karths/binary_classification_train_code with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="karths/binary_classification_train_code")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("karths/binary_classification_train_code") model = AutoModelForSequenceClassification.from_pretrained("karths/binary_classification_train_code") - Notebooks
- Google Colab
- Kaggle
File size: 530 Bytes
6cc4b2d | 1 | {"0": {"precision": 0.9909803551190026, "recall": 0.9878548227651461, "f1-score": 0.9894151205827577, "support": 21243}, "1": {"precision": 0.9871385842472582, "recall": 0.9904466563297154, "f1-score": 0.9887898534441865, "support": 19993}, "accuracy": 0.9891114560093123, "macro avg": {"precision": 0.9890594696831304, "recall": 0.9891507395474308, "f1-score": 0.9891024870134721, "support": 41236}, "weighted avg": {"precision": 0.9891176980950724, "recall": 0.9891114560093123, "f1-score": 0.989111963974419, "support": 41236}} |