Instructions to use matthewleechen/sentence_focus_group_newspapers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use matthewleechen/sentence_focus_group_newspapers with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="matthewleechen/sentence_focus_group_newspapers")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("matthewleechen/sentence_focus_group_newspapers") model = AutoModelForSequenceClassification.from_pretrained("matthewleechen/sentence_focus_group_newspapers", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Evaluation: {'eval_loss': 0.2520483732223511, 'eval_accuracy': 0.9354838709677419, 'eval_precision': 0.9397849462365592, 'eval_recall': 0.9354838709677419, 'eval_f1': 0.9204671857619577, 'eval_runtime': 0.1265, 'eval_samples_per_second': 490.111, 'eval_steps_per_second': 7.905}
Batch size: 128
lr = 5e-5
Model = 'roberta-base'
- Downloads last month
- 6