Push model using huggingface_hub.
Browse files- README.md +8 -8
- config.json +12 -12
- examples.json +0 -0
- model.safetensors +1 -1
README.md
CHANGED
|
@@ -17,15 +17,15 @@ You can install it with `pip install adaptive-classifier`.
|
|
| 17 |
|
| 18 |
- Base Model: distilbert-base-uncased
|
| 19 |
- Number of Classes: 3
|
| 20 |
-
- Total Examples:
|
| 21 |
- Embedding Dimension: 768
|
| 22 |
|
| 23 |
## Class Distribution
|
| 24 |
|
| 25 |
```
|
| 26 |
-
negative:
|
| 27 |
-
neutral:
|
| 28 |
-
positive:
|
| 29 |
```
|
| 30 |
|
| 31 |
## Usage
|
|
@@ -49,7 +49,7 @@ classifier.add_examples(texts, labels)
|
|
| 49 |
|
| 50 |
## Training Details
|
| 51 |
|
| 52 |
-
- Training Steps:
|
| 53 |
- Examples per Class: See distribution above
|
| 54 |
- Prototype Memory: Active
|
| 55 |
- Neural Adaptation: Active
|
|
@@ -57,9 +57,9 @@ classifier.add_examples(texts, labels)
|
|
| 57 |
## Limitations
|
| 58 |
|
| 59 |
This model:
|
| 60 |
-
- Requires at least
|
| 61 |
-
- Has a maximum of
|
| 62 |
-
- Updates prototypes every
|
| 63 |
|
| 64 |
## Citation
|
| 65 |
|
|
|
|
| 17 |
|
| 18 |
- Base Model: distilbert-base-uncased
|
| 19 |
- Number of Classes: 3
|
| 20 |
+
- Total Examples: 600
|
| 21 |
- Embedding Dimension: 768
|
| 22 |
|
| 23 |
## Class Distribution
|
| 24 |
|
| 25 |
```
|
| 26 |
+
negative: 200 examples (33.3%)
|
| 27 |
+
neutral: 200 examples (33.3%)
|
| 28 |
+
positive: 200 examples (33.3%)
|
| 29 |
```
|
| 30 |
|
| 31 |
## Usage
|
|
|
|
| 49 |
|
| 50 |
## Training Details
|
| 51 |
|
| 52 |
+
- Training Steps: 14
|
| 53 |
- Examples per Class: See distribution above
|
| 54 |
- Prototype Memory: Active
|
| 55 |
- Neural Adaptation: Active
|
|
|
|
| 57 |
## Limitations
|
| 58 |
|
| 59 |
This model:
|
| 60 |
+
- Requires at least 10 examples per class
|
| 61 |
+
- Has a maximum of 200 examples per class
|
| 62 |
+
- Updates prototypes every 50 examples
|
| 63 |
|
| 64 |
## Citation
|
| 65 |
|
config.json
CHANGED
|
@@ -6,14 +6,14 @@
|
|
| 6 |
"epochs": 10,
|
| 7 |
"ewc_lambda": 100.0,
|
| 8 |
"gradient_checkpointing": false,
|
| 9 |
-
"learning_rate": 0.
|
| 10 |
-
"max_examples_per_class":
|
| 11 |
"max_length": 128,
|
| 12 |
"min_confidence": 0.1,
|
| 13 |
-
"min_examples_per_class":
|
| 14 |
"neural_weight": 0.3,
|
| 15 |
-
"num_representative_examples":
|
| 16 |
-
"prototype_update_frequency":
|
| 17 |
"prototype_weight": 0.7,
|
| 18 |
"quantization": null,
|
| 19 |
"similarity_threshold": 0.6,
|
|
@@ -21,15 +21,15 @@
|
|
| 21 |
},
|
| 22 |
"embedding_dim": 768,
|
| 23 |
"id_to_label": {
|
| 24 |
-
"0": "
|
| 25 |
-
"1": "
|
| 26 |
-
"2": "
|
| 27 |
},
|
| 28 |
"label_to_id": {
|
| 29 |
-
"negative":
|
| 30 |
-
"neutral":
|
| 31 |
-
"positive":
|
| 32 |
},
|
| 33 |
"model_name": "distilbert-base-uncased",
|
| 34 |
-
"train_steps":
|
| 35 |
}
|
|
|
|
| 6 |
"epochs": 10,
|
| 7 |
"ewc_lambda": 100.0,
|
| 8 |
"gradient_checkpointing": false,
|
| 9 |
+
"learning_rate": 0.0005,
|
| 10 |
+
"max_examples_per_class": 200,
|
| 11 |
"max_length": 128,
|
| 12 |
"min_confidence": 0.1,
|
| 13 |
+
"min_examples_per_class": 10,
|
| 14 |
"neural_weight": 0.3,
|
| 15 |
+
"num_representative_examples": 20,
|
| 16 |
+
"prototype_update_frequency": 50,
|
| 17 |
"prototype_weight": 0.7,
|
| 18 |
"quantization": null,
|
| 19 |
"similarity_threshold": 0.6,
|
|
|
|
| 21 |
},
|
| 22 |
"embedding_dim": 768,
|
| 23 |
"id_to_label": {
|
| 24 |
+
"0": "positive",
|
| 25 |
+
"1": "negative",
|
| 26 |
+
"2": "neutral"
|
| 27 |
},
|
| 28 |
"label_to_id": {
|
| 29 |
+
"negative": 1,
|
| 30 |
+
"neutral": 2,
|
| 31 |
+
"positive": 0
|
| 32 |
},
|
| 33 |
"model_name": "distilbert-base-uncased",
|
| 34 |
+
"train_steps": 14
|
| 35 |
}
|
examples.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3558204
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c04dd75a39ee27a591fba46a79584018cb5d085cde42b558cb020059b896f392
|
| 3 |
size 3558204
|