File size: 1,728 Bytes
d753f86
 
 
 
6a6dc8a
d753f86
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c74b309
d753f86
 
 
 
 
 
 
02d2d71
 
 
 
3a5a13d
d753f86
3a5a13d
d753f86
02d2d71
d753f86
 
02d2d71
 
d753f86
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
tags: autotrain
language: en
widget:
- text: "An unusual hierarchy in the section near the top where the design seems to prioritise running time over a compacted artist name."
datasets:
- Shenzy/autotrain-data-sentence_classification
co2_eq_emissions: 0.00986494387043499
---

## Validation Metrics

- Loss: 0.6447726488113403
- Accuracy: 0.8263473053892215
- Macro F1: 0.7776555055392036
- Micro F1: 0.8263473053892215
- Weighted F1: 0.8161511591973788
- Macro Precision: 0.8273504273504274
- Micro Precision: 0.8263473053892215
- Weighted Precision: 0.8266697374481806
- Macro Recall: 0.7615518744551003
- Micro Recall: 0.8263473053892215
- Weighted Recall: 0.8263473053892215


## Usage

You can use cURL to access this model:

```
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "An unusual hierarchy in the section near the top where the design seems to prioritise running time over a compacted artist name."}' https://api-inference.huggingface.co/models/Shenzy/Sentence_Classification4DesignTutor
```

Or Python API:

```
from transformers import AutoModelForSequenceClassification, AutoTokenizer

import numpy as np

labdic ={ 0: "rationale", 1: "suggestion", 2: "specific_critique"}

model = AutoModelForSequenceClassification.from_pretrained("Shenzy/Sentence_Classification4DesignTutor", use_auth_token=True)

tokenizer = AutoTokenizer.from_pretrained("Shenzy/Sentence_Classification4DesignTutor", use_auth_token=True)

inputs = tokenizer("An unusual hierarchy in the section near the top where the design seems to prioritise running time over a compacted artist name.", return_tensors="pt")

outputs = model(**inputs)

print(labdic[np.argmax(outputs)])
```