Views
No views yet
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Macro | Accuracy Balanced | F1 Micro | Precision Macro | Recall Macro | Precision Micro | Recall Micro |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 0.1037 | 1.0 | 9662 | 0.0972 | 0.9723 | 0.9385 | 0.9325 | 0.9723 | 0.9448 | 0.9325 | 0.9723 | 0.9723 |
| 0.0779 | 2.0 | 19324 | 0.0933 | 0.9732 | 0.9427 | 0.9537 | 0.9732 | 0.9324 | 0.9537 | 0.9732 | 0.9732 |
| 0.0474 | 3.0 | 28986 | 0.1030 | 0.9748 | 0.9456 | 0.9519 | 0.9748 | 0.9395 | 0.9519 | 0.9748 | 0.9748 |
| 0.0397 | 4.0 | 38648 | 0.1263 | 0.9750 | 0.9452 | 0.9455 | 0.9750 | 0.9450 | 0.9455 | 0.9750 | 0.9750 |
1from transformers import pipeline
2
3# Load pipeline for text classification
4classifier = pipeline("text-classification", model="mljn/mdeberta-v3-base-finetuned-environment-energy-climate-classification")
5
6# Example input text
7text = "The government has announced new incentives for renewable energy production, focusing on wind and solar energy to reduce carbon emissions."
8
9# Predict
10result = classifier(text)
11
12print("Predicted class:", result[0]['label'])
13print("Confidence score:", result[0]['score'])