Text Classification
Transformers
TensorFlow
ONNX
German
bert
generated_from_keras_callback
text-embeddings-inference
Instructions to use ml-projects/clickbait-ml_bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ml-projects/clickbait-ml_bert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ml-projects/clickbait-ml_bert")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ml-projects/clickbait-ml_bert") model = AutoModelForSequenceClassification.from_pretrained("ml-projects/clickbait-ml_bert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
| license: mit | |
| tags: | |
| - generated_from_keras_callback | |
| model-index: | |
| - name: clickbait-ml_bert | |
| results: [] | |
| language: | |
| - de | |
| metrics: | |
| - accuracy | |
| pipeline_tag: text-classification | |
| widget: | |
| - text: Bundesweiter Großstreik beginnt - Züge, Busse und Flugzeuge stehen still | |
| example_title: Normale Überschrift | |
| - text: Bachelor in Paradise-Star Pamela Gil Matas Sohn ist da! | |
| example_title: Clickbait Überschrift | |
| - text: Du wirst nie glauben was hier geschah | |
| example_title: Beispiel | |
| datasets: | |
| - ml-projects/clickbait-ml_dataset | |
| <!-- This model card has been generated automatically according to the information Keras had access to. You should | |
| probably proofread and complete it, then remove this comment. --> | |
| # clickbait-ml_bert | |
| This model is a fine-tuned version of [bert-base-german-cased](https://huggingface.co/bert-base-german-cased) on an unknown dataset. | |
| It achieves the following results on the evaluation set: | |
| - Train Loss: 0.6057 | |
| - Validation Loss: 0.6160 | |
| - Train Accuracy: 0.8235 | |
| - Epoch: 3 | |
| ## Model description | |
| More information needed | |
| ## Intended uses & limitations | |
| More information needed | |
| ## Training and evaluation data | |
| More information needed | |
| ## Training procedure | |
| ### Training hyperparameters | |
| The following hyperparameters were used during training: | |
| - optimizer: {'name': 'Adam', 'learning_rate': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 8, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False} | |
| - training_precision: float32 | |
| ### Training results | |
| | Train Loss | Validation Loss | Train Accuracy | Epoch | | |
| |:----------:|:---------------:|:--------------:|:-----:| | |
| | 0.7115 | 0.6299 | 0.8235 | 0 | | |
| | 0.6071 | 0.6160 | 0.8235 | 1 | | |
| | 0.5783 | 0.6160 | 0.8235 | 2 | | |
| | 0.6057 | 0.6160 | 0.8235 | 3 | | |
| ### Framework versions | |
| - Transformers 4.30.1 | |
| - TensorFlow 2.12.0 | |
| - Datasets 2.12.0 | |
| - Tokenizers 0.13.3 |