Update README.md
Browse files
README.md
CHANGED
@@ -1,21 +1,13 @@
|
|
1 |
---
|
2 |
-
tags: autotrain
|
3 |
language: unk
|
4 |
-
widget:
|
5 |
-
- text: "I love AutoTrain 🤗"
|
6 |
datasets:
|
7 |
- anwesham/autotrain-data-imdb-sentiment-analysis
|
8 |
-
co2_eq_emissions: 43.427828005213314
|
9 |
---
|
10 |
|
11 |
-
|
12 |
-
|
13 |
- Problem type: Binary Classification
|
14 |
-
- Model ID: 864927555
|
15 |
-
- CO2 Emissions (in grams): 43.427828005213314
|
16 |
|
17 |
## Validation Metrics
|
18 |
-
|
19 |
- Loss: 0.17481304705142975
|
20 |
- Accuracy: 0.936
|
21 |
- Precision: 0.9526578073089701
|
@@ -40,7 +32,7 @@ model = AutoModelForSequenceClassification.from_pretrained("anwesham/autotrain-i
|
|
40 |
|
41 |
tokenizer = AutoTokenizer.from_pretrained("anwesham/autotrain-imdb-sentiment-analysis-864927555", use_auth_token=True)
|
42 |
|
43 |
-
inputs = tokenizer("I love
|
44 |
|
45 |
outputs = model(**inputs)
|
46 |
```
|
|
|
1 |
---
|
|
|
2 |
language: unk
|
|
|
|
|
3 |
datasets:
|
4 |
- anwesham/autotrain-data-imdb-sentiment-analysis
|
|
|
5 |
---
|
6 |
|
7 |
+
## Description
|
|
|
8 |
- Problem type: Binary Classification
|
|
|
|
|
9 |
|
10 |
## Validation Metrics
|
|
|
11 |
- Loss: 0.17481304705142975
|
12 |
- Accuracy: 0.936
|
13 |
- Precision: 0.9526578073089701
|
|
|
32 |
|
33 |
tokenizer = AutoTokenizer.from_pretrained("anwesham/autotrain-imdb-sentiment-analysis-864927555", use_auth_token=True)
|
34 |
|
35 |
+
inputs = tokenizer("I love to eat good food and watch Moana.", return_tensors="pt")
|
36 |
|
37 |
outputs = model(**inputs)
|
38 |
```
|