File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
src/util/components/projects/projectId/data-browser Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff 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 ] ,
You can’t perform that action at this time.
0 commit comments