Skip to content

Commit 2cdbce8

Browse files
Removed confidence filter in data browser
1 parent 1b44fdb commit 2cdbce8

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/util/components/projects/projectId/data-browser/filter-parser-helper.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,7 @@ function appendBlackAndWhiteListLabelingTaskForConfidence(
206206
forWeakSupervision: boolean = true
207207
): any {
208208
if (!confidence || !confidence.active) return;
209-
let source;
210-
if (forWeakSupervision) {
211-
source = LabelSource.WEAK_SUPERVISION;
212-
}
209+
const source = forWeakSupervision ? LabelSource.WEAK_SUPERVISION : undefined;
213210
let whitelist = {
214211
SUBQUERY_TYPE: 'WHITELIST',
215212
SUBQUERIES: [{
@@ -224,7 +221,7 @@ function appendBlackAndWhiteListLabelingTaskForConfidence(
224221
SUBQUERIES: [],
225222
};
226223

227-
const query = forWeakSupervision ? 'SUBQUERY_RLA_CONFIDENCE' : 'SUBQUERY_CALLBACK_CONFIDENCE';
224+
const query = forWeakSupervision ? 'SUBQUERY_RLA_CONFIDENCE' : undefined;
228225
list.SUBQUERIES.push({
229226
QUERY_TEMPLATE: query,
230227
VALUES: [confidence.lower * 0.01, confidence.upper * 0.01],

0 commit comments

Comments
 (0)