edge-impulse-api 1.91.1 → 1.91.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,14 +10,18 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * How to pick the label for multi-label samples
13
+ * 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.
14
14
  */
15
15
  export declare class ImpulseInputBlockLabelingMethodMultiLabel {
16
16
  'type': ImpulseInputBlockLabelingMethodMultiLabelTypeEnum;
17
17
  /**
18
- * Required when choosing \"anywhere-in-window\". The list of classes that should trigger detection (e.g. \"interference\").
18
+ * Required when choosing \"anywhere-in-window\" or \"anywhere-in-window-min-percentage\". The list of classes that should trigger detection (e.g. \"interference\").
19
19
  */
20
20
  'labels'?: Array<string>;
21
+ /**
22
+ * 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.
23
+ */
24
+ 'minPercentage'?: number;
21
25
  static discriminator: string | undefined;
22
26
  static attributeTypeMap: Array<{
23
27
  name: string;
@@ -30,5 +34,5 @@ export declare class ImpulseInputBlockLabelingMethodMultiLabel {
30
34
  type: string;
31
35
  }[];
32
36
  }
33
- export type ImpulseInputBlockLabelingMethodMultiLabelTypeEnum = 'end-of-window' | 'anywhere-in-window';
37
+ export type ImpulseInputBlockLabelingMethodMultiLabelTypeEnum = 'end-of-window' | 'anywhere-in-window' | 'anywhere-in-window-min-percentage' | 'majority-in-window';
34
38
  export declare const ImpulseInputBlockLabelingMethodMultiLabelTypeEnumValues: string[];
@@ -13,7 +13,7 @@
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.ImpulseInputBlockLabelingMethodMultiLabelTypeEnumValues = exports.ImpulseInputBlockLabelingMethodMultiLabel = void 0;
15
15
  /**
16
- * How to pick the label for multi-label samples
16
+ * 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.
17
17
  */
18
18
  class ImpulseInputBlockLabelingMethodMultiLabel {
19
19
  static getAttributeTypeMap() {
@@ -32,7 +32,12 @@ ImpulseInputBlockLabelingMethodMultiLabel.attributeTypeMap = [
32
32
  "name": "labels",
33
33
  "baseName": "labels",
34
34
  "type": "Array<string>"
35
+ },
36
+ {
37
+ "name": "minPercentage",
38
+ "baseName": "minPercentage",
39
+ "type": "number"
35
40
  }
36
41
  ];
37
- exports.ImpulseInputBlockLabelingMethodMultiLabelTypeEnumValues = ['end-of-window', 'anywhere-in-window'];
42
+ exports.ImpulseInputBlockLabelingMethodMultiLabelTypeEnumValues = ['end-of-window', 'anywhere-in-window', 'anywhere-in-window-min-percentage', 'majority-in-window'];
38
43
  //# sourceMappingURL=impulseInputBlockLabelingMethodMultiLabel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"impulseInputBlockLabelingMethodMultiLabel.js","sourceRoot":"","sources":["../../../../library/sdk/model/impulseInputBlockLabelingMethodMultiLabel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAGH;;EAEE;AACF,MAAa,yCAAyC;IAqBlD,MAAM,CAAC,mBAAmB;QACtB,OAAO,yCAAyC,CAAC,gBAAgB,CAAC;IACtE,CAAC;;AAvBL,8FAwBC;AAjBU,uDAAa,GAAuB,SAAS,CAAC;AAE9C,0DAAgB,GAA0D;IAC7E;QACI,MAAM,EAAE,MAAM;QACd,UAAU,EAAE,MAAM;QAClB,MAAM,EAAE,mDAAmD;KAC9D;IACD;QACI,MAAM,EAAE,QAAQ;QAChB,UAAU,EAAE,QAAQ;QACpB,MAAM,EAAE,eAAe;KAC1B;CAAK,CAAC;AASF,QAAA,uDAAuD,GAAa,CAAC,eAAe,EAAE,oBAAoB,CAAC,CAAC"}
1
+ {"version":3,"file":"impulseInputBlockLabelingMethodMultiLabel.js","sourceRoot":"","sources":["../../../../library/sdk/model/impulseInputBlockLabelingMethodMultiLabel.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAGH;;EAEE;AACF,MAAa,yCAAyC;IA8BlD,MAAM,CAAC,mBAAmB;QACtB,OAAO,yCAAyC,CAAC,gBAAgB,CAAC;IACtE,CAAC;;AAhCL,8FAiCC;AAtBU,uDAAa,GAAuB,SAAS,CAAC;AAE9C,0DAAgB,GAA0D;IAC7E;QACI,MAAM,EAAE,MAAM;QACd,UAAU,EAAE,MAAM;QAClB,MAAM,EAAE,mDAAmD;KAC9D;IACD;QACI,MAAM,EAAE,QAAQ;QAChB,UAAU,EAAE,QAAQ;QACpB,MAAM,EAAE,eAAe;KAC1B;IACD;QACI,MAAM,EAAE,eAAe;QACvB,UAAU,EAAE,eAAe;QAC3B,MAAM,EAAE,QAAQ;KACnB;CAAK,CAAC;AASF,QAAA,uDAAuD,GAAa,CAAC,eAAe,EAAE,oBAAoB,EAAE,mCAAmC,EAAE,oBAAoB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "edge-impulse-api",
3
- "version": "1.91.1",
3
+ "version": "1.91.3",
4
4
  "description": "Node.js bindings for the Edge Impulse API",
5
5
  "scripts": {
6
6
  "build": "tsc -p .",