You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/studio/sdk/model/impulseInputBlockLabelingMethodMultiLabel.ts
+13-4Lines changed: 13 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -12,14 +12,18 @@
12
12
13
13
14
14
/**
15
-
* How to pick the label for multi-label samples
15
+
* Determines how a single label is assigned to each generated window when source samples contain multiple labels. Available options - end-of-window: use the label active at the end timestamp of the window. - anywhere-in-window: assign one of the configured `labels` when it appears anywhere in the window. - anywhere-in-window-min-percentage: assign one of the configured `labels` only when it covers at least `minPercentage` of the full window. - majority-in-window: assign the label with the highest prevalence across the full window. Tie-breaking: - For count-based modes (anywhere-in-window, anywhere-in-window-min-percentage, and majority-in-window), if two or more candidate labels have equal prevalence, the first encountered label in the window is used.
* Required when choosing \"anywhere-in-window\". The list of classes that should trigger detection (e.g. \"interference\").
20
+
* Required when choosing \"anywhere-in-window\" or \"anywhere-in-window-min-percentage\". The list of classes that should trigger detection (e.g. \"interference\").
21
21
*/
22
22
'labels'?: Array<string>;
23
+
/**
24
+
* Required when choosing \"anywhere-in-window-min-percentage\". A label is assigned only if it is present in at least this percentage of the full window.
25
+
*/
26
+
'minPercentage'?: number;
23
27
24
28
staticdiscriminator: string|undefined=undefined;
25
29
@@ -33,6 +37,11 @@ export class ImpulseInputBlockLabelingMethodMultiLabel {
33
37
"name": "labels",
34
38
"baseName": "labels",
35
39
"type": "Array<string>"
40
+
},
41
+
{
42
+
"name": "minPercentage",
43
+
"baseName": "minPercentage",
44
+
"type": "number"
36
45
}];
37
46
38
47
staticgetAttributeTypeMap(){
@@ -41,5 +50,5 @@ export class ImpulseInputBlockLabelingMethodMultiLabel {
0 commit comments