tg1482 commited on
Commit
4ef0d81
·
verified ·
1 Parent(s): 2ca6a30

Add SetFit model

Browse files
Files changed (3) hide show
  1. README.md +26 -5
  2. config_setfit.json +2 -2
  3. model_head.pkl +1 -1
README.md CHANGED
@@ -9,12 +9,26 @@ tags:
9
  - text-classification
10
  - generated_from_setfit_trainer
11
  widget:
 
12
  - text: Point out any dull descriptions that need more color
13
  - text: Find places where I repeat my main points unnecessarily
14
- - text: How do I handle flashbacks in a non-linear story
15
- - text: How can I develop a powerful bond between my characters
16
  - text: Any suggestions for a surprising end to a short story
 
17
  inference: true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  ---
19
 
20
  # SetFit
@@ -51,6 +65,13 @@ The model has been trained using an efficient few-shot learning technique that i
51
  | chat_assistance | <ul><li>"How do I make my character's driving force more compelling"</li><li>"Any tips to deepen my protagonist's underlying goals"</li><li>"Suggestions for strengthening the reasons behind my character's actions"</li></ul> |
52
  | pro_subscription_assistance | <ul><li>'How does the Pro version elevate my writing experience'</li><li>'Could you list the premium perks of Quarkle Pro'</li><li>'What special advantages come with upgrading to Pro'</li></ul> |
53
 
 
 
 
 
 
 
 
54
  ## Uses
55
 
56
  ### Direct Use for Inference
@@ -69,7 +90,7 @@ from setfit import SetFitModel
69
  # Download from the 🤗 Hub
70
  model = SetFitModel.from_pretrained("setfit_model_id")
71
  # Run inference
72
- preds = model("How do I handle flashbacks in a non-linear story")
73
  ```
74
 
75
  <!--
@@ -101,12 +122,12 @@ preds = model("How do I handle flashbacks in a non-linear story")
101
  ### Training Set Metrics
102
  | Training set | Min | Median | Max |
103
  |:-------------|:----|:-------|:----|
104
- | Word count | 1 | 8.9171 | 15 |
105
 
106
  | Label | Training Sample Count |
107
  |:----------------------------|:----------------------|
108
  | chat_assistance | 163 |
109
- | comments_assistance | 150 |
110
  | pro_subscription_assistance | 121 |
111
 
112
  ### Framework Versions
 
9
  - text-classification
10
  - generated_from_setfit_trainer
11
  widget:
12
+ - text: Do you offer any referral bonuses for bringing new Pro subscribers
13
  - text: Point out any dull descriptions that need more color
14
  - text: Find places where I repeat my main points unnecessarily
 
 
15
  - text: Any suggestions for a surprising end to a short story
16
+ - text: What are some cool ways to describe a hidden civilization
17
  inference: true
18
+ model-index:
19
+ - name: SetFit
20
+ results:
21
+ - task:
22
+ type: text-classification
23
+ name: Text Classification
24
+ dataset:
25
+ name: Unknown
26
+ type: unknown
27
+ split: test
28
+ metrics:
29
+ - type: accuracy
30
+ value: 1.0
31
+ name: Accuracy
32
  ---
33
 
34
  # SetFit
 
65
  | chat_assistance | <ul><li>"How do I make my character's driving force more compelling"</li><li>"Any tips to deepen my protagonist's underlying goals"</li><li>"Suggestions for strengthening the reasons behind my character's actions"</li></ul> |
66
  | pro_subscription_assistance | <ul><li>'How does the Pro version elevate my writing experience'</li><li>'Could you list the premium perks of Quarkle Pro'</li><li>'What special advantages come with upgrading to Pro'</li></ul> |
67
 
68
+ ## Evaluation
69
+
70
+ ### Metrics
71
+ | Label | Accuracy |
72
+ |:--------|:---------|
73
+ | **all** | 1.0 |
74
+
75
  ## Uses
76
 
77
  ### Direct Use for Inference
 
90
  # Download from the 🤗 Hub
91
  model = SetFitModel.from_pretrained("setfit_model_id")
92
  # Run inference
93
+ preds = model("Point out any dull descriptions that need more color")
94
  ```
95
 
96
  <!--
 
122
  ### Training Set Metrics
123
  | Training set | Min | Median | Max |
124
  |:-------------|:----|:-------|:----|
125
+ | Word count | 1 | 8.9364 | 15 |
126
 
127
  | Label | Training Sample Count |
128
  |:----------------------------|:----------------------|
129
  | chat_assistance | 163 |
130
+ | comments_assistance | 156 |
131
  | pro_subscription_assistance | 121 |
132
 
133
  ### Framework Versions
config_setfit.json CHANGED
@@ -1,8 +1,8 @@
1
  {
 
2
  "labels": [
3
  "chat_assistance",
4
  "comments_assistance",
5
  "pro_subscription_assistance"
6
- ],
7
- "normalize_embeddings": true
8
  }
 
1
  {
2
+ "normalize_embeddings": true,
3
  "labels": [
4
  "chat_assistance",
5
  "comments_assistance",
6
  "pro_subscription_assistance"
7
+ ]
 
8
  }
model_head.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4cc523bdeea28859416f375a12072d670d6d44e47e038f94d6c18a32f1fd99ab
3
  size 10415
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d8c19c454d012eba9f9b40ca6844dd1d71903207f7ca7cbe5e05517820e4f85c
3
  size 10415