an778 commited on
Commit
ff668f1
·
verified ·
1 Parent(s): d3f39a1

Add SetFit model

Browse files
Files changed (3) hide show
  1. README.md +18 -16
  2. model.safetensors +1 -1
  3. model_head.pkl +1 -1
README.md CHANGED
@@ -5,13 +5,15 @@ tags:
5
  - text-classification
6
  - generated_from_setfit_trainer
7
  widget:
8
- - text: caption summarizes main takeaway
9
  - text: the caption is long so can take a little time to understand the context of
10
  the chart
11
- - text: Informative caption but
12
- - text: The chart's caption is long but includes an overview of the data
 
13
  - text: Although the caption is long, it expands on each of the studies making it
14
  easier to understand the main takeaway
 
 
15
  metrics:
16
  - accuracy
17
  pipeline_tag: text-classification
@@ -48,10 +50,10 @@ The model has been trained using an efficient few-shot learning technique that i
48
  - **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
49
 
50
  ### Model Labels
51
- | Label | Examples |
52
- |:------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
53
- | 0 | <ul><li>'The caption provides thorough information about the anomalies, but it can take a while to understand the context about the takeaway'</li><li>'The caption is detailed, but does not provide the clear takeaway'</li><li>'The caption provided is extensive, which is informative but it adds to the complexity'</li></ul> |
54
- | 1 | <ul><li>'The different bars in the chart are not easy to comprehend without reading the captions'</li><li>'Although the caption is long, it expands on each of the studies making it easier to understand the main takeaway'</li><li>'The caption is informative, it also has some unnecessary information that might not be needed to interpret the charts'</li></ul> |
55
 
56
  ## Uses
57
 
@@ -71,7 +73,7 @@ from setfit import SetFitModel
71
  # Download from the 🤗 Hub
72
  model = SetFitModel.from_pretrained("an778/sentence-transformers")
73
  # Run inference
74
- preds = model("Informative caption but")
75
  ```
76
 
77
  <!--
@@ -101,9 +103,9 @@ preds = model("Informative caption but")
101
  ## Training Details
102
 
103
  ### Training Set Metrics
104
- | Training set | Min | Median | Max |
105
- |:-------------|:----|:--------|:----|
106
- | Word count | 3 | 11.8125 | 21 |
107
 
108
  | Label | Training Sample Count |
109
  |:------|:----------------------|
@@ -131,11 +133,11 @@ preds = model("Informative caption but")
131
  ### Training Results
132
  | Epoch | Step | Training Loss | Validation Loss |
133
  |:------:|:----:|:-------------:|:---------------:|
134
- | 0.1111 | 1 | 0.2351 | - |
135
- | 1.0 | 9 | - | 0.2198 |
136
- | 2.0 | 18 | - | 0.2101 |
137
- | 3.0 | 27 | - | 0.1996 |
138
- | 4.0 | 36 | - | 0.1938 |
139
 
140
  ### Framework Versions
141
  - Python: 3.11.11
 
5
  - text-classification
6
  - generated_from_setfit_trainer
7
  widget:
 
8
  - text: the caption is long so can take a little time to understand the context of
9
  the chart
10
+ - text: The caption is informative, it also has some unnecessary information that
11
+ might not be needed to interpret the charts
12
+ - text: The caption is detailed and
13
  - text: Although the caption is long, it expands on each of the studies making it
14
  easier to understand the main takeaway
15
+ - text: The different bars in the chart are not easy to comprehend without reading
16
+ the captions
17
  metrics:
18
  - accuracy
19
  pipeline_tag: text-classification
 
50
  - **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
51
 
52
  ### Model Labels
53
+ | Label | Examples |
54
+ |:------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
55
+ | 0 | <ul><li>'the caption is long so can take a little time to understand the context of the chart'</li><li>'The caption is detailed, but does not provide the clear takeaway'</li><li>'The caption is long and hard to interpret'</li></ul> |
56
+ | 1 | <ul><li>'The caption summarizes the key trend'</li><li>'The caption is informative, it also has some unnecessary information that might not be needed to interpret the charts'</li><li>'The different bars in the chart are not easy to comprehend without reading the captions'</li></ul> |
57
 
58
  ## Uses
59
 
 
73
  # Download from the 🤗 Hub
74
  model = SetFitModel.from_pretrained("an778/sentence-transformers")
75
  # Run inference
76
+ preds = model("The caption is detailed and")
77
  ```
78
 
79
  <!--
 
103
  ## Training Details
104
 
105
  ### Training Set Metrics
106
+ | Training set | Min | Median | Max |
107
+ |:-------------|:----|:-------|:----|
108
+ | Word count | 3 | 11.375 | 21 |
109
 
110
  | Label | Training Sample Count |
111
  |:------|:----------------------|
 
133
  ### Training Results
134
  | Epoch | Step | Training Loss | Validation Loss |
135
  |:------:|:----:|:-------------:|:---------------:|
136
+ | 0.1111 | 1 | 0.2791 | - |
137
+ | 1.0 | 9 | - | 0.2136 |
138
+ | 2.0 | 18 | - | 0.2055 |
139
+ | 3.0 | 27 | - | 0.1965 |
140
+ | 4.0 | 36 | - | 0.1903 |
141
 
142
  ### Framework Versions
143
  - Python: 3.11.11
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ab77a24647ddd258dd29a0454016c323e09523feb1be759dd72c33463b5e6571
3
  size 90864192
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5745f07bd3a8217762862016906cf2c9aaec5c2839babf66664f682c8bb9e84f
3
  size 90864192
model_head.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d145f91bfa7d1b4cc5cc470af35cb7378777e4d9746a8484da63acfb656b64a6
3
  size 3935
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:737e6c8bc539d02329266772cbb4664ed615e4d72338bb045da5d6c55e9a640b
3
  size 3935