Skip to content

Commit 94a8689

Browse files
Release v1.37.2
1 parent 7f838c2 commit 94a8689

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

sdk/studio/sdk/model/impulseInputBlockLabelingMethodMultiLabel.ts

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,18 @@
1212

1313

1414
/**
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.
1616
*/
1717
export class ImpulseInputBlockLabelingMethodMultiLabel {
1818
'type': ImpulseInputBlockLabelingMethodMultiLabelTypeEnum;
1919
/**
20-
* 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\").
2121
*/
2222
'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;
2327

2428
static discriminator: string | undefined = undefined;
2529

@@ -33,6 +37,11 @@ export class ImpulseInputBlockLabelingMethodMultiLabel {
3337
"name": "labels",
3438
"baseName": "labels",
3539
"type": "Array<string>"
40+
},
41+
{
42+
"name": "minPercentage",
43+
"baseName": "minPercentage",
44+
"type": "number"
3645
} ];
3746

3847
static getAttributeTypeMap() {
@@ -41,5 +50,5 @@ export class ImpulseInputBlockLabelingMethodMultiLabel {
4150
}
4251

4352

44-
export type ImpulseInputBlockLabelingMethodMultiLabelTypeEnum = 'end-of-window' | 'anywhere-in-window';
45-
export const ImpulseInputBlockLabelingMethodMultiLabelTypeEnumValues: string[] = ['end-of-window', 'anywhere-in-window'];
53+
export type ImpulseInputBlockLabelingMethodMultiLabelTypeEnum = 'end-of-window' | 'anywhere-in-window' | 'anywhere-in-window-min-percentage' | 'majority-in-window';
54+
export const ImpulseInputBlockLabelingMethodMultiLabelTypeEnumValues: string[] = ['end-of-window', 'anywhere-in-window', 'anywhere-in-window-min-percentage', 'majority-in-window'];

0 commit comments

Comments
 (0)