Spaces:
Runtime error
Runtime error
ajitrajasekharan
commited on
Commit
•
0d4b491
1
Parent(s):
aeefa6b
Update aggregate_server_json.py
Browse files- aggregate_server_json.py +1 -1
aggregate_server_json.py
CHANGED
@@ -207,7 +207,7 @@ class AggregateNER:
|
|
207 |
sum_deviation += (mean_score - node["confidence"])*(mean_score - node["confidence"])
|
208 |
variance = sum_deviation/len(dist)
|
209 |
std_dev = math.sqrt(variance)
|
210 |
-
threshold = mean_score
|
211 |
#threshold = mean_score
|
212 |
pick_count = 1
|
213 |
for node in dist:
|
|
|
207 |
sum_deviation += (mean_score - node["confidence"])*(mean_score - node["confidence"])
|
208 |
variance = sum_deviation/len(dist)
|
209 |
std_dev = math.sqrt(variance)
|
210 |
+
threshold = mean_score - std_dev*self.threshold #default is 1 standard deviation from mean
|
211 |
#threshold = mean_score
|
212 |
pick_count = 1
|
213 |
for node in dist:
|