Text Classification
Transformers
Safetensors
English
bert
Generated from Trainer
finance
text-embeddings-inference
Instructions to use samchain/EconoSentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use samchain/EconoSentiment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="samchain/EconoSentiment")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("samchain/EconoSentiment") model = AutoModelForSequenceClassification.from_pretrained("samchain/EconoSentiment", device_map="auto") - Notebooks
- Google Colab
- Kaggle
samchain/EconoSentiment
Browse filesFiles changed (4)
- README.mdAdded+69
- model.safetensors+1-1
- tokenizer.json+2-4
- training_args.bin+1-1
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869---library_name: transformerslicense: apache-2.0base_model: samchain/econo-sentence-v2tags:- generated_from_trainermetrics:- accuracy- f1- precision- recallmodel-index:- name: EconoSentiment results: []---
<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. -->
# EconoSentiment
This model is a fine-tuned version of [samchain/econo-sentence-v2](https://huggingface.co/samchain/econo-sentence-v2) on an unknown dataset.It achieves the following results on the evaluation set:- Loss: 0.1293- Accuracy: 0.962- F1: 0.9619- Precision: 0.9619- Recall: 0.962
## 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:- learning_rate: 3e-05- train_batch_size: 8- eval_batch_size: 16- seed: 42- optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments- lr_scheduler_type: linear- lr_scheduler_warmup_steps: 100- num_epochs: 2
### Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall ||:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|| 0.5992 | 1.0 | 158 | 0.4854 | 0.805 | 0.7692 | 0.8108 | 0.805 || 0.0985 | 2.0 | 316 | 0.1293 | 0.962 | 0.9619 | 0.9619 | 0.962 |
### Framework versions
- Transformers 4.50.0- Pytorch 2.1.0+cu118- Datasets 3.4.1- Tokenizers 0.21.1123version https://git-lfs.github.com/spec/v1oid sha256:100676e47191e6720634d23168773ab5e455a916e2b48da7bcd2e90908e2ca5esize 437961724123version https://git-lfs.github.com/spec/v1oid sha256:1fc39cc344def0a996a3af794d2909b0950a495d7d82b0176d98602b1bb5f66bsize 437961724
1 unmodified line234567891011121314151 unmodified line"version": "1.0","truncation": {"direction": "Right","max_length": 128,"strategy": "LongestFirst","stride": 0},"padding": {"strategy": {"Fixed": 128},"direction": "Right","pad_to_multiple_of": null,"pad_id": 0,1 unmodified line23456789101112131 unmodified line"version": "1.0","truncation": {"direction": "Right","max_length": 512,"strategy": "LongestFirst","stride": 0},"padding": {"strategy": "BatchLongest","direction": "Right","pad_to_multiple_of": null,"pad_id": 0,
123version https://git-lfs.github.com/spec/v1oid sha256:e4575f5998f57c90489fba5066767334a70760df57f5b5a2e9d6beb920b097a4size 5304123version https://git-lfs.github.com/spec/v1oid sha256:1786daeba1081163696099b5fd9d6fec3e7a9ecc02941b1e2663ac57148a914csize 5304
README.mdAdded+69
model.safetensors+1-1
tokenizer.json+2-4
training_args.bin+1-1