From f51cf82c2e4011e2f2d59a504883efece2fe3b4e Mon Sep 17 00:00:00 2001 From: Yousif Yassi Date: Mon, 20 Nov 2023 17:20:33 -0500 Subject: [PATCH] Revert "setting a safe fallback for when there is no upper limit" This reverts commit 6a748bd2990aa35880fa058465fff67effc6985a. --- src/stores/DataStores/tasks.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/stores/DataStores/tasks.js b/src/stores/DataStores/tasks.js index d4805436..9a279a3c 100644 --- a/src/stores/DataStores/tasks.js +++ b/src/stores/DataStores/tasks.js @@ -8,7 +8,6 @@ import { CustomJSON } from "../types"; import { FF_DEV_2536, FF_LOPS_E_3, isFF } from "../../utils/feature-flags"; const SIMILARITY_UPPER_LIMIT_PRECISION = 1000; -const SIMILARITY_UPPER_LIMIT = 10; const fileAttributes = types.model({ "certainty": types.optional(types.maybeNull(types.number), 0), "distance": types.optional(types.maybeNull(types.number), 0), @@ -221,14 +220,13 @@ export const create = (columns) => { postProcessData(data) { const { total_annotations, total_predictions, similarity_score_upper_limit } = data; - const similarityUpperLimit = similarity_score_upper_limit ?? SIMILARITY_UPPER_LIMIT; if (total_annotations !== null) self.totalAnnotations = total_annotations; if (total_predictions !== null) self.totalPredictions = total_predictions; if (similarity_score_upper_limit !== null) - self.similarityUpperLimit = (Math.ceil(similarityUpperLimit * SIMILARITY_UPPER_LIMIT_PRECISION) / SIMILARITY_UPPER_LIMIT_PRECISION); + self.similarityUpperLimit = (Math.ceil(similarity_score_upper_limit * SIMILARITY_UPPER_LIMIT_PRECISION) / SIMILARITY_UPPER_LIMIT_PRECISION); }, }))