Spaces:
Runtime error
Runtime error
Feliks Zaslavskiy
commited on
Commit
•
a95ffe4
1
Parent(s):
152fc5b
made default model
Browse files
app.py
CHANGED
@@ -17,6 +17,9 @@ from io import BytesIO
|
|
17 |
model_name = 'output/training_OnlineConstrativeLoss-2023-03-14_01-24-44'
|
18 |
model_name = 'output/training_OnlineConstrativeLoss-2023-03-17_23-15-52'
|
19 |
model_name = 'output/training_OnlineConstrativeLoss-2023-03-17_23-50-15'
|
|
|
|
|
|
|
20 |
|
21 |
similarity_threshold = 0.9
|
22 |
|
|
|
17 |
model_name = 'output/training_OnlineConstrativeLoss-2023-03-14_01-24-44'
|
18 |
model_name = 'output/training_OnlineConstrativeLoss-2023-03-17_23-15-52'
|
19 |
model_name = 'output/training_OnlineConstrativeLoss-2023-03-17_23-50-15'
|
20 |
+
model_name = 'output/training_OnlineConstrativeLoss-2023-03-25_23-48-35' # had 89% accur on eval set
|
21 |
+
|
22 |
+
model_name = 'sentence-transformers/paraphrase-albert-base-v2'
|
23 |
|
24 |
similarity_threshold = 0.9
|
25 |
|
train.py
CHANGED
@@ -29,7 +29,7 @@ model_name ='sentence-transformers/paraphrase-albert-base-v2'
|
|
29 |
model = SentenceTransformer(model_name)
|
30 |
num_epochs = 12
|
31 |
# Smaller is generally better more accurate results.
|
32 |
-
train_batch_size =
|
33 |
|
34 |
#As distance metric, we use cosine distance (cosine_distance = 1-cosine_similarity)
|
35 |
distance_metric = losses.SiameseDistanceMetric.COSINE_DISTANCE
|
|
|
29 |
model = SentenceTransformer(model_name)
|
30 |
num_epochs = 12
|
31 |
# Smaller is generally better more accurate results.
|
32 |
+
train_batch_size = 8
|
33 |
|
34 |
#As distance metric, we use cosine distance (cosine_distance = 1-cosine_similarity)
|
35 |
distance_metric = losses.SiameseDistanceMetric.COSINE_DISTANCE
|