Leo1212 commited on
Commit
641c707
·
verified ·
1 Parent(s): a03ecd3

Add SetFit model

Browse files
Files changed (2) hide show
  1. README.md +8 -8
  2. model_head.pkl +1 -1
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- base_model: HSLU-AICOMP-LearningAgencyLab/automated-essay-scoring-setfit
3
  library_name: setfit
4
  metrics:
5
  - accuracy
@@ -13,9 +13,9 @@ widget: []
13
  inference: true
14
  ---
15
 
16
- # SetFit with HSLU-AICOMP-LearningAgencyLab/automated-essay-scoring-setfit
17
 
18
- This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [HSLU-AICOMP-LearningAgencyLab/automated-essay-scoring-setfit](https://huggingface.co/HSLU-AICOMP-LearningAgencyLab/automated-essay-scoring-setfit) as the Sentence Transformer embedding model. A [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance is used for classification.
19
 
20
  The model has been trained using an efficient few-shot learning technique that involves:
21
 
@@ -26,7 +26,7 @@ The model has been trained using an efficient few-shot learning technique that i
26
 
27
  ### Model Description
28
  - **Model Type:** SetFit
29
- - **Sentence Transformer body:** [HSLU-AICOMP-LearningAgencyLab/automated-essay-scoring-setfit](https://huggingface.co/HSLU-AICOMP-LearningAgencyLab/automated-essay-scoring-setfit)
30
  - **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance
31
  - **Maximum Sequence Length:** 4098 tokens
32
  <!-- - **Number of Classes:** Unknown -->
@@ -108,10 +108,10 @@ preds = model("I loved the spiderman movie!")
108
  ### Training Results
109
  | Epoch | Step | Training Loss | Validation Loss |
110
  |:------:|:-----:|:-------------:|:---------------:|
111
- | 0.0001 | 1 | 0.0985 | - |
112
- | 1.0 | 17255 | 0.0833 | 0.2395 |
113
- | 2.0 | 34510 | 0.0206 | 0.2721 |
114
- | 3.0 | 51765 | 0.0018 | 0.2730 |
115
 
116
  ### Framework Versions
117
  - Python: 3.11.9
 
1
  ---
2
+ base_model: HSLU-AICOMP-LearningAgencyLab/automated-essay-scoring-setfit-finetuned
3
  library_name: setfit
4
  metrics:
5
  - accuracy
 
13
  inference: true
14
  ---
15
 
16
+ # SetFit with HSLU-AICOMP-LearningAgencyLab/automated-essay-scoring-setfit-finetuned
17
 
18
+ This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [HSLU-AICOMP-LearningAgencyLab/automated-essay-scoring-setfit-finetuned](https://huggingface.co/HSLU-AICOMP-LearningAgencyLab/automated-essay-scoring-setfit-finetuned) as the Sentence Transformer embedding model. A [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance is used for classification.
19
 
20
  The model has been trained using an efficient few-shot learning technique that involves:
21
 
 
26
 
27
  ### Model Description
28
  - **Model Type:** SetFit
29
+ - **Sentence Transformer body:** [HSLU-AICOMP-LearningAgencyLab/automated-essay-scoring-setfit-finetuned](https://huggingface.co/HSLU-AICOMP-LearningAgencyLab/automated-essay-scoring-setfit-finetuned)
30
  - **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance
31
  - **Maximum Sequence Length:** 4098 tokens
32
  <!-- - **Number of Classes:** Unknown -->
 
108
  ### Training Results
109
  | Epoch | Step | Training Loss | Validation Loss |
110
  |:------:|:-----:|:-------------:|:---------------:|
111
+ | 0.0001 | 1 | 0.1068 | - |
112
+ | 1.0 | 17262 | 0.0417 | 0.1646 |
113
+ | 2.0 | 34524 | 0.0201 | 0.1933 |
114
+ | 3.0 | 51786 | 0.0018 | 0.1968 |
115
 
116
  ### Framework Versions
117
  - Python: 3.11.9
model_head.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:88ca319002567e0009a6a31e4903cf1a60108069d89237b5525f08161da47ded
3
  size 37799
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33ea98c1fb86bdf14dae4dd8fce1d6f9b73bc9e902deeeed43ee7c3d7688d3e2
3
  size 37799