@nirs4all/methods 1.0.17 → 1.1.0
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.
- package/README.md +37 -2
- package/dist/estimatorRoles.d.ts +139 -0
- package/dist/estimatorRoles.js +531 -0
- package/dist/estimatorRolesGenerated.d.ts +4711 -0
- package/dist/estimatorRolesGenerated.js +3825 -0
- package/dist/index.d.ts +8 -1
- package/dist/index.js +8 -1
- package/dist/methodResult.d.ts +2 -0
- package/dist/methodResult.js +33 -1
- package/dist/model.d.ts +29 -1
- package/dist/model.js +69 -3
- package/dist/n4m.js +1 -1
- package/dist/n4m.wasm +0 -0
- package/dist/nativeAugmentation.d.ts +29 -0
- package/dist/nativeAugmentation.js +49 -0
- package/dist/nativeModel.d.ts +17 -0
- package/dist/nativeModel.js +100 -0
- package/dist/nativePreprocessingPipeline.d.ts +42 -0
- package/dist/nativePreprocessingPipeline.js +246 -0
- package/dist/nativeSplitter.d.ts +23 -0
- package/dist/nativeSplitter.js +116 -0
- package/dist/selection.d.ts +6 -0
- package/dist/selection.js +245 -0
- package/dist/types.d.ts +14 -13
- package/dist/types.js +14 -13
- package/package.json +3 -3
|
@@ -0,0 +1,4711 @@
|
|
|
1
|
+
import { type Augmenter, type Classifier, type FitInputs, type Fold, NativeEstimator, NativeProcedure, type ProbabilisticClassifier, type Procedure, type ProcedureOutput, type Regressor, type SampleFilter, type Selector, type Splitter, type TargetMixingAugmenter, type Transformer } from "./estimatorRoles.js";
|
|
2
|
+
import type { Matrix } from "./types.js";
|
|
3
|
+
/** Parameters of AOMFixedCandidate; unset values take the native defaults. */
|
|
4
|
+
export interface AOMFixedCandidateParams {
|
|
5
|
+
/** Required. */
|
|
6
|
+
op_kinds?: number[];
|
|
7
|
+
/** Required. */
|
|
8
|
+
param_offsets?: number[];
|
|
9
|
+
/** Default []. */
|
|
10
|
+
chain_params?: number[];
|
|
11
|
+
/** Default "ridge". */
|
|
12
|
+
head?: "ridge" | "pls";
|
|
13
|
+
/** Default 0.1. */
|
|
14
|
+
param?: number;
|
|
15
|
+
/** Default true. */
|
|
16
|
+
center_x?: boolean;
|
|
17
|
+
/** Default true. */
|
|
18
|
+
scale_x?: boolean;
|
|
19
|
+
/** Default true. */
|
|
20
|
+
center_y?: boolean;
|
|
21
|
+
/** Default true. */
|
|
22
|
+
scale_y?: boolean;
|
|
23
|
+
/** Default "auto". */
|
|
24
|
+
moment_policy?: "auto" | "materialized" | "force";
|
|
25
|
+
}
|
|
26
|
+
/** Native `aom_pop.aom_chain_fixed_fit` (regressor). */
|
|
27
|
+
export declare class AOMFixedCandidate extends NativeEstimator implements Regressor {
|
|
28
|
+
readonly methodId = "aom_pop.aom_chain_fixed_fit";
|
|
29
|
+
readonly paramTypes: {
|
|
30
|
+
readonly op_kinds: "int_array";
|
|
31
|
+
readonly param_offsets: "int_array";
|
|
32
|
+
readonly chain_params: "double_array";
|
|
33
|
+
readonly head: "enum";
|
|
34
|
+
readonly param: "double";
|
|
35
|
+
readonly center_x: "bool";
|
|
36
|
+
readonly scale_x: "bool";
|
|
37
|
+
readonly center_y: "bool";
|
|
38
|
+
readonly scale_y: "bool";
|
|
39
|
+
readonly moment_policy: "enum";
|
|
40
|
+
};
|
|
41
|
+
constructor(params?: AOMFixedCandidateParams);
|
|
42
|
+
predict(X: Matrix): Matrix;
|
|
43
|
+
}
|
|
44
|
+
/** Parameters of AOMChainRidgePLS; unset values take the native defaults. */
|
|
45
|
+
export interface AOMChainRidgePLSParams {
|
|
46
|
+
/** Default [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 13, 15]. */
|
|
47
|
+
chain_offsets?: number[];
|
|
48
|
+
/** Default [0, 7, 7, 8, 8, 9, 9, 10, 15, 7, 9, 7, 10, 8, 15]. */
|
|
49
|
+
op_kinds?: number[];
|
|
50
|
+
/** Default [0, 0, 1, 2, 4, 6, 9, 12, 15, 16, 17, 20, 21, 24, 26, 27]. */
|
|
51
|
+
param_offsets?: number[];
|
|
52
|
+
/** Default [1, 2, 5, 2, 7, 2, 7, 2, 1, 11, 2, 2, 5, 5, 1, 1, 1, 7, 2, 1, 1, 5, 5, 1, 5, 2, 1]. */
|
|
53
|
+
chain_params?: number[];
|
|
54
|
+
/** Default [2]. */
|
|
55
|
+
pls_components?: number[];
|
|
56
|
+
/** Default [0, 0.1, 1, 10]. */
|
|
57
|
+
ridge_lambdas?: number[];
|
|
58
|
+
/** Default 5. */
|
|
59
|
+
cv?: number;
|
|
60
|
+
/** Default true. */
|
|
61
|
+
center_x?: boolean;
|
|
62
|
+
/** Default true. */
|
|
63
|
+
center_y?: boolean;
|
|
64
|
+
}
|
|
65
|
+
/** Native `aom_pop.aom_chain_ridge_pls` (regressor). */
|
|
66
|
+
export declare class AOMChainRidgePLS extends NativeEstimator implements Regressor {
|
|
67
|
+
readonly methodId = "aom_pop.aom_chain_ridge_pls";
|
|
68
|
+
readonly paramTypes: {
|
|
69
|
+
readonly chain_offsets: "int_array";
|
|
70
|
+
readonly op_kinds: "int_array";
|
|
71
|
+
readonly param_offsets: "int_array";
|
|
72
|
+
readonly chain_params: "double_array";
|
|
73
|
+
readonly pls_components: "int_array";
|
|
74
|
+
readonly ridge_lambdas: "double_array";
|
|
75
|
+
readonly cv: "int";
|
|
76
|
+
readonly center_x: "bool";
|
|
77
|
+
readonly center_y: "bool";
|
|
78
|
+
};
|
|
79
|
+
constructor(params?: AOMChainRidgePLSParams);
|
|
80
|
+
predict(X: Matrix): Matrix;
|
|
81
|
+
}
|
|
82
|
+
/** Parameters of AOMChainSweep; unset values take the native defaults. */
|
|
83
|
+
export interface AOMChainSweepParams {
|
|
84
|
+
/** Required. */
|
|
85
|
+
chain_offsets?: number[];
|
|
86
|
+
/** Required. */
|
|
87
|
+
op_kinds?: number[];
|
|
88
|
+
/** Required. */
|
|
89
|
+
param_offsets?: number[];
|
|
90
|
+
/** Default []. */
|
|
91
|
+
chain_params?: number[];
|
|
92
|
+
/** Default 5. */
|
|
93
|
+
cv?: number;
|
|
94
|
+
/** Default [0.01, 0.1, 1, 10]. */
|
|
95
|
+
ridge_lambdas?: number[];
|
|
96
|
+
/** Default []. */
|
|
97
|
+
pls_components?: number[];
|
|
98
|
+
/** Default "ridge". */
|
|
99
|
+
heads?: "ridge" | "pls" | "ridge_pls";
|
|
100
|
+
/** Default true. */
|
|
101
|
+
center_x?: boolean;
|
|
102
|
+
/** Default true. */
|
|
103
|
+
scale_x?: boolean;
|
|
104
|
+
/** Default true. */
|
|
105
|
+
center_y?: boolean;
|
|
106
|
+
/** Default true. */
|
|
107
|
+
scale_y?: boolean;
|
|
108
|
+
/** Default "auto". */
|
|
109
|
+
moment_policy?: "auto" | "materialized" | "force";
|
|
110
|
+
}
|
|
111
|
+
/** Native `aom_pop.aom_chain_sweep` (regressor). */
|
|
112
|
+
export declare class AOMChainSweep extends NativeEstimator implements Regressor {
|
|
113
|
+
readonly methodId = "aom_pop.aom_chain_sweep";
|
|
114
|
+
readonly paramTypes: {
|
|
115
|
+
readonly chain_offsets: "int_array";
|
|
116
|
+
readonly op_kinds: "int_array";
|
|
117
|
+
readonly param_offsets: "int_array";
|
|
118
|
+
readonly chain_params: "double_array";
|
|
119
|
+
readonly cv: "int";
|
|
120
|
+
readonly ridge_lambdas: "double_array";
|
|
121
|
+
readonly pls_components: "int_array";
|
|
122
|
+
readonly heads: "enum";
|
|
123
|
+
readonly center_x: "bool";
|
|
124
|
+
readonly scale_x: "bool";
|
|
125
|
+
readonly center_y: "bool";
|
|
126
|
+
readonly scale_y: "bool";
|
|
127
|
+
readonly moment_policy: "enum";
|
|
128
|
+
};
|
|
129
|
+
constructor(params?: AOMChainSweepParams);
|
|
130
|
+
predict(X: Matrix): Matrix;
|
|
131
|
+
}
|
|
132
|
+
/** Parameters of AOMPLS; unset values take the native defaults. */
|
|
133
|
+
export interface AOMPLSParams {
|
|
134
|
+
/** Default 3. */
|
|
135
|
+
max_components?: number;
|
|
136
|
+
/** Default [0, 7, 7, 8, 8, 9, 9, 10, 15]. */
|
|
137
|
+
op_kinds?: number[];
|
|
138
|
+
/** Default [0, 0, 1, 2, 4, 6, 9, 12, 15, 16]. */
|
|
139
|
+
param_offsets?: number[];
|
|
140
|
+
/** Default [1, 2, 5, 2, 7, 2, 7, 2, 1, 11, 2, 2, 5, 5, 1, 1]. */
|
|
141
|
+
op_params?: number[];
|
|
142
|
+
/** Default 3. */
|
|
143
|
+
cv?: number;
|
|
144
|
+
/** Default true. */
|
|
145
|
+
center_x?: boolean;
|
|
146
|
+
/** Default true. */
|
|
147
|
+
scale_x?: boolean;
|
|
148
|
+
/** Default true. */
|
|
149
|
+
center_y?: boolean;
|
|
150
|
+
/** Default true. */
|
|
151
|
+
scale_y?: boolean;
|
|
152
|
+
}
|
|
153
|
+
/** Native `aom_pop.aom_pls` (regressor). */
|
|
154
|
+
export declare class AOMPLS extends NativeEstimator implements Regressor {
|
|
155
|
+
readonly methodId = "aom_pop.aom_pls";
|
|
156
|
+
readonly paramTypes: {
|
|
157
|
+
readonly max_components: "int";
|
|
158
|
+
readonly op_kinds: "int_array";
|
|
159
|
+
readonly param_offsets: "int_array";
|
|
160
|
+
readonly op_params: "double_array";
|
|
161
|
+
readonly cv: "int";
|
|
162
|
+
readonly center_x: "bool";
|
|
163
|
+
readonly scale_x: "bool";
|
|
164
|
+
readonly center_y: "bool";
|
|
165
|
+
readonly scale_y: "bool";
|
|
166
|
+
};
|
|
167
|
+
constructor(params?: AOMPLSParams);
|
|
168
|
+
predict(X: Matrix): Matrix;
|
|
169
|
+
}
|
|
170
|
+
/** Parameters of AOMPLSSuperblock; unset values take the native defaults. */
|
|
171
|
+
export interface AOMPLSSuperblockParams {
|
|
172
|
+
/** Default [0, 7, 7, 8, 8, 9, 9, 10, 15]. */
|
|
173
|
+
op_kinds?: number[];
|
|
174
|
+
/** Default [0, 0, 1, 2, 4, 6, 9, 12, 15, 16]. */
|
|
175
|
+
param_offsets?: number[];
|
|
176
|
+
/** Default [1, 2, 5, 2, 7, 2, 7, 2, 1, 11, 2, 2, 5, 5, 1, 1]. */
|
|
177
|
+
op_params?: number[];
|
|
178
|
+
/** Default [2]. */
|
|
179
|
+
pls_components?: number[];
|
|
180
|
+
/** Default 5. */
|
|
181
|
+
cv?: number;
|
|
182
|
+
/** Default "rms". */
|
|
183
|
+
block_scaling?: "rms" | "none";
|
|
184
|
+
/** Default true. */
|
|
185
|
+
center_x?: boolean;
|
|
186
|
+
/** Default true. */
|
|
187
|
+
center_y?: boolean;
|
|
188
|
+
}
|
|
189
|
+
/** Native `aom_pop.aom_pls_superblock` (regressor). */
|
|
190
|
+
export declare class AOMPLSSuperblock extends NativeEstimator implements Regressor {
|
|
191
|
+
readonly methodId = "aom_pop.aom_pls_superblock";
|
|
192
|
+
readonly paramTypes: {
|
|
193
|
+
readonly op_kinds: "int_array";
|
|
194
|
+
readonly param_offsets: "int_array";
|
|
195
|
+
readonly op_params: "double_array";
|
|
196
|
+
readonly pls_components: "int_array";
|
|
197
|
+
readonly cv: "int";
|
|
198
|
+
readonly block_scaling: "enum";
|
|
199
|
+
readonly center_x: "bool";
|
|
200
|
+
readonly center_y: "bool";
|
|
201
|
+
};
|
|
202
|
+
constructor(params?: AOMPLSSuperblockParams);
|
|
203
|
+
predict(X: Matrix): Matrix;
|
|
204
|
+
}
|
|
205
|
+
/** Parameters of AOMPreprocessing; unset values take the native defaults. */
|
|
206
|
+
export interface AOMPreprocessingParams {
|
|
207
|
+
/** Default [0, 7, 7, 8, 8, 9, 9, 10, 15]. */
|
|
208
|
+
op_kinds?: number[];
|
|
209
|
+
/** Default [0, 0, 1, 2, 4, 6, 9, 12, 15, 16]. */
|
|
210
|
+
param_offsets?: number[];
|
|
211
|
+
/** Default [1, 2, 5, 2, 7, 2, 7, 2, 1, 11, 2, 2, 5, 5, 1, 1]. */
|
|
212
|
+
op_params?: number[];
|
|
213
|
+
/** Default "soft". */
|
|
214
|
+
gating_mode?: "hard" | "soft";
|
|
215
|
+
}
|
|
216
|
+
/** Native `aom_pop.aom_preprocessing` (transformer). */
|
|
217
|
+
export declare class AOMPreprocessing extends NativeEstimator implements Transformer {
|
|
218
|
+
readonly methodId = "aom_pop.aom_preprocessing";
|
|
219
|
+
readonly paramTypes: {
|
|
220
|
+
readonly op_kinds: "int_array";
|
|
221
|
+
readonly param_offsets: "int_array";
|
|
222
|
+
readonly op_params: "double_array";
|
|
223
|
+
readonly gating_mode: "enum";
|
|
224
|
+
};
|
|
225
|
+
constructor(params?: AOMPreprocessingParams);
|
|
226
|
+
transform(X: Matrix): Matrix;
|
|
227
|
+
}
|
|
228
|
+
/** Parameters of AOMRidgePLSSuperblock; unset values take the native defaults. */
|
|
229
|
+
export interface AOMRidgePLSSuperblockParams {
|
|
230
|
+
/** Default [0, 7, 7, 8, 8, 9, 9, 10, 15]. */
|
|
231
|
+
op_kinds?: number[];
|
|
232
|
+
/** Default [0, 0, 1, 2, 4, 6, 9, 12, 15, 16]. */
|
|
233
|
+
param_offsets?: number[];
|
|
234
|
+
/** Default [1, 2, 5, 2, 7, 2, 7, 2, 1, 11, 2, 2, 5, 5, 1, 1]. */
|
|
235
|
+
op_params?: number[];
|
|
236
|
+
/** Default [2]. */
|
|
237
|
+
pls_components?: number[];
|
|
238
|
+
/** Default [0, 0.1, 1, 10]. */
|
|
239
|
+
ridge_lambdas?: number[];
|
|
240
|
+
/** Default 5. */
|
|
241
|
+
cv?: number;
|
|
242
|
+
/** Default "rms". */
|
|
243
|
+
block_scaling?: "rms" | "none";
|
|
244
|
+
/** Default true. */
|
|
245
|
+
center_x?: boolean;
|
|
246
|
+
}
|
|
247
|
+
/** Native `aom_pop.aom_ridge_pls_superblock` (regressor). */
|
|
248
|
+
export declare class AOMRidgePLSSuperblock extends NativeEstimator implements Regressor {
|
|
249
|
+
readonly methodId = "aom_pop.aom_ridge_pls_superblock";
|
|
250
|
+
readonly paramTypes: {
|
|
251
|
+
readonly op_kinds: "int_array";
|
|
252
|
+
readonly param_offsets: "int_array";
|
|
253
|
+
readonly op_params: "double_array";
|
|
254
|
+
readonly pls_components: "int_array";
|
|
255
|
+
readonly ridge_lambdas: "double_array";
|
|
256
|
+
readonly cv: "int";
|
|
257
|
+
readonly block_scaling: "enum";
|
|
258
|
+
readonly center_x: "bool";
|
|
259
|
+
};
|
|
260
|
+
constructor(params?: AOMRidgePLSSuperblockParams);
|
|
261
|
+
predict(X: Matrix): Matrix;
|
|
262
|
+
}
|
|
263
|
+
/** Parameters of AOMSweep; unset values take the native defaults. */
|
|
264
|
+
export interface AOMSweepParams {
|
|
265
|
+
/** Default "compact". */
|
|
266
|
+
profile?: "compact" | "wide";
|
|
267
|
+
/** Default 5. */
|
|
268
|
+
cv?: number;
|
|
269
|
+
/** Default [0.01, 0.1, 1, 10]. */
|
|
270
|
+
ridge_lambdas?: number[];
|
|
271
|
+
/** Default []. */
|
|
272
|
+
pls_components?: number[];
|
|
273
|
+
/** Default "ridge". */
|
|
274
|
+
heads?: "ridge" | "pls" | "ridge_pls";
|
|
275
|
+
/** Default true. */
|
|
276
|
+
center_x?: boolean;
|
|
277
|
+
/** Default true. */
|
|
278
|
+
scale_x?: boolean;
|
|
279
|
+
/** Default true. */
|
|
280
|
+
center_y?: boolean;
|
|
281
|
+
/** Default true. */
|
|
282
|
+
scale_y?: boolean;
|
|
283
|
+
/** Default "auto". */
|
|
284
|
+
moment_policy?: "auto" | "materialized" | "force";
|
|
285
|
+
}
|
|
286
|
+
/** Native `aom_pop.aom_sweep` (regressor). */
|
|
287
|
+
export declare class AOMSweep extends NativeEstimator implements Regressor {
|
|
288
|
+
readonly methodId = "aom_pop.aom_sweep";
|
|
289
|
+
readonly paramTypes: {
|
|
290
|
+
readonly profile: "enum";
|
|
291
|
+
readonly cv: "int";
|
|
292
|
+
readonly ridge_lambdas: "double_array";
|
|
293
|
+
readonly pls_components: "int_array";
|
|
294
|
+
readonly heads: "enum";
|
|
295
|
+
readonly center_x: "bool";
|
|
296
|
+
readonly scale_x: "bool";
|
|
297
|
+
readonly center_y: "bool";
|
|
298
|
+
readonly scale_y: "bool";
|
|
299
|
+
readonly moment_policy: "enum";
|
|
300
|
+
};
|
|
301
|
+
constructor(params?: AOMSweepParams);
|
|
302
|
+
predict(X: Matrix): Matrix;
|
|
303
|
+
}
|
|
304
|
+
/** Parameters of AOMCalibration; unset values take the native defaults. */
|
|
305
|
+
export interface AOMCalibrationParams {
|
|
306
|
+
/** Default "pls". */
|
|
307
|
+
head?: "pls" | "ridge";
|
|
308
|
+
/** Default false. */
|
|
309
|
+
fast?: boolean;
|
|
310
|
+
/** Default 25. */
|
|
311
|
+
max_components?: number;
|
|
312
|
+
/** Default []. */
|
|
313
|
+
alphas?: number[];
|
|
314
|
+
/** Default 3. */
|
|
315
|
+
cv?: number;
|
|
316
|
+
/** Default [0, 1, 2]. */
|
|
317
|
+
branches?: number[];
|
|
318
|
+
/** Default 1. */
|
|
319
|
+
max_depth?: number;
|
|
320
|
+
/** Default 200. */
|
|
321
|
+
rank?: number;
|
|
322
|
+
}
|
|
323
|
+
/** Native `aom_pop.calibration` (regressor). */
|
|
324
|
+
export declare class AOMCalibration extends NativeEstimator implements Regressor {
|
|
325
|
+
readonly methodId = "aom_pop.calibration";
|
|
326
|
+
readonly paramTypes: {
|
|
327
|
+
readonly head: "enum";
|
|
328
|
+
readonly fast: "bool";
|
|
329
|
+
readonly max_components: "int";
|
|
330
|
+
readonly alphas: "double_array";
|
|
331
|
+
readonly cv: "int";
|
|
332
|
+
readonly branches: "int_array";
|
|
333
|
+
readonly max_depth: "int";
|
|
334
|
+
readonly rank: "int";
|
|
335
|
+
};
|
|
336
|
+
constructor(params?: AOMCalibrationParams);
|
|
337
|
+
predict(X: Matrix): Matrix;
|
|
338
|
+
}
|
|
339
|
+
/** Parameters of LinearStackCompress; unset values take the native defaults. */
|
|
340
|
+
export interface LinearStackCompressParams {
|
|
341
|
+
/** Required. */
|
|
342
|
+
base_intercepts?: number[];
|
|
343
|
+
/** Required. */
|
|
344
|
+
meta_weights?: number[];
|
|
345
|
+
/** Required. */
|
|
346
|
+
meta_intercept?: number[];
|
|
347
|
+
}
|
|
348
|
+
/** Native `aom_pop.linear_stack_compress` (generic). */
|
|
349
|
+
export declare class LinearStackCompress extends NativeProcedure implements Procedure {
|
|
350
|
+
readonly methodId = "aom_pop.linear_stack_compress";
|
|
351
|
+
readonly paramTypes: {
|
|
352
|
+
readonly base_intercepts: "double_array";
|
|
353
|
+
readonly meta_weights: "double_array";
|
|
354
|
+
readonly meta_intercept: "double_array";
|
|
355
|
+
};
|
|
356
|
+
constructor(params?: LinearStackCompressParams);
|
|
357
|
+
run(X: Matrix, y?: Matrix | Float64Array | ArrayLike<number>, inputs?: FitInputs): Record<string, ProcedureOutput>;
|
|
358
|
+
}
|
|
359
|
+
/** Parameters of AOMOperatorPLSStack; unset values take the native defaults. */
|
|
360
|
+
export interface AOMOperatorPLSStackParams {
|
|
361
|
+
/** Default "compact". */
|
|
362
|
+
profile?: "compact" | "wide";
|
|
363
|
+
/** Default 5. */
|
|
364
|
+
cv?: number;
|
|
365
|
+
/** Default [2, 4, 8]. */
|
|
366
|
+
components?: number[];
|
|
367
|
+
/** Default [0.001, 0.01, 0.1, 1, 10, 100]. */
|
|
368
|
+
alphas?: number[];
|
|
369
|
+
/** Default 0. */
|
|
370
|
+
std_penalty?: number;
|
|
371
|
+
/** Default 0. */
|
|
372
|
+
gap_penalty?: number;
|
|
373
|
+
/** Default true. */
|
|
374
|
+
center_x?: boolean;
|
|
375
|
+
/** Default true. */
|
|
376
|
+
scale_x?: boolean;
|
|
377
|
+
/** Default true. */
|
|
378
|
+
center_y?: boolean;
|
|
379
|
+
/** Default true. */
|
|
380
|
+
scale_y?: boolean;
|
|
381
|
+
}
|
|
382
|
+
/** Native `aom_pop.operator_pls_stack` (regressor). */
|
|
383
|
+
export declare class AOMOperatorPLSStack extends NativeEstimator implements Regressor {
|
|
384
|
+
readonly methodId = "aom_pop.operator_pls_stack";
|
|
385
|
+
readonly paramTypes: {
|
|
386
|
+
readonly profile: "enum";
|
|
387
|
+
readonly cv: "int";
|
|
388
|
+
readonly components: "int_array";
|
|
389
|
+
readonly alphas: "double_array";
|
|
390
|
+
readonly std_penalty: "double";
|
|
391
|
+
readonly gap_penalty: "double";
|
|
392
|
+
readonly center_x: "bool";
|
|
393
|
+
readonly scale_x: "bool";
|
|
394
|
+
readonly center_y: "bool";
|
|
395
|
+
readonly scale_y: "bool";
|
|
396
|
+
};
|
|
397
|
+
constructor(params?: AOMOperatorPLSStackParams);
|
|
398
|
+
predict(X: Matrix): Matrix;
|
|
399
|
+
}
|
|
400
|
+
/** Parameters of POPPLS; unset values take the native defaults. */
|
|
401
|
+
export interface POPPLSParams {
|
|
402
|
+
/** Default 3. */
|
|
403
|
+
max_components?: number;
|
|
404
|
+
/** Default [0, 7, 7, 8, 8, 9, 9, 10, 15]. */
|
|
405
|
+
op_kinds?: number[];
|
|
406
|
+
/** Default [0, 0, 1, 2, 4, 6, 9, 12, 15, 16]. */
|
|
407
|
+
param_offsets?: number[];
|
|
408
|
+
/** Default [1, 2, 5, 2, 7, 2, 7, 2, 1, 11, 2, 2, 5, 5, 1, 1]. */
|
|
409
|
+
op_params?: number[];
|
|
410
|
+
/** Default 3. */
|
|
411
|
+
cv?: number;
|
|
412
|
+
/** Default true. */
|
|
413
|
+
center_x?: boolean;
|
|
414
|
+
/** Default true. */
|
|
415
|
+
scale_x?: boolean;
|
|
416
|
+
/** Default true. */
|
|
417
|
+
center_y?: boolean;
|
|
418
|
+
/** Default true. */
|
|
419
|
+
scale_y?: boolean;
|
|
420
|
+
}
|
|
421
|
+
/** Native `aom_pop.pop_pls` (regressor). */
|
|
422
|
+
export declare class POPPLS extends NativeEstimator implements Regressor {
|
|
423
|
+
readonly methodId = "aom_pop.pop_pls";
|
|
424
|
+
readonly paramTypes: {
|
|
425
|
+
readonly max_components: "int";
|
|
426
|
+
readonly op_kinds: "int_array";
|
|
427
|
+
readonly param_offsets: "int_array";
|
|
428
|
+
readonly op_params: "double_array";
|
|
429
|
+
readonly cv: "int";
|
|
430
|
+
readonly center_x: "bool";
|
|
431
|
+
readonly scale_x: "bool";
|
|
432
|
+
readonly center_y: "bool";
|
|
433
|
+
readonly scale_y: "bool";
|
|
434
|
+
};
|
|
435
|
+
constructor(params?: POPPLSParams);
|
|
436
|
+
predict(X: Matrix): Matrix;
|
|
437
|
+
}
|
|
438
|
+
/** Parameters of AOMRidgeActiveSuperblock; unset values take the native defaults. */
|
|
439
|
+
export interface AOMRidgeActiveSuperblockParams {
|
|
440
|
+
/** Default [0, 7, 7, 8, 8, 9, 9, 10, 15]. */
|
|
441
|
+
op_kinds?: number[];
|
|
442
|
+
/** Default [0, 0, 1, 2, 4, 6, 9, 12, 15, 16]. */
|
|
443
|
+
param_offsets?: number[];
|
|
444
|
+
/** Default [1, 2, 5, 2, 7, 2, 7, 2, 1, 11, 2, 2, 5, 5, 1, 1]. */
|
|
445
|
+
op_params?: number[];
|
|
446
|
+
/** Default [0.0001, 0.01, 1, 100]. */
|
|
447
|
+
alphas?: number[];
|
|
448
|
+
/** Default 5. */
|
|
449
|
+
cv?: number;
|
|
450
|
+
/** Default 20. */
|
|
451
|
+
active_top_m?: number;
|
|
452
|
+
/** Default 0.98. */
|
|
453
|
+
active_diversity_threshold?: number;
|
|
454
|
+
/** Default "norm". */
|
|
455
|
+
active_score_method?: "norm" | "kta" | "blend";
|
|
456
|
+
/** Default 0. */
|
|
457
|
+
active_max_per_family?: number;
|
|
458
|
+
/** Default true. */
|
|
459
|
+
keep_identity?: boolean;
|
|
460
|
+
/** Default "rms". */
|
|
461
|
+
block_scaling?: "rms" | "none";
|
|
462
|
+
/** Default true. */
|
|
463
|
+
center_x?: boolean;
|
|
464
|
+
/** Default true. */
|
|
465
|
+
center_y?: boolean;
|
|
466
|
+
}
|
|
467
|
+
/** Native `aom_pop.ridge_active_superblock` (regressor). */
|
|
468
|
+
export declare class AOMRidgeActiveSuperblock extends NativeEstimator implements Regressor {
|
|
469
|
+
readonly methodId = "aom_pop.ridge_active_superblock";
|
|
470
|
+
readonly paramTypes: {
|
|
471
|
+
readonly op_kinds: "int_array";
|
|
472
|
+
readonly param_offsets: "int_array";
|
|
473
|
+
readonly op_params: "double_array";
|
|
474
|
+
readonly alphas: "double_array";
|
|
475
|
+
readonly cv: "int";
|
|
476
|
+
readonly active_top_m: "int";
|
|
477
|
+
readonly active_diversity_threshold: "double";
|
|
478
|
+
readonly active_score_method: "enum";
|
|
479
|
+
readonly active_max_per_family: "int";
|
|
480
|
+
readonly keep_identity: "bool";
|
|
481
|
+
readonly block_scaling: "enum";
|
|
482
|
+
readonly center_x: "bool";
|
|
483
|
+
readonly center_y: "bool";
|
|
484
|
+
};
|
|
485
|
+
constructor(params?: AOMRidgeActiveSuperblockParams);
|
|
486
|
+
predict(X: Matrix): Matrix;
|
|
487
|
+
}
|
|
488
|
+
/** Parameters of AOMRidgeBlender; unset values take the native defaults. */
|
|
489
|
+
export interface AOMRidgeBlenderParams {
|
|
490
|
+
/** Default "compact". */
|
|
491
|
+
profile?: "compact" | "wide";
|
|
492
|
+
/** Default 5. */
|
|
493
|
+
cv?: number;
|
|
494
|
+
/** Default [0.0001, 0.01, 1, 100]. */
|
|
495
|
+
ridge_lambdas?: number[];
|
|
496
|
+
/** Default 0.01. */
|
|
497
|
+
regularizer?: number;
|
|
498
|
+
/** Default true. */
|
|
499
|
+
center_x?: boolean;
|
|
500
|
+
/** Default true. */
|
|
501
|
+
scale_x?: boolean;
|
|
502
|
+
/** Default true. */
|
|
503
|
+
center_y?: boolean;
|
|
504
|
+
/** Default true. */
|
|
505
|
+
scale_y?: boolean;
|
|
506
|
+
}
|
|
507
|
+
/** Native `aom_pop.ridge_blender` (regressor). */
|
|
508
|
+
export declare class AOMRidgeBlender extends NativeEstimator implements Regressor {
|
|
509
|
+
readonly methodId = "aom_pop.ridge_blender";
|
|
510
|
+
readonly paramTypes: {
|
|
511
|
+
readonly profile: "enum";
|
|
512
|
+
readonly cv: "int";
|
|
513
|
+
readonly ridge_lambdas: "double_array";
|
|
514
|
+
readonly regularizer: "double";
|
|
515
|
+
readonly center_x: "bool";
|
|
516
|
+
readonly scale_x: "bool";
|
|
517
|
+
readonly center_y: "bool";
|
|
518
|
+
readonly scale_y: "bool";
|
|
519
|
+
};
|
|
520
|
+
constructor(params?: AOMRidgeBlenderParams);
|
|
521
|
+
predict(X: Matrix): Matrix;
|
|
522
|
+
}
|
|
523
|
+
/** Parameters of AOMRidgeGlobal; unset values take the native defaults. */
|
|
524
|
+
export interface AOMRidgeGlobalParams {
|
|
525
|
+
/** Default [0, 7, 7, 8, 8, 9, 9, 10, 15]. */
|
|
526
|
+
op_kinds?: number[];
|
|
527
|
+
/** Default [0, 0, 1, 2, 4, 6, 9, 12, 15, 16]. */
|
|
528
|
+
param_offsets?: number[];
|
|
529
|
+
/** Default [1, 2, 5, 2, 7, 2, 7, 2, 1, 11, 2, 2, 5, 5, 1, 1]. */
|
|
530
|
+
op_params?: number[];
|
|
531
|
+
/** Default 5. */
|
|
532
|
+
cv?: number;
|
|
533
|
+
/** Default [0.0001, 0.01, 1, 100]. */
|
|
534
|
+
ridge_lambdas?: number[];
|
|
535
|
+
/** Default true. */
|
|
536
|
+
center_x?: boolean;
|
|
537
|
+
/** Default true. */
|
|
538
|
+
scale_x?: boolean;
|
|
539
|
+
/** Default true. */
|
|
540
|
+
center_y?: boolean;
|
|
541
|
+
/** Default true. */
|
|
542
|
+
scale_y?: boolean;
|
|
543
|
+
/** Default "auto". */
|
|
544
|
+
moment_policy?: "auto" | "materialized" | "force";
|
|
545
|
+
}
|
|
546
|
+
/** Native `aom_pop.ridge_global` (regressor). */
|
|
547
|
+
export declare class AOMRidgeGlobal extends NativeEstimator implements Regressor {
|
|
548
|
+
readonly methodId = "aom_pop.ridge_global";
|
|
549
|
+
readonly paramTypes: {
|
|
550
|
+
readonly op_kinds: "int_array";
|
|
551
|
+
readonly param_offsets: "int_array";
|
|
552
|
+
readonly op_params: "double_array";
|
|
553
|
+
readonly cv: "int";
|
|
554
|
+
readonly ridge_lambdas: "double_array";
|
|
555
|
+
readonly center_x: "bool";
|
|
556
|
+
readonly scale_x: "bool";
|
|
557
|
+
readonly center_y: "bool";
|
|
558
|
+
readonly scale_y: "bool";
|
|
559
|
+
readonly moment_policy: "enum";
|
|
560
|
+
};
|
|
561
|
+
constructor(params?: AOMRidgeGlobalParams);
|
|
562
|
+
predict(X: Matrix): Matrix;
|
|
563
|
+
}
|
|
564
|
+
/** Parameters of AOMRidgeMKLSuperblock; unset values take the native defaults. */
|
|
565
|
+
export interface AOMRidgeMKLSuperblockParams {
|
|
566
|
+
/** Default [0, 7, 7, 8, 8, 9, 9, 10, 15]. */
|
|
567
|
+
op_kinds?: number[];
|
|
568
|
+
/** Default [0, 0, 1, 2, 4, 6, 9, 12, 15, 16]. */
|
|
569
|
+
param_offsets?: number[];
|
|
570
|
+
/** Default [1, 2, 5, 2, 7, 2, 7, 2, 1, 11, 2, 2, 5, 5, 1, 1]. */
|
|
571
|
+
op_params?: number[];
|
|
572
|
+
/** Default [0.0001, 0.01, 1, 100]. */
|
|
573
|
+
alphas?: number[];
|
|
574
|
+
/** Default 5. */
|
|
575
|
+
cv?: number;
|
|
576
|
+
/** Default 6. */
|
|
577
|
+
mkl_top_k?: number;
|
|
578
|
+
/** Default "none". */
|
|
579
|
+
block_scaling?: "rms" | "none";
|
|
580
|
+
/** Default true. */
|
|
581
|
+
center_x?: boolean;
|
|
582
|
+
/** Default true. */
|
|
583
|
+
center_y?: boolean;
|
|
584
|
+
}
|
|
585
|
+
/** Native `aom_pop.ridge_mkl_superblock` (regressor). */
|
|
586
|
+
export declare class AOMRidgeMKLSuperblock extends NativeEstimator implements Regressor {
|
|
587
|
+
readonly methodId = "aom_pop.ridge_mkl_superblock";
|
|
588
|
+
readonly paramTypes: {
|
|
589
|
+
readonly op_kinds: "int_array";
|
|
590
|
+
readonly param_offsets: "int_array";
|
|
591
|
+
readonly op_params: "double_array";
|
|
592
|
+
readonly alphas: "double_array";
|
|
593
|
+
readonly cv: "int";
|
|
594
|
+
readonly mkl_top_k: "int";
|
|
595
|
+
readonly block_scaling: "enum";
|
|
596
|
+
readonly center_x: "bool";
|
|
597
|
+
readonly center_y: "bool";
|
|
598
|
+
};
|
|
599
|
+
constructor(params?: AOMRidgeMKLSuperblockParams);
|
|
600
|
+
predict(X: Matrix): Matrix;
|
|
601
|
+
}
|
|
602
|
+
/** Parameters of AOMRidgeSuperblock; unset values take the native defaults. */
|
|
603
|
+
export interface AOMRidgeSuperblockParams {
|
|
604
|
+
/** Default [0, 7, 7, 8, 8, 9, 9, 10, 15]. */
|
|
605
|
+
op_kinds?: number[];
|
|
606
|
+
/** Default [0, 0, 1, 2, 4, 6, 9, 12, 15, 16]. */
|
|
607
|
+
param_offsets?: number[];
|
|
608
|
+
/** Default [1, 2, 5, 2, 7, 2, 7, 2, 1, 11, 2, 2, 5, 5, 1, 1]. */
|
|
609
|
+
op_params?: number[];
|
|
610
|
+
/** Default [0.0001, 0.01, 1, 100]. */
|
|
611
|
+
alphas?: number[];
|
|
612
|
+
/** Default 5. */
|
|
613
|
+
cv?: number;
|
|
614
|
+
/** Default "rms". */
|
|
615
|
+
block_scaling?: "rms" | "none";
|
|
616
|
+
/** Default true. */
|
|
617
|
+
center_x?: boolean;
|
|
618
|
+
/** Default true. */
|
|
619
|
+
center_y?: boolean;
|
|
620
|
+
}
|
|
621
|
+
/** Native `aom_pop.ridge_superblock` (regressor). */
|
|
622
|
+
export declare class AOMRidgeSuperblock extends NativeEstimator implements Regressor {
|
|
623
|
+
readonly methodId = "aom_pop.ridge_superblock";
|
|
624
|
+
readonly paramTypes: {
|
|
625
|
+
readonly op_kinds: "int_array";
|
|
626
|
+
readonly param_offsets: "int_array";
|
|
627
|
+
readonly op_params: "double_array";
|
|
628
|
+
readonly alphas: "double_array";
|
|
629
|
+
readonly cv: "int";
|
|
630
|
+
readonly block_scaling: "enum";
|
|
631
|
+
readonly center_x: "bool";
|
|
632
|
+
readonly center_y: "bool";
|
|
633
|
+
};
|
|
634
|
+
constructor(params?: AOMRidgeSuperblockParams);
|
|
635
|
+
predict(X: Matrix): Matrix;
|
|
636
|
+
}
|
|
637
|
+
/** Parameters of AOMRobustHPO; unset values take the native defaults. */
|
|
638
|
+
export interface AOMRobustHPOParams {
|
|
639
|
+
/** Default "compact". */
|
|
640
|
+
profile?: "compact" | "wide";
|
|
641
|
+
/** Default 5. */
|
|
642
|
+
cv?: number;
|
|
643
|
+
/** Default "ridge_pls". */
|
|
644
|
+
heads?: "ridge" | "pls" | "ridge_pls";
|
|
645
|
+
}
|
|
646
|
+
/** Native `aom_pop.robust_hpo` (regressor). */
|
|
647
|
+
export declare class AOMRobustHPO extends NativeEstimator implements Regressor {
|
|
648
|
+
readonly methodId = "aom_pop.robust_hpo";
|
|
649
|
+
readonly paramTypes: {
|
|
650
|
+
readonly profile: "enum";
|
|
651
|
+
readonly cv: "int";
|
|
652
|
+
readonly heads: "enum";
|
|
653
|
+
};
|
|
654
|
+
constructor(params?: AOMRobustHPOParams);
|
|
655
|
+
predict(X: Matrix): Matrix;
|
|
656
|
+
}
|
|
657
|
+
/** Parameters of LinearDrift; unset values take the native defaults. */
|
|
658
|
+
export interface LinearDriftParams {
|
|
659
|
+
/** Default -0.05. */
|
|
660
|
+
offset_min?: number;
|
|
661
|
+
/** Default 0.05. */
|
|
662
|
+
offset_max?: number;
|
|
663
|
+
/** Default -0.01. */
|
|
664
|
+
slope_min?: number;
|
|
665
|
+
/** Default 0.01. */
|
|
666
|
+
slope_max?: number;
|
|
667
|
+
/** Default 0. */
|
|
668
|
+
seed?: number;
|
|
669
|
+
}
|
|
670
|
+
/** Native `augmentation.drift.linear_drift` (augmenter). */
|
|
671
|
+
export declare class LinearDrift extends NativeProcedure implements Augmenter {
|
|
672
|
+
readonly methodId = "augmentation.drift.linear_drift";
|
|
673
|
+
readonly paramTypes: {
|
|
674
|
+
readonly offset_min: "double";
|
|
675
|
+
readonly offset_max: "double";
|
|
676
|
+
readonly slope_min: "double";
|
|
677
|
+
readonly slope_max: "double";
|
|
678
|
+
readonly seed: "int";
|
|
679
|
+
};
|
|
680
|
+
constructor(params?: LinearDriftParams);
|
|
681
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
682
|
+
}
|
|
683
|
+
/** Parameters of PathLength; unset values take the native defaults. */
|
|
684
|
+
export interface PathLengthParams {
|
|
685
|
+
/** Default 0.05. */
|
|
686
|
+
path_length_std?: number;
|
|
687
|
+
/** Default 0.1. */
|
|
688
|
+
min_path_length?: number;
|
|
689
|
+
/** Default 0. */
|
|
690
|
+
seed?: number;
|
|
691
|
+
}
|
|
692
|
+
/** Native `augmentation.drift.path_length` (augmenter). */
|
|
693
|
+
export declare class PathLength extends NativeProcedure implements Augmenter {
|
|
694
|
+
readonly methodId = "augmentation.drift.path_length";
|
|
695
|
+
readonly paramTypes: {
|
|
696
|
+
readonly path_length_std: "double";
|
|
697
|
+
readonly min_path_length: "double";
|
|
698
|
+
readonly seed: "int";
|
|
699
|
+
};
|
|
700
|
+
constructor(params?: PathLengthParams);
|
|
701
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
702
|
+
}
|
|
703
|
+
/** Parameters of PolyDrift; unset values take the native defaults. */
|
|
704
|
+
export interface PolyDriftParams {
|
|
705
|
+
/** Default [-0.01, -0.01, -0.01]. */
|
|
706
|
+
coeff_min?: number[];
|
|
707
|
+
/** Default [0.01, 0.01, 0.01]. */
|
|
708
|
+
coeff_max?: number[];
|
|
709
|
+
/** Default 0. */
|
|
710
|
+
seed?: number;
|
|
711
|
+
}
|
|
712
|
+
/** Native `augmentation.drift.poly_drift` (augmenter). */
|
|
713
|
+
export declare class PolyDrift extends NativeProcedure implements Augmenter {
|
|
714
|
+
readonly methodId = "augmentation.drift.poly_drift";
|
|
715
|
+
readonly paramTypes: {
|
|
716
|
+
readonly coeff_min: "double_array";
|
|
717
|
+
readonly coeff_max: "double_array";
|
|
718
|
+
readonly seed: "int";
|
|
719
|
+
};
|
|
720
|
+
constructor(params?: PolyDriftParams);
|
|
721
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
722
|
+
}
|
|
723
|
+
/** Parameters of DetectorRolloff; unset values take the native defaults. */
|
|
724
|
+
export interface DetectorRolloffParams {
|
|
725
|
+
/** Default "generic_nir". */
|
|
726
|
+
detector_model?: "ingaas_standard" | "ingaas_extended" | "pbs" | "silicon_ccd" | "generic_nir";
|
|
727
|
+
/** Default 1. */
|
|
728
|
+
effect_strength?: number;
|
|
729
|
+
/** Default 0.02. */
|
|
730
|
+
noise_amplification?: number;
|
|
731
|
+
/** Default true. */
|
|
732
|
+
include_baseline_distortion?: boolean;
|
|
733
|
+
/** Default 0. */
|
|
734
|
+
seed?: number;
|
|
735
|
+
}
|
|
736
|
+
/** Native `augmentation.edge_artifacts.detector_rolloff` (augmenter). Required inputs: axis. */
|
|
737
|
+
export declare class DetectorRolloff extends NativeProcedure implements Augmenter {
|
|
738
|
+
readonly methodId = "augmentation.edge_artifacts.detector_rolloff";
|
|
739
|
+
readonly paramTypes: {
|
|
740
|
+
readonly detector_model: "enum";
|
|
741
|
+
readonly effect_strength: "double";
|
|
742
|
+
readonly noise_amplification: "double";
|
|
743
|
+
readonly include_baseline_distortion: "bool";
|
|
744
|
+
readonly seed: "int";
|
|
745
|
+
};
|
|
746
|
+
constructor(params?: DetectorRolloffParams);
|
|
747
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
748
|
+
}
|
|
749
|
+
/** Parameters of EdgeArtifacts; unset values take the native defaults. */
|
|
750
|
+
export interface EdgeArtifactsParams {
|
|
751
|
+
/** Default true. */
|
|
752
|
+
detector_roll_off?: boolean;
|
|
753
|
+
/** Default true. */
|
|
754
|
+
stray_light?: boolean;
|
|
755
|
+
/** Default true. */
|
|
756
|
+
edge_curvature?: boolean;
|
|
757
|
+
/** Default true. */
|
|
758
|
+
truncated_peaks?: boolean;
|
|
759
|
+
/** Default 1. */
|
|
760
|
+
overall_strength?: number;
|
|
761
|
+
/** Default "generic_nir". */
|
|
762
|
+
detector_model?: "ingaas_standard" | "ingaas_extended" | "pbs" | "silicon_ccd" | "generic_nir";
|
|
763
|
+
/** Default 0. */
|
|
764
|
+
seed?: number;
|
|
765
|
+
}
|
|
766
|
+
/** Native `augmentation.edge_artifacts.edge_artifacts` (augmenter). Required inputs: axis. */
|
|
767
|
+
export declare class EdgeArtifacts extends NativeProcedure implements Augmenter {
|
|
768
|
+
readonly methodId = "augmentation.edge_artifacts.edge_artifacts";
|
|
769
|
+
readonly paramTypes: {
|
|
770
|
+
readonly detector_roll_off: "bool";
|
|
771
|
+
readonly stray_light: "bool";
|
|
772
|
+
readonly edge_curvature: "bool";
|
|
773
|
+
readonly truncated_peaks: "bool";
|
|
774
|
+
readonly overall_strength: "double";
|
|
775
|
+
readonly detector_model: "enum";
|
|
776
|
+
readonly seed: "int";
|
|
777
|
+
};
|
|
778
|
+
constructor(params?: EdgeArtifactsParams);
|
|
779
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
780
|
+
}
|
|
781
|
+
/** Parameters of EdgeCurvature; unset values take the native defaults. */
|
|
782
|
+
export interface EdgeCurvatureParams {
|
|
783
|
+
/** Default 0.02. */
|
|
784
|
+
curvature_strength?: number;
|
|
785
|
+
/** Default "random". */
|
|
786
|
+
curvature_type?: "random" | "smile" | "frown" | "asymmetric";
|
|
787
|
+
/** Default 0. */
|
|
788
|
+
asymmetry?: number;
|
|
789
|
+
/** Default 0.7. */
|
|
790
|
+
edge_focus?: number;
|
|
791
|
+
/** Default 0. */
|
|
792
|
+
seed?: number;
|
|
793
|
+
}
|
|
794
|
+
/** Native `augmentation.edge_artifacts.edge_curvature` (augmenter). Required inputs: axis. */
|
|
795
|
+
export declare class EdgeCurvature extends NativeProcedure implements Augmenter {
|
|
796
|
+
readonly methodId = "augmentation.edge_artifacts.edge_curvature";
|
|
797
|
+
readonly paramTypes: {
|
|
798
|
+
readonly curvature_strength: "double";
|
|
799
|
+
readonly curvature_type: "enum";
|
|
800
|
+
readonly asymmetry: "double";
|
|
801
|
+
readonly edge_focus: "double";
|
|
802
|
+
readonly seed: "int";
|
|
803
|
+
};
|
|
804
|
+
constructor(params?: EdgeCurvatureParams);
|
|
805
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
806
|
+
}
|
|
807
|
+
/** Parameters of StrayLight; unset values take the native defaults. */
|
|
808
|
+
export interface StrayLightParams {
|
|
809
|
+
/** Default 0.001. */
|
|
810
|
+
stray_light_fraction?: number;
|
|
811
|
+
/** Default 2. */
|
|
812
|
+
edge_enhancement?: number;
|
|
813
|
+
/** Default 0.1. */
|
|
814
|
+
edge_width?: number;
|
|
815
|
+
/** Default true. */
|
|
816
|
+
include_peak_truncation?: boolean;
|
|
817
|
+
/** Default 0. */
|
|
818
|
+
seed?: number;
|
|
819
|
+
}
|
|
820
|
+
/** Native `augmentation.edge_artifacts.stray_light` (augmenter). */
|
|
821
|
+
export declare class StrayLight extends NativeProcedure implements Augmenter {
|
|
822
|
+
readonly methodId = "augmentation.edge_artifacts.stray_light";
|
|
823
|
+
readonly paramTypes: {
|
|
824
|
+
readonly stray_light_fraction: "double";
|
|
825
|
+
readonly edge_enhancement: "double";
|
|
826
|
+
readonly edge_width: "double";
|
|
827
|
+
readonly include_peak_truncation: "bool";
|
|
828
|
+
readonly seed: "int";
|
|
829
|
+
};
|
|
830
|
+
constructor(params?: StrayLightParams);
|
|
831
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
832
|
+
}
|
|
833
|
+
/** Parameters of TruncatedPeak; unset values take the native defaults. */
|
|
834
|
+
export interface TruncatedPeakParams {
|
|
835
|
+
/** Default 0.5. */
|
|
836
|
+
peak_probability?: number;
|
|
837
|
+
/** Default 0.01. */
|
|
838
|
+
amplitude_min?: number;
|
|
839
|
+
/** Default 0.1. */
|
|
840
|
+
amplitude_max?: number;
|
|
841
|
+
/** Default 50. */
|
|
842
|
+
width_min?: number;
|
|
843
|
+
/** Default 200. */
|
|
844
|
+
width_max?: number;
|
|
845
|
+
/** Default true. */
|
|
846
|
+
left_edge?: boolean;
|
|
847
|
+
/** Default true. */
|
|
848
|
+
right_edge?: boolean;
|
|
849
|
+
/** Default 0. */
|
|
850
|
+
seed?: number;
|
|
851
|
+
}
|
|
852
|
+
/** Native `augmentation.edge_artifacts.truncated_peak` (augmenter). Required inputs: axis. */
|
|
853
|
+
export declare class TruncatedPeak extends NativeProcedure implements Augmenter {
|
|
854
|
+
readonly methodId = "augmentation.edge_artifacts.truncated_peak";
|
|
855
|
+
readonly paramTypes: {
|
|
856
|
+
readonly peak_probability: "double";
|
|
857
|
+
readonly amplitude_min: "double";
|
|
858
|
+
readonly amplitude_max: "double";
|
|
859
|
+
readonly width_min: "double";
|
|
860
|
+
readonly width_max: "double";
|
|
861
|
+
readonly left_edge: "bool";
|
|
862
|
+
readonly right_edge: "bool";
|
|
863
|
+
readonly seed: "int";
|
|
864
|
+
};
|
|
865
|
+
constructor(params?: TruncatedPeakParams);
|
|
866
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
867
|
+
}
|
|
868
|
+
/** Parameters of Moisture; unset values take the native defaults. */
|
|
869
|
+
export interface MoistureParams {
|
|
870
|
+
/** Default 0. */
|
|
871
|
+
water_activity_delta?: number;
|
|
872
|
+
/** Default false. */
|
|
873
|
+
use_aw_range?: boolean;
|
|
874
|
+
/** Default 0. */
|
|
875
|
+
aw_low?: number;
|
|
876
|
+
/** Default 1. */
|
|
877
|
+
aw_high?: number;
|
|
878
|
+
/** Default 0.5. */
|
|
879
|
+
reference_water_activity?: number;
|
|
880
|
+
/** Default 0.3. */
|
|
881
|
+
free_water_fraction?: number;
|
|
882
|
+
/** Default 25. */
|
|
883
|
+
bound_water_shift?: number;
|
|
884
|
+
/** Default 0.1. */
|
|
885
|
+
moisture_content?: number;
|
|
886
|
+
/** Default true. */
|
|
887
|
+
enable_shift?: boolean;
|
|
888
|
+
/** Default true. */
|
|
889
|
+
enable_intensity?: boolean;
|
|
890
|
+
/** Default 0. */
|
|
891
|
+
seed?: number;
|
|
892
|
+
}
|
|
893
|
+
/** Native `augmentation.environmental.moisture` (augmenter). Required inputs: axis. */
|
|
894
|
+
export declare class Moisture extends NativeProcedure implements Augmenter {
|
|
895
|
+
readonly methodId = "augmentation.environmental.moisture";
|
|
896
|
+
readonly paramTypes: {
|
|
897
|
+
readonly water_activity_delta: "double";
|
|
898
|
+
readonly use_aw_range: "bool";
|
|
899
|
+
readonly aw_low: "double";
|
|
900
|
+
readonly aw_high: "double";
|
|
901
|
+
readonly reference_water_activity: "double";
|
|
902
|
+
readonly free_water_fraction: "double";
|
|
903
|
+
readonly bound_water_shift: "double";
|
|
904
|
+
readonly moisture_content: "double";
|
|
905
|
+
readonly enable_shift: "bool";
|
|
906
|
+
readonly enable_intensity: "bool";
|
|
907
|
+
readonly seed: "int";
|
|
908
|
+
};
|
|
909
|
+
constructor(params?: MoistureParams);
|
|
910
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
911
|
+
}
|
|
912
|
+
/** Parameters of Temperature; unset values take the native defaults. */
|
|
913
|
+
export interface TemperatureParams {
|
|
914
|
+
/** Default 0. */
|
|
915
|
+
temperature_delta?: number;
|
|
916
|
+
/** Default false. */
|
|
917
|
+
use_temp_range?: boolean;
|
|
918
|
+
/** Default -5. */
|
|
919
|
+
temp_low?: number;
|
|
920
|
+
/** Default 5. */
|
|
921
|
+
temp_high?: number;
|
|
922
|
+
/** Default true. */
|
|
923
|
+
enable_shift?: boolean;
|
|
924
|
+
/** Default true. */
|
|
925
|
+
enable_intensity?: boolean;
|
|
926
|
+
/** Default true. */
|
|
927
|
+
enable_broadening?: boolean;
|
|
928
|
+
/** Default true. */
|
|
929
|
+
region_specific?: boolean;
|
|
930
|
+
/** Default 0. */
|
|
931
|
+
seed?: number;
|
|
932
|
+
}
|
|
933
|
+
/** Native `augmentation.environmental.temperature` (augmenter). Required inputs: axis. */
|
|
934
|
+
export declare class Temperature extends NativeProcedure implements Augmenter {
|
|
935
|
+
readonly methodId = "augmentation.environmental.temperature";
|
|
936
|
+
readonly paramTypes: {
|
|
937
|
+
readonly temperature_delta: "double";
|
|
938
|
+
readonly use_temp_range: "bool";
|
|
939
|
+
readonly temp_low: "double";
|
|
940
|
+
readonly temp_high: "double";
|
|
941
|
+
readonly enable_shift: "bool";
|
|
942
|
+
readonly enable_intensity: "bool";
|
|
943
|
+
readonly enable_broadening: "bool";
|
|
944
|
+
readonly region_specific: "bool";
|
|
945
|
+
readonly seed: "int";
|
|
946
|
+
};
|
|
947
|
+
constructor(params?: TemperatureParams);
|
|
948
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
949
|
+
}
|
|
950
|
+
/** Parameters of LocalMixup; unset values take the native defaults. */
|
|
951
|
+
export interface LocalMixupParams {
|
|
952
|
+
/** Default 0.2. */
|
|
953
|
+
alpha?: number;
|
|
954
|
+
/** Default 5. */
|
|
955
|
+
k_neighbors?: number;
|
|
956
|
+
/** Default 0. */
|
|
957
|
+
seed?: number;
|
|
958
|
+
}
|
|
959
|
+
/** Native `augmentation.mixup.local_mixup` (augmenter). Required inputs: y. */
|
|
960
|
+
export declare class LocalMixup extends NativeProcedure implements TargetMixingAugmenter {
|
|
961
|
+
readonly methodId = "augmentation.mixup.local_mixup";
|
|
962
|
+
readonly paramTypes: {
|
|
963
|
+
readonly alpha: "double";
|
|
964
|
+
readonly k_neighbors: "int";
|
|
965
|
+
readonly seed: "int";
|
|
966
|
+
};
|
|
967
|
+
constructor(params?: LocalMixupParams);
|
|
968
|
+
augment(X: Matrix, y: Matrix | Float64Array | ArrayLike<number>, axis?: Float64Array | number[]): {
|
|
969
|
+
X: Matrix;
|
|
970
|
+
Y: Matrix;
|
|
971
|
+
};
|
|
972
|
+
}
|
|
973
|
+
/** Parameters of Mixup; unset values take the native defaults. */
|
|
974
|
+
export interface MixupParams {
|
|
975
|
+
/** Default 0.2. */
|
|
976
|
+
alpha?: number;
|
|
977
|
+
/** Default 0. */
|
|
978
|
+
seed?: number;
|
|
979
|
+
}
|
|
980
|
+
/** Native `augmentation.mixup.mixup` (augmenter). Required inputs: y. */
|
|
981
|
+
export declare class Mixup extends NativeProcedure implements TargetMixingAugmenter {
|
|
982
|
+
readonly methodId = "augmentation.mixup.mixup";
|
|
983
|
+
readonly paramTypes: {
|
|
984
|
+
readonly alpha: "double";
|
|
985
|
+
readonly seed: "int";
|
|
986
|
+
};
|
|
987
|
+
constructor(params?: MixupParams);
|
|
988
|
+
augment(X: Matrix, y: Matrix | Float64Array | ArrayLike<number>, axis?: Float64Array | number[]): {
|
|
989
|
+
X: Matrix;
|
|
990
|
+
Y: Matrix;
|
|
991
|
+
};
|
|
992
|
+
}
|
|
993
|
+
/** Parameters of GaussianNoise; unset values take the native defaults. */
|
|
994
|
+
export interface GaussianNoiseParams {
|
|
995
|
+
/** Default 0.01. */
|
|
996
|
+
sigma?: number;
|
|
997
|
+
/** Default 0. */
|
|
998
|
+
seed?: number;
|
|
999
|
+
}
|
|
1000
|
+
/** Native `augmentation.noise.gaussian_noise` (augmenter). */
|
|
1001
|
+
export declare class GaussianNoise extends NativeProcedure implements Augmenter {
|
|
1002
|
+
readonly methodId = "augmentation.noise.gaussian_noise";
|
|
1003
|
+
readonly paramTypes: {
|
|
1004
|
+
readonly sigma: "double";
|
|
1005
|
+
readonly seed: "int";
|
|
1006
|
+
};
|
|
1007
|
+
constructor(params?: GaussianNoiseParams);
|
|
1008
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
1009
|
+
}
|
|
1010
|
+
/** Parameters of HeteroNoise; unset values take the native defaults. */
|
|
1011
|
+
export interface HeteroNoiseParams {
|
|
1012
|
+
/** Default 0.001. */
|
|
1013
|
+
noise_base?: number;
|
|
1014
|
+
/** Default 0.01. */
|
|
1015
|
+
noise_signal_dep?: number;
|
|
1016
|
+
/** Default 0. */
|
|
1017
|
+
seed?: number;
|
|
1018
|
+
}
|
|
1019
|
+
/** Native `augmentation.noise.hetero_noise` (augmenter). */
|
|
1020
|
+
export declare class HeteroNoise extends NativeProcedure implements Augmenter {
|
|
1021
|
+
readonly methodId = "augmentation.noise.hetero_noise";
|
|
1022
|
+
readonly paramTypes: {
|
|
1023
|
+
readonly noise_base: "double";
|
|
1024
|
+
readonly noise_signal_dep: "double";
|
|
1025
|
+
readonly seed: "int";
|
|
1026
|
+
};
|
|
1027
|
+
constructor(params?: HeteroNoiseParams);
|
|
1028
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
1029
|
+
}
|
|
1030
|
+
/** Parameters of MultiplicativeNoise; unset values take the native defaults. */
|
|
1031
|
+
export interface MultiplicativeNoiseParams {
|
|
1032
|
+
/** Default 0.01. */
|
|
1033
|
+
sigma_gain?: number;
|
|
1034
|
+
/** Default 0. */
|
|
1035
|
+
seed?: number;
|
|
1036
|
+
}
|
|
1037
|
+
/** Native `augmentation.noise.multiplicative_noise` (augmenter). */
|
|
1038
|
+
export declare class MultiplicativeNoise extends NativeProcedure implements Augmenter {
|
|
1039
|
+
readonly methodId = "augmentation.noise.multiplicative_noise";
|
|
1040
|
+
readonly paramTypes: {
|
|
1041
|
+
readonly sigma_gain: "double";
|
|
1042
|
+
readonly seed: "int";
|
|
1043
|
+
};
|
|
1044
|
+
constructor(params?: MultiplicativeNoiseParams);
|
|
1045
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
1046
|
+
}
|
|
1047
|
+
/** Parameters of SpikeNoise; unset values take the native defaults. */
|
|
1048
|
+
export interface SpikeNoiseParams {
|
|
1049
|
+
/** Default 1. */
|
|
1050
|
+
n_spikes_min?: number;
|
|
1051
|
+
/** Default 3. */
|
|
1052
|
+
n_spikes_max?: number;
|
|
1053
|
+
/** Default -0.1. */
|
|
1054
|
+
amplitude_min?: number;
|
|
1055
|
+
/** Default 0.1. */
|
|
1056
|
+
amplitude_max?: number;
|
|
1057
|
+
/** Default 0. */
|
|
1058
|
+
seed?: number;
|
|
1059
|
+
}
|
|
1060
|
+
/** Native `augmentation.noise.spike_noise` (augmenter). */
|
|
1061
|
+
export declare class SpikeNoise extends NativeProcedure implements Augmenter {
|
|
1062
|
+
readonly methodId = "augmentation.noise.spike_noise";
|
|
1063
|
+
readonly paramTypes: {
|
|
1064
|
+
readonly n_spikes_min: "int";
|
|
1065
|
+
readonly n_spikes_max: "int";
|
|
1066
|
+
readonly amplitude_min: "double";
|
|
1067
|
+
readonly amplitude_max: "double";
|
|
1068
|
+
readonly seed: "int";
|
|
1069
|
+
};
|
|
1070
|
+
constructor(params?: SpikeNoiseParams);
|
|
1071
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
1072
|
+
}
|
|
1073
|
+
/** Parameters of RandomXOp; unset values take the native defaults. */
|
|
1074
|
+
export interface RandomXOpParams {
|
|
1075
|
+
/** Default "multiply". */
|
|
1076
|
+
op_kind?: "multiply" | "add" | "subtract";
|
|
1077
|
+
/** Default 0.97. */
|
|
1078
|
+
operator_range_min?: number;
|
|
1079
|
+
/** Default 1.03. */
|
|
1080
|
+
operator_range_max?: number;
|
|
1081
|
+
/** Default 0. */
|
|
1082
|
+
seed?: number;
|
|
1083
|
+
}
|
|
1084
|
+
/** Native `augmentation.random.random_x_op` (augmenter). */
|
|
1085
|
+
export declare class RandomXOp extends NativeProcedure implements Augmenter {
|
|
1086
|
+
readonly methodId = "augmentation.random.random_x_op";
|
|
1087
|
+
readonly paramTypes: {
|
|
1088
|
+
readonly op_kind: "enum";
|
|
1089
|
+
readonly operator_range_min: "double";
|
|
1090
|
+
readonly operator_range_max: "double";
|
|
1091
|
+
readonly seed: "int";
|
|
1092
|
+
};
|
|
1093
|
+
constructor(params?: RandomXOpParams);
|
|
1094
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
1095
|
+
}
|
|
1096
|
+
/** Parameters of RotateTranslate; unset values take the native defaults. */
|
|
1097
|
+
export interface RotateTranslateParams {
|
|
1098
|
+
/** Default 2. */
|
|
1099
|
+
p_range?: number;
|
|
1100
|
+
/** Default 3. */
|
|
1101
|
+
y_factor?: number;
|
|
1102
|
+
/** Default 0. */
|
|
1103
|
+
seed?: number;
|
|
1104
|
+
}
|
|
1105
|
+
/** Native `augmentation.random.rotate_translate` (augmenter). */
|
|
1106
|
+
export declare class RotateTranslate extends NativeProcedure implements Augmenter {
|
|
1107
|
+
readonly methodId = "augmentation.random.rotate_translate";
|
|
1108
|
+
readonly paramTypes: {
|
|
1109
|
+
readonly p_range: "double";
|
|
1110
|
+
readonly y_factor: "double";
|
|
1111
|
+
readonly seed: "int";
|
|
1112
|
+
};
|
|
1113
|
+
constructor(params?: RotateTranslateParams);
|
|
1114
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
1115
|
+
}
|
|
1116
|
+
/** Parameters of BatchEffect; unset values take the native defaults. */
|
|
1117
|
+
export interface BatchEffectParams {
|
|
1118
|
+
/** Default 0. */
|
|
1119
|
+
offset_std?: number;
|
|
1120
|
+
/** Default 0. */
|
|
1121
|
+
slope_std?: number;
|
|
1122
|
+
/** Default 0. */
|
|
1123
|
+
gain_std?: number;
|
|
1124
|
+
/** Default "sample". */
|
|
1125
|
+
variation_scope?: "sample" | "batch";
|
|
1126
|
+
/** Default 0. */
|
|
1127
|
+
seed?: number;
|
|
1128
|
+
}
|
|
1129
|
+
/** Native `augmentation.scattering.batch_effect` (augmenter). */
|
|
1130
|
+
export declare class BatchEffect extends NativeProcedure implements Augmenter {
|
|
1131
|
+
readonly methodId = "augmentation.scattering.batch_effect";
|
|
1132
|
+
readonly paramTypes: {
|
|
1133
|
+
readonly offset_std: "double";
|
|
1134
|
+
readonly slope_std: "double";
|
|
1135
|
+
readonly gain_std: "double";
|
|
1136
|
+
readonly variation_scope: "enum";
|
|
1137
|
+
readonly seed: "int";
|
|
1138
|
+
};
|
|
1139
|
+
constructor(params?: BatchEffectParams);
|
|
1140
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
1141
|
+
}
|
|
1142
|
+
/** Parameters of DeadBand; unset values take the native defaults. */
|
|
1143
|
+
export interface DeadBandParams {
|
|
1144
|
+
/** Default 1. */
|
|
1145
|
+
n_bands?: number;
|
|
1146
|
+
/** Default 5. */
|
|
1147
|
+
width_low?: number;
|
|
1148
|
+
/** Default 10. */
|
|
1149
|
+
width_high?: number;
|
|
1150
|
+
/** Default 0.05. */
|
|
1151
|
+
noise_std?: number;
|
|
1152
|
+
/** Default 0. */
|
|
1153
|
+
probability?: number;
|
|
1154
|
+
/** Default "sample". */
|
|
1155
|
+
variation_scope?: "sample" | "batch";
|
|
1156
|
+
/** Default 0. */
|
|
1157
|
+
seed?: number;
|
|
1158
|
+
}
|
|
1159
|
+
/** Native `augmentation.scattering.dead_band` (augmenter). */
|
|
1160
|
+
export declare class DeadBand extends NativeProcedure implements Augmenter {
|
|
1161
|
+
readonly methodId = "augmentation.scattering.dead_band";
|
|
1162
|
+
readonly paramTypes: {
|
|
1163
|
+
readonly n_bands: "int";
|
|
1164
|
+
readonly width_low: "int";
|
|
1165
|
+
readonly width_high: "int";
|
|
1166
|
+
readonly noise_std: "double";
|
|
1167
|
+
readonly probability: "double";
|
|
1168
|
+
readonly variation_scope: "enum";
|
|
1169
|
+
readonly seed: "int";
|
|
1170
|
+
};
|
|
1171
|
+
constructor(params?: DeadBandParams);
|
|
1172
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
1173
|
+
}
|
|
1174
|
+
/** Parameters of EMSCDistort; unset values take the native defaults. */
|
|
1175
|
+
export interface EMSCDistortParams {
|
|
1176
|
+
/** Default 0.9. */
|
|
1177
|
+
mult_low?: number;
|
|
1178
|
+
/** Default 1.1. */
|
|
1179
|
+
mult_high?: number;
|
|
1180
|
+
/** Default -0.05. */
|
|
1181
|
+
add_low?: number;
|
|
1182
|
+
/** Default 0.05. */
|
|
1183
|
+
add_high?: number;
|
|
1184
|
+
/** Default 2. */
|
|
1185
|
+
polynomial_order?: number;
|
|
1186
|
+
/** Default 0.02. */
|
|
1187
|
+
polynomial_strength?: number;
|
|
1188
|
+
/** Default 0.3. */
|
|
1189
|
+
correlation?: number;
|
|
1190
|
+
/** Default 0. */
|
|
1191
|
+
seed?: number;
|
|
1192
|
+
}
|
|
1193
|
+
/** Native `augmentation.scattering.emsc_distort` (augmenter). Required inputs: axis. */
|
|
1194
|
+
export declare class EMSCDistort extends NativeProcedure implements Augmenter {
|
|
1195
|
+
readonly methodId = "augmentation.scattering.emsc_distort";
|
|
1196
|
+
readonly paramTypes: {
|
|
1197
|
+
readonly mult_low: "double";
|
|
1198
|
+
readonly mult_high: "double";
|
|
1199
|
+
readonly add_low: "double";
|
|
1200
|
+
readonly add_high: "double";
|
|
1201
|
+
readonly polynomial_order: "int";
|
|
1202
|
+
readonly polynomial_strength: "double";
|
|
1203
|
+
readonly correlation: "double";
|
|
1204
|
+
readonly seed: "int";
|
|
1205
|
+
};
|
|
1206
|
+
constructor(params?: EMSCDistortParams);
|
|
1207
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
1208
|
+
}
|
|
1209
|
+
/** Parameters of InstrumentBroaden; unset values take the native defaults. */
|
|
1210
|
+
export interface InstrumentBroadenParams {
|
|
1211
|
+
/** Default 5. */
|
|
1212
|
+
fwhm?: number;
|
|
1213
|
+
/** Default false. */
|
|
1214
|
+
use_fwhm_range?: boolean;
|
|
1215
|
+
/** Default 3. */
|
|
1216
|
+
fwhm_low?: number;
|
|
1217
|
+
/** Default 8. */
|
|
1218
|
+
fwhm_high?: number;
|
|
1219
|
+
/** Default "sample". */
|
|
1220
|
+
variation_scope?: "sample" | "batch";
|
|
1221
|
+
/** Default 0. */
|
|
1222
|
+
seed?: number;
|
|
1223
|
+
}
|
|
1224
|
+
/** Native `augmentation.scattering.instrument_broaden` (augmenter). */
|
|
1225
|
+
export declare class InstrumentBroaden extends NativeProcedure implements Augmenter {
|
|
1226
|
+
readonly methodId = "augmentation.scattering.instrument_broaden";
|
|
1227
|
+
readonly paramTypes: {
|
|
1228
|
+
readonly fwhm: "double";
|
|
1229
|
+
readonly use_fwhm_range: "bool";
|
|
1230
|
+
readonly fwhm_low: "double";
|
|
1231
|
+
readonly fwhm_high: "double";
|
|
1232
|
+
readonly variation_scope: "enum";
|
|
1233
|
+
readonly seed: "int";
|
|
1234
|
+
};
|
|
1235
|
+
constructor(params?: InstrumentBroadenParams);
|
|
1236
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
1237
|
+
}
|
|
1238
|
+
/** Parameters of ParticleSize; unset values take the native defaults. */
|
|
1239
|
+
export interface ParticleSizeParams {
|
|
1240
|
+
/** Default 50. */
|
|
1241
|
+
mean_size_um?: number;
|
|
1242
|
+
/** Default 15. */
|
|
1243
|
+
size_variation_um?: number;
|
|
1244
|
+
/** Default false. */
|
|
1245
|
+
use_size_range?: boolean;
|
|
1246
|
+
/** Default 5. */
|
|
1247
|
+
size_range_low_um?: number;
|
|
1248
|
+
/** Default 500. */
|
|
1249
|
+
size_range_high_um?: number;
|
|
1250
|
+
/** Default 50. */
|
|
1251
|
+
reference_size_um?: number;
|
|
1252
|
+
/** Default 1.5. */
|
|
1253
|
+
wavelength_exponent?: number;
|
|
1254
|
+
/** Default 0.1. */
|
|
1255
|
+
size_effect_strength?: number;
|
|
1256
|
+
/** Default true. */
|
|
1257
|
+
include_path_length?: boolean;
|
|
1258
|
+
/** Default 0.5. */
|
|
1259
|
+
path_length_sensitivity?: number;
|
|
1260
|
+
/** Default 0. */
|
|
1261
|
+
seed?: number;
|
|
1262
|
+
}
|
|
1263
|
+
/** Native `augmentation.scattering.particle_size` (augmenter). Required inputs: axis. */
|
|
1264
|
+
export declare class ParticleSize extends NativeProcedure implements Augmenter {
|
|
1265
|
+
readonly methodId = "augmentation.scattering.particle_size";
|
|
1266
|
+
readonly paramTypes: {
|
|
1267
|
+
readonly mean_size_um: "double";
|
|
1268
|
+
readonly size_variation_um: "double";
|
|
1269
|
+
readonly use_size_range: "bool";
|
|
1270
|
+
readonly size_range_low_um: "double";
|
|
1271
|
+
readonly size_range_high_um: "double";
|
|
1272
|
+
readonly reference_size_um: "double";
|
|
1273
|
+
readonly wavelength_exponent: "double";
|
|
1274
|
+
readonly size_effect_strength: "double";
|
|
1275
|
+
readonly include_path_length: "bool";
|
|
1276
|
+
readonly path_length_sensitivity: "double";
|
|
1277
|
+
readonly seed: "int";
|
|
1278
|
+
};
|
|
1279
|
+
constructor(params?: ParticleSizeParams);
|
|
1280
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
1281
|
+
}
|
|
1282
|
+
/** Parameters of ScatterSimMSC; unset values take the native defaults. */
|
|
1283
|
+
export interface ScatterSimMSCParams {
|
|
1284
|
+
/** Default -0.05. */
|
|
1285
|
+
a_low?: number;
|
|
1286
|
+
/** Default 0.05. */
|
|
1287
|
+
a_high?: number;
|
|
1288
|
+
/** Default 0.9. */
|
|
1289
|
+
b_low?: number;
|
|
1290
|
+
/** Default 1.1. */
|
|
1291
|
+
b_high?: number;
|
|
1292
|
+
/** Default 0. */
|
|
1293
|
+
seed?: number;
|
|
1294
|
+
}
|
|
1295
|
+
/** Native `augmentation.scattering.scatter_sim_msc` (augmenter). */
|
|
1296
|
+
export declare class ScatterSimMSC extends NativeProcedure implements Augmenter {
|
|
1297
|
+
readonly methodId = "augmentation.scattering.scatter_sim_msc";
|
|
1298
|
+
readonly paramTypes: {
|
|
1299
|
+
readonly a_low: "double";
|
|
1300
|
+
readonly a_high: "double";
|
|
1301
|
+
readonly b_low: "double";
|
|
1302
|
+
readonly b_high: "double";
|
|
1303
|
+
readonly seed: "int";
|
|
1304
|
+
};
|
|
1305
|
+
constructor(params?: ScatterSimMSCParams);
|
|
1306
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
1307
|
+
}
|
|
1308
|
+
/** Parameters of BandMask; unset values take the native defaults. */
|
|
1309
|
+
export interface BandMaskParams {
|
|
1310
|
+
/** Default 1. */
|
|
1311
|
+
n_bands_lo?: number;
|
|
1312
|
+
/** Default 3. */
|
|
1313
|
+
n_bands_hi?: number;
|
|
1314
|
+
/** Default 5. */
|
|
1315
|
+
bw_lo?: number;
|
|
1316
|
+
/** Default 15. */
|
|
1317
|
+
bw_hi?: number;
|
|
1318
|
+
/** Default "zero". */
|
|
1319
|
+
mode?: "zero" | "interp";
|
|
1320
|
+
/** Default 0. */
|
|
1321
|
+
seed?: number;
|
|
1322
|
+
}
|
|
1323
|
+
/** Native `augmentation.spectral.band_mask` (augmenter). */
|
|
1324
|
+
export declare class BandMask extends NativeProcedure implements Augmenter {
|
|
1325
|
+
readonly methodId = "augmentation.spectral.band_mask";
|
|
1326
|
+
readonly paramTypes: {
|
|
1327
|
+
readonly n_bands_lo: "int";
|
|
1328
|
+
readonly n_bands_hi: "int";
|
|
1329
|
+
readonly bw_lo: "int";
|
|
1330
|
+
readonly bw_hi: "int";
|
|
1331
|
+
readonly mode: "enum";
|
|
1332
|
+
readonly seed: "int";
|
|
1333
|
+
};
|
|
1334
|
+
constructor(params?: BandMaskParams);
|
|
1335
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
1336
|
+
}
|
|
1337
|
+
/** Parameters of BandPerturb; unset values take the native defaults. */
|
|
1338
|
+
export interface BandPerturbParams {
|
|
1339
|
+
/** Default 3. */
|
|
1340
|
+
n_bands?: number;
|
|
1341
|
+
/** Default 5. */
|
|
1342
|
+
bw_lo?: number;
|
|
1343
|
+
/** Default 15. */
|
|
1344
|
+
bw_hi?: number;
|
|
1345
|
+
/** Default 0.9. */
|
|
1346
|
+
gain_lo?: number;
|
|
1347
|
+
/** Default 1.1. */
|
|
1348
|
+
gain_hi?: number;
|
|
1349
|
+
/** Default -0.01. */
|
|
1350
|
+
offset_lo?: number;
|
|
1351
|
+
/** Default 0.01. */
|
|
1352
|
+
offset_hi?: number;
|
|
1353
|
+
/** Default 0. */
|
|
1354
|
+
seed?: number;
|
|
1355
|
+
}
|
|
1356
|
+
/** Native `augmentation.spectral.band_perturb` (augmenter). */
|
|
1357
|
+
export declare class BandPerturb extends NativeProcedure implements Augmenter {
|
|
1358
|
+
readonly methodId = "augmentation.spectral.band_perturb";
|
|
1359
|
+
readonly paramTypes: {
|
|
1360
|
+
readonly n_bands: "int";
|
|
1361
|
+
readonly bw_lo: "int";
|
|
1362
|
+
readonly bw_hi: "int";
|
|
1363
|
+
readonly gain_lo: "double";
|
|
1364
|
+
readonly gain_hi: "double";
|
|
1365
|
+
readonly offset_lo: "double";
|
|
1366
|
+
readonly offset_hi: "double";
|
|
1367
|
+
readonly seed: "int";
|
|
1368
|
+
};
|
|
1369
|
+
constructor(params?: BandPerturbParams);
|
|
1370
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
1371
|
+
}
|
|
1372
|
+
/** Parameters of ChannelDropout; unset values take the native defaults. */
|
|
1373
|
+
export interface ChannelDropoutParams {
|
|
1374
|
+
/** Default 0.05. */
|
|
1375
|
+
dropout_prob?: number;
|
|
1376
|
+
/** Default "zero". */
|
|
1377
|
+
mode?: "zero" | "interp";
|
|
1378
|
+
/** Default 0. */
|
|
1379
|
+
seed?: number;
|
|
1380
|
+
}
|
|
1381
|
+
/** Native `augmentation.spectral.channel_dropout` (augmenter). */
|
|
1382
|
+
export declare class ChannelDropout extends NativeProcedure implements Augmenter {
|
|
1383
|
+
readonly methodId = "augmentation.spectral.channel_dropout";
|
|
1384
|
+
readonly paramTypes: {
|
|
1385
|
+
readonly dropout_prob: "double";
|
|
1386
|
+
readonly mode: "enum";
|
|
1387
|
+
readonly seed: "int";
|
|
1388
|
+
};
|
|
1389
|
+
constructor(params?: ChannelDropoutParams);
|
|
1390
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
1391
|
+
}
|
|
1392
|
+
/** Parameters of GaussJitter; unset values take the native defaults. */
|
|
1393
|
+
export interface GaussJitterParams {
|
|
1394
|
+
/** Default 0.5. */
|
|
1395
|
+
sigma_lo?: number;
|
|
1396
|
+
/** Default 1.5. */
|
|
1397
|
+
sigma_hi?: number;
|
|
1398
|
+
/** Default 9. */
|
|
1399
|
+
kernel_width?: number;
|
|
1400
|
+
/** Default 0. */
|
|
1401
|
+
seed?: number;
|
|
1402
|
+
}
|
|
1403
|
+
/** Native `augmentation.spectral.gauss_jitter` (augmenter). */
|
|
1404
|
+
export declare class GaussJitter extends NativeProcedure implements Augmenter {
|
|
1405
|
+
readonly methodId = "augmentation.spectral.gauss_jitter";
|
|
1406
|
+
readonly paramTypes: {
|
|
1407
|
+
readonly sigma_lo: "double";
|
|
1408
|
+
readonly sigma_hi: "double";
|
|
1409
|
+
readonly kernel_width: "int";
|
|
1410
|
+
readonly seed: "int";
|
|
1411
|
+
};
|
|
1412
|
+
constructor(params?: GaussJitterParams);
|
|
1413
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
1414
|
+
}
|
|
1415
|
+
/** Parameters of LocalClip; unset values take the native defaults. */
|
|
1416
|
+
export interface LocalClipParams {
|
|
1417
|
+
/** Default 1. */
|
|
1418
|
+
n_regions?: number;
|
|
1419
|
+
/** Default 5. */
|
|
1420
|
+
width_lo?: number;
|
|
1421
|
+
/** Default 15. */
|
|
1422
|
+
width_hi?: number;
|
|
1423
|
+
/** Default 0. */
|
|
1424
|
+
seed?: number;
|
|
1425
|
+
}
|
|
1426
|
+
/** Native `augmentation.spectral.local_clip` (augmenter). */
|
|
1427
|
+
export declare class LocalClip extends NativeProcedure implements Augmenter {
|
|
1428
|
+
readonly methodId = "augmentation.spectral.local_clip";
|
|
1429
|
+
readonly paramTypes: {
|
|
1430
|
+
readonly n_regions: "int";
|
|
1431
|
+
readonly width_lo: "int";
|
|
1432
|
+
readonly width_hi: "int";
|
|
1433
|
+
readonly seed: "int";
|
|
1434
|
+
};
|
|
1435
|
+
constructor(params?: LocalClipParams);
|
|
1436
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
1437
|
+
}
|
|
1438
|
+
/** Parameters of MagnitudeWarp; unset values take the native defaults. */
|
|
1439
|
+
export interface MagnitudeWarpParams {
|
|
1440
|
+
/** Default 5. */
|
|
1441
|
+
n_control_points?: number;
|
|
1442
|
+
/** Default 0.9. */
|
|
1443
|
+
gain_lo?: number;
|
|
1444
|
+
/** Default 1.1. */
|
|
1445
|
+
gain_hi?: number;
|
|
1446
|
+
/** Default 0. */
|
|
1447
|
+
seed?: number;
|
|
1448
|
+
}
|
|
1449
|
+
/** Native `augmentation.spectral.magnitude_warp` (augmenter). */
|
|
1450
|
+
export declare class MagnitudeWarp extends NativeProcedure implements Augmenter {
|
|
1451
|
+
readonly methodId = "augmentation.spectral.magnitude_warp";
|
|
1452
|
+
readonly paramTypes: {
|
|
1453
|
+
readonly n_control_points: "int";
|
|
1454
|
+
readonly gain_lo: "double";
|
|
1455
|
+
readonly gain_hi: "double";
|
|
1456
|
+
readonly seed: "int";
|
|
1457
|
+
};
|
|
1458
|
+
constructor(params?: MagnitudeWarpParams);
|
|
1459
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
1460
|
+
}
|
|
1461
|
+
/** Parameters of UnsharpMask; unset values take the native defaults. */
|
|
1462
|
+
export interface UnsharpMaskParams {
|
|
1463
|
+
/** Default 0.1. */
|
|
1464
|
+
amount_lo?: number;
|
|
1465
|
+
/** Default 0.5. */
|
|
1466
|
+
amount_hi?: number;
|
|
1467
|
+
/** Default 1. */
|
|
1468
|
+
sigma?: number;
|
|
1469
|
+
/** Default 11. */
|
|
1470
|
+
kernel_width?: number;
|
|
1471
|
+
/** Default 0. */
|
|
1472
|
+
seed?: number;
|
|
1473
|
+
}
|
|
1474
|
+
/** Native `augmentation.spectral.unsharp_mask` (augmenter). */
|
|
1475
|
+
export declare class UnsharpMask extends NativeProcedure implements Augmenter {
|
|
1476
|
+
readonly methodId = "augmentation.spectral.unsharp_mask";
|
|
1477
|
+
readonly paramTypes: {
|
|
1478
|
+
readonly amount_lo: "double";
|
|
1479
|
+
readonly amount_hi: "double";
|
|
1480
|
+
readonly sigma: "double";
|
|
1481
|
+
readonly kernel_width: "int";
|
|
1482
|
+
readonly seed: "int";
|
|
1483
|
+
};
|
|
1484
|
+
constructor(params?: UnsharpMaskParams);
|
|
1485
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
1486
|
+
}
|
|
1487
|
+
/** Parameters of SplineCurveSimplification; unset values take the native defaults. */
|
|
1488
|
+
export interface SplineCurveSimplificationParams {
|
|
1489
|
+
/** Default -1. */
|
|
1490
|
+
spline_points?: number;
|
|
1491
|
+
/** Default false. */
|
|
1492
|
+
uniform?: boolean;
|
|
1493
|
+
/** Default 0. */
|
|
1494
|
+
seed?: number;
|
|
1495
|
+
}
|
|
1496
|
+
/** Native `augmentation.splines.spline_curve_simplification` (augmenter). */
|
|
1497
|
+
export declare class SplineCurveSimplification extends NativeProcedure implements Augmenter {
|
|
1498
|
+
readonly methodId = "augmentation.splines.spline_curve_simplification";
|
|
1499
|
+
readonly paramTypes: {
|
|
1500
|
+
readonly spline_points: "int";
|
|
1501
|
+
readonly uniform: "bool";
|
|
1502
|
+
readonly seed: "int";
|
|
1503
|
+
};
|
|
1504
|
+
constructor(params?: SplineCurveSimplificationParams);
|
|
1505
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
1506
|
+
}
|
|
1507
|
+
/** Parameters of SplineSmoothing; unset values take the native defaults. */
|
|
1508
|
+
export interface SplineSmoothingParams {
|
|
1509
|
+
/** Default 0. */
|
|
1510
|
+
seed?: number;
|
|
1511
|
+
}
|
|
1512
|
+
/** Native `augmentation.splines.spline_smoothing` (augmenter). */
|
|
1513
|
+
export declare class SplineSmoothing extends NativeProcedure implements Augmenter {
|
|
1514
|
+
readonly methodId = "augmentation.splines.spline_smoothing";
|
|
1515
|
+
readonly paramTypes: {
|
|
1516
|
+
readonly seed: "int";
|
|
1517
|
+
};
|
|
1518
|
+
constructor(params?: SplineSmoothingParams);
|
|
1519
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
1520
|
+
}
|
|
1521
|
+
/** Parameters of SplineXPerturbations; unset values take the native defaults. */
|
|
1522
|
+
export interface SplineXPerturbationsParams {
|
|
1523
|
+
/** Default 3. */
|
|
1524
|
+
spline_degree?: number;
|
|
1525
|
+
/** Default 0.05. */
|
|
1526
|
+
perturbation_density?: number;
|
|
1527
|
+
/** Default -0.1. */
|
|
1528
|
+
perturbation_range_min?: number;
|
|
1529
|
+
/** Default 0.1. */
|
|
1530
|
+
perturbation_range_max?: number;
|
|
1531
|
+
/** Default 0. */
|
|
1532
|
+
seed?: number;
|
|
1533
|
+
}
|
|
1534
|
+
/** Native `augmentation.splines.spline_x_perturbations` (augmenter). */
|
|
1535
|
+
export declare class SplineXPerturbations extends NativeProcedure implements Augmenter {
|
|
1536
|
+
readonly methodId = "augmentation.splines.spline_x_perturbations";
|
|
1537
|
+
readonly paramTypes: {
|
|
1538
|
+
readonly spline_degree: "int";
|
|
1539
|
+
readonly perturbation_density: "double";
|
|
1540
|
+
readonly perturbation_range_min: "double";
|
|
1541
|
+
readonly perturbation_range_max: "double";
|
|
1542
|
+
readonly seed: "int";
|
|
1543
|
+
};
|
|
1544
|
+
constructor(params?: SplineXPerturbationsParams);
|
|
1545
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
1546
|
+
}
|
|
1547
|
+
/** Parameters of SplineXSimplification; unset values take the native defaults. */
|
|
1548
|
+
export interface SplineXSimplificationParams {
|
|
1549
|
+
/** Default -1. */
|
|
1550
|
+
spline_points?: number;
|
|
1551
|
+
/** Default false. */
|
|
1552
|
+
uniform?: boolean;
|
|
1553
|
+
/** Default 0. */
|
|
1554
|
+
seed?: number;
|
|
1555
|
+
}
|
|
1556
|
+
/** Native `augmentation.splines.spline_x_simplification` (augmenter). */
|
|
1557
|
+
export declare class SplineXSimplification extends NativeProcedure implements Augmenter {
|
|
1558
|
+
readonly methodId = "augmentation.splines.spline_x_simplification";
|
|
1559
|
+
readonly paramTypes: {
|
|
1560
|
+
readonly spline_points: "int";
|
|
1561
|
+
readonly uniform: "bool";
|
|
1562
|
+
readonly seed: "int";
|
|
1563
|
+
};
|
|
1564
|
+
constructor(params?: SplineXSimplificationParams);
|
|
1565
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
1566
|
+
}
|
|
1567
|
+
/** Parameters of SplineYPerturbations; unset values take the native defaults. */
|
|
1568
|
+
export interface SplineYPerturbationsParams {
|
|
1569
|
+
/** Default -1. */
|
|
1570
|
+
spline_points?: number;
|
|
1571
|
+
/** Default 0.005. */
|
|
1572
|
+
perturbation_intensity?: number;
|
|
1573
|
+
/** Default 0. */
|
|
1574
|
+
seed?: number;
|
|
1575
|
+
}
|
|
1576
|
+
/** Native `augmentation.splines.spline_y_perturbations` (augmenter). */
|
|
1577
|
+
export declare class SplineYPerturbations extends NativeProcedure implements Augmenter {
|
|
1578
|
+
readonly methodId = "augmentation.splines.spline_y_perturbations";
|
|
1579
|
+
readonly paramTypes: {
|
|
1580
|
+
readonly spline_points: "int";
|
|
1581
|
+
readonly perturbation_intensity: "double";
|
|
1582
|
+
readonly seed: "int";
|
|
1583
|
+
};
|
|
1584
|
+
constructor(params?: SplineYPerturbationsParams);
|
|
1585
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
1586
|
+
}
|
|
1587
|
+
/** Parameters of LocalWarp; unset values take the native defaults. */
|
|
1588
|
+
export interface LocalWarpParams {
|
|
1589
|
+
/** Default 5. */
|
|
1590
|
+
n_control_points?: number;
|
|
1591
|
+
/** Default 1. */
|
|
1592
|
+
max_shift?: number;
|
|
1593
|
+
/** Default 0. */
|
|
1594
|
+
seed?: number;
|
|
1595
|
+
}
|
|
1596
|
+
/** Native `augmentation.wavelength.local_warp` (augmenter). */
|
|
1597
|
+
export declare class LocalWarp extends NativeProcedure implements Augmenter {
|
|
1598
|
+
readonly methodId = "augmentation.wavelength.local_warp";
|
|
1599
|
+
readonly paramTypes: {
|
|
1600
|
+
readonly n_control_points: "int";
|
|
1601
|
+
readonly max_shift: "double";
|
|
1602
|
+
readonly seed: "int";
|
|
1603
|
+
};
|
|
1604
|
+
constructor(params?: LocalWarpParams);
|
|
1605
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
1606
|
+
}
|
|
1607
|
+
/** Parameters of WavelengthShift; unset values take the native defaults. */
|
|
1608
|
+
export interface WavelengthShiftParams {
|
|
1609
|
+
/** Default -1. */
|
|
1610
|
+
shift_lo?: number;
|
|
1611
|
+
/** Default 1. */
|
|
1612
|
+
shift_hi?: number;
|
|
1613
|
+
/** Default 0. */
|
|
1614
|
+
seed?: number;
|
|
1615
|
+
}
|
|
1616
|
+
/** Native `augmentation.wavelength.wavelength_shift` (augmenter). */
|
|
1617
|
+
export declare class WavelengthShift extends NativeProcedure implements Augmenter {
|
|
1618
|
+
readonly methodId = "augmentation.wavelength.wavelength_shift";
|
|
1619
|
+
readonly paramTypes: {
|
|
1620
|
+
readonly shift_lo: "double";
|
|
1621
|
+
readonly shift_hi: "double";
|
|
1622
|
+
readonly seed: "int";
|
|
1623
|
+
};
|
|
1624
|
+
constructor(params?: WavelengthShiftParams);
|
|
1625
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
1626
|
+
}
|
|
1627
|
+
/** Parameters of WavelengthStretch; unset values take the native defaults. */
|
|
1628
|
+
export interface WavelengthStretchParams {
|
|
1629
|
+
/** Default 0.99. */
|
|
1630
|
+
stretch_lo?: number;
|
|
1631
|
+
/** Default 1.01. */
|
|
1632
|
+
stretch_hi?: number;
|
|
1633
|
+
/** Default 0. */
|
|
1634
|
+
seed?: number;
|
|
1635
|
+
}
|
|
1636
|
+
/** Native `augmentation.wavelength.wavelength_stretch` (augmenter). */
|
|
1637
|
+
export declare class WavelengthStretch extends NativeProcedure implements Augmenter {
|
|
1638
|
+
readonly methodId = "augmentation.wavelength.wavelength_stretch";
|
|
1639
|
+
readonly paramTypes: {
|
|
1640
|
+
readonly stretch_lo: "double";
|
|
1641
|
+
readonly stretch_hi: "double";
|
|
1642
|
+
readonly seed: "int";
|
|
1643
|
+
};
|
|
1644
|
+
constructor(params?: WavelengthStretchParams);
|
|
1645
|
+
augment(X: Matrix, axis?: Float64Array | number[]): Matrix;
|
|
1646
|
+
}
|
|
1647
|
+
/** Parameters of ApproximatePress; unset values take the native defaults. */
|
|
1648
|
+
export interface ApproximatePressParams {
|
|
1649
|
+
/** Default 10. */
|
|
1650
|
+
max_components?: number;
|
|
1651
|
+
}
|
|
1652
|
+
/** Native `diagnostics.approximate_press` (generic). Required inputs: y. */
|
|
1653
|
+
export declare class ApproximatePress extends NativeProcedure implements Procedure {
|
|
1654
|
+
readonly methodId = "diagnostics.approximate_press";
|
|
1655
|
+
readonly paramTypes: {
|
|
1656
|
+
readonly max_components: "int";
|
|
1657
|
+
};
|
|
1658
|
+
constructor(params?: ApproximatePressParams);
|
|
1659
|
+
run(X: Matrix, y?: Matrix | Float64Array | ArrayLike<number>, inputs?: FitInputs): Record<string, ProcedureOutput>;
|
|
1660
|
+
}
|
|
1661
|
+
/** Parameters of ModelSelection; unset values take the native defaults. */
|
|
1662
|
+
export interface ModelSelectionParams {
|
|
1663
|
+
}
|
|
1664
|
+
/** Native `diagnostics.model_selection` (generic). */
|
|
1665
|
+
export declare class ModelSelection extends NativeProcedure implements Procedure {
|
|
1666
|
+
readonly methodId = "diagnostics.model_selection";
|
|
1667
|
+
readonly paramTypes: {};
|
|
1668
|
+
constructor(params?: ModelSelectionParams);
|
|
1669
|
+
run(X: Matrix, y?: Matrix | Float64Array | ArrayLike<number>, inputs?: FitInputs): Record<string, ProcedureOutput>;
|
|
1670
|
+
}
|
|
1671
|
+
/** Parameters of PLSDiagnostics; unset values take the native defaults. */
|
|
1672
|
+
export interface PLSDiagnosticsParams {
|
|
1673
|
+
/** Default 2. */
|
|
1674
|
+
n_components?: number;
|
|
1675
|
+
/** Default true. */
|
|
1676
|
+
center_x?: boolean;
|
|
1677
|
+
/** Default true. */
|
|
1678
|
+
scale_x?: boolean;
|
|
1679
|
+
/** Default true. */
|
|
1680
|
+
center_y?: boolean;
|
|
1681
|
+
/** Default true. */
|
|
1682
|
+
scale_y?: boolean;
|
|
1683
|
+
}
|
|
1684
|
+
/** Native `diagnostics.pls_diagnostics` (generic). Required inputs: y. */
|
|
1685
|
+
export declare class PLSDiagnostics extends NativeProcedure implements Procedure {
|
|
1686
|
+
readonly methodId = "diagnostics.pls_diagnostics";
|
|
1687
|
+
readonly paramTypes: {
|
|
1688
|
+
readonly n_components: "int";
|
|
1689
|
+
readonly center_x: "bool";
|
|
1690
|
+
readonly scale_x: "bool";
|
|
1691
|
+
readonly center_y: "bool";
|
|
1692
|
+
readonly scale_y: "bool";
|
|
1693
|
+
};
|
|
1694
|
+
constructor(params?: PLSDiagnosticsParams);
|
|
1695
|
+
run(X: Matrix, y?: Matrix | Float64Array | ArrayLike<number>, inputs?: FitInputs): Record<string, ProcedureOutput>;
|
|
1696
|
+
}
|
|
1697
|
+
/** Parameters of PLSMonitoring; unset values take the native defaults. */
|
|
1698
|
+
export interface PLSMonitoringParams {
|
|
1699
|
+
/** Default 2. */
|
|
1700
|
+
n_components?: number;
|
|
1701
|
+
/** Default true. */
|
|
1702
|
+
center_x?: boolean;
|
|
1703
|
+
/** Default true. */
|
|
1704
|
+
scale_x?: boolean;
|
|
1705
|
+
/** Default true. */
|
|
1706
|
+
center_y?: boolean;
|
|
1707
|
+
/** Default true. */
|
|
1708
|
+
scale_y?: boolean;
|
|
1709
|
+
/** Default 0.05. */
|
|
1710
|
+
alpha?: number;
|
|
1711
|
+
}
|
|
1712
|
+
/** Native `diagnostics.pls_monitoring` (generic). Required inputs: y, target_domain. */
|
|
1713
|
+
export declare class PLSMonitoring extends NativeProcedure implements Procedure {
|
|
1714
|
+
readonly methodId = "diagnostics.pls_monitoring";
|
|
1715
|
+
readonly paramTypes: {
|
|
1716
|
+
readonly n_components: "int";
|
|
1717
|
+
readonly center_x: "bool";
|
|
1718
|
+
readonly scale_x: "bool";
|
|
1719
|
+
readonly center_y: "bool";
|
|
1720
|
+
readonly scale_y: "bool";
|
|
1721
|
+
readonly alpha: "double";
|
|
1722
|
+
};
|
|
1723
|
+
constructor(params?: PLSMonitoringParams);
|
|
1724
|
+
run(X: Matrix, y?: Matrix | Float64Array | ArrayLike<number>, inputs?: FitInputs): Record<string, ProcedureOutput>;
|
|
1725
|
+
}
|
|
1726
|
+
/** Parameters of RegressionMetrics; unset values take the native defaults. */
|
|
1727
|
+
export interface RegressionMetricsParams {
|
|
1728
|
+
}
|
|
1729
|
+
/** Native `diagnostics.regression_metrics` (generic). Required inputs: y. */
|
|
1730
|
+
export declare class RegressionMetrics extends NativeProcedure implements Procedure {
|
|
1731
|
+
readonly methodId = "diagnostics.regression_metrics";
|
|
1732
|
+
readonly paramTypes: {};
|
|
1733
|
+
constructor(params?: RegressionMetricsParams);
|
|
1734
|
+
run(X: Matrix, y?: Matrix | Float64Array | ArrayLike<number>, inputs?: FitInputs): Record<string, ProcedureOutput>;
|
|
1735
|
+
}
|
|
1736
|
+
/** Parameters of CorrelationFilter; unset values take the native defaults. */
|
|
1737
|
+
export interface CorrelationFilterParams {
|
|
1738
|
+
/** Default 0. */
|
|
1739
|
+
threshold?: number;
|
|
1740
|
+
/** Default -1. */
|
|
1741
|
+
top_k?: number;
|
|
1742
|
+
}
|
|
1743
|
+
/** Native `filters.correlation` (selector). */
|
|
1744
|
+
export declare class CorrelationFilter extends NativeEstimator implements Selector {
|
|
1745
|
+
readonly methodId = "filters.correlation";
|
|
1746
|
+
readonly paramTypes: {
|
|
1747
|
+
readonly threshold: "double";
|
|
1748
|
+
readonly top_k: "int";
|
|
1749
|
+
};
|
|
1750
|
+
constructor(params?: CorrelationFilterParams);
|
|
1751
|
+
transform(X: Matrix): Matrix;
|
|
1752
|
+
selectedIndices(): number[];
|
|
1753
|
+
}
|
|
1754
|
+
/** Parameters of HighLeverageFilter; unset values take the native defaults. */
|
|
1755
|
+
export interface HighLeverageFilterParams {
|
|
1756
|
+
/** Default "hat". */
|
|
1757
|
+
method?: "hat" | "pca";
|
|
1758
|
+
/** Default 2. */
|
|
1759
|
+
threshold_multiplier?: number;
|
|
1760
|
+
/** */
|
|
1761
|
+
absolute_threshold?: number;
|
|
1762
|
+
/** Default 0. */
|
|
1763
|
+
n_components?: number;
|
|
1764
|
+
/** Default true. */
|
|
1765
|
+
center?: boolean;
|
|
1766
|
+
}
|
|
1767
|
+
/** Native `filters.high_leverage` (sample_filter). */
|
|
1768
|
+
export declare class HighLeverageFilter extends NativeEstimator implements SampleFilter {
|
|
1769
|
+
readonly methodId = "filters.high_leverage";
|
|
1770
|
+
readonly paramTypes: {
|
|
1771
|
+
readonly method: "enum";
|
|
1772
|
+
readonly threshold_multiplier: "double";
|
|
1773
|
+
readonly absolute_threshold: "double";
|
|
1774
|
+
readonly n_components: "int";
|
|
1775
|
+
readonly center: "bool";
|
|
1776
|
+
};
|
|
1777
|
+
constructor(params?: HighLeverageFilterParams);
|
|
1778
|
+
getMask(X: Matrix, y?: Float64Array | ArrayLike<number>): boolean[];
|
|
1779
|
+
}
|
|
1780
|
+
/** Parameters of SpectralQualityFilter; unset values take the native defaults. */
|
|
1781
|
+
export interface SpectralQualityFilterParams {
|
|
1782
|
+
/** Default 0.1. */
|
|
1783
|
+
max_nan_ratio?: number;
|
|
1784
|
+
/** Default 0.5. */
|
|
1785
|
+
max_zero_ratio?: number;
|
|
1786
|
+
/** Default 1e-08. */
|
|
1787
|
+
min_variance?: number;
|
|
1788
|
+
/** */
|
|
1789
|
+
max_value?: number;
|
|
1790
|
+
/** */
|
|
1791
|
+
min_value?: number;
|
|
1792
|
+
/** Default true. */
|
|
1793
|
+
check_inf?: boolean;
|
|
1794
|
+
}
|
|
1795
|
+
/** Native `filters.spectral_quality` (sample_filter). */
|
|
1796
|
+
export declare class SpectralQualityFilter extends NativeEstimator implements SampleFilter {
|
|
1797
|
+
readonly methodId = "filters.spectral_quality";
|
|
1798
|
+
readonly paramTypes: {
|
|
1799
|
+
readonly max_nan_ratio: "double";
|
|
1800
|
+
readonly max_zero_ratio: "double";
|
|
1801
|
+
readonly min_variance: "double";
|
|
1802
|
+
readonly max_value: "double";
|
|
1803
|
+
readonly min_value: "double";
|
|
1804
|
+
readonly check_inf: "bool";
|
|
1805
|
+
};
|
|
1806
|
+
constructor(params?: SpectralQualityFilterParams);
|
|
1807
|
+
getMask(X: Matrix, y?: Float64Array | ArrayLike<number>): boolean[];
|
|
1808
|
+
}
|
|
1809
|
+
/** Parameters of VarianceFilter; unset values take the native defaults. */
|
|
1810
|
+
export interface VarianceFilterParams {
|
|
1811
|
+
/** Default 0. */
|
|
1812
|
+
threshold?: number;
|
|
1813
|
+
/** Default -1. */
|
|
1814
|
+
top_k?: number;
|
|
1815
|
+
}
|
|
1816
|
+
/** Native `filters.variance` (selector). */
|
|
1817
|
+
export declare class VarianceFilter extends NativeEstimator implements Selector {
|
|
1818
|
+
readonly methodId = "filters.variance";
|
|
1819
|
+
readonly paramTypes: {
|
|
1820
|
+
readonly threshold: "double";
|
|
1821
|
+
readonly top_k: "int";
|
|
1822
|
+
};
|
|
1823
|
+
constructor(params?: VarianceFilterParams);
|
|
1824
|
+
transform(X: Matrix): Matrix;
|
|
1825
|
+
selectedIndices(): number[];
|
|
1826
|
+
}
|
|
1827
|
+
/** Parameters of XOutlierFilter; unset values take the native defaults. */
|
|
1828
|
+
export interface XOutlierFilterParams {
|
|
1829
|
+
/** Default "mahalanobis". */
|
|
1830
|
+
method?: "mahalanobis" | "robust_mahalanobis" | "pca_residual" | "pca_leverage" | "isolation_forest" | "lof";
|
|
1831
|
+
/** */
|
|
1832
|
+
threshold?: number;
|
|
1833
|
+
/** Default 0. */
|
|
1834
|
+
n_components?: number;
|
|
1835
|
+
/** Default 0.1. */
|
|
1836
|
+
contamination?: number;
|
|
1837
|
+
/** Default 0. */
|
|
1838
|
+
seed?: number;
|
|
1839
|
+
/** Default 100. */
|
|
1840
|
+
n_estimators?: number;
|
|
1841
|
+
/** Default 256. */
|
|
1842
|
+
max_samples?: number;
|
|
1843
|
+
}
|
|
1844
|
+
/** Native `filters.x_outlier` (sample_filter). */
|
|
1845
|
+
export declare class XOutlierFilter extends NativeEstimator implements SampleFilter {
|
|
1846
|
+
readonly methodId = "filters.x_outlier";
|
|
1847
|
+
readonly paramTypes: {
|
|
1848
|
+
readonly method: "enum";
|
|
1849
|
+
readonly threshold: "double";
|
|
1850
|
+
readonly n_components: "int";
|
|
1851
|
+
readonly contamination: "double";
|
|
1852
|
+
readonly seed: "int";
|
|
1853
|
+
readonly n_estimators: "int";
|
|
1854
|
+
readonly max_samples: "int";
|
|
1855
|
+
};
|
|
1856
|
+
constructor(params?: XOutlierFilterParams);
|
|
1857
|
+
getMask(X: Matrix, y?: Float64Array | ArrayLike<number>): boolean[];
|
|
1858
|
+
}
|
|
1859
|
+
/** Parameters of YOutlierFilter; unset values take the native defaults. */
|
|
1860
|
+
export interface YOutlierFilterParams {
|
|
1861
|
+
/** Default "iqr". */
|
|
1862
|
+
method?: "iqr" | "zscore" | "percentile" | "mad";
|
|
1863
|
+
/** Default 1.5. */
|
|
1864
|
+
threshold?: number;
|
|
1865
|
+
/** Default 1. */
|
|
1866
|
+
lower_percentile?: number;
|
|
1867
|
+
/** Default 99. */
|
|
1868
|
+
upper_percentile?: number;
|
|
1869
|
+
}
|
|
1870
|
+
/** Native `filters.y_outlier` (sample_filter). */
|
|
1871
|
+
export declare class YOutlierFilter extends NativeEstimator implements SampleFilter {
|
|
1872
|
+
readonly methodId = "filters.y_outlier";
|
|
1873
|
+
readonly paramTypes: {
|
|
1874
|
+
readonly method: "enum";
|
|
1875
|
+
readonly threshold: "double";
|
|
1876
|
+
readonly lower_percentile: "double";
|
|
1877
|
+
readonly upper_percentile: "double";
|
|
1878
|
+
};
|
|
1879
|
+
constructor(params?: YOutlierFilterParams);
|
|
1880
|
+
getMask(X: Matrix, y?: Float64Array | ArrayLike<number>): boolean[];
|
|
1881
|
+
}
|
|
1882
|
+
/** Parameters of PLSLDA; unset values take the native defaults. */
|
|
1883
|
+
export interface PLSLDAParams {
|
|
1884
|
+
/** Default 2. */
|
|
1885
|
+
n_components?: number;
|
|
1886
|
+
}
|
|
1887
|
+
/** Native `models.classification.pls_lda` (classifier). Required fit inputs: labels. */
|
|
1888
|
+
export declare class PLSLDA extends NativeEstimator implements Classifier {
|
|
1889
|
+
readonly methodId = "models.classification.pls_lda";
|
|
1890
|
+
readonly paramTypes: {
|
|
1891
|
+
readonly n_components: "int";
|
|
1892
|
+
};
|
|
1893
|
+
protected readonly labelTarget = true;
|
|
1894
|
+
constructor(params?: PLSLDAParams);
|
|
1895
|
+
decisionFunction(X: Matrix): Matrix;
|
|
1896
|
+
predictLabels(X: Matrix): number[];
|
|
1897
|
+
classes(): number[];
|
|
1898
|
+
}
|
|
1899
|
+
/** Parameters of PLSLogistic; unset values take the native defaults. */
|
|
1900
|
+
export interface PLSLogisticParams {
|
|
1901
|
+
/** Default 2. */
|
|
1902
|
+
n_components?: number;
|
|
1903
|
+
/** Default 500. */
|
|
1904
|
+
max_iter?: number;
|
|
1905
|
+
}
|
|
1906
|
+
/** Native `models.classification.pls_logistic` (classifier). Required fit inputs: labels. */
|
|
1907
|
+
export declare class PLSLogistic extends NativeEstimator implements ProbabilisticClassifier {
|
|
1908
|
+
readonly methodId = "models.classification.pls_logistic";
|
|
1909
|
+
readonly paramTypes: {
|
|
1910
|
+
readonly n_components: "int";
|
|
1911
|
+
readonly max_iter: "int";
|
|
1912
|
+
};
|
|
1913
|
+
protected readonly labelTarget = true;
|
|
1914
|
+
constructor(params?: PLSLogisticParams);
|
|
1915
|
+
decisionFunction(X: Matrix): Matrix;
|
|
1916
|
+
predictLabels(X: Matrix): number[];
|
|
1917
|
+
classes(): number[];
|
|
1918
|
+
predictProba(X: Matrix): Matrix;
|
|
1919
|
+
}
|
|
1920
|
+
/** Parameters of PLSQDA; unset values take the native defaults. */
|
|
1921
|
+
export interface PLSQDAParams {
|
|
1922
|
+
/** Default 2. */
|
|
1923
|
+
n_components?: number;
|
|
1924
|
+
}
|
|
1925
|
+
/** Native `models.classification.pls_qda` (classifier). Required fit inputs: labels. */
|
|
1926
|
+
export declare class PLSQDA extends NativeEstimator implements ProbabilisticClassifier {
|
|
1927
|
+
readonly methodId = "models.classification.pls_qda";
|
|
1928
|
+
readonly paramTypes: {
|
|
1929
|
+
readonly n_components: "int";
|
|
1930
|
+
};
|
|
1931
|
+
protected readonly labelTarget = true;
|
|
1932
|
+
constructor(params?: PLSQDAParams);
|
|
1933
|
+
decisionFunction(X: Matrix): Matrix;
|
|
1934
|
+
predictLabels(X: Matrix): number[];
|
|
1935
|
+
classes(): number[];
|
|
1936
|
+
predictProba(X: Matrix): Matrix;
|
|
1937
|
+
}
|
|
1938
|
+
/** Parameters of BaggingPLS; unset values take the native defaults. */
|
|
1939
|
+
export interface BaggingPLSParams {
|
|
1940
|
+
/** Default 2. */
|
|
1941
|
+
n_components?: number;
|
|
1942
|
+
/** Default 50. */
|
|
1943
|
+
n_estimators?: number;
|
|
1944
|
+
/** Default 0. */
|
|
1945
|
+
seed?: number;
|
|
1946
|
+
}
|
|
1947
|
+
/** Native `models.ensembles.bagging_pls` (regressor). */
|
|
1948
|
+
export declare class BaggingPLS extends NativeEstimator implements Regressor {
|
|
1949
|
+
readonly methodId = "models.ensembles.bagging_pls";
|
|
1950
|
+
readonly paramTypes: {
|
|
1951
|
+
readonly n_components: "int";
|
|
1952
|
+
readonly n_estimators: "int";
|
|
1953
|
+
readonly seed: "int";
|
|
1954
|
+
};
|
|
1955
|
+
constructor(params?: BaggingPLSParams);
|
|
1956
|
+
predict(X: Matrix): Matrix;
|
|
1957
|
+
}
|
|
1958
|
+
/** Parameters of BoostingPLS; unset values take the native defaults. */
|
|
1959
|
+
export interface BoostingPLSParams {
|
|
1960
|
+
/** Default 2. */
|
|
1961
|
+
n_components?: number;
|
|
1962
|
+
/** Default 50. */
|
|
1963
|
+
n_estimators?: number;
|
|
1964
|
+
/** Default 0.1. */
|
|
1965
|
+
learning_rate?: number;
|
|
1966
|
+
}
|
|
1967
|
+
/** Native `models.ensembles.boosting_pls` (regressor). */
|
|
1968
|
+
export declare class BoostingPLS extends NativeEstimator implements Regressor {
|
|
1969
|
+
readonly methodId = "models.ensembles.boosting_pls";
|
|
1970
|
+
readonly paramTypes: {
|
|
1971
|
+
readonly n_components: "int";
|
|
1972
|
+
readonly n_estimators: "int";
|
|
1973
|
+
readonly learning_rate: "double";
|
|
1974
|
+
};
|
|
1975
|
+
constructor(params?: BoostingPLSParams);
|
|
1976
|
+
predict(X: Matrix): Matrix;
|
|
1977
|
+
}
|
|
1978
|
+
/** Parameters of RandomSubspacePLS; unset values take the native defaults. */
|
|
1979
|
+
export interface RandomSubspacePLSParams {
|
|
1980
|
+
/** Default 2. */
|
|
1981
|
+
n_components?: number;
|
|
1982
|
+
/** Default 50. */
|
|
1983
|
+
n_estimators?: number;
|
|
1984
|
+
/** Default 10. */
|
|
1985
|
+
features_per_subspace?: number;
|
|
1986
|
+
/** Default 0. */
|
|
1987
|
+
seed?: number;
|
|
1988
|
+
}
|
|
1989
|
+
/** Native `models.ensembles.random_subspace_pls` (regressor). */
|
|
1990
|
+
export declare class RandomSubspacePLS extends NativeEstimator implements Regressor {
|
|
1991
|
+
readonly methodId = "models.ensembles.random_subspace_pls";
|
|
1992
|
+
readonly paramTypes: {
|
|
1993
|
+
readonly n_components: "int";
|
|
1994
|
+
readonly n_estimators: "int";
|
|
1995
|
+
readonly features_per_subspace: "int";
|
|
1996
|
+
readonly seed: "int";
|
|
1997
|
+
};
|
|
1998
|
+
constructor(params?: RandomSubspacePLSParams);
|
|
1999
|
+
predict(X: Matrix): Matrix;
|
|
2000
|
+
}
|
|
2001
|
+
/** Parameters of PLSCox; unset values take the native defaults. */
|
|
2002
|
+
export interface PLSCoxParams {
|
|
2003
|
+
/** Default 2. */
|
|
2004
|
+
n_components?: number;
|
|
2005
|
+
/** Default 50. */
|
|
2006
|
+
max_iter?: number;
|
|
2007
|
+
/** Default 1e-10. */
|
|
2008
|
+
tol?: number;
|
|
2009
|
+
}
|
|
2010
|
+
/** Native `models.heads.pls_cox` (regressor). */
|
|
2011
|
+
export declare class PLSCox extends NativeEstimator implements Regressor {
|
|
2012
|
+
readonly methodId = "models.heads.pls_cox";
|
|
2013
|
+
readonly paramTypes: {
|
|
2014
|
+
readonly n_components: "int";
|
|
2015
|
+
readonly max_iter: "int";
|
|
2016
|
+
readonly tol: "double";
|
|
2017
|
+
};
|
|
2018
|
+
constructor(params?: PLSCoxParams);
|
|
2019
|
+
predict(X: Matrix): Matrix;
|
|
2020
|
+
}
|
|
2021
|
+
/** Parameters of PLSGLM; unset values take the native defaults. */
|
|
2022
|
+
export interface PLSGLMParams {
|
|
2023
|
+
/** Default 2. */
|
|
2024
|
+
n_components?: number;
|
|
2025
|
+
/** Default "gaussian". */
|
|
2026
|
+
family?: "gaussian" | "poisson" | "binomial";
|
|
2027
|
+
/** Default 100. */
|
|
2028
|
+
max_iter?: number;
|
|
2029
|
+
/** Default 1e-10. */
|
|
2030
|
+
tol?: number;
|
|
2031
|
+
}
|
|
2032
|
+
/** Native `models.heads.pls_glm` (regressor). */
|
|
2033
|
+
export declare class PLSGLM extends NativeEstimator implements Regressor {
|
|
2034
|
+
readonly methodId = "models.heads.pls_glm";
|
|
2035
|
+
readonly paramTypes: {
|
|
2036
|
+
readonly n_components: "int";
|
|
2037
|
+
readonly family: "enum";
|
|
2038
|
+
readonly max_iter: "int";
|
|
2039
|
+
readonly tol: "double";
|
|
2040
|
+
};
|
|
2041
|
+
constructor(params?: PLSGLMParams);
|
|
2042
|
+
predict(X: Matrix): Matrix;
|
|
2043
|
+
}
|
|
2044
|
+
/** Parameters of LWPLS; unset values take the native defaults. */
|
|
2045
|
+
export interface LWPLSParams {
|
|
2046
|
+
/** Default 2. */
|
|
2047
|
+
n_components?: number;
|
|
2048
|
+
/** Required. */
|
|
2049
|
+
n_neighbors?: number;
|
|
2050
|
+
/** Default "weighted". */
|
|
2051
|
+
mode?: "weighted" | "knn";
|
|
2052
|
+
}
|
|
2053
|
+
/** Native `models.local.lw_pls` (regressor). */
|
|
2054
|
+
export declare class LWPLS extends NativeEstimator implements Regressor {
|
|
2055
|
+
readonly methodId = "models.local.lw_pls";
|
|
2056
|
+
readonly paramTypes: {
|
|
2057
|
+
readonly n_components: "int";
|
|
2058
|
+
readonly n_neighbors: "int";
|
|
2059
|
+
readonly mode: "enum";
|
|
2060
|
+
};
|
|
2061
|
+
constructor(params?: LWPLSParams);
|
|
2062
|
+
predict(X: Matrix): Matrix;
|
|
2063
|
+
}
|
|
2064
|
+
/** Parameters of MBPLS; unset values take the native defaults. */
|
|
2065
|
+
export interface MBPLSParams {
|
|
2066
|
+
/** Default 2. */
|
|
2067
|
+
n_components?: number;
|
|
2068
|
+
}
|
|
2069
|
+
/** Native `models.multiblock.mb_pls` (regressor). Required fit inputs: blocks. */
|
|
2070
|
+
export declare class MBPLS extends NativeEstimator implements Regressor {
|
|
2071
|
+
readonly methodId = "models.multiblock.mb_pls";
|
|
2072
|
+
readonly paramTypes: {
|
|
2073
|
+
readonly n_components: "int";
|
|
2074
|
+
};
|
|
2075
|
+
constructor(params?: MBPLSParams);
|
|
2076
|
+
predict(X: Matrix): Matrix;
|
|
2077
|
+
}
|
|
2078
|
+
/** Parameters of MIRPLS; unset values take the native defaults. */
|
|
2079
|
+
export interface MIRPLSParams {
|
|
2080
|
+
/** Default 2. */
|
|
2081
|
+
n_components?: number;
|
|
2082
|
+
}
|
|
2083
|
+
/** Native `models.multiblock.mir_pls` (regressor). */
|
|
2084
|
+
export declare class MIRPLS extends NativeEstimator implements Regressor {
|
|
2085
|
+
readonly methodId = "models.multiblock.mir_pls";
|
|
2086
|
+
readonly paramTypes: {
|
|
2087
|
+
readonly n_components: "int";
|
|
2088
|
+
};
|
|
2089
|
+
constructor(params?: MIRPLSParams);
|
|
2090
|
+
predict(X: Matrix): Matrix;
|
|
2091
|
+
}
|
|
2092
|
+
/** Parameters of O2PLS; unset values take the native defaults. */
|
|
2093
|
+
export interface O2PLSParams {
|
|
2094
|
+
/** Default 2. */
|
|
2095
|
+
n_predictive?: number;
|
|
2096
|
+
/** Default 1. */
|
|
2097
|
+
n_x_orthogonal?: number;
|
|
2098
|
+
/** Default 1. */
|
|
2099
|
+
n_y_orthogonal?: number;
|
|
2100
|
+
}
|
|
2101
|
+
/** Native `models.multiblock.o2pls` (regressor). */
|
|
2102
|
+
export declare class O2PLS extends NativeEstimator implements Regressor {
|
|
2103
|
+
readonly methodId = "models.multiblock.o2pls";
|
|
2104
|
+
readonly paramTypes: {
|
|
2105
|
+
readonly n_predictive: "int";
|
|
2106
|
+
readonly n_x_orthogonal: "int";
|
|
2107
|
+
readonly n_y_orthogonal: "int";
|
|
2108
|
+
};
|
|
2109
|
+
constructor(params?: O2PLSParams);
|
|
2110
|
+
predict(X: Matrix): Matrix;
|
|
2111
|
+
}
|
|
2112
|
+
/** Parameters of OnPLS; unset values take the native defaults. */
|
|
2113
|
+
export interface OnPLSParams {
|
|
2114
|
+
/** Default 1. */
|
|
2115
|
+
n_joint?: number;
|
|
2116
|
+
/** Required. */
|
|
2117
|
+
n_unique_per_block?: number[];
|
|
2118
|
+
}
|
|
2119
|
+
/** Native `models.multiblock.on_pls` (transformer). Required fit inputs: blocks. */
|
|
2120
|
+
export declare class OnPLS extends NativeEstimator implements Transformer {
|
|
2121
|
+
readonly methodId = "models.multiblock.on_pls";
|
|
2122
|
+
readonly paramTypes: {
|
|
2123
|
+
readonly n_joint: "int";
|
|
2124
|
+
readonly n_unique_per_block: "int_array";
|
|
2125
|
+
};
|
|
2126
|
+
constructor(params?: OnPLSParams);
|
|
2127
|
+
transform(X: Matrix): Matrix;
|
|
2128
|
+
}
|
|
2129
|
+
/** Parameters of ROSA; unset values take the native defaults. */
|
|
2130
|
+
export interface ROSAParams {
|
|
2131
|
+
/** Default 2. */
|
|
2132
|
+
n_components?: number;
|
|
2133
|
+
}
|
|
2134
|
+
/** Native `models.multiblock.rosa` (regressor). Required fit inputs: blocks. */
|
|
2135
|
+
export declare class ROSA extends NativeEstimator implements Regressor {
|
|
2136
|
+
readonly methodId = "models.multiblock.rosa";
|
|
2137
|
+
readonly paramTypes: {
|
|
2138
|
+
readonly n_components: "int";
|
|
2139
|
+
};
|
|
2140
|
+
constructor(params?: ROSAParams);
|
|
2141
|
+
predict(X: Matrix): Matrix;
|
|
2142
|
+
}
|
|
2143
|
+
/** Parameters of SOPLS; unset values take the native defaults. */
|
|
2144
|
+
export interface SOPLSParams {
|
|
2145
|
+
/** Required. */
|
|
2146
|
+
n_components_per_block?: number[];
|
|
2147
|
+
}
|
|
2148
|
+
/** Native `models.multiblock.so_pls` (regressor). Required fit inputs: blocks. */
|
|
2149
|
+
export declare class SOPLS extends NativeEstimator implements Regressor {
|
|
2150
|
+
readonly methodId = "models.multiblock.so_pls";
|
|
2151
|
+
readonly paramTypes: {
|
|
2152
|
+
readonly n_components_per_block: "int_array";
|
|
2153
|
+
};
|
|
2154
|
+
constructor(params?: SOPLSParams);
|
|
2155
|
+
predict(X: Matrix): Matrix;
|
|
2156
|
+
}
|
|
2157
|
+
/** Parameters of CPPLS; unset values take the native defaults. */
|
|
2158
|
+
export interface CPPLSParams {
|
|
2159
|
+
/** Default 2. */
|
|
2160
|
+
n_components?: number;
|
|
2161
|
+
/** Default 0.5. */
|
|
2162
|
+
gamma?: number;
|
|
2163
|
+
}
|
|
2164
|
+
/** Native `models.pls.cppls` (regressor). */
|
|
2165
|
+
export declare class CPPLS extends NativeEstimator implements Regressor {
|
|
2166
|
+
readonly methodId = "models.pls.cppls";
|
|
2167
|
+
readonly paramTypes: {
|
|
2168
|
+
readonly n_components: "int";
|
|
2169
|
+
readonly gamma: "double";
|
|
2170
|
+
};
|
|
2171
|
+
constructor(params?: CPPLSParams);
|
|
2172
|
+
predict(X: Matrix): Matrix;
|
|
2173
|
+
}
|
|
2174
|
+
/** Parameters of KernelPLS; unset values take the native defaults. */
|
|
2175
|
+
export interface KernelPLSParams {
|
|
2176
|
+
/** Default 2. */
|
|
2177
|
+
n_components?: number;
|
|
2178
|
+
/** Default "rbf". */
|
|
2179
|
+
kernel?: "linear" | "rbf" | "polynomial" | "sigmoid";
|
|
2180
|
+
/** Default 0. */
|
|
2181
|
+
gamma?: number;
|
|
2182
|
+
/** Default 1. */
|
|
2183
|
+
coef0?: number;
|
|
2184
|
+
/** Default 3. */
|
|
2185
|
+
degree?: number;
|
|
2186
|
+
}
|
|
2187
|
+
/** Native `models.pls.kernel` (regressor). */
|
|
2188
|
+
export declare class KernelPLS extends NativeEstimator implements Regressor {
|
|
2189
|
+
readonly methodId = "models.pls.kernel";
|
|
2190
|
+
readonly paramTypes: {
|
|
2191
|
+
readonly n_components: "int";
|
|
2192
|
+
readonly kernel: "enum";
|
|
2193
|
+
readonly gamma: "double";
|
|
2194
|
+
readonly coef0: "double";
|
|
2195
|
+
readonly degree: "int";
|
|
2196
|
+
};
|
|
2197
|
+
constructor(params?: KernelPLSParams);
|
|
2198
|
+
predict(X: Matrix): Matrix;
|
|
2199
|
+
}
|
|
2200
|
+
/** Parameters of PCR; unset values take the native defaults. */
|
|
2201
|
+
export interface PCRParams {
|
|
2202
|
+
/** Default 2. */
|
|
2203
|
+
n_components?: number;
|
|
2204
|
+
/** Default true. */
|
|
2205
|
+
center_x?: boolean;
|
|
2206
|
+
/** Default true. */
|
|
2207
|
+
scale_x?: boolean;
|
|
2208
|
+
/** Default true. */
|
|
2209
|
+
center_y?: boolean;
|
|
2210
|
+
/** Default false. */
|
|
2211
|
+
scale_y?: boolean;
|
|
2212
|
+
}
|
|
2213
|
+
/** Native `models.pls.pcr` (transformer, regressor). */
|
|
2214
|
+
export declare class PCR extends NativeEstimator implements Regressor, Transformer {
|
|
2215
|
+
readonly methodId = "models.pls.pcr";
|
|
2216
|
+
readonly paramTypes: {
|
|
2217
|
+
readonly n_components: "int";
|
|
2218
|
+
readonly center_x: "bool";
|
|
2219
|
+
readonly scale_x: "bool";
|
|
2220
|
+
readonly center_y: "bool";
|
|
2221
|
+
readonly scale_y: "bool";
|
|
2222
|
+
};
|
|
2223
|
+
constructor(params?: PCRParams);
|
|
2224
|
+
predict(X: Matrix): Matrix;
|
|
2225
|
+
transform(X: Matrix): Matrix;
|
|
2226
|
+
}
|
|
2227
|
+
/** Parameters of SimplePLS; unset values take the native defaults. */
|
|
2228
|
+
export interface SimplePLSParams {
|
|
2229
|
+
/** Default 2. */
|
|
2230
|
+
n_components?: number;
|
|
2231
|
+
}
|
|
2232
|
+
/** Native `models.pls.pls_fit_simple` (transformer, regressor). */
|
|
2233
|
+
export declare class SimplePLS extends NativeEstimator implements Regressor, Transformer {
|
|
2234
|
+
readonly methodId = "models.pls.pls_fit_simple";
|
|
2235
|
+
readonly paramTypes: {
|
|
2236
|
+
readonly n_components: "int";
|
|
2237
|
+
};
|
|
2238
|
+
constructor(params?: SimplePLSParams);
|
|
2239
|
+
predict(X: Matrix): Matrix;
|
|
2240
|
+
transform(X: Matrix): Matrix;
|
|
2241
|
+
}
|
|
2242
|
+
/** Parameters of PLSRegression; unset values take the native defaults. */
|
|
2243
|
+
export interface PLSRegressionParams {
|
|
2244
|
+
/** Default 2. */
|
|
2245
|
+
n_components?: number;
|
|
2246
|
+
/** Default "nipals". */
|
|
2247
|
+
solver?: "nipals" | "simpls" | "orthogonal_scores" | "kernel_algorithm" | "wide_kernel" | "svd" | "power" | "randomized_svd";
|
|
2248
|
+
/** Default true. */
|
|
2249
|
+
center_x?: boolean;
|
|
2250
|
+
/** Default true. */
|
|
2251
|
+
scale_x?: boolean;
|
|
2252
|
+
/** Default true. */
|
|
2253
|
+
center_y?: boolean;
|
|
2254
|
+
/** Default true. */
|
|
2255
|
+
scale_y?: boolean;
|
|
2256
|
+
}
|
|
2257
|
+
/** Native `models.pls.pls_regression` (transformer, regressor). */
|
|
2258
|
+
export declare class PLSRegression extends NativeEstimator implements Regressor, Transformer {
|
|
2259
|
+
readonly methodId = "models.pls.pls_regression";
|
|
2260
|
+
readonly paramTypes: {
|
|
2261
|
+
readonly n_components: "int";
|
|
2262
|
+
readonly solver: "enum";
|
|
2263
|
+
readonly center_x: "bool";
|
|
2264
|
+
readonly scale_x: "bool";
|
|
2265
|
+
readonly center_y: "bool";
|
|
2266
|
+
readonly scale_y: "bool";
|
|
2267
|
+
};
|
|
2268
|
+
constructor(params?: PLSRegressionParams);
|
|
2269
|
+
predict(X: Matrix): Matrix;
|
|
2270
|
+
transform(X: Matrix): Matrix;
|
|
2271
|
+
}
|
|
2272
|
+
/** Parameters of ContinuumRegression; unset values take the native defaults. */
|
|
2273
|
+
export interface ContinuumRegressionParams {
|
|
2274
|
+
/** Default 2. */
|
|
2275
|
+
n_components?: number;
|
|
2276
|
+
/** Default 0.5. */
|
|
2277
|
+
tau?: number;
|
|
2278
|
+
}
|
|
2279
|
+
/** Native `models.regularized.continuum_regression` (regressor). */
|
|
2280
|
+
export declare class ContinuumRegression extends NativeEstimator implements Regressor {
|
|
2281
|
+
readonly methodId = "models.regularized.continuum_regression";
|
|
2282
|
+
readonly paramTypes: {
|
|
2283
|
+
readonly n_components: "int";
|
|
2284
|
+
readonly tau: "double";
|
|
2285
|
+
};
|
|
2286
|
+
constructor(params?: ContinuumRegressionParams);
|
|
2287
|
+
predict(X: Matrix): Matrix;
|
|
2288
|
+
}
|
|
2289
|
+
/** Parameters of Ridge; unset values take the native defaults. */
|
|
2290
|
+
export interface RidgeParams {
|
|
2291
|
+
/** Default 1. */
|
|
2292
|
+
alpha?: number;
|
|
2293
|
+
/** Default true. */
|
|
2294
|
+
center_x?: boolean;
|
|
2295
|
+
/** Default true. */
|
|
2296
|
+
scale_x?: boolean;
|
|
2297
|
+
/** Default true. */
|
|
2298
|
+
center_y?: boolean;
|
|
2299
|
+
}
|
|
2300
|
+
/** Native `models.regularized.ridge` (regressor). */
|
|
2301
|
+
export declare class Ridge extends NativeEstimator implements Regressor {
|
|
2302
|
+
readonly methodId = "models.regularized.ridge";
|
|
2303
|
+
readonly paramTypes: {
|
|
2304
|
+
readonly alpha: "double";
|
|
2305
|
+
readonly center_x: "bool";
|
|
2306
|
+
readonly scale_x: "bool";
|
|
2307
|
+
readonly center_y: "bool";
|
|
2308
|
+
};
|
|
2309
|
+
constructor(params?: RidgeParams);
|
|
2310
|
+
predict(X: Matrix): Matrix;
|
|
2311
|
+
}
|
|
2312
|
+
/** Parameters of RidgePLS; unset values take the native defaults. */
|
|
2313
|
+
export interface RidgePLSParams {
|
|
2314
|
+
/** Default 2. */
|
|
2315
|
+
n_components?: number;
|
|
2316
|
+
/** Default 0.1. */
|
|
2317
|
+
ridge_lambda?: number;
|
|
2318
|
+
/** Default true. */
|
|
2319
|
+
center_x?: boolean;
|
|
2320
|
+
/** Default true. */
|
|
2321
|
+
scale_x?: boolean;
|
|
2322
|
+
/** Default true. */
|
|
2323
|
+
center_y?: boolean;
|
|
2324
|
+
/** Default true. */
|
|
2325
|
+
scale_y?: boolean;
|
|
2326
|
+
}
|
|
2327
|
+
/** Native `models.regularized.ridge_pls` (regressor). */
|
|
2328
|
+
export declare class RidgePLS extends NativeEstimator implements Regressor {
|
|
2329
|
+
readonly methodId = "models.regularized.ridge_pls";
|
|
2330
|
+
readonly paramTypes: {
|
|
2331
|
+
readonly n_components: "int";
|
|
2332
|
+
readonly ridge_lambda: "double";
|
|
2333
|
+
readonly center_x: "bool";
|
|
2334
|
+
readonly scale_x: "bool";
|
|
2335
|
+
readonly center_y: "bool";
|
|
2336
|
+
readonly scale_y: "bool";
|
|
2337
|
+
};
|
|
2338
|
+
constructor(params?: RidgePLSParams);
|
|
2339
|
+
predict(X: Matrix): Matrix;
|
|
2340
|
+
}
|
|
2341
|
+
/** Parameters of RobustPLS; unset values take the native defaults. */
|
|
2342
|
+
export interface RobustPLSParams {
|
|
2343
|
+
/** Default 2. */
|
|
2344
|
+
n_components?: number;
|
|
2345
|
+
/** Default 1.345. */
|
|
2346
|
+
huber_k?: number;
|
|
2347
|
+
/** Default 5. */
|
|
2348
|
+
max_irls_iter?: number;
|
|
2349
|
+
/** Default true. */
|
|
2350
|
+
center_x?: boolean;
|
|
2351
|
+
/** Default true. */
|
|
2352
|
+
scale_x?: boolean;
|
|
2353
|
+
/** Default true. */
|
|
2354
|
+
center_y?: boolean;
|
|
2355
|
+
/** Default true. */
|
|
2356
|
+
scale_y?: boolean;
|
|
2357
|
+
}
|
|
2358
|
+
/** Native `models.regularized.robust_pls` (regressor). */
|
|
2359
|
+
export declare class RobustPLS extends NativeEstimator implements Regressor {
|
|
2360
|
+
readonly methodId = "models.regularized.robust_pls";
|
|
2361
|
+
readonly paramTypes: {
|
|
2362
|
+
readonly n_components: "int";
|
|
2363
|
+
readonly huber_k: "double";
|
|
2364
|
+
readonly max_irls_iter: "int";
|
|
2365
|
+
readonly center_x: "bool";
|
|
2366
|
+
readonly scale_x: "bool";
|
|
2367
|
+
readonly center_y: "bool";
|
|
2368
|
+
readonly scale_y: "bool";
|
|
2369
|
+
};
|
|
2370
|
+
constructor(params?: RobustPLSParams);
|
|
2371
|
+
predict(X: Matrix): Matrix;
|
|
2372
|
+
}
|
|
2373
|
+
/** Parameters of WeightedPLS; unset values take the native defaults. */
|
|
2374
|
+
export interface WeightedPLSParams {
|
|
2375
|
+
/** Default 2. */
|
|
2376
|
+
n_components?: number;
|
|
2377
|
+
/** Default true. */
|
|
2378
|
+
center_x?: boolean;
|
|
2379
|
+
/** Default true. */
|
|
2380
|
+
scale_x?: boolean;
|
|
2381
|
+
/** Default true. */
|
|
2382
|
+
center_y?: boolean;
|
|
2383
|
+
/** Default true. */
|
|
2384
|
+
scale_y?: boolean;
|
|
2385
|
+
}
|
|
2386
|
+
/** Native `models.regularized.weighted_pls` (regressor). */
|
|
2387
|
+
export declare class WeightedPLS extends NativeEstimator implements Regressor {
|
|
2388
|
+
readonly methodId = "models.regularized.weighted_pls";
|
|
2389
|
+
readonly paramTypes: {
|
|
2390
|
+
readonly n_components: "int";
|
|
2391
|
+
readonly center_x: "bool";
|
|
2392
|
+
readonly scale_x: "bool";
|
|
2393
|
+
readonly center_y: "bool";
|
|
2394
|
+
readonly scale_y: "bool";
|
|
2395
|
+
};
|
|
2396
|
+
constructor(params?: WeightedPLSParams);
|
|
2397
|
+
predict(X: Matrix): Matrix;
|
|
2398
|
+
}
|
|
2399
|
+
/** Parameters of FusedSparsePLS; unset values take the native defaults. */
|
|
2400
|
+
export interface FusedSparsePLSParams {
|
|
2401
|
+
/** Default 2. */
|
|
2402
|
+
n_components?: number;
|
|
2403
|
+
/** Default 0.05. */
|
|
2404
|
+
l1_lambda?: number;
|
|
2405
|
+
/** Default 0.05. */
|
|
2406
|
+
fusion_lambda?: number;
|
|
2407
|
+
}
|
|
2408
|
+
/** Native `models.sparse.fused_sparse_pls` (regressor). */
|
|
2409
|
+
export declare class FusedSparsePLS extends NativeEstimator implements Regressor {
|
|
2410
|
+
readonly methodId = "models.sparse.fused_sparse_pls";
|
|
2411
|
+
readonly paramTypes: {
|
|
2412
|
+
readonly n_components: "int";
|
|
2413
|
+
readonly l1_lambda: "double";
|
|
2414
|
+
readonly fusion_lambda: "double";
|
|
2415
|
+
};
|
|
2416
|
+
constructor(params?: FusedSparsePLSParams);
|
|
2417
|
+
predict(X: Matrix): Matrix;
|
|
2418
|
+
}
|
|
2419
|
+
/** Parameters of GroupSparsePLS; unset values take the native defaults. */
|
|
2420
|
+
export interface GroupSparsePLSParams {
|
|
2421
|
+
/** Default 2. */
|
|
2422
|
+
n_components?: number;
|
|
2423
|
+
/** Default 0.05. */
|
|
2424
|
+
group_lambda?: number;
|
|
2425
|
+
}
|
|
2426
|
+
/** Native `models.sparse.group_sparse_pls` (regressor). Required fit inputs: feature_groups. */
|
|
2427
|
+
export declare class GroupSparsePLS extends NativeEstimator implements Regressor {
|
|
2428
|
+
readonly methodId = "models.sparse.group_sparse_pls";
|
|
2429
|
+
readonly paramTypes: {
|
|
2430
|
+
readonly n_components: "int";
|
|
2431
|
+
readonly group_lambda: "double";
|
|
2432
|
+
};
|
|
2433
|
+
constructor(params?: GroupSparsePLSParams);
|
|
2434
|
+
predict(X: Matrix): Matrix;
|
|
2435
|
+
}
|
|
2436
|
+
/** Parameters of SparsePLSDA; unset values take the native defaults. */
|
|
2437
|
+
export interface SparsePLSDAParams {
|
|
2438
|
+
/** Default 2. */
|
|
2439
|
+
n_components?: number;
|
|
2440
|
+
/** Default 0.05. */
|
|
2441
|
+
sparsity_lambda?: number;
|
|
2442
|
+
}
|
|
2443
|
+
/** Native `models.sparse.sparse_pls_da` (classifier). Required fit inputs: labels. */
|
|
2444
|
+
export declare class SparsePLSDA extends NativeEstimator implements Classifier {
|
|
2445
|
+
readonly methodId = "models.sparse.sparse_pls_da";
|
|
2446
|
+
readonly paramTypes: {
|
|
2447
|
+
readonly n_components: "int";
|
|
2448
|
+
readonly sparsity_lambda: "double";
|
|
2449
|
+
};
|
|
2450
|
+
protected readonly labelTarget = true;
|
|
2451
|
+
constructor(params?: SparsePLSDAParams);
|
|
2452
|
+
decisionFunction(X: Matrix): Matrix;
|
|
2453
|
+
predictLabels(X: Matrix): number[];
|
|
2454
|
+
classes(): number[];
|
|
2455
|
+
}
|
|
2456
|
+
/** Parameters of SparseSIMPLS; unset values take the native defaults. */
|
|
2457
|
+
export interface SparseSIMPLSParams {
|
|
2458
|
+
/** Default 2. */
|
|
2459
|
+
n_components?: number;
|
|
2460
|
+
/** Default 0.05. */
|
|
2461
|
+
sparsity_lambda?: number;
|
|
2462
|
+
}
|
|
2463
|
+
/** Native `models.sparse.sparse_simpls` (regressor). */
|
|
2464
|
+
export declare class SparseSIMPLS extends NativeEstimator implements Regressor {
|
|
2465
|
+
readonly methodId = "models.sparse.sparse_simpls";
|
|
2466
|
+
readonly paramTypes: {
|
|
2467
|
+
readonly n_components: "int";
|
|
2468
|
+
readonly sparsity_lambda: "double";
|
|
2469
|
+
};
|
|
2470
|
+
constructor(params?: SparseSIMPLSParams);
|
|
2471
|
+
predict(X: Matrix): Matrix;
|
|
2472
|
+
}
|
|
2473
|
+
/** Parameters of ECR; unset values take the native defaults. */
|
|
2474
|
+
export interface ECRParams {
|
|
2475
|
+
/** Default 2. */
|
|
2476
|
+
n_components?: number;
|
|
2477
|
+
/** Default 0.5. */
|
|
2478
|
+
alpha?: number;
|
|
2479
|
+
}
|
|
2480
|
+
/** Native `models.specialized.ecr` (regressor). */
|
|
2481
|
+
export declare class ECR extends NativeEstimator implements Regressor {
|
|
2482
|
+
readonly methodId = "models.specialized.ecr";
|
|
2483
|
+
readonly paramTypes: {
|
|
2484
|
+
readonly n_components: "int";
|
|
2485
|
+
readonly alpha: "double";
|
|
2486
|
+
};
|
|
2487
|
+
constructor(params?: ECRParams);
|
|
2488
|
+
predict(X: Matrix): Matrix;
|
|
2489
|
+
}
|
|
2490
|
+
/** Parameters of GPRPLS; unset values take the native defaults. */
|
|
2491
|
+
export interface GPRPLSParams {
|
|
2492
|
+
/** Default 2. */
|
|
2493
|
+
n_components?: number;
|
|
2494
|
+
/** Default 1. */
|
|
2495
|
+
length_scale?: number;
|
|
2496
|
+
/** Default 0.001. */
|
|
2497
|
+
noise_level?: number;
|
|
2498
|
+
}
|
|
2499
|
+
/** Native `models.specialized.gpr_pls` (regressor). */
|
|
2500
|
+
export declare class GPRPLS extends NativeEstimator implements Regressor {
|
|
2501
|
+
readonly methodId = "models.specialized.gpr_pls";
|
|
2502
|
+
readonly paramTypes: {
|
|
2503
|
+
readonly n_components: "int";
|
|
2504
|
+
readonly length_scale: "double";
|
|
2505
|
+
readonly noise_level: "double";
|
|
2506
|
+
};
|
|
2507
|
+
constructor(params?: GPRPLSParams);
|
|
2508
|
+
predict(X: Matrix): Matrix;
|
|
2509
|
+
}
|
|
2510
|
+
/** Parameters of MissingAwareNIPALS; unset values take the native defaults. */
|
|
2511
|
+
export interface MissingAwareNIPALSParams {
|
|
2512
|
+
/** Default 2. */
|
|
2513
|
+
n_components?: number;
|
|
2514
|
+
}
|
|
2515
|
+
/** Native `models.specialized.missing_aware_nipals` (regressor). */
|
|
2516
|
+
export declare class MissingAwareNIPALS extends NativeEstimator implements Regressor {
|
|
2517
|
+
readonly methodId = "models.specialized.missing_aware_nipals";
|
|
2518
|
+
readonly paramTypes: {
|
|
2519
|
+
readonly n_components: "int";
|
|
2520
|
+
};
|
|
2521
|
+
constructor(params?: MissingAwareNIPALSParams);
|
|
2522
|
+
predict(X: Matrix): Matrix;
|
|
2523
|
+
}
|
|
2524
|
+
/** Parameters of RecursivePLS; unset values take the native defaults. */
|
|
2525
|
+
export interface RecursivePLSParams {
|
|
2526
|
+
/** Default 2. */
|
|
2527
|
+
n_components?: number;
|
|
2528
|
+
/** Required. */
|
|
2529
|
+
window_size?: number;
|
|
2530
|
+
}
|
|
2531
|
+
/** Native `models.specialized.recursive` (transformer, regressor). */
|
|
2532
|
+
export declare class RecursivePLS extends NativeEstimator implements Regressor, Transformer {
|
|
2533
|
+
readonly methodId = "models.specialized.recursive";
|
|
2534
|
+
readonly paramTypes: {
|
|
2535
|
+
readonly n_components: "int";
|
|
2536
|
+
readonly window_size: "int";
|
|
2537
|
+
};
|
|
2538
|
+
constructor(params?: RecursivePLSParams);
|
|
2539
|
+
predict(X: Matrix): Matrix;
|
|
2540
|
+
transform(X: Matrix): Matrix;
|
|
2541
|
+
}
|
|
2542
|
+
/** Parameters of NPLS; unset values take the native defaults. */
|
|
2543
|
+
export interface NPLSParams {
|
|
2544
|
+
/** Default 2. */
|
|
2545
|
+
n_components?: number;
|
|
2546
|
+
/** Required. */
|
|
2547
|
+
mode_j?: number;
|
|
2548
|
+
/** Required. */
|
|
2549
|
+
mode_k?: number;
|
|
2550
|
+
}
|
|
2551
|
+
/** Native `models.specialized.tensor_pls` (regressor). */
|
|
2552
|
+
export declare class NPLS extends NativeEstimator implements Regressor {
|
|
2553
|
+
readonly methodId = "models.specialized.tensor_pls";
|
|
2554
|
+
readonly paramTypes: {
|
|
2555
|
+
readonly n_components: "int";
|
|
2556
|
+
readonly mode_j: "int";
|
|
2557
|
+
readonly mode_k: "int";
|
|
2558
|
+
};
|
|
2559
|
+
constructor(params?: NPLSParams);
|
|
2560
|
+
predict(X: Matrix): Matrix;
|
|
2561
|
+
}
|
|
2562
|
+
/** Parameters of DIPLS; unset values take the native defaults. */
|
|
2563
|
+
export interface DIPLSParams {
|
|
2564
|
+
/** Default 2. */
|
|
2565
|
+
n_components?: number;
|
|
2566
|
+
/** Default 1. */
|
|
2567
|
+
di_lambda?: number;
|
|
2568
|
+
}
|
|
2569
|
+
/** Native `models.transfer.di_pls` (regressor). Required fit inputs: target_domain. */
|
|
2570
|
+
export declare class DIPLS extends NativeEstimator implements Regressor {
|
|
2571
|
+
readonly methodId = "models.transfer.di_pls";
|
|
2572
|
+
readonly paramTypes: {
|
|
2573
|
+
readonly n_components: "int";
|
|
2574
|
+
readonly di_lambda: "double";
|
|
2575
|
+
};
|
|
2576
|
+
constructor(params?: DIPLSParams);
|
|
2577
|
+
predict(X: Matrix): Matrix;
|
|
2578
|
+
}
|
|
2579
|
+
/** Parameters of DS; unset values take the native defaults. */
|
|
2580
|
+
export interface DSParams {
|
|
2581
|
+
}
|
|
2582
|
+
/** Native `models.transfer.ds` (transformer). Required fit inputs: target_domain. */
|
|
2583
|
+
export declare class DS extends NativeEstimator implements Transformer {
|
|
2584
|
+
readonly methodId = "models.transfer.ds";
|
|
2585
|
+
readonly paramTypes: {};
|
|
2586
|
+
constructor(params?: DSParams);
|
|
2587
|
+
transform(X: Matrix): Matrix;
|
|
2588
|
+
}
|
|
2589
|
+
/** Parameters of PDS; unset values take the native defaults. */
|
|
2590
|
+
export interface PDSParams {
|
|
2591
|
+
/** Default 2. */
|
|
2592
|
+
window_half_width?: number;
|
|
2593
|
+
}
|
|
2594
|
+
/** Native `models.transfer.pds` (transformer). Required fit inputs: target_domain. */
|
|
2595
|
+
export declare class PDS extends NativeEstimator implements Transformer {
|
|
2596
|
+
readonly methodId = "models.transfer.pds";
|
|
2597
|
+
readonly paramTypes: {
|
|
2598
|
+
readonly window_half_width: "int";
|
|
2599
|
+
};
|
|
2600
|
+
constructor(params?: PDSParams);
|
|
2601
|
+
transform(X: Matrix): Matrix;
|
|
2602
|
+
}
|
|
2603
|
+
/** Parameters of CorrelationOptimizedWarping; unset values take the native defaults. */
|
|
2604
|
+
export interface CorrelationOptimizedWarpingParams {
|
|
2605
|
+
/** Default []. */
|
|
2606
|
+
reference?: number[];
|
|
2607
|
+
/** Default 32. */
|
|
2608
|
+
interval_size?: number;
|
|
2609
|
+
/** Default 5. */
|
|
2610
|
+
max_shift?: number;
|
|
2611
|
+
}
|
|
2612
|
+
/** Native `preprocessing.alignment.cow_align` (transformer). */
|
|
2613
|
+
export declare class CorrelationOptimizedWarping extends NativeEstimator implements Transformer {
|
|
2614
|
+
readonly methodId = "preprocessing.alignment.cow_align";
|
|
2615
|
+
readonly paramTypes: {
|
|
2616
|
+
readonly reference: "double_array";
|
|
2617
|
+
readonly interval_size: "int";
|
|
2618
|
+
readonly max_shift: "int";
|
|
2619
|
+
};
|
|
2620
|
+
constructor(params?: CorrelationOptimizedWarpingParams);
|
|
2621
|
+
transform(X: Matrix): Matrix;
|
|
2622
|
+
}
|
|
2623
|
+
/** Parameters of DynamicTimeWarpingAlignment; unset values take the native defaults. */
|
|
2624
|
+
export interface DynamicTimeWarpingAlignmentParams {
|
|
2625
|
+
/** Default []. */
|
|
2626
|
+
reference?: number[];
|
|
2627
|
+
}
|
|
2628
|
+
/** Native `preprocessing.alignment.dtw_align` (transformer). */
|
|
2629
|
+
export declare class DynamicTimeWarpingAlignment extends NativeEstimator implements Transformer {
|
|
2630
|
+
readonly methodId = "preprocessing.alignment.dtw_align";
|
|
2631
|
+
readonly paramTypes: {
|
|
2632
|
+
readonly reference: "double_array";
|
|
2633
|
+
};
|
|
2634
|
+
constructor(params?: DynamicTimeWarpingAlignmentParams);
|
|
2635
|
+
transform(X: Matrix): Matrix;
|
|
2636
|
+
}
|
|
2637
|
+
/** Parameters of IcoshiftAlignment; unset values take the native defaults. */
|
|
2638
|
+
export interface IcoshiftAlignmentParams {
|
|
2639
|
+
/** Default []. */
|
|
2640
|
+
reference?: number[];
|
|
2641
|
+
/** Default 32. */
|
|
2642
|
+
interval_size?: number;
|
|
2643
|
+
/** Default 5. */
|
|
2644
|
+
max_shift?: number;
|
|
2645
|
+
}
|
|
2646
|
+
/** Native `preprocessing.alignment.icoshift_align` (transformer). */
|
|
2647
|
+
export declare class IcoshiftAlignment extends NativeEstimator implements Transformer {
|
|
2648
|
+
readonly methodId = "preprocessing.alignment.icoshift_align";
|
|
2649
|
+
readonly paramTypes: {
|
|
2650
|
+
readonly reference: "double_array";
|
|
2651
|
+
readonly interval_size: "int";
|
|
2652
|
+
readonly max_shift: "int";
|
|
2653
|
+
};
|
|
2654
|
+
constructor(params?: IcoshiftAlignmentParams);
|
|
2655
|
+
transform(X: Matrix): Matrix;
|
|
2656
|
+
}
|
|
2657
|
+
/** Parameters of CrossCorrelationAlignment; unset values take the native defaults. */
|
|
2658
|
+
export interface CrossCorrelationAlignmentParams {
|
|
2659
|
+
/** Default []. */
|
|
2660
|
+
reference?: number[];
|
|
2661
|
+
/** Default 5. */
|
|
2662
|
+
max_shift?: number;
|
|
2663
|
+
}
|
|
2664
|
+
/** Native `preprocessing.alignment.xcorr_align` (transformer). */
|
|
2665
|
+
export declare class CrossCorrelationAlignment extends NativeEstimator implements Transformer {
|
|
2666
|
+
readonly methodId = "preprocessing.alignment.xcorr_align";
|
|
2667
|
+
readonly paramTypes: {
|
|
2668
|
+
readonly reference: "double_array";
|
|
2669
|
+
readonly max_shift: "int";
|
|
2670
|
+
};
|
|
2671
|
+
constructor(params?: CrossCorrelationAlignmentParams);
|
|
2672
|
+
transform(X: Matrix): Matrix;
|
|
2673
|
+
}
|
|
2674
|
+
/** Parameters of AirPLS; unset values take the native defaults. */
|
|
2675
|
+
export interface AirPLSParams {
|
|
2676
|
+
/** Default 1000000. */
|
|
2677
|
+
lam?: number;
|
|
2678
|
+
/** Default 50. */
|
|
2679
|
+
max_iter?: number;
|
|
2680
|
+
/** Default 0.001. */
|
|
2681
|
+
tol?: number;
|
|
2682
|
+
}
|
|
2683
|
+
/** Native `preprocessing.baselines.airpls` (transformer). */
|
|
2684
|
+
export declare class AirPLS extends NativeEstimator implements Transformer {
|
|
2685
|
+
readonly methodId = "preprocessing.baselines.airpls";
|
|
2686
|
+
readonly paramTypes: {
|
|
2687
|
+
readonly lam: "double";
|
|
2688
|
+
readonly max_iter: "int";
|
|
2689
|
+
readonly tol: "double";
|
|
2690
|
+
};
|
|
2691
|
+
constructor(params?: AirPLSParams);
|
|
2692
|
+
transform(X: Matrix): Matrix;
|
|
2693
|
+
}
|
|
2694
|
+
/** Parameters of ArPLS; unset values take the native defaults. */
|
|
2695
|
+
export interface ArPLSParams {
|
|
2696
|
+
/** Default 100000. */
|
|
2697
|
+
lam?: number;
|
|
2698
|
+
/** Default 50. */
|
|
2699
|
+
max_iter?: number;
|
|
2700
|
+
/** Default 0.001. */
|
|
2701
|
+
tol?: number;
|
|
2702
|
+
}
|
|
2703
|
+
/** Native `preprocessing.baselines.arpls` (transformer). */
|
|
2704
|
+
export declare class ArPLS extends NativeEstimator implements Transformer {
|
|
2705
|
+
readonly methodId = "preprocessing.baselines.arpls";
|
|
2706
|
+
readonly paramTypes: {
|
|
2707
|
+
readonly lam: "double";
|
|
2708
|
+
readonly max_iter: "int";
|
|
2709
|
+
readonly tol: "double";
|
|
2710
|
+
};
|
|
2711
|
+
constructor(params?: ArPLSParams);
|
|
2712
|
+
transform(X: Matrix): Matrix;
|
|
2713
|
+
}
|
|
2714
|
+
/** Parameters of AsLS; unset values take the native defaults. */
|
|
2715
|
+
export interface AsLSParams {
|
|
2716
|
+
/** Default 1000000. */
|
|
2717
|
+
lam?: number;
|
|
2718
|
+
/** Default 0.01. */
|
|
2719
|
+
p?: number;
|
|
2720
|
+
/** Default 50. */
|
|
2721
|
+
max_iter?: number;
|
|
2722
|
+
/** Default 0.001. */
|
|
2723
|
+
tol?: number;
|
|
2724
|
+
}
|
|
2725
|
+
/** Native `preprocessing.baselines.asls` (transformer). */
|
|
2726
|
+
export declare class AsLS extends NativeEstimator implements Transformer {
|
|
2727
|
+
readonly methodId = "preprocessing.baselines.asls";
|
|
2728
|
+
readonly paramTypes: {
|
|
2729
|
+
readonly lam: "double";
|
|
2730
|
+
readonly p: "double";
|
|
2731
|
+
readonly max_iter: "int";
|
|
2732
|
+
readonly tol: "double";
|
|
2733
|
+
};
|
|
2734
|
+
constructor(params?: AsLSParams);
|
|
2735
|
+
transform(X: Matrix): Matrix;
|
|
2736
|
+
}
|
|
2737
|
+
/** Parameters of BEADS; unset values take the native defaults. */
|
|
2738
|
+
export interface BEADSParams {
|
|
2739
|
+
/** Default 100. */
|
|
2740
|
+
lam_0?: number;
|
|
2741
|
+
/** Default 0.5. */
|
|
2742
|
+
lam_1?: number;
|
|
2743
|
+
/** Default 0.5. */
|
|
2744
|
+
lam_2?: number;
|
|
2745
|
+
/** Default 50. */
|
|
2746
|
+
max_iter?: number;
|
|
2747
|
+
/** Default 0.001. */
|
|
2748
|
+
tol?: number;
|
|
2749
|
+
}
|
|
2750
|
+
/** Native `preprocessing.baselines.beads` (transformer). */
|
|
2751
|
+
export declare class BEADS extends NativeEstimator implements Transformer {
|
|
2752
|
+
readonly methodId = "preprocessing.baselines.beads";
|
|
2753
|
+
readonly paramTypes: {
|
|
2754
|
+
readonly lam_0: "double";
|
|
2755
|
+
readonly lam_1: "double";
|
|
2756
|
+
readonly lam_2: "double";
|
|
2757
|
+
readonly max_iter: "int";
|
|
2758
|
+
readonly tol: "double";
|
|
2759
|
+
};
|
|
2760
|
+
constructor(params?: BEADSParams);
|
|
2761
|
+
transform(X: Matrix): Matrix;
|
|
2762
|
+
}
|
|
2763
|
+
/** Parameters of Detrend; unset values take the native defaults. */
|
|
2764
|
+
export interface DetrendParams {
|
|
2765
|
+
/** Default 1. */
|
|
2766
|
+
polyorder?: number;
|
|
2767
|
+
}
|
|
2768
|
+
/** Native `preprocessing.baselines.detrend` (transformer). */
|
|
2769
|
+
export declare class Detrend extends NativeEstimator implements Transformer {
|
|
2770
|
+
readonly methodId = "preprocessing.baselines.detrend";
|
|
2771
|
+
readonly paramTypes: {
|
|
2772
|
+
readonly polyorder: "int";
|
|
2773
|
+
};
|
|
2774
|
+
constructor(params?: DetrendParams);
|
|
2775
|
+
transform(X: Matrix): Matrix;
|
|
2776
|
+
}
|
|
2777
|
+
/** Parameters of IAsLS; unset values take the native defaults. */
|
|
2778
|
+
export interface IAsLSParams {
|
|
2779
|
+
/** Default 1000000. */
|
|
2780
|
+
lam?: number;
|
|
2781
|
+
/** Default 0.01. */
|
|
2782
|
+
p?: number;
|
|
2783
|
+
/** Default 0.0001. */
|
|
2784
|
+
lam_1?: number;
|
|
2785
|
+
/** Default 2. */
|
|
2786
|
+
polyorder?: number;
|
|
2787
|
+
/** Default 2. */
|
|
2788
|
+
diff_order?: number;
|
|
2789
|
+
/** Default 50. */
|
|
2790
|
+
max_iter?: number;
|
|
2791
|
+
/** Default 0.001. */
|
|
2792
|
+
tol?: number;
|
|
2793
|
+
}
|
|
2794
|
+
/** Native `preprocessing.baselines.iasls` (transformer). */
|
|
2795
|
+
export declare class IAsLS extends NativeEstimator implements Transformer {
|
|
2796
|
+
readonly methodId = "preprocessing.baselines.iasls";
|
|
2797
|
+
readonly paramTypes: {
|
|
2798
|
+
readonly lam: "double";
|
|
2799
|
+
readonly p: "double";
|
|
2800
|
+
readonly lam_1: "double";
|
|
2801
|
+
readonly polyorder: "int";
|
|
2802
|
+
readonly diff_order: "int";
|
|
2803
|
+
readonly max_iter: "int";
|
|
2804
|
+
readonly tol: "double";
|
|
2805
|
+
};
|
|
2806
|
+
constructor(params?: IAsLSParams);
|
|
2807
|
+
transform(X: Matrix): Matrix;
|
|
2808
|
+
}
|
|
2809
|
+
/** Parameters of IModPoly; unset values take the native defaults. */
|
|
2810
|
+
export interface IModPolyParams {
|
|
2811
|
+
/** Default 2. */
|
|
2812
|
+
polyorder?: number;
|
|
2813
|
+
/** Default 250. */
|
|
2814
|
+
max_iter?: number;
|
|
2815
|
+
/** Default 0.001. */
|
|
2816
|
+
tol?: number;
|
|
2817
|
+
}
|
|
2818
|
+
/** Native `preprocessing.baselines.imodpoly` (transformer). */
|
|
2819
|
+
export declare class IModPoly extends NativeEstimator implements Transformer {
|
|
2820
|
+
readonly methodId = "preprocessing.baselines.imodpoly";
|
|
2821
|
+
readonly paramTypes: {
|
|
2822
|
+
readonly polyorder: "int";
|
|
2823
|
+
readonly max_iter: "int";
|
|
2824
|
+
readonly tol: "double";
|
|
2825
|
+
};
|
|
2826
|
+
constructor(params?: IModPolyParams);
|
|
2827
|
+
transform(X: Matrix): Matrix;
|
|
2828
|
+
}
|
|
2829
|
+
/** Parameters of ModPoly; unset values take the native defaults. */
|
|
2830
|
+
export interface ModPolyParams {
|
|
2831
|
+
/** Default 2. */
|
|
2832
|
+
polyorder?: number;
|
|
2833
|
+
/** Default 250. */
|
|
2834
|
+
max_iter?: number;
|
|
2835
|
+
/** Default 0.001. */
|
|
2836
|
+
tol?: number;
|
|
2837
|
+
}
|
|
2838
|
+
/** Native `preprocessing.baselines.modpoly` (transformer). */
|
|
2839
|
+
export declare class ModPoly extends NativeEstimator implements Transformer {
|
|
2840
|
+
readonly methodId = "preprocessing.baselines.modpoly";
|
|
2841
|
+
readonly paramTypes: {
|
|
2842
|
+
readonly polyorder: "int";
|
|
2843
|
+
readonly max_iter: "int";
|
|
2844
|
+
readonly tol: "double";
|
|
2845
|
+
};
|
|
2846
|
+
constructor(params?: ModPolyParams);
|
|
2847
|
+
transform(X: Matrix): Matrix;
|
|
2848
|
+
}
|
|
2849
|
+
/** Parameters of RollingBall; unset values take the native defaults. */
|
|
2850
|
+
export interface RollingBallParams {
|
|
2851
|
+
/** Default 20. */
|
|
2852
|
+
half_window?: number;
|
|
2853
|
+
/** Default 0. */
|
|
2854
|
+
smooth_half_window?: number;
|
|
2855
|
+
}
|
|
2856
|
+
/** Native `preprocessing.baselines.rolling_ball` (transformer). */
|
|
2857
|
+
export declare class RollingBall extends NativeEstimator implements Transformer {
|
|
2858
|
+
readonly methodId = "preprocessing.baselines.rolling_ball";
|
|
2859
|
+
readonly paramTypes: {
|
|
2860
|
+
readonly half_window: "int";
|
|
2861
|
+
readonly smooth_half_window: "int";
|
|
2862
|
+
};
|
|
2863
|
+
constructor(params?: RollingBallParams);
|
|
2864
|
+
transform(X: Matrix): Matrix;
|
|
2865
|
+
}
|
|
2866
|
+
/** Parameters of ScoreAugmentedProjectionStandardization; unset values take the native defaults. */
|
|
2867
|
+
export interface ScoreAugmentedProjectionStandardizationParams {
|
|
2868
|
+
/** Default 5. */
|
|
2869
|
+
n_components?: number;
|
|
2870
|
+
/** Default 1. */
|
|
2871
|
+
score_weight?: number;
|
|
2872
|
+
/** Default true. */
|
|
2873
|
+
fit_intercept?: boolean;
|
|
2874
|
+
/** Default 0. */
|
|
2875
|
+
ridge?: number;
|
|
2876
|
+
}
|
|
2877
|
+
/** Native `preprocessing.baselines.saps` (transformer). Required fit inputs: target_domain. */
|
|
2878
|
+
export declare class ScoreAugmentedProjectionStandardization extends NativeEstimator implements Transformer {
|
|
2879
|
+
readonly methodId = "preprocessing.baselines.saps";
|
|
2880
|
+
readonly paramTypes: {
|
|
2881
|
+
readonly n_components: "int";
|
|
2882
|
+
readonly score_weight: "double";
|
|
2883
|
+
readonly fit_intercept: "bool";
|
|
2884
|
+
readonly ridge: "double";
|
|
2885
|
+
};
|
|
2886
|
+
constructor(params?: ScoreAugmentedProjectionStandardizationParams);
|
|
2887
|
+
transform(X: Matrix): Matrix;
|
|
2888
|
+
}
|
|
2889
|
+
/** Parameters of SNIP; unset values take the native defaults. */
|
|
2890
|
+
export interface SNIPParams {
|
|
2891
|
+
/** Default 20. */
|
|
2892
|
+
max_half_window?: number;
|
|
2893
|
+
}
|
|
2894
|
+
/** Native `preprocessing.baselines.snip` (transformer). */
|
|
2895
|
+
export declare class SNIP extends NativeEstimator implements Transformer {
|
|
2896
|
+
readonly methodId = "preprocessing.baselines.snip";
|
|
2897
|
+
readonly paramTypes: {
|
|
2898
|
+
readonly max_half_window: "int";
|
|
2899
|
+
};
|
|
2900
|
+
constructor(params?: SNIPParams);
|
|
2901
|
+
transform(X: Matrix): Matrix;
|
|
2902
|
+
}
|
|
2903
|
+
/** Parameters of Derivate; unset values take the native defaults. */
|
|
2904
|
+
export interface DerivateParams {
|
|
2905
|
+
/** Default 1. */
|
|
2906
|
+
order?: number;
|
|
2907
|
+
/** Default 1. */
|
|
2908
|
+
delta?: number;
|
|
2909
|
+
}
|
|
2910
|
+
/** Native `preprocessing.derivatives.derivate` (transformer). */
|
|
2911
|
+
export declare class Derivate extends NativeEstimator implements Transformer {
|
|
2912
|
+
readonly methodId = "preprocessing.derivatives.derivate";
|
|
2913
|
+
readonly paramTypes: {
|
|
2914
|
+
readonly order: "int";
|
|
2915
|
+
readonly delta: "double";
|
|
2916
|
+
};
|
|
2917
|
+
constructor(params?: DerivateParams);
|
|
2918
|
+
transform(X: Matrix): Matrix;
|
|
2919
|
+
}
|
|
2920
|
+
/** Parameters of FirstDerivative; unset values take the native defaults. */
|
|
2921
|
+
export interface FirstDerivativeParams {
|
|
2922
|
+
/** Default 1. */
|
|
2923
|
+
delta?: number;
|
|
2924
|
+
/** Default 2. */
|
|
2925
|
+
edge_order?: number;
|
|
2926
|
+
}
|
|
2927
|
+
/** Native `preprocessing.derivatives.first_derivative` (transformer). */
|
|
2928
|
+
export declare class FirstDerivative extends NativeEstimator implements Transformer {
|
|
2929
|
+
readonly methodId = "preprocessing.derivatives.first_derivative";
|
|
2930
|
+
readonly paramTypes: {
|
|
2931
|
+
readonly delta: "double";
|
|
2932
|
+
readonly edge_order: "int";
|
|
2933
|
+
};
|
|
2934
|
+
constructor(params?: FirstDerivativeParams);
|
|
2935
|
+
transform(X: Matrix): Matrix;
|
|
2936
|
+
}
|
|
2937
|
+
/** Parameters of NorrisWilliams; unset values take the native defaults. */
|
|
2938
|
+
export interface NorrisWilliamsParams {
|
|
2939
|
+
/** Default 5. */
|
|
2940
|
+
segment?: number;
|
|
2941
|
+
/** Default 5. */
|
|
2942
|
+
gap?: number;
|
|
2943
|
+
/** Default 1. */
|
|
2944
|
+
derivative_order?: number;
|
|
2945
|
+
/** Default 1. */
|
|
2946
|
+
delta?: number;
|
|
2947
|
+
}
|
|
2948
|
+
/** Native `preprocessing.derivatives.norris_williams` (transformer). */
|
|
2949
|
+
export declare class NorrisWilliams extends NativeEstimator implements Transformer {
|
|
2950
|
+
readonly methodId = "preprocessing.derivatives.norris_williams";
|
|
2951
|
+
readonly paramTypes: {
|
|
2952
|
+
readonly segment: "int";
|
|
2953
|
+
readonly gap: "int";
|
|
2954
|
+
readonly derivative_order: "int";
|
|
2955
|
+
readonly delta: "double";
|
|
2956
|
+
};
|
|
2957
|
+
constructor(params?: NorrisWilliamsParams);
|
|
2958
|
+
transform(X: Matrix): Matrix;
|
|
2959
|
+
}
|
|
2960
|
+
/** Parameters of SavitzkyGolay; unset values take the native defaults. */
|
|
2961
|
+
export interface SavitzkyGolayParams {
|
|
2962
|
+
/** Default 5. */
|
|
2963
|
+
window_length?: number;
|
|
2964
|
+
/** Default 2. */
|
|
2965
|
+
polyorder?: number;
|
|
2966
|
+
/** Default 0. */
|
|
2967
|
+
deriv?: number;
|
|
2968
|
+
/** Default 1. */
|
|
2969
|
+
delta?: number;
|
|
2970
|
+
/** Default "mirror". */
|
|
2971
|
+
mode?: "mirror" | "constant" | "nearest" | "wrap" | "interp";
|
|
2972
|
+
/** Default 0. */
|
|
2973
|
+
cval?: number;
|
|
2974
|
+
}
|
|
2975
|
+
/** Native `preprocessing.derivatives.savitzky_golay` (transformer). */
|
|
2976
|
+
export declare class SavitzkyGolay extends NativeEstimator implements Transformer {
|
|
2977
|
+
readonly methodId = "preprocessing.derivatives.savitzky_golay";
|
|
2978
|
+
readonly paramTypes: {
|
|
2979
|
+
readonly window_length: "int";
|
|
2980
|
+
readonly polyorder: "int";
|
|
2981
|
+
readonly deriv: "int";
|
|
2982
|
+
readonly delta: "double";
|
|
2983
|
+
readonly mode: "enum";
|
|
2984
|
+
readonly cval: "double";
|
|
2985
|
+
};
|
|
2986
|
+
constructor(params?: SavitzkyGolayParams);
|
|
2987
|
+
transform(X: Matrix): Matrix;
|
|
2988
|
+
}
|
|
2989
|
+
/** Parameters of SecondDerivative; unset values take the native defaults. */
|
|
2990
|
+
export interface SecondDerivativeParams {
|
|
2991
|
+
/** Default 1. */
|
|
2992
|
+
delta?: number;
|
|
2993
|
+
/** Default 2. */
|
|
2994
|
+
edge_order?: number;
|
|
2995
|
+
}
|
|
2996
|
+
/** Native `preprocessing.derivatives.second_derivative` (transformer). */
|
|
2997
|
+
export declare class SecondDerivative extends NativeEstimator implements Transformer {
|
|
2998
|
+
readonly methodId = "preprocessing.derivatives.second_derivative";
|
|
2999
|
+
readonly paramTypes: {
|
|
3000
|
+
readonly delta: "double";
|
|
3001
|
+
readonly edge_order: "int";
|
|
3002
|
+
};
|
|
3003
|
+
constructor(params?: SecondDerivativeParams);
|
|
3004
|
+
transform(X: Matrix): Matrix;
|
|
3005
|
+
}
|
|
3006
|
+
/** Parameters of FlexiblePCA; unset values take the native defaults. */
|
|
3007
|
+
export interface FlexiblePCAParams {
|
|
3008
|
+
/** Default 5. */
|
|
3009
|
+
n_components?: number;
|
|
3010
|
+
}
|
|
3011
|
+
/** Native `preprocessing.feature_selection.flexible_pca` (transformer). */
|
|
3012
|
+
export declare class FlexiblePCA extends NativeEstimator implements Transformer {
|
|
3013
|
+
readonly methodId = "preprocessing.feature_selection.flexible_pca";
|
|
3014
|
+
readonly paramTypes: {
|
|
3015
|
+
readonly n_components: "double";
|
|
3016
|
+
};
|
|
3017
|
+
constructor(params?: FlexiblePCAParams);
|
|
3018
|
+
transform(X: Matrix): Matrix;
|
|
3019
|
+
}
|
|
3020
|
+
/** Parameters of FlexibleSVD; unset values take the native defaults. */
|
|
3021
|
+
export interface FlexibleSVDParams {
|
|
3022
|
+
/** Default 5. */
|
|
3023
|
+
n_components?: number;
|
|
3024
|
+
}
|
|
3025
|
+
/** Native `preprocessing.feature_selection.flexible_svd` (transformer). */
|
|
3026
|
+
export declare class FlexibleSVD extends NativeEstimator implements Transformer {
|
|
3027
|
+
readonly methodId = "preprocessing.feature_selection.flexible_svd";
|
|
3028
|
+
readonly paramTypes: {
|
|
3029
|
+
readonly n_components: "double";
|
|
3030
|
+
};
|
|
3031
|
+
constructor(params?: FlexibleSVDParams);
|
|
3032
|
+
transform(X: Matrix): Matrix;
|
|
3033
|
+
}
|
|
3034
|
+
/** Parameters of EPO; unset values take the native defaults. */
|
|
3035
|
+
export interface EPOParams {
|
|
3036
|
+
/** Default true. */
|
|
3037
|
+
scale?: boolean;
|
|
3038
|
+
}
|
|
3039
|
+
/** Native `preprocessing.orthogonalization.epo` (transformer). */
|
|
3040
|
+
export declare class EPO extends NativeEstimator implements Transformer {
|
|
3041
|
+
readonly methodId = "preprocessing.orthogonalization.epo";
|
|
3042
|
+
readonly paramTypes: {
|
|
3043
|
+
readonly scale: "bool";
|
|
3044
|
+
};
|
|
3045
|
+
constructor(params?: EPOParams);
|
|
3046
|
+
transform(X: Matrix): Matrix;
|
|
3047
|
+
}
|
|
3048
|
+
/** Parameters of OSC; unset values take the native defaults. */
|
|
3049
|
+
export interface OSCParams {
|
|
3050
|
+
/** Default 1. */
|
|
3051
|
+
n_components?: number;
|
|
3052
|
+
/** Default true. */
|
|
3053
|
+
scale?: boolean;
|
|
3054
|
+
}
|
|
3055
|
+
/** Native `preprocessing.orthogonalization.osc` (transformer). */
|
|
3056
|
+
export declare class OSC extends NativeEstimator implements Transformer {
|
|
3057
|
+
readonly methodId = "preprocessing.orthogonalization.osc";
|
|
3058
|
+
readonly paramTypes: {
|
|
3059
|
+
readonly n_components: "int";
|
|
3060
|
+
readonly scale: "bool";
|
|
3061
|
+
};
|
|
3062
|
+
constructor(params?: OSCParams);
|
|
3063
|
+
transform(X: Matrix): Matrix;
|
|
3064
|
+
}
|
|
3065
|
+
/** Parameters of CropTransformer; unset values take the native defaults. */
|
|
3066
|
+
export interface CropTransformerParams {
|
|
3067
|
+
/** Required. */
|
|
3068
|
+
start?: number;
|
|
3069
|
+
/** Required. */
|
|
3070
|
+
end?: number;
|
|
3071
|
+
}
|
|
3072
|
+
/** Native `preprocessing.resampling.crop` (transformer). */
|
|
3073
|
+
export declare class CropTransformer extends NativeEstimator implements Transformer {
|
|
3074
|
+
readonly methodId = "preprocessing.resampling.crop";
|
|
3075
|
+
readonly paramTypes: {
|
|
3076
|
+
readonly start: "int";
|
|
3077
|
+
readonly end: "int";
|
|
3078
|
+
};
|
|
3079
|
+
constructor(params?: CropTransformerParams);
|
|
3080
|
+
transform(X: Matrix): Matrix;
|
|
3081
|
+
}
|
|
3082
|
+
/** Parameters of IntegerKBinsDiscretizer; unset values take the native defaults. */
|
|
3083
|
+
export interface IntegerKBinsDiscretizerParams {
|
|
3084
|
+
/** Default 5. */
|
|
3085
|
+
n_bins?: number;
|
|
3086
|
+
/** Default "uniform". */
|
|
3087
|
+
strategy?: "uniform" | "quantile";
|
|
3088
|
+
}
|
|
3089
|
+
/** Native `preprocessing.resampling.kbins_discretizer` (transformer). */
|
|
3090
|
+
export declare class IntegerKBinsDiscretizer extends NativeEstimator implements Transformer {
|
|
3091
|
+
readonly methodId = "preprocessing.resampling.kbins_discretizer";
|
|
3092
|
+
readonly paramTypes: {
|
|
3093
|
+
readonly n_bins: "int";
|
|
3094
|
+
readonly strategy: "enum";
|
|
3095
|
+
};
|
|
3096
|
+
constructor(params?: IntegerKBinsDiscretizerParams);
|
|
3097
|
+
transform(X: Matrix): Matrix;
|
|
3098
|
+
}
|
|
3099
|
+
/** Parameters of RangeDiscretizer; unset values take the native defaults. */
|
|
3100
|
+
export interface RangeDiscretizerParams {
|
|
3101
|
+
/** Required. */
|
|
3102
|
+
edges?: number[];
|
|
3103
|
+
}
|
|
3104
|
+
/** Native `preprocessing.resampling.range_discretizer` (transformer). */
|
|
3105
|
+
export declare class RangeDiscretizer extends NativeEstimator implements Transformer {
|
|
3106
|
+
readonly methodId = "preprocessing.resampling.range_discretizer";
|
|
3107
|
+
readonly paramTypes: {
|
|
3108
|
+
readonly edges: "double_array";
|
|
3109
|
+
};
|
|
3110
|
+
constructor(params?: RangeDiscretizerParams);
|
|
3111
|
+
transform(X: Matrix): Matrix;
|
|
3112
|
+
}
|
|
3113
|
+
/** Parameters of ResampleTransformer; unset values take the native defaults. */
|
|
3114
|
+
export interface ResampleTransformerParams {
|
|
3115
|
+
/** Required. */
|
|
3116
|
+
num_samples?: number;
|
|
3117
|
+
}
|
|
3118
|
+
/** Native `preprocessing.resampling.resample_transformer` (transformer). */
|
|
3119
|
+
export declare class ResampleTransformer extends NativeEstimator implements Transformer {
|
|
3120
|
+
readonly methodId = "preprocessing.resampling.resample_transformer";
|
|
3121
|
+
readonly paramTypes: {
|
|
3122
|
+
readonly num_samples: "int";
|
|
3123
|
+
};
|
|
3124
|
+
constructor(params?: ResampleTransformerParams);
|
|
3125
|
+
transform(X: Matrix): Matrix;
|
|
3126
|
+
}
|
|
3127
|
+
/** Parameters of Resampler; unset values take the native defaults. */
|
|
3128
|
+
export interface ResamplerParams {
|
|
3129
|
+
/** Default []. */
|
|
3130
|
+
target_wavelengths?: number[];
|
|
3131
|
+
/** Default "linear". */
|
|
3132
|
+
method?: "linear" | "nearest" | "cubic";
|
|
3133
|
+
/** Default 0. */
|
|
3134
|
+
crop_min?: number;
|
|
3135
|
+
/** Default 0. */
|
|
3136
|
+
crop_max?: number;
|
|
3137
|
+
/** Default false. */
|
|
3138
|
+
use_crop?: boolean;
|
|
3139
|
+
/** Default 0. */
|
|
3140
|
+
fill_value?: number;
|
|
3141
|
+
/** Default false. */
|
|
3142
|
+
bounds_error?: boolean;
|
|
3143
|
+
/** Default false. */
|
|
3144
|
+
extrapolate?: boolean;
|
|
3145
|
+
/** Default 0. */
|
|
3146
|
+
tgt_min?: number;
|
|
3147
|
+
/** Default 1. */
|
|
3148
|
+
tgt_step?: number;
|
|
3149
|
+
/** Default 0. */
|
|
3150
|
+
tgt_n?: number;
|
|
3151
|
+
}
|
|
3152
|
+
/** Native `preprocessing.resampling.resampler` (transformer). Required fit inputs: axis. */
|
|
3153
|
+
export declare class Resampler extends NativeEstimator implements Transformer {
|
|
3154
|
+
readonly methodId = "preprocessing.resampling.resampler";
|
|
3155
|
+
readonly paramTypes: {
|
|
3156
|
+
readonly target_wavelengths: "double_array";
|
|
3157
|
+
readonly method: "enum";
|
|
3158
|
+
readonly crop_min: "double";
|
|
3159
|
+
readonly crop_max: "double";
|
|
3160
|
+
readonly use_crop: "bool";
|
|
3161
|
+
readonly fill_value: "double";
|
|
3162
|
+
readonly bounds_error: "bool";
|
|
3163
|
+
readonly extrapolate: "bool";
|
|
3164
|
+
readonly tgt_min: "double";
|
|
3165
|
+
readonly tgt_step: "double";
|
|
3166
|
+
readonly tgt_n: "int";
|
|
3167
|
+
};
|
|
3168
|
+
constructor(params?: ResamplerParams);
|
|
3169
|
+
transform(X: Matrix): Matrix;
|
|
3170
|
+
}
|
|
3171
|
+
/** Parameters of BaselineCenter; unset values take the native defaults. */
|
|
3172
|
+
export interface BaselineCenterParams {
|
|
3173
|
+
}
|
|
3174
|
+
/** Native `preprocessing.scaling.baseline` (transformer). */
|
|
3175
|
+
export declare class BaselineCenter extends NativeEstimator implements Transformer {
|
|
3176
|
+
readonly methodId = "preprocessing.scaling.baseline";
|
|
3177
|
+
readonly paramTypes: {};
|
|
3178
|
+
constructor(params?: BaselineCenterParams);
|
|
3179
|
+
transform(X: Matrix): Matrix;
|
|
3180
|
+
}
|
|
3181
|
+
/** Parameters of LogTransform; unset values take the native defaults. */
|
|
3182
|
+
export interface LogTransformParams {
|
|
3183
|
+
/** Default 0. */
|
|
3184
|
+
base?: number;
|
|
3185
|
+
/** Default 0. */
|
|
3186
|
+
offset?: number;
|
|
3187
|
+
/** Default true. */
|
|
3188
|
+
auto_offset?: boolean;
|
|
3189
|
+
/** Default 1e-08. */
|
|
3190
|
+
min_value?: number;
|
|
3191
|
+
}
|
|
3192
|
+
/** Native `preprocessing.scaling.log_transform` (transformer). */
|
|
3193
|
+
export declare class LogTransform extends NativeEstimator implements Transformer {
|
|
3194
|
+
readonly methodId = "preprocessing.scaling.log_transform";
|
|
3195
|
+
readonly paramTypes: {
|
|
3196
|
+
readonly base: "double";
|
|
3197
|
+
readonly offset: "double";
|
|
3198
|
+
readonly auto_offset: "bool";
|
|
3199
|
+
readonly min_value: "double";
|
|
3200
|
+
};
|
|
3201
|
+
constructor(params?: LogTransformParams);
|
|
3202
|
+
transform(X: Matrix): Matrix;
|
|
3203
|
+
}
|
|
3204
|
+
/** Parameters of Normalize; unset values take the native defaults. */
|
|
3205
|
+
export interface NormalizeParams {
|
|
3206
|
+
/** Default -1. */
|
|
3207
|
+
feature_min?: number;
|
|
3208
|
+
/** Default 1. */
|
|
3209
|
+
feature_max?: number;
|
|
3210
|
+
}
|
|
3211
|
+
/** Native `preprocessing.scaling.normalize` (transformer). */
|
|
3212
|
+
export declare class Normalize extends NativeEstimator implements Transformer {
|
|
3213
|
+
readonly methodId = "preprocessing.scaling.normalize";
|
|
3214
|
+
readonly paramTypes: {
|
|
3215
|
+
readonly feature_min: "double";
|
|
3216
|
+
readonly feature_max: "double";
|
|
3217
|
+
};
|
|
3218
|
+
constructor(params?: NormalizeParams);
|
|
3219
|
+
transform(X: Matrix): Matrix;
|
|
3220
|
+
}
|
|
3221
|
+
/** Parameters of SimpleScale; unset values take the native defaults. */
|
|
3222
|
+
export interface SimpleScaleParams {
|
|
3223
|
+
}
|
|
3224
|
+
/** Native `preprocessing.scaling.simple_scale` (transformer). */
|
|
3225
|
+
export declare class SimpleScale extends NativeEstimator implements Transformer {
|
|
3226
|
+
readonly methodId = "preprocessing.scaling.simple_scale";
|
|
3227
|
+
readonly paramTypes: {};
|
|
3228
|
+
constructor(params?: SimpleScaleParams);
|
|
3229
|
+
transform(X: Matrix): Matrix;
|
|
3230
|
+
}
|
|
3231
|
+
/** Parameters of AreaNormalization; unset values take the native defaults. */
|
|
3232
|
+
export interface AreaNormalizationParams {
|
|
3233
|
+
/** Default "sum". */
|
|
3234
|
+
method?: "sum" | "abs_sum" | "trapz";
|
|
3235
|
+
}
|
|
3236
|
+
/** Native `preprocessing.scatter.area_normalization` (transformer). */
|
|
3237
|
+
export declare class AreaNormalization extends NativeEstimator implements Transformer {
|
|
3238
|
+
readonly methodId = "preprocessing.scatter.area_normalization";
|
|
3239
|
+
readonly paramTypes: {
|
|
3240
|
+
readonly method: "enum";
|
|
3241
|
+
};
|
|
3242
|
+
constructor(params?: AreaNormalizationParams);
|
|
3243
|
+
transform(X: Matrix): Matrix;
|
|
3244
|
+
}
|
|
3245
|
+
/** Parameters of EMSC; unset values take the native defaults. */
|
|
3246
|
+
export interface EMSCParams {
|
|
3247
|
+
/** Default 2. */
|
|
3248
|
+
degree?: number;
|
|
3249
|
+
}
|
|
3250
|
+
/** Native `preprocessing.scatter.emsc` (transformer). */
|
|
3251
|
+
export declare class EMSC extends NativeEstimator implements Transformer {
|
|
3252
|
+
readonly methodId = "preprocessing.scatter.emsc";
|
|
3253
|
+
readonly paramTypes: {
|
|
3254
|
+
readonly degree: "int";
|
|
3255
|
+
};
|
|
3256
|
+
constructor(params?: EMSCParams);
|
|
3257
|
+
transform(X: Matrix): Matrix;
|
|
3258
|
+
}
|
|
3259
|
+
/** Parameters of LocalCentering; unset values take the native defaults. */
|
|
3260
|
+
export interface LocalCenteringParams {
|
|
3261
|
+
}
|
|
3262
|
+
/** Native `preprocessing.scatter.local_centering` (transformer). Required fit inputs: target_domain. */
|
|
3263
|
+
export declare class LocalCentering extends NativeEstimator implements Transformer {
|
|
3264
|
+
readonly methodId = "preprocessing.scatter.local_centering";
|
|
3265
|
+
readonly paramTypes: {};
|
|
3266
|
+
constructor(params?: LocalCenteringParams);
|
|
3267
|
+
transform(X: Matrix): Matrix;
|
|
3268
|
+
}
|
|
3269
|
+
/** Parameters of LSNV; unset values take the native defaults. */
|
|
3270
|
+
export interface LSNVParams {
|
|
3271
|
+
/** Default 11. */
|
|
3272
|
+
window?: number;
|
|
3273
|
+
/** Default "reflect". */
|
|
3274
|
+
pad_mode?: "reflect" | "edge" | "constant";
|
|
3275
|
+
/** Default 0. */
|
|
3276
|
+
constant_value?: number;
|
|
3277
|
+
}
|
|
3278
|
+
/** Native `preprocessing.scatter.local_snv` (transformer). */
|
|
3279
|
+
export declare class LSNV extends NativeEstimator implements Transformer {
|
|
3280
|
+
readonly methodId = "preprocessing.scatter.local_snv";
|
|
3281
|
+
readonly paramTypes: {
|
|
3282
|
+
readonly window: "int";
|
|
3283
|
+
readonly pad_mode: "enum";
|
|
3284
|
+
readonly constant_value: "double";
|
|
3285
|
+
};
|
|
3286
|
+
constructor(params?: LSNVParams);
|
|
3287
|
+
transform(X: Matrix): Matrix;
|
|
3288
|
+
}
|
|
3289
|
+
/** Parameters of LocalizedMSC; unset values take the native defaults. */
|
|
3290
|
+
export interface LocalizedMSCParams {
|
|
3291
|
+
/** Default 32. */
|
|
3292
|
+
window_size?: number;
|
|
3293
|
+
/** Default []. */
|
|
3294
|
+
reference?: number[];
|
|
3295
|
+
/** Default 1e-12. */
|
|
3296
|
+
eps?: number;
|
|
3297
|
+
}
|
|
3298
|
+
/** Native `preprocessing.scatter.localized_msc` (transformer). */
|
|
3299
|
+
export declare class LocalizedMSC extends NativeEstimator implements Transformer {
|
|
3300
|
+
readonly methodId = "preprocessing.scatter.localized_msc";
|
|
3301
|
+
readonly paramTypes: {
|
|
3302
|
+
readonly window_size: "int";
|
|
3303
|
+
readonly reference: "double_array";
|
|
3304
|
+
readonly eps: "double";
|
|
3305
|
+
};
|
|
3306
|
+
constructor(params?: LocalizedMSCParams);
|
|
3307
|
+
transform(X: Matrix): Matrix;
|
|
3308
|
+
}
|
|
3309
|
+
/** Parameters of MSC; unset values take the native defaults. */
|
|
3310
|
+
export interface MSCParams {
|
|
3311
|
+
}
|
|
3312
|
+
/** Native `preprocessing.scatter.msc` (transformer). */
|
|
3313
|
+
export declare class MSC extends NativeEstimator implements Transformer {
|
|
3314
|
+
readonly methodId = "preprocessing.scatter.msc";
|
|
3315
|
+
readonly paramTypes: {};
|
|
3316
|
+
constructor(params?: MSCParams);
|
|
3317
|
+
transform(X: Matrix): Matrix;
|
|
3318
|
+
}
|
|
3319
|
+
/** Parameters of PiecewiseMSC; unset values take the native defaults. */
|
|
3320
|
+
export interface PiecewiseMSCParams {
|
|
3321
|
+
/** Default 32. */
|
|
3322
|
+
window_size?: number;
|
|
3323
|
+
/** Default []. */
|
|
3324
|
+
reference?: number[];
|
|
3325
|
+
/** Default 1e-12. */
|
|
3326
|
+
eps?: number;
|
|
3327
|
+
}
|
|
3328
|
+
/** Native `preprocessing.scatter.piecewise_msc` (transformer). */
|
|
3329
|
+
export declare class PiecewiseMSC extends NativeEstimator implements Transformer {
|
|
3330
|
+
readonly methodId = "preprocessing.scatter.piecewise_msc";
|
|
3331
|
+
readonly paramTypes: {
|
|
3332
|
+
readonly window_size: "int";
|
|
3333
|
+
readonly reference: "double_array";
|
|
3334
|
+
readonly eps: "double";
|
|
3335
|
+
};
|
|
3336
|
+
constructor(params?: PiecewiseMSCParams);
|
|
3337
|
+
transform(X: Matrix): Matrix;
|
|
3338
|
+
}
|
|
3339
|
+
/** Parameters of PiecewiseSNV; unset values take the native defaults. */
|
|
3340
|
+
export interface PiecewiseSNVParams {
|
|
3341
|
+
/** Default 32. */
|
|
3342
|
+
window_size?: number;
|
|
3343
|
+
/** Default 0. */
|
|
3344
|
+
ddof?: number;
|
|
3345
|
+
/** Default 1e-12. */
|
|
3346
|
+
eps?: number;
|
|
3347
|
+
}
|
|
3348
|
+
/** Native `preprocessing.scatter.piecewise_snv` (transformer). */
|
|
3349
|
+
export declare class PiecewiseSNV extends NativeEstimator implements Transformer {
|
|
3350
|
+
readonly methodId = "preprocessing.scatter.piecewise_snv";
|
|
3351
|
+
readonly paramTypes: {
|
|
3352
|
+
readonly window_size: "int";
|
|
3353
|
+
readonly ddof: "int";
|
|
3354
|
+
readonly eps: "double";
|
|
3355
|
+
};
|
|
3356
|
+
constructor(params?: PiecewiseSNVParams);
|
|
3357
|
+
transform(X: Matrix): Matrix;
|
|
3358
|
+
}
|
|
3359
|
+
/** Parameters of RNV; unset values take the native defaults. */
|
|
3360
|
+
export interface RNVParams {
|
|
3361
|
+
/** Default true. */
|
|
3362
|
+
with_center?: boolean;
|
|
3363
|
+
/** Default true. */
|
|
3364
|
+
with_scale?: boolean;
|
|
3365
|
+
/** Default 1.4826. */
|
|
3366
|
+
k?: number;
|
|
3367
|
+
}
|
|
3368
|
+
/** Native `preprocessing.scatter.robust_snv` (transformer). */
|
|
3369
|
+
export declare class RNV extends NativeEstimator implements Transformer {
|
|
3370
|
+
readonly methodId = "preprocessing.scatter.robust_snv";
|
|
3371
|
+
readonly paramTypes: {
|
|
3372
|
+
readonly with_center: "bool";
|
|
3373
|
+
readonly with_scale: "bool";
|
|
3374
|
+
readonly k: "double";
|
|
3375
|
+
};
|
|
3376
|
+
constructor(params?: RNVParams);
|
|
3377
|
+
transform(X: Matrix): Matrix;
|
|
3378
|
+
}
|
|
3379
|
+
/** Parameters of SNV; unset values take the native defaults. */
|
|
3380
|
+
export interface SNVParams {
|
|
3381
|
+
/** Default true. */
|
|
3382
|
+
with_mean?: boolean;
|
|
3383
|
+
/** Default true. */
|
|
3384
|
+
with_std?: boolean;
|
|
3385
|
+
/** Default 0. */
|
|
3386
|
+
ddof?: number;
|
|
3387
|
+
}
|
|
3388
|
+
/** Native `preprocessing.scatter.snv` (transformer). */
|
|
3389
|
+
export declare class SNV extends NativeEstimator implements Transformer {
|
|
3390
|
+
readonly methodId = "preprocessing.scatter.snv";
|
|
3391
|
+
readonly paramTypes: {
|
|
3392
|
+
readonly with_mean: "bool";
|
|
3393
|
+
readonly with_std: "bool";
|
|
3394
|
+
readonly ddof: "int";
|
|
3395
|
+
};
|
|
3396
|
+
constructor(params?: SNVParams);
|
|
3397
|
+
transform(X: Matrix): Matrix;
|
|
3398
|
+
}
|
|
3399
|
+
/** Parameters of VariableSortingNormalization; unset values take the native defaults. */
|
|
3400
|
+
export interface VariableSortingNormalizationParams {
|
|
3401
|
+
/** Default 1e-12. */
|
|
3402
|
+
eps?: number;
|
|
3403
|
+
}
|
|
3404
|
+
/** Native `preprocessing.scatter.vsn` (transformer). */
|
|
3405
|
+
export declare class VariableSortingNormalization extends NativeEstimator implements Transformer {
|
|
3406
|
+
readonly methodId = "preprocessing.scatter.vsn";
|
|
3407
|
+
readonly paramTypes: {
|
|
3408
|
+
readonly eps: "double";
|
|
3409
|
+
};
|
|
3410
|
+
constructor(params?: VariableSortingNormalizationParams);
|
|
3411
|
+
transform(X: Matrix): Matrix;
|
|
3412
|
+
}
|
|
3413
|
+
/** Parameters of WeightedSNV; unset values take the native defaults. */
|
|
3414
|
+
export interface WeightedSNVParams {
|
|
3415
|
+
/** Default []. */
|
|
3416
|
+
weights?: number[];
|
|
3417
|
+
/** Default 0. */
|
|
3418
|
+
ddof?: number;
|
|
3419
|
+
/** Default 1e-12. */
|
|
3420
|
+
eps?: number;
|
|
3421
|
+
}
|
|
3422
|
+
/** Native `preprocessing.scatter.weighted_snv` (transformer). */
|
|
3423
|
+
export declare class WeightedSNV extends NativeEstimator implements Transformer {
|
|
3424
|
+
readonly methodId = "preprocessing.scatter.weighted_snv";
|
|
3425
|
+
readonly paramTypes: {
|
|
3426
|
+
readonly weights: "double_array";
|
|
3427
|
+
readonly ddof: "int";
|
|
3428
|
+
readonly eps: "double";
|
|
3429
|
+
};
|
|
3430
|
+
constructor(params?: WeightedSNVParams);
|
|
3431
|
+
transform(X: Matrix): Matrix;
|
|
3432
|
+
}
|
|
3433
|
+
/** Parameters of FractionToPercent; unset values take the native defaults. */
|
|
3434
|
+
export interface FractionToPercentParams {
|
|
3435
|
+
}
|
|
3436
|
+
/** Native `preprocessing.signal_conversion.fraction_to_percent` (transformer). */
|
|
3437
|
+
export declare class FractionToPercent extends NativeEstimator implements Transformer {
|
|
3438
|
+
readonly methodId = "preprocessing.signal_conversion.fraction_to_percent";
|
|
3439
|
+
readonly paramTypes: {};
|
|
3440
|
+
constructor(params?: FractionToPercentParams);
|
|
3441
|
+
transform(X: Matrix): Matrix;
|
|
3442
|
+
}
|
|
3443
|
+
/** Parameters of FromAbsorbance; unset values take the native defaults. */
|
|
3444
|
+
export interface FromAbsorbanceParams {
|
|
3445
|
+
/** Default false. */
|
|
3446
|
+
is_percent?: boolean;
|
|
3447
|
+
}
|
|
3448
|
+
/** Native `preprocessing.signal_conversion.from_absorbance` (transformer). */
|
|
3449
|
+
export declare class FromAbsorbance extends NativeEstimator implements Transformer {
|
|
3450
|
+
readonly methodId = "preprocessing.signal_conversion.from_absorbance";
|
|
3451
|
+
readonly paramTypes: {
|
|
3452
|
+
readonly is_percent: "bool";
|
|
3453
|
+
};
|
|
3454
|
+
constructor(params?: FromAbsorbanceParams);
|
|
3455
|
+
transform(X: Matrix): Matrix;
|
|
3456
|
+
}
|
|
3457
|
+
/** Parameters of KubelkaMunk; unset values take the native defaults. */
|
|
3458
|
+
export interface KubelkaMunkParams {
|
|
3459
|
+
/** Default false. */
|
|
3460
|
+
is_percent?: boolean;
|
|
3461
|
+
/** Default 1e-10. */
|
|
3462
|
+
epsilon?: number;
|
|
3463
|
+
}
|
|
3464
|
+
/** Native `preprocessing.signal_conversion.kubelka_munk` (transformer). */
|
|
3465
|
+
export declare class KubelkaMunk extends NativeEstimator implements Transformer {
|
|
3466
|
+
readonly methodId = "preprocessing.signal_conversion.kubelka_munk";
|
|
3467
|
+
readonly paramTypes: {
|
|
3468
|
+
readonly is_percent: "bool";
|
|
3469
|
+
readonly epsilon: "double";
|
|
3470
|
+
};
|
|
3471
|
+
constructor(params?: KubelkaMunkParams);
|
|
3472
|
+
transform(X: Matrix): Matrix;
|
|
3473
|
+
}
|
|
3474
|
+
/** Parameters of PercentToFraction; unset values take the native defaults. */
|
|
3475
|
+
export interface PercentToFractionParams {
|
|
3476
|
+
}
|
|
3477
|
+
/** Native `preprocessing.signal_conversion.percent_to_fraction` (transformer). */
|
|
3478
|
+
export declare class PercentToFraction extends NativeEstimator implements Transformer {
|
|
3479
|
+
readonly methodId = "preprocessing.signal_conversion.percent_to_fraction";
|
|
3480
|
+
readonly paramTypes: {};
|
|
3481
|
+
constructor(params?: PercentToFractionParams);
|
|
3482
|
+
transform(X: Matrix): Matrix;
|
|
3483
|
+
}
|
|
3484
|
+
/** Parameters of ToAbsorbance; unset values take the native defaults. */
|
|
3485
|
+
export interface ToAbsorbanceParams {
|
|
3486
|
+
/** Default false. */
|
|
3487
|
+
is_percent?: boolean;
|
|
3488
|
+
/** Default 1e-10. */
|
|
3489
|
+
epsilon?: number;
|
|
3490
|
+
/** Default true. */
|
|
3491
|
+
clip_negative?: boolean;
|
|
3492
|
+
}
|
|
3493
|
+
/** Native `preprocessing.signal_conversion.to_absorbance` (transformer). */
|
|
3494
|
+
export declare class ToAbsorbance extends NativeEstimator implements Transformer {
|
|
3495
|
+
readonly methodId = "preprocessing.signal_conversion.to_absorbance";
|
|
3496
|
+
readonly paramTypes: {
|
|
3497
|
+
readonly is_percent: "bool";
|
|
3498
|
+
readonly epsilon: "double";
|
|
3499
|
+
readonly clip_negative: "bool";
|
|
3500
|
+
};
|
|
3501
|
+
constructor(params?: ToAbsorbanceParams);
|
|
3502
|
+
transform(X: Matrix): Matrix;
|
|
3503
|
+
}
|
|
3504
|
+
/** Parameters of Gaussian; unset values take the native defaults. */
|
|
3505
|
+
export interface GaussianParams {
|
|
3506
|
+
/** Default 1. */
|
|
3507
|
+
sigma?: number;
|
|
3508
|
+
/** Default 0. */
|
|
3509
|
+
order?: number;
|
|
3510
|
+
/** Default "reflect". */
|
|
3511
|
+
mode?: "reflect" | "constant" | "nearest" | "mirror" | "wrap";
|
|
3512
|
+
/** Default 0. */
|
|
3513
|
+
cval?: number;
|
|
3514
|
+
/** Default 4. */
|
|
3515
|
+
truncate?: number;
|
|
3516
|
+
}
|
|
3517
|
+
/** Native `preprocessing.smoothing.gaussian` (transformer). */
|
|
3518
|
+
export declare class Gaussian extends NativeEstimator implements Transformer {
|
|
3519
|
+
readonly methodId = "preprocessing.smoothing.gaussian";
|
|
3520
|
+
readonly paramTypes: {
|
|
3521
|
+
readonly sigma: "double";
|
|
3522
|
+
readonly order: "int";
|
|
3523
|
+
readonly mode: "enum";
|
|
3524
|
+
readonly cval: "double";
|
|
3525
|
+
readonly truncate: "double";
|
|
3526
|
+
};
|
|
3527
|
+
constructor(params?: GaussianParams);
|
|
3528
|
+
transform(X: Matrix): Matrix;
|
|
3529
|
+
}
|
|
3530
|
+
/** Parameters of FCKStaticTransformer; unset values take the native defaults. */
|
|
3531
|
+
export interface FCKStaticTransformerParams {
|
|
3532
|
+
/** Required. */
|
|
3533
|
+
kernel_size?: number;
|
|
3534
|
+
/** Required. */
|
|
3535
|
+
alphas?: number[];
|
|
3536
|
+
/** Required. */
|
|
3537
|
+
sigmas?: number[];
|
|
3538
|
+
}
|
|
3539
|
+
/** Native `preprocessing.specialized.fck_static` (transformer). */
|
|
3540
|
+
export declare class FCKStaticTransformer extends NativeEstimator implements Transformer {
|
|
3541
|
+
readonly methodId = "preprocessing.specialized.fck_static";
|
|
3542
|
+
readonly paramTypes: {
|
|
3543
|
+
readonly kernel_size: "int";
|
|
3544
|
+
readonly alphas: "double_array";
|
|
3545
|
+
readonly sigmas: "double_array";
|
|
3546
|
+
};
|
|
3547
|
+
constructor(params?: FCKStaticTransformerParams);
|
|
3548
|
+
transform(X: Matrix): Matrix;
|
|
3549
|
+
}
|
|
3550
|
+
/** Parameters of DirectStandardization; unset values take the native defaults. */
|
|
3551
|
+
export interface DirectStandardizationParams {
|
|
3552
|
+
/** Default true. */
|
|
3553
|
+
fit_intercept?: boolean;
|
|
3554
|
+
/** Default 0. */
|
|
3555
|
+
ridge?: number;
|
|
3556
|
+
}
|
|
3557
|
+
/** Native `preprocessing.transfer.direct_standardization` (transformer). Required fit inputs: target_domain. */
|
|
3558
|
+
export declare class DirectStandardization extends NativeEstimator implements Transformer {
|
|
3559
|
+
readonly methodId = "preprocessing.transfer.direct_standardization";
|
|
3560
|
+
readonly paramTypes: {
|
|
3561
|
+
readonly fit_intercept: "bool";
|
|
3562
|
+
readonly ridge: "double";
|
|
3563
|
+
};
|
|
3564
|
+
constructor(params?: DirectStandardizationParams);
|
|
3565
|
+
transform(X: Matrix): Matrix;
|
|
3566
|
+
}
|
|
3567
|
+
/** Parameters of PiecewiseDirectStandardization; unset values take the native defaults. */
|
|
3568
|
+
export interface PiecewiseDirectStandardizationParams {
|
|
3569
|
+
/** Default 5. */
|
|
3570
|
+
window_size?: number;
|
|
3571
|
+
/** Default true. */
|
|
3572
|
+
fit_intercept?: boolean;
|
|
3573
|
+
/** Default 0. */
|
|
3574
|
+
ridge?: number;
|
|
3575
|
+
}
|
|
3576
|
+
/** Native `preprocessing.transfer.piecewise_direct_standardization` (transformer). Required fit inputs: target_domain. */
|
|
3577
|
+
export declare class PiecewiseDirectStandardization extends NativeEstimator implements Transformer {
|
|
3578
|
+
readonly methodId = "preprocessing.transfer.piecewise_direct_standardization";
|
|
3579
|
+
readonly paramTypes: {
|
|
3580
|
+
readonly window_size: "int";
|
|
3581
|
+
readonly fit_intercept: "bool";
|
|
3582
|
+
readonly ridge: "double";
|
|
3583
|
+
};
|
|
3584
|
+
constructor(params?: PiecewiseDirectStandardizationParams);
|
|
3585
|
+
transform(X: Matrix): Matrix;
|
|
3586
|
+
}
|
|
3587
|
+
/** Parameters of RobustDirectStandardization; unset values take the native defaults. */
|
|
3588
|
+
export interface RobustDirectStandardizationParams {
|
|
3589
|
+
/** Default true. */
|
|
3590
|
+
fit_intercept?: boolean;
|
|
3591
|
+
/** Default 0. */
|
|
3592
|
+
ridge?: number;
|
|
3593
|
+
/** Default 0.9. */
|
|
3594
|
+
trim_quantile?: number;
|
|
3595
|
+
/** Default 3. */
|
|
3596
|
+
max_iter?: number;
|
|
3597
|
+
}
|
|
3598
|
+
/** Native `preprocessing.transfer.robust_direct_standardization` (transformer). Required fit inputs: target_domain. */
|
|
3599
|
+
export declare class RobustDirectStandardization extends NativeEstimator implements Transformer {
|
|
3600
|
+
readonly methodId = "preprocessing.transfer.robust_direct_standardization";
|
|
3601
|
+
readonly paramTypes: {
|
|
3602
|
+
readonly fit_intercept: "bool";
|
|
3603
|
+
readonly ridge: "double";
|
|
3604
|
+
readonly trim_quantile: "double";
|
|
3605
|
+
readonly max_iter: "int";
|
|
3606
|
+
};
|
|
3607
|
+
constructor(params?: RobustDirectStandardizationParams);
|
|
3608
|
+
transform(X: Matrix): Matrix;
|
|
3609
|
+
}
|
|
3610
|
+
/** Parameters of SlopeBiasCorrection; unset values take the native defaults. */
|
|
3611
|
+
export interface SlopeBiasCorrectionParams {
|
|
3612
|
+
}
|
|
3613
|
+
/** Native `preprocessing.transfer.slope_bias` (transformer). */
|
|
3614
|
+
export declare class SlopeBiasCorrection extends NativeEstimator implements Transformer {
|
|
3615
|
+
readonly methodId = "preprocessing.transfer.slope_bias";
|
|
3616
|
+
readonly paramTypes: {};
|
|
3617
|
+
constructor(params?: SlopeBiasCorrectionParams);
|
|
3618
|
+
transform(X: Matrix): Matrix;
|
|
3619
|
+
}
|
|
3620
|
+
/** Parameters of Haar; unset values take the native defaults. */
|
|
3621
|
+
export interface HaarParams {
|
|
3622
|
+
}
|
|
3623
|
+
/** Native `preprocessing.wavelets.haar` (transformer). */
|
|
3624
|
+
export declare class Haar extends NativeEstimator implements Transformer {
|
|
3625
|
+
readonly methodId = "preprocessing.wavelets.haar";
|
|
3626
|
+
readonly paramTypes: {};
|
|
3627
|
+
constructor(params?: HaarParams);
|
|
3628
|
+
transform(X: Matrix): Matrix;
|
|
3629
|
+
}
|
|
3630
|
+
/** Parameters of Wavelet; unset values take the native defaults. */
|
|
3631
|
+
export interface WaveletParams {
|
|
3632
|
+
/** Default "haar". */
|
|
3633
|
+
family?: "haar" | "db4" | "sym4" | "coif1";
|
|
3634
|
+
/** Default "periodization". */
|
|
3635
|
+
mode?: "periodization" | "symmetric" | "zero";
|
|
3636
|
+
}
|
|
3637
|
+
/** Native `preprocessing.wavelets.wavelet` (transformer). */
|
|
3638
|
+
export declare class Wavelet extends NativeEstimator implements Transformer {
|
|
3639
|
+
readonly methodId = "preprocessing.wavelets.wavelet";
|
|
3640
|
+
readonly paramTypes: {
|
|
3641
|
+
readonly family: "enum";
|
|
3642
|
+
readonly mode: "enum";
|
|
3643
|
+
};
|
|
3644
|
+
constructor(params?: WaveletParams);
|
|
3645
|
+
transform(X: Matrix): Matrix;
|
|
3646
|
+
}
|
|
3647
|
+
/** Parameters of WaveletDenoise; unset values take the native defaults. */
|
|
3648
|
+
export interface WaveletDenoiseParams {
|
|
3649
|
+
/** Default "db4". */
|
|
3650
|
+
family?: "haar" | "db4" | "sym4" | "coif1";
|
|
3651
|
+
/** Default "periodization". */
|
|
3652
|
+
mode?: "periodization" | "symmetric" | "zero";
|
|
3653
|
+
/** Default 3. */
|
|
3654
|
+
level?: number;
|
|
3655
|
+
/** Default "soft". */
|
|
3656
|
+
threshold_mode?: "soft" | "hard";
|
|
3657
|
+
/** Default "median". */
|
|
3658
|
+
noise_estimator?: "median" | "std";
|
|
3659
|
+
}
|
|
3660
|
+
/** Native `preprocessing.wavelets.wavelet_denoise` (transformer). */
|
|
3661
|
+
export declare class WaveletDenoise extends NativeEstimator implements Transformer {
|
|
3662
|
+
readonly methodId = "preprocessing.wavelets.wavelet_denoise";
|
|
3663
|
+
readonly paramTypes: {
|
|
3664
|
+
readonly family: "enum";
|
|
3665
|
+
readonly mode: "enum";
|
|
3666
|
+
readonly level: "int";
|
|
3667
|
+
readonly threshold_mode: "enum";
|
|
3668
|
+
readonly noise_estimator: "enum";
|
|
3669
|
+
};
|
|
3670
|
+
constructor(params?: WaveletDenoiseParams);
|
|
3671
|
+
transform(X: Matrix): Matrix;
|
|
3672
|
+
}
|
|
3673
|
+
/** Parameters of WaveletFeatures; unset values take the native defaults. */
|
|
3674
|
+
export interface WaveletFeaturesParams {
|
|
3675
|
+
/** Default "haar". */
|
|
3676
|
+
family?: "haar" | "db4" | "sym4" | "coif1";
|
|
3677
|
+
/** Default "periodization". */
|
|
3678
|
+
mode?: "periodization" | "symmetric" | "zero";
|
|
3679
|
+
/** Default 3. */
|
|
3680
|
+
max_level?: number;
|
|
3681
|
+
/** Default "energy". */
|
|
3682
|
+
entropy?: "energy" | "histogram";
|
|
3683
|
+
}
|
|
3684
|
+
/** Native `preprocessing.wavelets.wavelet_features` (transformer). */
|
|
3685
|
+
export declare class WaveletFeatures extends NativeEstimator implements Transformer {
|
|
3686
|
+
readonly methodId = "preprocessing.wavelets.wavelet_features";
|
|
3687
|
+
readonly paramTypes: {
|
|
3688
|
+
readonly family: "enum";
|
|
3689
|
+
readonly mode: "enum";
|
|
3690
|
+
readonly max_level: "int";
|
|
3691
|
+
readonly entropy: "enum";
|
|
3692
|
+
};
|
|
3693
|
+
constructor(params?: WaveletFeaturesParams);
|
|
3694
|
+
transform(X: Matrix): Matrix;
|
|
3695
|
+
}
|
|
3696
|
+
/** Parameters of WaveletPCA; unset values take the native defaults. */
|
|
3697
|
+
export interface WaveletPCAParams {
|
|
3698
|
+
/** Default "haar". */
|
|
3699
|
+
family?: "haar" | "db4" | "sym4" | "coif1";
|
|
3700
|
+
/** Default "periodization". */
|
|
3701
|
+
mode?: "periodization" | "symmetric" | "zero";
|
|
3702
|
+
/** Default 2. */
|
|
3703
|
+
max_level?: number;
|
|
3704
|
+
/** Default 5. */
|
|
3705
|
+
n_components?: number;
|
|
3706
|
+
}
|
|
3707
|
+
/** Native `preprocessing.wavelets.wavelet_pca` (transformer). */
|
|
3708
|
+
export declare class WaveletPCA extends NativeEstimator implements Transformer {
|
|
3709
|
+
readonly methodId = "preprocessing.wavelets.wavelet_pca";
|
|
3710
|
+
readonly paramTypes: {
|
|
3711
|
+
readonly family: "enum";
|
|
3712
|
+
readonly mode: "enum";
|
|
3713
|
+
readonly max_level: "int";
|
|
3714
|
+
readonly n_components: "double";
|
|
3715
|
+
};
|
|
3716
|
+
constructor(params?: WaveletPCAParams);
|
|
3717
|
+
transform(X: Matrix): Matrix;
|
|
3718
|
+
}
|
|
3719
|
+
/** Parameters of WaveletSVD; unset values take the native defaults. */
|
|
3720
|
+
export interface WaveletSVDParams {
|
|
3721
|
+
/** Default "haar". */
|
|
3722
|
+
family?: "haar" | "db4" | "sym4" | "coif1";
|
|
3723
|
+
/** Default "periodization". */
|
|
3724
|
+
mode?: "periodization" | "symmetric" | "zero";
|
|
3725
|
+
/** Default 2. */
|
|
3726
|
+
max_level?: number;
|
|
3727
|
+
/** Default 5. */
|
|
3728
|
+
n_components?: number;
|
|
3729
|
+
}
|
|
3730
|
+
/** Native `preprocessing.wavelets.wavelet_svd` (transformer). */
|
|
3731
|
+
export declare class WaveletSVD extends NativeEstimator implements Transformer {
|
|
3732
|
+
readonly methodId = "preprocessing.wavelets.wavelet_svd";
|
|
3733
|
+
readonly paramTypes: {
|
|
3734
|
+
readonly family: "enum";
|
|
3735
|
+
readonly mode: "enum";
|
|
3736
|
+
readonly max_level: "int";
|
|
3737
|
+
readonly n_components: "double";
|
|
3738
|
+
};
|
|
3739
|
+
constructor(params?: WaveletSVDParams);
|
|
3740
|
+
transform(X: Matrix): Matrix;
|
|
3741
|
+
}
|
|
3742
|
+
/** Parameters of BiPLS; unset values take the native defaults. */
|
|
3743
|
+
export interface BiPLSParams {
|
|
3744
|
+
/** Default 2. */
|
|
3745
|
+
n_components?: number;
|
|
3746
|
+
/** Default 10. */
|
|
3747
|
+
interval_width?: number;
|
|
3748
|
+
/** Default 2. */
|
|
3749
|
+
min_intervals?: number;
|
|
3750
|
+
/** Default 3. */
|
|
3751
|
+
cv?: number;
|
|
3752
|
+
}
|
|
3753
|
+
/** Native `selection.bipls` (selector). */
|
|
3754
|
+
export declare class BiPLS extends NativeEstimator implements Selector {
|
|
3755
|
+
readonly methodId = "selection.bipls";
|
|
3756
|
+
readonly paramTypes: {
|
|
3757
|
+
readonly n_components: "int";
|
|
3758
|
+
readonly interval_width: "int";
|
|
3759
|
+
readonly min_intervals: "int";
|
|
3760
|
+
readonly cv: "int";
|
|
3761
|
+
};
|
|
3762
|
+
constructor(params?: BiPLSParams);
|
|
3763
|
+
transform(X: Matrix): Matrix;
|
|
3764
|
+
selectedIndices(): number[];
|
|
3765
|
+
}
|
|
3766
|
+
/** Parameters of BVE; unset values take the native defaults. */
|
|
3767
|
+
export interface BVEParams {
|
|
3768
|
+
/** Default 2. */
|
|
3769
|
+
n_components?: number;
|
|
3770
|
+
/** Default 10. */
|
|
3771
|
+
n_steps?: number;
|
|
3772
|
+
/** Default 0. */
|
|
3773
|
+
min_features?: number;
|
|
3774
|
+
/** Default 3. */
|
|
3775
|
+
cv?: number;
|
|
3776
|
+
}
|
|
3777
|
+
/** Native `selection.bve` (selector). */
|
|
3778
|
+
export declare class BVE extends NativeEstimator implements Selector {
|
|
3779
|
+
readonly methodId = "selection.bve";
|
|
3780
|
+
readonly paramTypes: {
|
|
3781
|
+
readonly n_components: "int";
|
|
3782
|
+
readonly n_steps: "int";
|
|
3783
|
+
readonly min_features: "int";
|
|
3784
|
+
readonly cv: "int";
|
|
3785
|
+
};
|
|
3786
|
+
constructor(params?: BVEParams);
|
|
3787
|
+
transform(X: Matrix): Matrix;
|
|
3788
|
+
selectedIndices(): number[];
|
|
3789
|
+
}
|
|
3790
|
+
/** Parameters of CARS; unset values take the native defaults. */
|
|
3791
|
+
export interface CARSParams {
|
|
3792
|
+
/** Default 2. */
|
|
3793
|
+
n_components?: number;
|
|
3794
|
+
/** Default 50. */
|
|
3795
|
+
n_iterations?: number;
|
|
3796
|
+
/** Default 0. */
|
|
3797
|
+
min_features?: number;
|
|
3798
|
+
/** Default 3. */
|
|
3799
|
+
cv?: number;
|
|
3800
|
+
}
|
|
3801
|
+
/** Native `selection.cars` (selector). */
|
|
3802
|
+
export declare class CARS extends NativeEstimator implements Selector {
|
|
3803
|
+
readonly methodId = "selection.cars";
|
|
3804
|
+
readonly paramTypes: {
|
|
3805
|
+
readonly n_components: "int";
|
|
3806
|
+
readonly n_iterations: "int";
|
|
3807
|
+
readonly min_features: "int";
|
|
3808
|
+
readonly cv: "int";
|
|
3809
|
+
};
|
|
3810
|
+
constructor(params?: CARSParams);
|
|
3811
|
+
transform(X: Matrix): Matrix;
|
|
3812
|
+
selectedIndices(): number[];
|
|
3813
|
+
}
|
|
3814
|
+
/** Parameters of EMCUVE; unset values take the native defaults. */
|
|
3815
|
+
export interface EMCUVEParams {
|
|
3816
|
+
/** Default 2. */
|
|
3817
|
+
n_components?: number;
|
|
3818
|
+
/** Default 50. */
|
|
3819
|
+
noise_features?: number;
|
|
3820
|
+
/** Default 0. */
|
|
3821
|
+
noise_seed?: number;
|
|
3822
|
+
/** Default 10. */
|
|
3823
|
+
n_ensembles?: number;
|
|
3824
|
+
/** Default 0.5. */
|
|
3825
|
+
vote_threshold?: number;
|
|
3826
|
+
/** Default 3. */
|
|
3827
|
+
cv?: number;
|
|
3828
|
+
}
|
|
3829
|
+
/** Native `selection.emcuve` (selector). */
|
|
3830
|
+
export declare class EMCUVE extends NativeEstimator implements Selector {
|
|
3831
|
+
readonly methodId = "selection.emcuve";
|
|
3832
|
+
readonly paramTypes: {
|
|
3833
|
+
readonly n_components: "int";
|
|
3834
|
+
readonly noise_features: "int";
|
|
3835
|
+
readonly noise_seed: "int";
|
|
3836
|
+
readonly n_ensembles: "int";
|
|
3837
|
+
readonly vote_threshold: "double";
|
|
3838
|
+
readonly cv: "int";
|
|
3839
|
+
};
|
|
3840
|
+
constructor(params?: EMCUVEParams);
|
|
3841
|
+
transform(X: Matrix): Matrix;
|
|
3842
|
+
selectedIndices(): number[];
|
|
3843
|
+
}
|
|
3844
|
+
/** Parameters of GA; unset values take the native defaults. */
|
|
3845
|
+
export interface GAParams {
|
|
3846
|
+
/** Default 2. */
|
|
3847
|
+
n_components?: number;
|
|
3848
|
+
/** Default 30. */
|
|
3849
|
+
n_generations?: number;
|
|
3850
|
+
/** Default 40. */
|
|
3851
|
+
population_size?: number;
|
|
3852
|
+
/** Default 0. */
|
|
3853
|
+
min_features?: number;
|
|
3854
|
+
/** Default 0. */
|
|
3855
|
+
max_features?: number;
|
|
3856
|
+
/** Default 0.05. */
|
|
3857
|
+
mutation_rate?: number;
|
|
3858
|
+
/** Default 3. */
|
|
3859
|
+
cv?: number;
|
|
3860
|
+
/** Default 0. */
|
|
3861
|
+
seed?: number;
|
|
3862
|
+
}
|
|
3863
|
+
/** Native `selection.ga` (selector). */
|
|
3864
|
+
export declare class GA extends NativeEstimator implements Selector {
|
|
3865
|
+
readonly methodId = "selection.ga";
|
|
3866
|
+
readonly paramTypes: {
|
|
3867
|
+
readonly n_components: "int";
|
|
3868
|
+
readonly n_generations: "int";
|
|
3869
|
+
readonly population_size: "int";
|
|
3870
|
+
readonly min_features: "int";
|
|
3871
|
+
readonly max_features: "int";
|
|
3872
|
+
readonly mutation_rate: "double";
|
|
3873
|
+
readonly cv: "int";
|
|
3874
|
+
readonly seed: "int";
|
|
3875
|
+
};
|
|
3876
|
+
constructor(params?: GAParams);
|
|
3877
|
+
transform(X: Matrix): Matrix;
|
|
3878
|
+
selectedIndices(): number[];
|
|
3879
|
+
}
|
|
3880
|
+
/** Parameters of IntervalGenerator; unset values take the native defaults. */
|
|
3881
|
+
export interface IntervalGeneratorParams {
|
|
3882
|
+
/** Default 32. */
|
|
3883
|
+
interval_size?: number;
|
|
3884
|
+
/** Default 0. */
|
|
3885
|
+
step?: number;
|
|
3886
|
+
}
|
|
3887
|
+
/** Native `selection.interval` (transformer). */
|
|
3888
|
+
export declare class IntervalGenerator extends NativeEstimator implements Transformer {
|
|
3889
|
+
readonly methodId = "selection.interval";
|
|
3890
|
+
readonly paramTypes: {
|
|
3891
|
+
readonly interval_size: "int";
|
|
3892
|
+
readonly step: "int";
|
|
3893
|
+
};
|
|
3894
|
+
constructor(params?: IntervalGeneratorParams);
|
|
3895
|
+
transform(X: Matrix): Matrix;
|
|
3896
|
+
}
|
|
3897
|
+
/** Parameters of IPW; unset values take the native defaults. */
|
|
3898
|
+
export interface IPWParams {
|
|
3899
|
+
/** Required. */
|
|
3900
|
+
top_k?: number;
|
|
3901
|
+
/** Default 2. */
|
|
3902
|
+
n_components?: number;
|
|
3903
|
+
/** Default 20. */
|
|
3904
|
+
n_iterations?: number;
|
|
3905
|
+
/** Default 0.5. */
|
|
3906
|
+
damping?: number;
|
|
3907
|
+
/** Default 1e-06. */
|
|
3908
|
+
weight_floor?: number;
|
|
3909
|
+
/** Default 3. */
|
|
3910
|
+
cv?: number;
|
|
3911
|
+
}
|
|
3912
|
+
/** Native `selection.ipw` (selector). */
|
|
3913
|
+
export declare class IPW extends NativeEstimator implements Selector {
|
|
3914
|
+
readonly methodId = "selection.ipw";
|
|
3915
|
+
readonly paramTypes: {
|
|
3916
|
+
readonly top_k: "int";
|
|
3917
|
+
readonly n_components: "int";
|
|
3918
|
+
readonly n_iterations: "int";
|
|
3919
|
+
readonly damping: "double";
|
|
3920
|
+
readonly weight_floor: "double";
|
|
3921
|
+
readonly cv: "int";
|
|
3922
|
+
};
|
|
3923
|
+
constructor(params?: IPWParams);
|
|
3924
|
+
transform(X: Matrix): Matrix;
|
|
3925
|
+
selectedIndices(): number[];
|
|
3926
|
+
}
|
|
3927
|
+
/** Parameters of IRF; unset values take the native defaults. */
|
|
3928
|
+
export interface IRFParams {
|
|
3929
|
+
/** Required. */
|
|
3930
|
+
top_k?: number;
|
|
3931
|
+
/** Default 2. */
|
|
3932
|
+
n_components?: number;
|
|
3933
|
+
/** Default 100. */
|
|
3934
|
+
n_iterations?: number;
|
|
3935
|
+
/** Default 5. */
|
|
3936
|
+
window_size?: number;
|
|
3937
|
+
/** Default 5. */
|
|
3938
|
+
initial_intervals?: number;
|
|
3939
|
+
/** Default 3. */
|
|
3940
|
+
cv?: number;
|
|
3941
|
+
/** Default 0. */
|
|
3942
|
+
seed?: number;
|
|
3943
|
+
}
|
|
3944
|
+
/** Native `selection.irf` (selector). */
|
|
3945
|
+
export declare class IRF extends NativeEstimator implements Selector {
|
|
3946
|
+
readonly methodId = "selection.irf";
|
|
3947
|
+
readonly paramTypes: {
|
|
3948
|
+
readonly top_k: "int";
|
|
3949
|
+
readonly n_components: "int";
|
|
3950
|
+
readonly n_iterations: "int";
|
|
3951
|
+
readonly window_size: "int";
|
|
3952
|
+
readonly initial_intervals: "int";
|
|
3953
|
+
readonly cv: "int";
|
|
3954
|
+
readonly seed: "int";
|
|
3955
|
+
};
|
|
3956
|
+
constructor(params?: IRFParams);
|
|
3957
|
+
transform(X: Matrix): Matrix;
|
|
3958
|
+
selectedIndices(): number[];
|
|
3959
|
+
}
|
|
3960
|
+
/** Parameters of IRIV; unset values take the native defaults. */
|
|
3961
|
+
export interface IRIVParams {
|
|
3962
|
+
/** Default 2. */
|
|
3963
|
+
n_components?: number;
|
|
3964
|
+
/** Default 5. */
|
|
3965
|
+
max_rounds?: number;
|
|
3966
|
+
/** Default 5. */
|
|
3967
|
+
cv?: number;
|
|
3968
|
+
/** Default 0. */
|
|
3969
|
+
seed?: number;
|
|
3970
|
+
}
|
|
3971
|
+
/** Native `selection.iriv` (selector). */
|
|
3972
|
+
export declare class IRIV extends NativeEstimator implements Selector {
|
|
3973
|
+
readonly methodId = "selection.iriv";
|
|
3974
|
+
readonly paramTypes: {
|
|
3975
|
+
readonly n_components: "int";
|
|
3976
|
+
readonly max_rounds: "int";
|
|
3977
|
+
readonly cv: "int";
|
|
3978
|
+
readonly seed: "int";
|
|
3979
|
+
};
|
|
3980
|
+
constructor(params?: IRIVParams);
|
|
3981
|
+
transform(X: Matrix): Matrix;
|
|
3982
|
+
selectedIndices(): number[];
|
|
3983
|
+
}
|
|
3984
|
+
/** Parameters of PSO; unset values take the native defaults. */
|
|
3985
|
+
export interface PSOParams {
|
|
3986
|
+
/** Default 2. */
|
|
3987
|
+
n_components?: number;
|
|
3988
|
+
/** Default 30. */
|
|
3989
|
+
n_swarm?: number;
|
|
3990
|
+
/** Default 50. */
|
|
3991
|
+
n_iterations?: number;
|
|
3992
|
+
/** Default 0.729. */
|
|
3993
|
+
w?: number;
|
|
3994
|
+
/** Default 1.494. */
|
|
3995
|
+
c1?: number;
|
|
3996
|
+
/** Default 1.494. */
|
|
3997
|
+
c2?: number;
|
|
3998
|
+
/** Default 4. */
|
|
3999
|
+
v_max?: number;
|
|
4000
|
+
/** Default 3. */
|
|
4001
|
+
cv?: number;
|
|
4002
|
+
/** Default 0. */
|
|
4003
|
+
seed?: number;
|
|
4004
|
+
}
|
|
4005
|
+
/** Native `selection.pso` (selector). */
|
|
4006
|
+
export declare class PSO extends NativeEstimator implements Selector {
|
|
4007
|
+
readonly methodId = "selection.pso";
|
|
4008
|
+
readonly paramTypes: {
|
|
4009
|
+
readonly n_components: "int";
|
|
4010
|
+
readonly n_swarm: "int";
|
|
4011
|
+
readonly n_iterations: "int";
|
|
4012
|
+
readonly w: "double";
|
|
4013
|
+
readonly c1: "double";
|
|
4014
|
+
readonly c2: "double";
|
|
4015
|
+
readonly v_max: "double";
|
|
4016
|
+
readonly cv: "int";
|
|
4017
|
+
readonly seed: "int";
|
|
4018
|
+
};
|
|
4019
|
+
constructor(params?: PSOParams);
|
|
4020
|
+
transform(X: Matrix): Matrix;
|
|
4021
|
+
selectedIndices(): number[];
|
|
4022
|
+
}
|
|
4023
|
+
/** Parameters of RandomFrog; unset values take the native defaults. */
|
|
4024
|
+
export interface RandomFrogParams {
|
|
4025
|
+
/** Required. */
|
|
4026
|
+
top_k?: number;
|
|
4027
|
+
/** Default 2. */
|
|
4028
|
+
n_components?: number;
|
|
4029
|
+
/** Default 100. */
|
|
4030
|
+
n_iterations?: number;
|
|
4031
|
+
/** Default 20. */
|
|
4032
|
+
initial_size?: number;
|
|
4033
|
+
/** Default 0. */
|
|
4034
|
+
min_size?: number;
|
|
4035
|
+
/** Default 0. */
|
|
4036
|
+
max_size?: number;
|
|
4037
|
+
/** Default 3. */
|
|
4038
|
+
cv?: number;
|
|
4039
|
+
/** Default 0. */
|
|
4040
|
+
seed?: number;
|
|
4041
|
+
}
|
|
4042
|
+
/** Native `selection.random_frog` (selector). */
|
|
4043
|
+
export declare class RandomFrog extends NativeEstimator implements Selector {
|
|
4044
|
+
readonly methodId = "selection.random_frog";
|
|
4045
|
+
readonly paramTypes: {
|
|
4046
|
+
readonly top_k: "int";
|
|
4047
|
+
readonly n_components: "int";
|
|
4048
|
+
readonly n_iterations: "int";
|
|
4049
|
+
readonly initial_size: "int";
|
|
4050
|
+
readonly min_size: "int";
|
|
4051
|
+
readonly max_size: "int";
|
|
4052
|
+
readonly cv: "int";
|
|
4053
|
+
readonly seed: "int";
|
|
4054
|
+
};
|
|
4055
|
+
constructor(params?: RandomFrogParams);
|
|
4056
|
+
transform(X: Matrix): Matrix;
|
|
4057
|
+
selectedIndices(): number[];
|
|
4058
|
+
}
|
|
4059
|
+
/** Parameters of Randomization; unset values take the native defaults. */
|
|
4060
|
+
export interface RandomizationParams {
|
|
4061
|
+
/** Default 2. */
|
|
4062
|
+
n_components?: number;
|
|
4063
|
+
/** Default 200. */
|
|
4064
|
+
n_permutations?: number;
|
|
4065
|
+
/** Default 0. */
|
|
4066
|
+
randomization_seed?: number;
|
|
4067
|
+
/** Default 0.05. */
|
|
4068
|
+
alpha?: number;
|
|
4069
|
+
}
|
|
4070
|
+
/** Native `selection.randomization` (selector). */
|
|
4071
|
+
export declare class Randomization extends NativeEstimator implements Selector {
|
|
4072
|
+
readonly methodId = "selection.randomization";
|
|
4073
|
+
readonly paramTypes: {
|
|
4074
|
+
readonly n_components: "int";
|
|
4075
|
+
readonly n_permutations: "int";
|
|
4076
|
+
readonly randomization_seed: "int";
|
|
4077
|
+
readonly alpha: "double";
|
|
4078
|
+
};
|
|
4079
|
+
constructor(params?: RandomizationParams);
|
|
4080
|
+
transform(X: Matrix): Matrix;
|
|
4081
|
+
selectedIndices(): number[];
|
|
4082
|
+
}
|
|
4083
|
+
/** Parameters of REP; unset values take the native defaults. */
|
|
4084
|
+
export interface REPParams {
|
|
4085
|
+
/** Default 2. */
|
|
4086
|
+
n_components?: number;
|
|
4087
|
+
/** Default 10. */
|
|
4088
|
+
n_steps?: number;
|
|
4089
|
+
/** Default 0. */
|
|
4090
|
+
min_features?: number;
|
|
4091
|
+
/** Default 1. */
|
|
4092
|
+
remove_count?: number;
|
|
4093
|
+
/** Default 3. */
|
|
4094
|
+
cv?: number;
|
|
4095
|
+
}
|
|
4096
|
+
/** Native `selection.rep` (selector). */
|
|
4097
|
+
export declare class REP extends NativeEstimator implements Selector {
|
|
4098
|
+
readonly methodId = "selection.rep";
|
|
4099
|
+
readonly paramTypes: {
|
|
4100
|
+
readonly n_components: "int";
|
|
4101
|
+
readonly n_steps: "int";
|
|
4102
|
+
readonly min_features: "int";
|
|
4103
|
+
readonly remove_count: "int";
|
|
4104
|
+
readonly cv: "int";
|
|
4105
|
+
};
|
|
4106
|
+
constructor(params?: REPParams);
|
|
4107
|
+
transform(X: Matrix): Matrix;
|
|
4108
|
+
selectedIndices(): number[];
|
|
4109
|
+
}
|
|
4110
|
+
/** Parameters of SCARS; unset values take the native defaults. */
|
|
4111
|
+
export interface SCARSParams {
|
|
4112
|
+
/** Default 2. */
|
|
4113
|
+
n_components?: number;
|
|
4114
|
+
/** Default 50. */
|
|
4115
|
+
n_iterations?: number;
|
|
4116
|
+
/** Default 0. */
|
|
4117
|
+
min_features?: number;
|
|
4118
|
+
/** Default 0.8. */
|
|
4119
|
+
sample_fraction?: number;
|
|
4120
|
+
/** Default 3. */
|
|
4121
|
+
cv?: number;
|
|
4122
|
+
/** Default 0. */
|
|
4123
|
+
seed?: number;
|
|
4124
|
+
}
|
|
4125
|
+
/** Native `selection.scars` (selector). */
|
|
4126
|
+
export declare class SCARS extends NativeEstimator implements Selector {
|
|
4127
|
+
readonly methodId = "selection.scars";
|
|
4128
|
+
readonly paramTypes: {
|
|
4129
|
+
readonly n_components: "int";
|
|
4130
|
+
readonly n_iterations: "int";
|
|
4131
|
+
readonly min_features: "int";
|
|
4132
|
+
readonly sample_fraction: "double";
|
|
4133
|
+
readonly cv: "int";
|
|
4134
|
+
readonly seed: "int";
|
|
4135
|
+
};
|
|
4136
|
+
constructor(params?: SCARSParams);
|
|
4137
|
+
transform(X: Matrix): Matrix;
|
|
4138
|
+
selectedIndices(): number[];
|
|
4139
|
+
}
|
|
4140
|
+
/** Parameters of Shaving; unset values take the native defaults. */
|
|
4141
|
+
export interface ShavingParams {
|
|
4142
|
+
/** Default 2. */
|
|
4143
|
+
n_components?: number;
|
|
4144
|
+
/** Default 10. */
|
|
4145
|
+
n_steps?: number;
|
|
4146
|
+
/** Default 0. */
|
|
4147
|
+
min_features?: number;
|
|
4148
|
+
/** Default 0.2. */
|
|
4149
|
+
shave_fraction?: number;
|
|
4150
|
+
/** Default 3. */
|
|
4151
|
+
cv?: number;
|
|
4152
|
+
}
|
|
4153
|
+
/** Native `selection.shaving` (selector). */
|
|
4154
|
+
export declare class Shaving extends NativeEstimator implements Selector {
|
|
4155
|
+
readonly methodId = "selection.shaving";
|
|
4156
|
+
readonly paramTypes: {
|
|
4157
|
+
readonly n_components: "int";
|
|
4158
|
+
readonly n_steps: "int";
|
|
4159
|
+
readonly min_features: "int";
|
|
4160
|
+
readonly shave_fraction: "double";
|
|
4161
|
+
readonly cv: "int";
|
|
4162
|
+
};
|
|
4163
|
+
constructor(params?: ShavingParams);
|
|
4164
|
+
transform(X: Matrix): Matrix;
|
|
4165
|
+
selectedIndices(): number[];
|
|
4166
|
+
}
|
|
4167
|
+
/** Parameters of SiPLS; unset values take the native defaults. */
|
|
4168
|
+
export interface SiPLSParams {
|
|
4169
|
+
/** Default 2. */
|
|
4170
|
+
n_components?: number;
|
|
4171
|
+
/** Default 10. */
|
|
4172
|
+
interval_width?: number;
|
|
4173
|
+
/** Default 2. */
|
|
4174
|
+
combination_size?: number;
|
|
4175
|
+
/** Default 3. */
|
|
4176
|
+
cv?: number;
|
|
4177
|
+
}
|
|
4178
|
+
/** Native `selection.sipls` (selector). */
|
|
4179
|
+
export declare class SiPLS extends NativeEstimator implements Selector {
|
|
4180
|
+
readonly methodId = "selection.sipls";
|
|
4181
|
+
readonly paramTypes: {
|
|
4182
|
+
readonly n_components: "int";
|
|
4183
|
+
readonly interval_width: "int";
|
|
4184
|
+
readonly combination_size: "int";
|
|
4185
|
+
readonly cv: "int";
|
|
4186
|
+
};
|
|
4187
|
+
constructor(params?: SiPLSParams);
|
|
4188
|
+
transform(X: Matrix): Matrix;
|
|
4189
|
+
selectedIndices(): number[];
|
|
4190
|
+
}
|
|
4191
|
+
/** Parameters of SPA; unset values take the native defaults. */
|
|
4192
|
+
export interface SPAParams {
|
|
4193
|
+
/** Required. */
|
|
4194
|
+
top_k?: number;
|
|
4195
|
+
/** Default 2. */
|
|
4196
|
+
n_components?: number;
|
|
4197
|
+
}
|
|
4198
|
+
/** Native `selection.spa` (selector). */
|
|
4199
|
+
export declare class SPA extends NativeEstimator implements Selector {
|
|
4200
|
+
readonly methodId = "selection.spa";
|
|
4201
|
+
readonly paramTypes: {
|
|
4202
|
+
readonly top_k: "int";
|
|
4203
|
+
readonly n_components: "int";
|
|
4204
|
+
};
|
|
4205
|
+
constructor(params?: SPAParams);
|
|
4206
|
+
transform(X: Matrix): Matrix;
|
|
4207
|
+
selectedIndices(): number[];
|
|
4208
|
+
}
|
|
4209
|
+
/** Parameters of ST; unset values take the native defaults. */
|
|
4210
|
+
export interface STParams {
|
|
4211
|
+
/** Required. */
|
|
4212
|
+
thresholds?: number[];
|
|
4213
|
+
/** Default 2. */
|
|
4214
|
+
n_components?: number;
|
|
4215
|
+
/** Default 0. */
|
|
4216
|
+
min_selected?: number;
|
|
4217
|
+
/** Default 3. */
|
|
4218
|
+
cv?: number;
|
|
4219
|
+
}
|
|
4220
|
+
/** Native `selection.st` (selector). */
|
|
4221
|
+
export declare class ST extends NativeEstimator implements Selector {
|
|
4222
|
+
readonly methodId = "selection.st";
|
|
4223
|
+
readonly paramTypes: {
|
|
4224
|
+
readonly thresholds: "double_array";
|
|
4225
|
+
readonly n_components: "int";
|
|
4226
|
+
readonly min_selected: "int";
|
|
4227
|
+
readonly cv: "int";
|
|
4228
|
+
};
|
|
4229
|
+
constructor(params?: STParams);
|
|
4230
|
+
transform(X: Matrix): Matrix;
|
|
4231
|
+
selectedIndices(): number[];
|
|
4232
|
+
}
|
|
4233
|
+
/** Parameters of Stability; unset values take the native defaults. */
|
|
4234
|
+
export interface StabilityParams {
|
|
4235
|
+
/** Required. */
|
|
4236
|
+
top_k?: number;
|
|
4237
|
+
/** Default 2. */
|
|
4238
|
+
n_components?: number;
|
|
4239
|
+
/** Default 3. */
|
|
4240
|
+
cv?: number;
|
|
4241
|
+
}
|
|
4242
|
+
/** Native `selection.stability` (selector). */
|
|
4243
|
+
export declare class Stability extends NativeEstimator implements Selector {
|
|
4244
|
+
readonly methodId = "selection.stability";
|
|
4245
|
+
readonly paramTypes: {
|
|
4246
|
+
readonly top_k: "int";
|
|
4247
|
+
readonly n_components: "int";
|
|
4248
|
+
readonly cv: "int";
|
|
4249
|
+
};
|
|
4250
|
+
constructor(params?: StabilityParams);
|
|
4251
|
+
transform(X: Matrix): Matrix;
|
|
4252
|
+
selectedIndices(): number[];
|
|
4253
|
+
}
|
|
4254
|
+
/** Parameters of T2; unset values take the native defaults. */
|
|
4255
|
+
export interface T2Params {
|
|
4256
|
+
/** Required. */
|
|
4257
|
+
alpha_thresholds?: number[];
|
|
4258
|
+
/** Default 2. */
|
|
4259
|
+
n_components?: number;
|
|
4260
|
+
/** Default 0. */
|
|
4261
|
+
min_selected?: number;
|
|
4262
|
+
/** Default 3. */
|
|
4263
|
+
cv?: number;
|
|
4264
|
+
}
|
|
4265
|
+
/** Native `selection.t2` (selector). */
|
|
4266
|
+
export declare class T2 extends NativeEstimator implements Selector {
|
|
4267
|
+
readonly methodId = "selection.t2";
|
|
4268
|
+
readonly paramTypes: {
|
|
4269
|
+
readonly alpha_thresholds: "double_array";
|
|
4270
|
+
readonly n_components: "int";
|
|
4271
|
+
readonly min_selected: "int";
|
|
4272
|
+
readonly cv: "int";
|
|
4273
|
+
};
|
|
4274
|
+
constructor(params?: T2Params);
|
|
4275
|
+
transform(X: Matrix): Matrix;
|
|
4276
|
+
selectedIndices(): number[];
|
|
4277
|
+
}
|
|
4278
|
+
/** Parameters of UVE; unset values take the native defaults. */
|
|
4279
|
+
export interface UVEParams {
|
|
4280
|
+
/** Default 2. */
|
|
4281
|
+
n_components?: number;
|
|
4282
|
+
/** Default 50. */
|
|
4283
|
+
noise_features?: number;
|
|
4284
|
+
/** Default 0. */
|
|
4285
|
+
noise_seed?: number;
|
|
4286
|
+
/** Default -1. */
|
|
4287
|
+
min_features?: number;
|
|
4288
|
+
/** Default 3. */
|
|
4289
|
+
cv?: number;
|
|
4290
|
+
}
|
|
4291
|
+
/** Native `selection.uve` (selector). */
|
|
4292
|
+
export declare class UVE extends NativeEstimator implements Selector {
|
|
4293
|
+
readonly methodId = "selection.uve";
|
|
4294
|
+
readonly paramTypes: {
|
|
4295
|
+
readonly n_components: "int";
|
|
4296
|
+
readonly noise_features: "int";
|
|
4297
|
+
readonly noise_seed: "int";
|
|
4298
|
+
readonly min_features: "int";
|
|
4299
|
+
readonly cv: "int";
|
|
4300
|
+
};
|
|
4301
|
+
constructor(params?: UVEParams);
|
|
4302
|
+
transform(X: Matrix): Matrix;
|
|
4303
|
+
selectedIndices(): number[];
|
|
4304
|
+
}
|
|
4305
|
+
/** Parameters of VariableSelect; unset values take the native defaults. */
|
|
4306
|
+
export interface VariableSelectParams {
|
|
4307
|
+
/** Required. */
|
|
4308
|
+
top_k?: number;
|
|
4309
|
+
/** Default 2. */
|
|
4310
|
+
n_components?: number;
|
|
4311
|
+
/** Default "vip". */
|
|
4312
|
+
rank_method?: "vip" | "coefficient" | "selectivity_ratio";
|
|
4313
|
+
}
|
|
4314
|
+
/** Native `selection.variable_select` (selector). */
|
|
4315
|
+
export declare class VariableSelect extends NativeEstimator implements Selector {
|
|
4316
|
+
readonly methodId = "selection.variable_select";
|
|
4317
|
+
readonly paramTypes: {
|
|
4318
|
+
readonly top_k: "int";
|
|
4319
|
+
readonly n_components: "int";
|
|
4320
|
+
readonly rank_method: "enum";
|
|
4321
|
+
};
|
|
4322
|
+
constructor(params?: VariableSelectParams);
|
|
4323
|
+
transform(X: Matrix): Matrix;
|
|
4324
|
+
selectedIndices(): number[];
|
|
4325
|
+
}
|
|
4326
|
+
/** Parameters of VIPSPA; unset values take the native defaults. */
|
|
4327
|
+
export interface VIPSPAParams {
|
|
4328
|
+
/** Required. */
|
|
4329
|
+
top_k?: number;
|
|
4330
|
+
/** Default 2. */
|
|
4331
|
+
n_components?: number;
|
|
4332
|
+
/** Default 0.3. */
|
|
4333
|
+
vip_threshold?: number;
|
|
4334
|
+
}
|
|
4335
|
+
/** Native `selection.vip_spa` (selector). */
|
|
4336
|
+
export declare class VIPSPA extends NativeEstimator implements Selector {
|
|
4337
|
+
readonly methodId = "selection.vip_spa";
|
|
4338
|
+
readonly paramTypes: {
|
|
4339
|
+
readonly top_k: "int";
|
|
4340
|
+
readonly n_components: "int";
|
|
4341
|
+
readonly vip_threshold: "double";
|
|
4342
|
+
};
|
|
4343
|
+
constructor(params?: VIPSPAParams);
|
|
4344
|
+
transform(X: Matrix): Matrix;
|
|
4345
|
+
selectedIndices(): number[];
|
|
4346
|
+
}
|
|
4347
|
+
/** Parameters of VISSA; unset values take the native defaults. */
|
|
4348
|
+
export interface VISSAParams {
|
|
4349
|
+
/** Default 2. */
|
|
4350
|
+
n_components?: number;
|
|
4351
|
+
/** Default 10. */
|
|
4352
|
+
n_iterations?: number;
|
|
4353
|
+
/** Default 60. */
|
|
4354
|
+
n_submodels?: number;
|
|
4355
|
+
/** Default 0.1. */
|
|
4356
|
+
ratio_kept?: number;
|
|
4357
|
+
/** Default 0.5. */
|
|
4358
|
+
threshold?: number;
|
|
4359
|
+
/** Default 0.05. */
|
|
4360
|
+
floor_probability?: number;
|
|
4361
|
+
/** Default 3. */
|
|
4362
|
+
cv?: number;
|
|
4363
|
+
/** Default 0. */
|
|
4364
|
+
seed?: number;
|
|
4365
|
+
}
|
|
4366
|
+
/** Native `selection.vissa` (selector). */
|
|
4367
|
+
export declare class VISSA extends NativeEstimator implements Selector {
|
|
4368
|
+
readonly methodId = "selection.vissa";
|
|
4369
|
+
readonly paramTypes: {
|
|
4370
|
+
readonly n_components: "int";
|
|
4371
|
+
readonly n_iterations: "int";
|
|
4372
|
+
readonly n_submodels: "int";
|
|
4373
|
+
readonly ratio_kept: "double";
|
|
4374
|
+
readonly threshold: "double";
|
|
4375
|
+
readonly floor_probability: "double";
|
|
4376
|
+
readonly cv: "int";
|
|
4377
|
+
readonly seed: "int";
|
|
4378
|
+
};
|
|
4379
|
+
constructor(params?: VISSAParams);
|
|
4380
|
+
transform(X: Matrix): Matrix;
|
|
4381
|
+
selectedIndices(): number[];
|
|
4382
|
+
}
|
|
4383
|
+
/** Parameters of WVC; unset values take the native defaults. */
|
|
4384
|
+
export interface WVCParams {
|
|
4385
|
+
/** Required. */
|
|
4386
|
+
top_k?: number;
|
|
4387
|
+
/** Default 2. */
|
|
4388
|
+
n_components?: number;
|
|
4389
|
+
/** Default true. */
|
|
4390
|
+
normalize?: boolean;
|
|
4391
|
+
}
|
|
4392
|
+
/** Native `selection.wvc` (selector). */
|
|
4393
|
+
export declare class WVC extends NativeEstimator implements Selector {
|
|
4394
|
+
readonly methodId = "selection.wvc";
|
|
4395
|
+
readonly paramTypes: {
|
|
4396
|
+
readonly top_k: "int";
|
|
4397
|
+
readonly n_components: "int";
|
|
4398
|
+
readonly normalize: "bool";
|
|
4399
|
+
};
|
|
4400
|
+
constructor(params?: WVCParams);
|
|
4401
|
+
transform(X: Matrix): Matrix;
|
|
4402
|
+
selectedIndices(): number[];
|
|
4403
|
+
}
|
|
4404
|
+
/** Parameters of WVCThreshold; unset values take the native defaults. */
|
|
4405
|
+
export interface WVCThresholdParams {
|
|
4406
|
+
/** Default 2. */
|
|
4407
|
+
n_components?: number;
|
|
4408
|
+
/** Default true. */
|
|
4409
|
+
normalize?: boolean;
|
|
4410
|
+
/** Default 0. */
|
|
4411
|
+
score_threshold?: number;
|
|
4412
|
+
/** Default 1. */
|
|
4413
|
+
threshold_factor?: number;
|
|
4414
|
+
/** Default 0. */
|
|
4415
|
+
min_selected?: number;
|
|
4416
|
+
}
|
|
4417
|
+
/** Native `selection.wvc_threshold` (selector). */
|
|
4418
|
+
export declare class WVCThreshold extends NativeEstimator implements Selector {
|
|
4419
|
+
readonly methodId = "selection.wvc_threshold";
|
|
4420
|
+
readonly paramTypes: {
|
|
4421
|
+
readonly n_components: "int";
|
|
4422
|
+
readonly normalize: "bool";
|
|
4423
|
+
readonly score_threshold: "double";
|
|
4424
|
+
readonly threshold_factor: "double";
|
|
4425
|
+
readonly min_selected: "int";
|
|
4426
|
+
};
|
|
4427
|
+
constructor(params?: WVCThresholdParams);
|
|
4428
|
+
transform(X: Matrix): Matrix;
|
|
4429
|
+
selectedIndices(): number[];
|
|
4430
|
+
}
|
|
4431
|
+
/** Parameters of BinnedStratifiedGroupKFold; unset values take the native defaults. */
|
|
4432
|
+
export interface BinnedStratifiedGroupKFoldParams {
|
|
4433
|
+
/** Default 5. */
|
|
4434
|
+
n_splits?: number;
|
|
4435
|
+
/** Default 5. */
|
|
4436
|
+
n_bins?: number;
|
|
4437
|
+
/** Default "uniform". */
|
|
4438
|
+
strategy?: "uniform" | "quantile";
|
|
4439
|
+
/** Default true. */
|
|
4440
|
+
shuffle?: boolean;
|
|
4441
|
+
/** Default 0. */
|
|
4442
|
+
seed?: number;
|
|
4443
|
+
}
|
|
4444
|
+
/** Native `splitters.binned_strat_group_kfold` (splitter). Required inputs: y, groups. */
|
|
4445
|
+
export declare class BinnedStratifiedGroupKFold extends NativeProcedure implements Splitter {
|
|
4446
|
+
readonly methodId = "splitters.binned_strat_group_kfold";
|
|
4447
|
+
readonly paramTypes: {
|
|
4448
|
+
readonly n_splits: "int";
|
|
4449
|
+
readonly n_bins: "int";
|
|
4450
|
+
readonly strategy: "enum";
|
|
4451
|
+
readonly shuffle: "bool";
|
|
4452
|
+
readonly seed: "int";
|
|
4453
|
+
};
|
|
4454
|
+
constructor(params?: BinnedStratifiedGroupKFoldParams);
|
|
4455
|
+
split(X: Matrix, y?: Float64Array | ArrayLike<number>, groups?: number[]): Fold[];
|
|
4456
|
+
}
|
|
4457
|
+
/** Parameters of KBinsStratified; unset values take the native defaults. */
|
|
4458
|
+
export interface KBinsStratifiedParams {
|
|
4459
|
+
/** Default 0.25. */
|
|
4460
|
+
test_size?: number;
|
|
4461
|
+
/** Default 0. */
|
|
4462
|
+
seed?: number;
|
|
4463
|
+
/** Default 5. */
|
|
4464
|
+
n_bins?: number;
|
|
4465
|
+
/** Default "uniform". */
|
|
4466
|
+
strategy?: "uniform" | "quantile";
|
|
4467
|
+
}
|
|
4468
|
+
/** Native `splitters.kbins_stratified` (splitter). Required inputs: y. */
|
|
4469
|
+
export declare class KBinsStratified extends NativeProcedure implements Splitter {
|
|
4470
|
+
readonly methodId = "splitters.kbins_stratified";
|
|
4471
|
+
readonly paramTypes: {
|
|
4472
|
+
readonly test_size: "double";
|
|
4473
|
+
readonly seed: "int";
|
|
4474
|
+
readonly n_bins: "int";
|
|
4475
|
+
readonly strategy: "enum";
|
|
4476
|
+
};
|
|
4477
|
+
constructor(params?: KBinsStratifiedParams);
|
|
4478
|
+
split(X: Matrix, y?: Float64Array | ArrayLike<number>, groups?: number[]): Fold[];
|
|
4479
|
+
}
|
|
4480
|
+
/** Parameters of KennardStone; unset values take the native defaults. */
|
|
4481
|
+
export interface KennardStoneParams {
|
|
4482
|
+
/** Default 0.25. */
|
|
4483
|
+
test_size?: number;
|
|
4484
|
+
}
|
|
4485
|
+
/** Native `splitters.kennard_stone` (splitter). */
|
|
4486
|
+
export declare class KennardStone extends NativeProcedure implements Splitter {
|
|
4487
|
+
readonly methodId = "splitters.kennard_stone";
|
|
4488
|
+
readonly paramTypes: {
|
|
4489
|
+
readonly test_size: "double";
|
|
4490
|
+
};
|
|
4491
|
+
constructor(params?: KennardStoneParams);
|
|
4492
|
+
split(X: Matrix, y?: Float64Array | ArrayLike<number>, groups?: number[]): Fold[];
|
|
4493
|
+
}
|
|
4494
|
+
/** Parameters of KMeans; unset values take the native defaults. */
|
|
4495
|
+
export interface KMeansParams {
|
|
4496
|
+
/** Default 0.25. */
|
|
4497
|
+
test_size?: number;
|
|
4498
|
+
/** Default 0. */
|
|
4499
|
+
seed?: number;
|
|
4500
|
+
/** Default 100. */
|
|
4501
|
+
max_iter?: number;
|
|
4502
|
+
}
|
|
4503
|
+
/** Native `splitters.kmeans` (splitter). */
|
|
4504
|
+
export declare class KMeans extends NativeProcedure implements Splitter {
|
|
4505
|
+
readonly methodId = "splitters.kmeans";
|
|
4506
|
+
readonly paramTypes: {
|
|
4507
|
+
readonly test_size: "double";
|
|
4508
|
+
readonly seed: "int";
|
|
4509
|
+
readonly max_iter: "int";
|
|
4510
|
+
};
|
|
4511
|
+
constructor(params?: KMeansParams);
|
|
4512
|
+
split(X: Matrix, y?: Float64Array | ArrayLike<number>, groups?: number[]): Fold[];
|
|
4513
|
+
}
|
|
4514
|
+
/** Parameters of SPlitSplitter; unset values take the native defaults. */
|
|
4515
|
+
export interface SPlitSplitterParams {
|
|
4516
|
+
/** Default 0.25. */
|
|
4517
|
+
test_size?: number;
|
|
4518
|
+
/** Default 0. */
|
|
4519
|
+
seed?: number;
|
|
4520
|
+
}
|
|
4521
|
+
/** Native `splitters.split_splitter` (splitter). */
|
|
4522
|
+
export declare class SPlitSplitter extends NativeProcedure implements Splitter {
|
|
4523
|
+
readonly methodId = "splitters.split_splitter";
|
|
4524
|
+
readonly paramTypes: {
|
|
4525
|
+
readonly test_size: "double";
|
|
4526
|
+
readonly seed: "int";
|
|
4527
|
+
};
|
|
4528
|
+
constructor(params?: SPlitSplitterParams);
|
|
4529
|
+
split(X: Matrix, y?: Float64Array | ArrayLike<number>, groups?: number[]): Fold[];
|
|
4530
|
+
}
|
|
4531
|
+
/** Parameters of SPXY; unset values take the native defaults. */
|
|
4532
|
+
export interface SPXYParams {
|
|
4533
|
+
/** Default 0.25. */
|
|
4534
|
+
test_size?: number;
|
|
4535
|
+
}
|
|
4536
|
+
/** Native `splitters.spxy` (splitter). Required inputs: y. */
|
|
4537
|
+
export declare class SPXY extends NativeProcedure implements Splitter {
|
|
4538
|
+
readonly methodId = "splitters.spxy";
|
|
4539
|
+
readonly paramTypes: {
|
|
4540
|
+
readonly test_size: "double";
|
|
4541
|
+
};
|
|
4542
|
+
constructor(params?: SPXYParams);
|
|
4543
|
+
split(X: Matrix, y?: Float64Array | ArrayLike<number>, groups?: number[]): Fold[];
|
|
4544
|
+
}
|
|
4545
|
+
/** Parameters of SPXYFold; unset values take the native defaults. */
|
|
4546
|
+
export interface SPXYFoldParams {
|
|
4547
|
+
/** Default 5. */
|
|
4548
|
+
n_splits?: number;
|
|
4549
|
+
/** Default "euclidean". */
|
|
4550
|
+
y_metric?: "x_only" | "euclidean" | "hamming";
|
|
4551
|
+
}
|
|
4552
|
+
/** Native `splitters.spxy_fold` (splitter). Required inputs: y. */
|
|
4553
|
+
export declare class SPXYFold extends NativeProcedure implements Splitter {
|
|
4554
|
+
readonly methodId = "splitters.spxy_fold";
|
|
4555
|
+
readonly paramTypes: {
|
|
4556
|
+
readonly n_splits: "int";
|
|
4557
|
+
readonly y_metric: "enum";
|
|
4558
|
+
};
|
|
4559
|
+
constructor(params?: SPXYFoldParams);
|
|
4560
|
+
split(X: Matrix, y?: Float64Array | ArrayLike<number>, groups?: number[]): Fold[];
|
|
4561
|
+
}
|
|
4562
|
+
/** Parameters of SPXYGroupFold; unset values take the native defaults. */
|
|
4563
|
+
export interface SPXYGroupFoldParams {
|
|
4564
|
+
/** Default 5. */
|
|
4565
|
+
n_splits?: number;
|
|
4566
|
+
/** Default "euclidean". */
|
|
4567
|
+
y_metric?: "x_only" | "euclidean" | "hamming";
|
|
4568
|
+
/** Default "mean". */
|
|
4569
|
+
aggregation?: "mean" | "median";
|
|
4570
|
+
}
|
|
4571
|
+
/** Native `splitters.spxy_g_fold` (splitter). Required inputs: y, groups. */
|
|
4572
|
+
export declare class SPXYGroupFold extends NativeProcedure implements Splitter {
|
|
4573
|
+
readonly methodId = "splitters.spxy_g_fold";
|
|
4574
|
+
readonly paramTypes: {
|
|
4575
|
+
readonly n_splits: "int";
|
|
4576
|
+
readonly y_metric: "enum";
|
|
4577
|
+
readonly aggregation: "enum";
|
|
4578
|
+
};
|
|
4579
|
+
constructor(params?: SPXYGroupFoldParams);
|
|
4580
|
+
split(X: Matrix, y?: Float64Array | ArrayLike<number>, groups?: number[]): Fold[];
|
|
4581
|
+
}
|
|
4582
|
+
/** Parameters of SystematicCircular; unset values take the native defaults. */
|
|
4583
|
+
export interface SystematicCircularParams {
|
|
4584
|
+
/** Default 0.25. */
|
|
4585
|
+
test_size?: number;
|
|
4586
|
+
/** Default 0. */
|
|
4587
|
+
seed?: number;
|
|
4588
|
+
}
|
|
4589
|
+
/** Native `splitters.systematic_circular` (splitter). Required inputs: y. */
|
|
4590
|
+
export declare class SystematicCircular extends NativeProcedure implements Splitter {
|
|
4591
|
+
readonly methodId = "splitters.systematic_circular";
|
|
4592
|
+
readonly paramTypes: {
|
|
4593
|
+
readonly test_size: "double";
|
|
4594
|
+
readonly seed: "int";
|
|
4595
|
+
};
|
|
4596
|
+
constructor(params?: SystematicCircularParams);
|
|
4597
|
+
split(X: Matrix, y?: Float64Array | ArrayLike<number>, groups?: number[]): Fold[];
|
|
4598
|
+
}
|
|
4599
|
+
/** Parameters of HotellingT2; unset values take the native defaults. */
|
|
4600
|
+
export interface HotellingT2Params {
|
|
4601
|
+
/** Default 5. */
|
|
4602
|
+
n_components?: number;
|
|
4603
|
+
/** Default 0.05. */
|
|
4604
|
+
alpha?: number;
|
|
4605
|
+
}
|
|
4606
|
+
/** Native `utilities.hotelling_t2` (generic). */
|
|
4607
|
+
export declare class HotellingT2 extends NativeProcedure implements Procedure {
|
|
4608
|
+
readonly methodId = "utilities.hotelling_t2";
|
|
4609
|
+
readonly paramTypes: {
|
|
4610
|
+
readonly n_components: "int";
|
|
4611
|
+
readonly alpha: "double";
|
|
4612
|
+
};
|
|
4613
|
+
constructor(params?: HotellingT2Params);
|
|
4614
|
+
run(X: Matrix, y?: Matrix | Float64Array | ArrayLike<number>, inputs?: FitInputs): Record<string, ProcedureOutput>;
|
|
4615
|
+
}
|
|
4616
|
+
/** Parameters of Moments; unset values take the native defaults. */
|
|
4617
|
+
export interface MomentsParams {
|
|
4618
|
+
}
|
|
4619
|
+
/** Native `utilities.moments` (generic). Required inputs: y. */
|
|
4620
|
+
export declare class Moments extends NativeProcedure implements Procedure {
|
|
4621
|
+
readonly methodId = "utilities.moments";
|
|
4622
|
+
readonly paramTypes: {};
|
|
4623
|
+
constructor(params?: MomentsParams);
|
|
4624
|
+
run(X: Matrix, y?: Matrix | Float64Array | ArrayLike<number>, inputs?: FitInputs): Record<string, ProcedureOutput>;
|
|
4625
|
+
}
|
|
4626
|
+
/** Parameters of QResiduals; unset values take the native defaults. */
|
|
4627
|
+
export interface QResidualsParams {
|
|
4628
|
+
/** Default 5. */
|
|
4629
|
+
n_components?: number;
|
|
4630
|
+
/** Default 0.05. */
|
|
4631
|
+
alpha?: number;
|
|
4632
|
+
}
|
|
4633
|
+
/** Native `utilities.q_residuals` (generic). */
|
|
4634
|
+
export declare class QResiduals extends NativeProcedure implements Procedure {
|
|
4635
|
+
readonly methodId = "utilities.q_residuals";
|
|
4636
|
+
readonly paramTypes: {
|
|
4637
|
+
readonly n_components: "int";
|
|
4638
|
+
readonly alpha: "double";
|
|
4639
|
+
};
|
|
4640
|
+
constructor(params?: QResidualsParams);
|
|
4641
|
+
run(X: Matrix, y?: Matrix | Float64Array | ArrayLike<number>, inputs?: FitInputs): Record<string, ProcedureOutput>;
|
|
4642
|
+
}
|
|
4643
|
+
/** Parameters of SignalTypeDetector; unset values take the native defaults. */
|
|
4644
|
+
export interface SignalTypeDetectorParams {
|
|
4645
|
+
/** Default 0.7. */
|
|
4646
|
+
confidence_threshold?: number;
|
|
4647
|
+
}
|
|
4648
|
+
/** Native `utilities.signal_type_detector` (generic). */
|
|
4649
|
+
export declare class SignalTypeDetector extends NativeProcedure implements Procedure {
|
|
4650
|
+
readonly methodId = "utilities.signal_type_detector";
|
|
4651
|
+
readonly paramTypes: {
|
|
4652
|
+
readonly confidence_threshold: "double";
|
|
4653
|
+
};
|
|
4654
|
+
constructor(params?: SignalTypeDetectorParams);
|
|
4655
|
+
run(X: Matrix, y?: Matrix | Float64Array | ArrayLike<number>, inputs?: FitInputs): Record<string, ProcedureOutput>;
|
|
4656
|
+
}
|
|
4657
|
+
/** Parameters of Sweep; unset values take the native defaults. */
|
|
4658
|
+
export interface SweepParams {
|
|
4659
|
+
/** Default 5. */
|
|
4660
|
+
cv?: number;
|
|
4661
|
+
/** Default [0.01, 0.1, 1, 10]. */
|
|
4662
|
+
ridge_lambdas?: number[];
|
|
4663
|
+
/** Default [1, 2, 3, 4, 5]. */
|
|
4664
|
+
pls_components?: number[];
|
|
4665
|
+
/** Default "ridge". */
|
|
4666
|
+
heads?: "ridge" | "pls" | "ridge_pls";
|
|
4667
|
+
/** Default true. */
|
|
4668
|
+
center_x?: boolean;
|
|
4669
|
+
/** Default true. */
|
|
4670
|
+
scale_x?: boolean;
|
|
4671
|
+
/** Default true. */
|
|
4672
|
+
center_y?: boolean;
|
|
4673
|
+
/** Default true. */
|
|
4674
|
+
scale_y?: boolean;
|
|
4675
|
+
}
|
|
4676
|
+
/** Native `utilities.sweep` (generic). Required inputs: y. */
|
|
4677
|
+
export declare class Sweep extends NativeProcedure implements Procedure {
|
|
4678
|
+
readonly methodId = "utilities.sweep";
|
|
4679
|
+
readonly paramTypes: {
|
|
4680
|
+
readonly cv: "int";
|
|
4681
|
+
readonly ridge_lambdas: "double_array";
|
|
4682
|
+
readonly pls_components: "int_array";
|
|
4683
|
+
readonly heads: "enum";
|
|
4684
|
+
readonly center_x: "bool";
|
|
4685
|
+
readonly scale_x: "bool";
|
|
4686
|
+
readonly center_y: "bool";
|
|
4687
|
+
readonly scale_y: "bool";
|
|
4688
|
+
};
|
|
4689
|
+
constructor(params?: SweepParams);
|
|
4690
|
+
run(X: Matrix, y?: Matrix | Float64Array | ArrayLike<number>, inputs?: FitInputs): Record<string, ProcedureOutput>;
|
|
4691
|
+
}
|
|
4692
|
+
/** Parameters of TransferMetrics; unset values take the native defaults. */
|
|
4693
|
+
export interface TransferMetricsParams {
|
|
4694
|
+
/** Default 10. */
|
|
4695
|
+
n_components?: number;
|
|
4696
|
+
/** Default 10. */
|
|
4697
|
+
k_neighbors?: number;
|
|
4698
|
+
/** Default 0. */
|
|
4699
|
+
seed?: number;
|
|
4700
|
+
}
|
|
4701
|
+
/** Native `utilities.transfer_metrics` (generic). Required inputs: target_domain. */
|
|
4702
|
+
export declare class TransferMetrics extends NativeProcedure implements Procedure {
|
|
4703
|
+
readonly methodId = "utilities.transfer_metrics";
|
|
4704
|
+
readonly paramTypes: {
|
|
4705
|
+
readonly n_components: "int";
|
|
4706
|
+
readonly k_neighbors: "int";
|
|
4707
|
+
readonly seed: "int";
|
|
4708
|
+
};
|
|
4709
|
+
constructor(params?: TransferMetricsParams);
|
|
4710
|
+
run(X: Matrix, y?: Matrix | Float64Array | ArrayLike<number>, inputs?: FitInputs): Record<string, ProcedureOutput>;
|
|
4711
|
+
}
|