Update README.md
Browse files
README.md
CHANGED
@@ -63,7 +63,7 @@ Then you can load this model and run inference.
|
|
63 |
from setfit import SetFitModel
|
64 |
|
65 |
# Download from the 🤗 Hub
|
66 |
-
model = SetFitModel.from_pretrained("
|
67 |
# Run inference
|
68 |
preds = model("// quotes are removed | ScannerUtility.java")
|
69 |
```
|
@@ -92,42 +92,6 @@ preds = model("// quotes are removed | ScannerUtility.java")
|
|
92 |
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
93 |
-->
|
94 |
|
95 |
-
## Training Details
|
96 |
-
|
97 |
-
### Training Set Metrics
|
98 |
-
| Training set | Min | Median | Max |
|
99 |
-
|:-------------|:----|:--------|:----|
|
100 |
-
| Word count | 3 | 15.5217 | 299 |
|
101 |
-
|
102 |
-
### Training Hyperparameters
|
103 |
-
- batch_size: (32, 32)
|
104 |
-
- num_epochs: (5, 5)
|
105 |
-
- max_steps: -1
|
106 |
-
- sampling_strategy: oversampling
|
107 |
-
- num_iterations: 20
|
108 |
-
- body_learning_rate: (2e-05, 1e-05)
|
109 |
-
- head_learning_rate: 0.01
|
110 |
-
- loss: CosineSimilarityLoss
|
111 |
-
- distance_metric: cosine_distance
|
112 |
-
- margin: 0.25
|
113 |
-
- end_to_end: False
|
114 |
-
- use_amp: False
|
115 |
-
- warmup_proportion: 0.1
|
116 |
-
- l2_weight: 0.01
|
117 |
-
- seed: 42
|
118 |
-
- eval_max_steps: -1
|
119 |
-
- load_best_model_at_end: False
|
120 |
-
|
121 |
-
|
122 |
-
### Framework Versions
|
123 |
-
- Python: 3.10.8
|
124 |
-
- SetFit: 1.1.2
|
125 |
-
- Sentence Transformers: 5.0.0
|
126 |
-
- Transformers: 4.54.1
|
127 |
-
- PyTorch: 2.7.1+cu126
|
128 |
-
- Datasets: 3.6.0
|
129 |
-
- Tokenizers: 0.21.4
|
130 |
-
|
131 |
## Citation
|
132 |
|
133 |
### BibTeX
|
|
|
63 |
from setfit import SetFitModel
|
64 |
|
65 |
# Download from the 🤗 Hub
|
66 |
+
model = SetFitModel.from_pretrained("NLBSE/nlbse26_java")
|
67 |
# Run inference
|
68 |
preds = model("// quotes are removed | ScannerUtility.java")
|
69 |
```
|
|
|
92 |
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
93 |
-->
|
94 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
## Citation
|
96 |
|
97 |
### BibTeX
|