AnkitAI commited on
Commit
ead6dda
β€’
1 Parent(s): cfce0cf

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +33 -15
README.md CHANGED
@@ -12,28 +12,41 @@ widget:
12
  - text: "This product is great!"
13
  ---
14
 
15
- # Fine-tuned RoBERTa for Sentiment Analysis on Amazon Reviews
16
 
17
  This is a fine-tuned version of [cardiffnlp/twitter-roberta-base-sentiment-latest](https://huggingface.co/cardiffnlp/twitter-roberta-base-sentiment-latest) on the [Amazon Reviews dataset](https://www.kaggle.com/datasets/bittlingmayer/amazonreviews) for sentiment analysis.
18
 
19
- ## Model Details
20
 
21
- - **Model Name:** AnkitAI/reviews-roberta-base-sentiment-analysis
22
- - **Base Model:** cardiffnlp/twitter-roberta-base-sentiment-latest
23
- - **Dataset:** [Amazon Reviews](https://www.kaggle.com/datasets/bittlingmayer/amazonreviews)
24
- - **Fine-tuning:** This model was fine-tuned for sentiment analysis with a classification head for binary sentiment classification (positive and negative).
25
 
26
- ## Training
27
 
28
  The model was trained using the following parameters:
29
 
30
- - **Learning Rate:** 2e-5
31
- - **Batch Size:** 16
32
- - **Epochs:** 3
33
- - **Weight Decay:** 0.01
34
- - **Evaluation Strategy:** Epoch
35
 
36
- ## Usage
 
 
 
 
 
 
 
 
 
 
 
 
 
37
 
38
  You can use this model directly with the Hugging Face `transformers` library:
39
 
@@ -47,7 +60,12 @@ tokenizer = RobertaTokenizer.from_pretrained(model_name)
47
  # Example usage
48
  inputs = tokenizer("This product is great!", return_tensors="pt")
49
  outputs = model(**inputs)
 
 
 
 
50
  ```
51
- ## License
52
 
53
- This model is licensed under the mit license
 
 
 
12
  - text: "This product is great!"
13
  ---
14
 
15
+ # 🌟 Fine-tuned RoBERTa for Sentiment Analysis on Amazon Reviews 🌟
16
 
17
  This is a fine-tuned version of [cardiffnlp/twitter-roberta-base-sentiment-latest](https://huggingface.co/cardiffnlp/twitter-roberta-base-sentiment-latest) on the [Amazon Reviews dataset](https://www.kaggle.com/datasets/bittlingmayer/amazonreviews) for sentiment analysis.
18
 
19
+ ## πŸ“œ Model Details
20
 
21
+ - **πŸ†• Model Name:** `AnkitAI/reviews-roberta-base-sentiment-analysis`
22
+ - **πŸ”— Base Model:** `cardiffnlp/twitter-roberta-base-sentiment-latest`
23
+ - **πŸ“Š Dataset:** [Amazon Reviews](https://www.kaggle.com/datasets/bittlingmayer/amazonreviews)
24
+ - **βš™οΈ Fine-tuning:** This model was fine-tuned for sentiment analysis with a classification head for binary sentiment classification (positive and negative).
25
 
26
+ ## πŸ‹οΈ Training
27
 
28
  The model was trained using the following parameters:
29
 
30
+ - **πŸ”§ Learning Rate:** 2e-5
31
+ - **πŸ“¦ Batch Size:** 16
32
+ - **⏳ Epochs:** 3
33
+ - **βš–οΈ Weight Decay:** 0.01
34
+ - **πŸ“… Evaluation Strategy:** Epoch
35
 
36
+
37
+ ### πŸ‹οΈ Training Details
38
+
39
+ - **πŸ“‰ Eval Loss:** 0.1049
40
+ - **⏱️ Eval Runtime:** 3177.538 seconds
41
+ - **πŸ“ˆ Eval Samples/Second:** 226.591
42
+ - **πŸŒ€ Eval Steps/Second:** 7.081
43
+ - **πŸ”„ Epoch:** 3.0
44
+ - **πŸƒ Train Runtime:** 110070.6349 seconds
45
+ - **πŸ“Š Train Samples/Second:** 78.495
46
+ - **πŸŒ€ Train Steps/Second:** 2.453
47
+ - **πŸ“‰ Train Loss:** 0.0858
48
+
49
+ ## πŸš€ Usage
50
 
51
  You can use this model directly with the Hugging Face `transformers` library:
52
 
 
60
  # Example usage
61
  inputs = tokenizer("This product is great!", return_tensors="pt")
62
  outputs = model(**inputs)
63
+
64
+ # Get sentiment
65
+ logits = outputs.logits
66
+ print(logits)
67
  ```
 
68
 
69
+ ## πŸ“œ License
70
+
71
+ This model is licensed under the [MIT License](LICENSE).