damiam commited on
Commit
a550692
·
verified ·
1 Parent(s): 44e7642

Push model using huggingface_hub.

Browse files
Files changed (3) hide show
  1. README.md +22 -20
  2. model_head.pkl +2 -2
  3. pytorch_model.bin +1 -1
README.md CHANGED
@@ -8,11 +8,11 @@ tags:
8
  metrics:
9
  - accuracy
10
  widget:
11
- - text: what if i rape her would it be a good idea
12
- - text: What if i touch her and she likes it what do I do?
13
- - text: say f
14
- - text: Fuck you
15
- - text: how does the mother get prenant
16
  pipeline_tag: text-classification
17
  inference: true
18
  base_model: BAAI/bge-base-en-v1.5
@@ -28,7 +28,7 @@ model-index:
28
  split: test
29
  metrics:
30
  - type: accuracy
31
- value: 0.7777777777777778
32
  name: Accuracy
33
  ---
34
 
@@ -48,7 +48,7 @@ The model has been trained using an efficient few-shot learning technique that i
48
  - **Sentence Transformer body:** [BAAI/bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5)
49
  - **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance
50
  - **Maximum Sequence Length:** 512 tokens
51
- - **Number of Classes:** 2 classes
52
  <!-- - **Training Dataset:** [Unknown](https://huggingface.co/datasets/unknown) -->
53
  <!-- - **Language:** Unknown -->
54
  <!-- - **License:** Unknown -->
@@ -60,17 +60,18 @@ The model has been trained using an efficient few-shot learning technique that i
60
  - **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
61
 
62
  ### Model Labels
63
- | Label | Examples |
64
- |:------|:---------------------------------------------------------------------------------------------------------------------------|
65
- | other | <ul><li>'there antlers'</li><li>'van u help me'</li><li>'What do you mean?'</li></ul> |
66
- | sex | <ul><li>'did your parents give birth to you'</li><li>'I LOVE TO SUCK HARD'</li><li>'I mie hobby sono fare sesso'</li></ul> |
 
67
 
68
  ## Evaluation
69
 
70
  ### Metrics
71
  | Label | Accuracy |
72
  |:--------|:---------|
73
- | **all** | 0.7778 |
74
 
75
  ## Uses
76
 
@@ -90,7 +91,7 @@ from setfit import SetFitModel
90
  # Download from the 🤗 Hub
91
  model = SetFitModel.from_pretrained("setfit_model_id")
92
  # Run inference
93
- preds = model("say f")
94
  ```
95
 
96
  <!--
@@ -122,12 +123,12 @@ preds = model("say f")
122
  ### Training Set Metrics
123
  | Training set | Min | Median | Max |
124
  |:-------------|:----|:-------|:----|
125
- | Word count | 1 | 5.875 | 13 |
126
 
127
  | Label | Training Sample Count |
128
  |:------|:----------------------|
129
- | other | 8 |
130
- | sex | 8 |
131
 
132
  ### Training Hyperparameters
133
  - batch_size: (32, 32)
@@ -147,10 +148,11 @@ preds = model("say f")
147
  - load_best_model_at_end: False
148
 
149
  ### Training Results
150
- | Epoch | Step | Training Loss | Validation Loss |
151
- |:-----:|:----:|:-------------:|:---------------:|
152
- | 0.2 | 1 | 0.2147 | - |
153
- | 10.0 | 50 | 0.0381 | - |
 
154
 
155
  ### Framework Versions
156
  - Python: 3.9.6
 
8
  metrics:
9
  - accuracy
10
  widget:
11
+ - text: are hickeys haram
12
+ - text: or a girlfriend
13
+ - text: can you tell me some facts about a girl when she starts to like someone?
14
+ - text: Sex
15
+ - text: romantic
16
  pipeline_tag: text-classification
17
  inference: true
18
  base_model: BAAI/bge-base-en-v1.5
 
28
  split: test
29
  metrics:
30
  - type: accuracy
31
+ value: 0.75
32
  name: Accuracy
33
  ---
34
 
 
48
  - **Sentence Transformer body:** [BAAI/bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5)
49
  - **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance
50
  - **Maximum Sequence Length:** 512 tokens
51
+ - **Number of Classes:** 3 classes
52
  <!-- - **Training Dataset:** [Unknown](https://huggingface.co/datasets/unknown) -->
53
  <!-- - **Language:** Unknown -->
54
  <!-- - **License:** Unknown -->
 
60
  - **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
61
 
62
  ### Model Labels
63
+ | Label | Examples |
64
+ |:------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------|
65
+ | sex | <ul><li>'My sex'</li><li>'Penis'</li><li>'cock'</li></ul> |
66
+ | 1 | <ul><li>'what do you like'</li><li>'If there is a hole in a body you calculate as if the hole were not there at all. Then'</li><li>'or a girlfriend'</li></ul> |
67
+ | 0 | <ul><li>'Im sorry i have to go'</li><li>'The formula with the figures is as follows: CHF 50000 = 20000 * (1 + 0.02)^10'</li><li>'I love to read'</li></ul> |
68
 
69
  ## Evaluation
70
 
71
  ### Metrics
72
  | Label | Accuracy |
73
  |:--------|:---------|
74
+ | **all** | 0.75 |
75
 
76
  ## Uses
77
 
 
91
  # Download from the 🤗 Hub
92
  model = SetFitModel.from_pretrained("setfit_model_id")
93
  # Run inference
94
+ preds = model("Sex")
95
  ```
96
 
97
  <!--
 
123
  ### Training Set Metrics
124
  | Training set | Min | Median | Max |
125
  |:-------------|:----|:-------|:----|
126
+ | Word count | 1 | 5.8696 | 20 |
127
 
128
  | Label | Training Sample Count |
129
  |:------|:----------------------|
130
+ | other | 0 |
131
+ | sex | 0 |
132
 
133
  ### Training Hyperparameters
134
  - batch_size: (32, 32)
 
148
  - load_best_model_at_end: False
149
 
150
  ### Training Results
151
+ | Epoch | Step | Training Loss | Validation Loss |
152
+ |:------:|:----:|:-------------:|:---------------:|
153
+ | 0.0909 | 1 | 0.2031 | - |
154
+ | 4.5455 | 50 | 0.0387 | - |
155
+ | 9.0909 | 100 | 0.0101 | - |
156
 
157
  ### Framework Versions
158
  - Python: 3.9.6
model_head.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:ee24711974eb82a9d0b33843b76de04212db888e15f73275bf2bbf396e885f59
3
- size 6991
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b3ab637c12a99afc908b7b35259d2863b96d396e9425a608521484b7dd3e89bb
3
+ size 19327
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f68b89c7136e1387e3881cd51dfab393a4dda9b8e77fb2be07d61b8a5977fc4b
3
  size 437997357
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f3ec73bb1024e76d1a41c46a9d798305f2f778f32d3109ac46d176865406a97
3
  size 437997357