@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.
@@ -0,0 +1,3825 @@
1
+ // SPDX-License-Identifier: CECILL-2.1
2
+ // Generated by scripts/generate_js_roles.py from `n4m_cli --manifest-json`. Do not edit.
3
+ // Native ABI 2.13.0.
4
+ import { NativeEstimator, NativeMethod, NativeProcedure, } from "./estimatorRoles.js";
5
+ /** Native `aom_pop.aom_chain_fixed_fit` (regressor). */
6
+ export class AOMFixedCandidate extends NativeEstimator {
7
+ methodId = "aom_pop.aom_chain_fixed_fit";
8
+ paramTypes = {
9
+ op_kinds: "int_array",
10
+ param_offsets: "int_array",
11
+ chain_params: "double_array",
12
+ head: "enum",
13
+ param: "double",
14
+ center_x: "bool",
15
+ scale_x: "bool",
16
+ center_y: "bool",
17
+ scale_y: "bool",
18
+ moment_policy: "enum",
19
+ };
20
+ constructor(params = {}) {
21
+ super();
22
+ this.params = { ...params };
23
+ }
24
+ predict(X) {
25
+ return this.predictMatrix(X);
26
+ }
27
+ }
28
+ NativeMethod.register("aom_pop.aom_chain_fixed_fit", AOMFixedCandidate);
29
+ /** Native `aom_pop.aom_chain_ridge_pls` (regressor). */
30
+ export class AOMChainRidgePLS extends NativeEstimator {
31
+ methodId = "aom_pop.aom_chain_ridge_pls";
32
+ paramTypes = {
33
+ chain_offsets: "int_array",
34
+ op_kinds: "int_array",
35
+ param_offsets: "int_array",
36
+ chain_params: "double_array",
37
+ pls_components: "int_array",
38
+ ridge_lambdas: "double_array",
39
+ cv: "int",
40
+ center_x: "bool",
41
+ center_y: "bool",
42
+ };
43
+ constructor(params = {}) {
44
+ super();
45
+ this.params = { ...params };
46
+ }
47
+ predict(X) {
48
+ return this.predictMatrix(X);
49
+ }
50
+ }
51
+ NativeMethod.register("aom_pop.aom_chain_ridge_pls", AOMChainRidgePLS);
52
+ /** Native `aom_pop.aom_chain_sweep` (regressor). */
53
+ export class AOMChainSweep extends NativeEstimator {
54
+ methodId = "aom_pop.aom_chain_sweep";
55
+ paramTypes = {
56
+ chain_offsets: "int_array",
57
+ op_kinds: "int_array",
58
+ param_offsets: "int_array",
59
+ chain_params: "double_array",
60
+ cv: "int",
61
+ ridge_lambdas: "double_array",
62
+ pls_components: "int_array",
63
+ heads: "enum",
64
+ center_x: "bool",
65
+ scale_x: "bool",
66
+ center_y: "bool",
67
+ scale_y: "bool",
68
+ moment_policy: "enum",
69
+ };
70
+ constructor(params = {}) {
71
+ super();
72
+ this.params = { ...params };
73
+ }
74
+ predict(X) {
75
+ return this.predictMatrix(X);
76
+ }
77
+ }
78
+ NativeMethod.register("aom_pop.aom_chain_sweep", AOMChainSweep);
79
+ /** Native `aom_pop.aom_pls` (regressor). */
80
+ export class AOMPLS extends NativeEstimator {
81
+ methodId = "aom_pop.aom_pls";
82
+ paramTypes = {
83
+ max_components: "int",
84
+ op_kinds: "int_array",
85
+ param_offsets: "int_array",
86
+ op_params: "double_array",
87
+ cv: "int",
88
+ center_x: "bool",
89
+ scale_x: "bool",
90
+ center_y: "bool",
91
+ scale_y: "bool",
92
+ };
93
+ constructor(params = {}) {
94
+ super();
95
+ this.params = { ...params };
96
+ }
97
+ predict(X) {
98
+ return this.predictMatrix(X);
99
+ }
100
+ }
101
+ NativeMethod.register("aom_pop.aom_pls", AOMPLS);
102
+ /** Native `aom_pop.aom_pls_superblock` (regressor). */
103
+ export class AOMPLSSuperblock extends NativeEstimator {
104
+ methodId = "aom_pop.aom_pls_superblock";
105
+ paramTypes = {
106
+ op_kinds: "int_array",
107
+ param_offsets: "int_array",
108
+ op_params: "double_array",
109
+ pls_components: "int_array",
110
+ cv: "int",
111
+ block_scaling: "enum",
112
+ center_x: "bool",
113
+ center_y: "bool",
114
+ };
115
+ constructor(params = {}) {
116
+ super();
117
+ this.params = { ...params };
118
+ }
119
+ predict(X) {
120
+ return this.predictMatrix(X);
121
+ }
122
+ }
123
+ NativeMethod.register("aom_pop.aom_pls_superblock", AOMPLSSuperblock);
124
+ /** Native `aom_pop.aom_preprocessing` (transformer). */
125
+ export class AOMPreprocessing extends NativeEstimator {
126
+ methodId = "aom_pop.aom_preprocessing";
127
+ paramTypes = {
128
+ op_kinds: "int_array",
129
+ param_offsets: "int_array",
130
+ op_params: "double_array",
131
+ gating_mode: "enum",
132
+ };
133
+ constructor(params = {}) {
134
+ super();
135
+ this.params = { ...params };
136
+ }
137
+ transform(X) {
138
+ return this.transformMatrix(X);
139
+ }
140
+ }
141
+ NativeMethod.register("aom_pop.aom_preprocessing", AOMPreprocessing);
142
+ /** Native `aom_pop.aom_ridge_pls_superblock` (regressor). */
143
+ export class AOMRidgePLSSuperblock extends NativeEstimator {
144
+ methodId = "aom_pop.aom_ridge_pls_superblock";
145
+ paramTypes = {
146
+ op_kinds: "int_array",
147
+ param_offsets: "int_array",
148
+ op_params: "double_array",
149
+ pls_components: "int_array",
150
+ ridge_lambdas: "double_array",
151
+ cv: "int",
152
+ block_scaling: "enum",
153
+ center_x: "bool",
154
+ };
155
+ constructor(params = {}) {
156
+ super();
157
+ this.params = { ...params };
158
+ }
159
+ predict(X) {
160
+ return this.predictMatrix(X);
161
+ }
162
+ }
163
+ NativeMethod.register("aom_pop.aom_ridge_pls_superblock", AOMRidgePLSSuperblock);
164
+ /** Native `aom_pop.aom_sweep` (regressor). */
165
+ export class AOMSweep extends NativeEstimator {
166
+ methodId = "aom_pop.aom_sweep";
167
+ paramTypes = {
168
+ profile: "enum",
169
+ cv: "int",
170
+ ridge_lambdas: "double_array",
171
+ pls_components: "int_array",
172
+ heads: "enum",
173
+ center_x: "bool",
174
+ scale_x: "bool",
175
+ center_y: "bool",
176
+ scale_y: "bool",
177
+ moment_policy: "enum",
178
+ };
179
+ constructor(params = {}) {
180
+ super();
181
+ this.params = { ...params };
182
+ }
183
+ predict(X) {
184
+ return this.predictMatrix(X);
185
+ }
186
+ }
187
+ NativeMethod.register("aom_pop.aom_sweep", AOMSweep);
188
+ /** Native `aom_pop.calibration` (regressor). */
189
+ export class AOMCalibration extends NativeEstimator {
190
+ methodId = "aom_pop.calibration";
191
+ paramTypes = {
192
+ head: "enum",
193
+ fast: "bool",
194
+ max_components: "int",
195
+ alphas: "double_array",
196
+ cv: "int",
197
+ branches: "int_array",
198
+ max_depth: "int",
199
+ rank: "int",
200
+ };
201
+ constructor(params = {}) {
202
+ super();
203
+ this.params = { ...params };
204
+ }
205
+ predict(X) {
206
+ return this.predictMatrix(X);
207
+ }
208
+ }
209
+ NativeMethod.register("aom_pop.calibration", AOMCalibration);
210
+ /** Native `aom_pop.linear_stack_compress` (generic). */
211
+ export class LinearStackCompress extends NativeProcedure {
212
+ methodId = "aom_pop.linear_stack_compress";
213
+ paramTypes = {
214
+ base_intercepts: "double_array",
215
+ meta_weights: "double_array",
216
+ meta_intercept: "double_array",
217
+ };
218
+ constructor(params = {}) {
219
+ super();
220
+ this.params = { ...params };
221
+ }
222
+ run(X, y, inputs = {}) {
223
+ return this.runOutputs(X, y, inputs);
224
+ }
225
+ }
226
+ NativeMethod.register("aom_pop.linear_stack_compress", LinearStackCompress);
227
+ /** Native `aom_pop.operator_pls_stack` (regressor). */
228
+ export class AOMOperatorPLSStack extends NativeEstimator {
229
+ methodId = "aom_pop.operator_pls_stack";
230
+ paramTypes = {
231
+ profile: "enum",
232
+ cv: "int",
233
+ components: "int_array",
234
+ alphas: "double_array",
235
+ std_penalty: "double",
236
+ gap_penalty: "double",
237
+ center_x: "bool",
238
+ scale_x: "bool",
239
+ center_y: "bool",
240
+ scale_y: "bool",
241
+ };
242
+ constructor(params = {}) {
243
+ super();
244
+ this.params = { ...params };
245
+ }
246
+ predict(X) {
247
+ return this.predictMatrix(X);
248
+ }
249
+ }
250
+ NativeMethod.register("aom_pop.operator_pls_stack", AOMOperatorPLSStack);
251
+ /** Native `aom_pop.pop_pls` (regressor). */
252
+ export class POPPLS extends NativeEstimator {
253
+ methodId = "aom_pop.pop_pls";
254
+ paramTypes = {
255
+ max_components: "int",
256
+ op_kinds: "int_array",
257
+ param_offsets: "int_array",
258
+ op_params: "double_array",
259
+ cv: "int",
260
+ center_x: "bool",
261
+ scale_x: "bool",
262
+ center_y: "bool",
263
+ scale_y: "bool",
264
+ };
265
+ constructor(params = {}) {
266
+ super();
267
+ this.params = { ...params };
268
+ }
269
+ predict(X) {
270
+ return this.predictMatrix(X);
271
+ }
272
+ }
273
+ NativeMethod.register("aom_pop.pop_pls", POPPLS);
274
+ /** Native `aom_pop.ridge_active_superblock` (regressor). */
275
+ export class AOMRidgeActiveSuperblock extends NativeEstimator {
276
+ methodId = "aom_pop.ridge_active_superblock";
277
+ paramTypes = {
278
+ op_kinds: "int_array",
279
+ param_offsets: "int_array",
280
+ op_params: "double_array",
281
+ alphas: "double_array",
282
+ cv: "int",
283
+ active_top_m: "int",
284
+ active_diversity_threshold: "double",
285
+ active_score_method: "enum",
286
+ active_max_per_family: "int",
287
+ keep_identity: "bool",
288
+ block_scaling: "enum",
289
+ center_x: "bool",
290
+ center_y: "bool",
291
+ };
292
+ constructor(params = {}) {
293
+ super();
294
+ this.params = { ...params };
295
+ }
296
+ predict(X) {
297
+ return this.predictMatrix(X);
298
+ }
299
+ }
300
+ NativeMethod.register("aom_pop.ridge_active_superblock", AOMRidgeActiveSuperblock);
301
+ /** Native `aom_pop.ridge_blender` (regressor). */
302
+ export class AOMRidgeBlender extends NativeEstimator {
303
+ methodId = "aom_pop.ridge_blender";
304
+ paramTypes = {
305
+ profile: "enum",
306
+ cv: "int",
307
+ ridge_lambdas: "double_array",
308
+ regularizer: "double",
309
+ center_x: "bool",
310
+ scale_x: "bool",
311
+ center_y: "bool",
312
+ scale_y: "bool",
313
+ };
314
+ constructor(params = {}) {
315
+ super();
316
+ this.params = { ...params };
317
+ }
318
+ predict(X) {
319
+ return this.predictMatrix(X);
320
+ }
321
+ }
322
+ NativeMethod.register("aom_pop.ridge_blender", AOMRidgeBlender);
323
+ /** Native `aom_pop.ridge_global` (regressor). */
324
+ export class AOMRidgeGlobal extends NativeEstimator {
325
+ methodId = "aom_pop.ridge_global";
326
+ paramTypes = {
327
+ op_kinds: "int_array",
328
+ param_offsets: "int_array",
329
+ op_params: "double_array",
330
+ cv: "int",
331
+ ridge_lambdas: "double_array",
332
+ center_x: "bool",
333
+ scale_x: "bool",
334
+ center_y: "bool",
335
+ scale_y: "bool",
336
+ moment_policy: "enum",
337
+ };
338
+ constructor(params = {}) {
339
+ super();
340
+ this.params = { ...params };
341
+ }
342
+ predict(X) {
343
+ return this.predictMatrix(X);
344
+ }
345
+ }
346
+ NativeMethod.register("aom_pop.ridge_global", AOMRidgeGlobal);
347
+ /** Native `aom_pop.ridge_mkl_superblock` (regressor). */
348
+ export class AOMRidgeMKLSuperblock extends NativeEstimator {
349
+ methodId = "aom_pop.ridge_mkl_superblock";
350
+ paramTypes = {
351
+ op_kinds: "int_array",
352
+ param_offsets: "int_array",
353
+ op_params: "double_array",
354
+ alphas: "double_array",
355
+ cv: "int",
356
+ mkl_top_k: "int",
357
+ block_scaling: "enum",
358
+ center_x: "bool",
359
+ center_y: "bool",
360
+ };
361
+ constructor(params = {}) {
362
+ super();
363
+ this.params = { ...params };
364
+ }
365
+ predict(X) {
366
+ return this.predictMatrix(X);
367
+ }
368
+ }
369
+ NativeMethod.register("aom_pop.ridge_mkl_superblock", AOMRidgeMKLSuperblock);
370
+ /** Native `aom_pop.ridge_superblock` (regressor). */
371
+ export class AOMRidgeSuperblock extends NativeEstimator {
372
+ methodId = "aom_pop.ridge_superblock";
373
+ paramTypes = {
374
+ op_kinds: "int_array",
375
+ param_offsets: "int_array",
376
+ op_params: "double_array",
377
+ alphas: "double_array",
378
+ cv: "int",
379
+ block_scaling: "enum",
380
+ center_x: "bool",
381
+ center_y: "bool",
382
+ };
383
+ constructor(params = {}) {
384
+ super();
385
+ this.params = { ...params };
386
+ }
387
+ predict(X) {
388
+ return this.predictMatrix(X);
389
+ }
390
+ }
391
+ NativeMethod.register("aom_pop.ridge_superblock", AOMRidgeSuperblock);
392
+ /** Native `aom_pop.robust_hpo` (regressor). */
393
+ export class AOMRobustHPO extends NativeEstimator {
394
+ methodId = "aom_pop.robust_hpo";
395
+ paramTypes = {
396
+ profile: "enum",
397
+ cv: "int",
398
+ heads: "enum",
399
+ };
400
+ constructor(params = {}) {
401
+ super();
402
+ this.params = { ...params };
403
+ }
404
+ predict(X) {
405
+ return this.predictMatrix(X);
406
+ }
407
+ }
408
+ NativeMethod.register("aom_pop.robust_hpo", AOMRobustHPO);
409
+ /** Native `augmentation.drift.linear_drift` (augmenter). */
410
+ export class LinearDrift extends NativeProcedure {
411
+ methodId = "augmentation.drift.linear_drift";
412
+ paramTypes = {
413
+ offset_min: "double",
414
+ offset_max: "double",
415
+ slope_min: "double",
416
+ slope_max: "double",
417
+ seed: "int",
418
+ };
419
+ constructor(params = {}) {
420
+ super();
421
+ this.params = { ...params };
422
+ }
423
+ augment(X, axis) {
424
+ return this.augmentMatrix(X, axis);
425
+ }
426
+ }
427
+ NativeMethod.register("augmentation.drift.linear_drift", LinearDrift);
428
+ /** Native `augmentation.drift.path_length` (augmenter). */
429
+ export class PathLength extends NativeProcedure {
430
+ methodId = "augmentation.drift.path_length";
431
+ paramTypes = {
432
+ path_length_std: "double",
433
+ min_path_length: "double",
434
+ seed: "int",
435
+ };
436
+ constructor(params = {}) {
437
+ super();
438
+ this.params = { ...params };
439
+ }
440
+ augment(X, axis) {
441
+ return this.augmentMatrix(X, axis);
442
+ }
443
+ }
444
+ NativeMethod.register("augmentation.drift.path_length", PathLength);
445
+ /** Native `augmentation.drift.poly_drift` (augmenter). */
446
+ export class PolyDrift extends NativeProcedure {
447
+ methodId = "augmentation.drift.poly_drift";
448
+ paramTypes = {
449
+ coeff_min: "double_array",
450
+ coeff_max: "double_array",
451
+ seed: "int",
452
+ };
453
+ constructor(params = {}) {
454
+ super();
455
+ this.params = { ...params };
456
+ }
457
+ augment(X, axis) {
458
+ return this.augmentMatrix(X, axis);
459
+ }
460
+ }
461
+ NativeMethod.register("augmentation.drift.poly_drift", PolyDrift);
462
+ /** Native `augmentation.edge_artifacts.detector_rolloff` (augmenter). Required inputs: axis. */
463
+ export class DetectorRolloff extends NativeProcedure {
464
+ methodId = "augmentation.edge_artifacts.detector_rolloff";
465
+ paramTypes = {
466
+ detector_model: "enum",
467
+ effect_strength: "double",
468
+ noise_amplification: "double",
469
+ include_baseline_distortion: "bool",
470
+ seed: "int",
471
+ };
472
+ constructor(params = {}) {
473
+ super();
474
+ this.params = { ...params };
475
+ }
476
+ augment(X, axis) {
477
+ return this.augmentMatrix(X, axis);
478
+ }
479
+ }
480
+ NativeMethod.register("augmentation.edge_artifacts.detector_rolloff", DetectorRolloff);
481
+ /** Native `augmentation.edge_artifacts.edge_artifacts` (augmenter). Required inputs: axis. */
482
+ export class EdgeArtifacts extends NativeProcedure {
483
+ methodId = "augmentation.edge_artifacts.edge_artifacts";
484
+ paramTypes = {
485
+ detector_roll_off: "bool",
486
+ stray_light: "bool",
487
+ edge_curvature: "bool",
488
+ truncated_peaks: "bool",
489
+ overall_strength: "double",
490
+ detector_model: "enum",
491
+ seed: "int",
492
+ };
493
+ constructor(params = {}) {
494
+ super();
495
+ this.params = { ...params };
496
+ }
497
+ augment(X, axis) {
498
+ return this.augmentMatrix(X, axis);
499
+ }
500
+ }
501
+ NativeMethod.register("augmentation.edge_artifacts.edge_artifacts", EdgeArtifacts);
502
+ /** Native `augmentation.edge_artifacts.edge_curvature` (augmenter). Required inputs: axis. */
503
+ export class EdgeCurvature extends NativeProcedure {
504
+ methodId = "augmentation.edge_artifacts.edge_curvature";
505
+ paramTypes = {
506
+ curvature_strength: "double",
507
+ curvature_type: "enum",
508
+ asymmetry: "double",
509
+ edge_focus: "double",
510
+ seed: "int",
511
+ };
512
+ constructor(params = {}) {
513
+ super();
514
+ this.params = { ...params };
515
+ }
516
+ augment(X, axis) {
517
+ return this.augmentMatrix(X, axis);
518
+ }
519
+ }
520
+ NativeMethod.register("augmentation.edge_artifacts.edge_curvature", EdgeCurvature);
521
+ /** Native `augmentation.edge_artifacts.stray_light` (augmenter). */
522
+ export class StrayLight extends NativeProcedure {
523
+ methodId = "augmentation.edge_artifacts.stray_light";
524
+ paramTypes = {
525
+ stray_light_fraction: "double",
526
+ edge_enhancement: "double",
527
+ edge_width: "double",
528
+ include_peak_truncation: "bool",
529
+ seed: "int",
530
+ };
531
+ constructor(params = {}) {
532
+ super();
533
+ this.params = { ...params };
534
+ }
535
+ augment(X, axis) {
536
+ return this.augmentMatrix(X, axis);
537
+ }
538
+ }
539
+ NativeMethod.register("augmentation.edge_artifacts.stray_light", StrayLight);
540
+ /** Native `augmentation.edge_artifacts.truncated_peak` (augmenter). Required inputs: axis. */
541
+ export class TruncatedPeak extends NativeProcedure {
542
+ methodId = "augmentation.edge_artifacts.truncated_peak";
543
+ paramTypes = {
544
+ peak_probability: "double",
545
+ amplitude_min: "double",
546
+ amplitude_max: "double",
547
+ width_min: "double",
548
+ width_max: "double",
549
+ left_edge: "bool",
550
+ right_edge: "bool",
551
+ seed: "int",
552
+ };
553
+ constructor(params = {}) {
554
+ super();
555
+ this.params = { ...params };
556
+ }
557
+ augment(X, axis) {
558
+ return this.augmentMatrix(X, axis);
559
+ }
560
+ }
561
+ NativeMethod.register("augmentation.edge_artifacts.truncated_peak", TruncatedPeak);
562
+ /** Native `augmentation.environmental.moisture` (augmenter). Required inputs: axis. */
563
+ export class Moisture extends NativeProcedure {
564
+ methodId = "augmentation.environmental.moisture";
565
+ paramTypes = {
566
+ water_activity_delta: "double",
567
+ use_aw_range: "bool",
568
+ aw_low: "double",
569
+ aw_high: "double",
570
+ reference_water_activity: "double",
571
+ free_water_fraction: "double",
572
+ bound_water_shift: "double",
573
+ moisture_content: "double",
574
+ enable_shift: "bool",
575
+ enable_intensity: "bool",
576
+ seed: "int",
577
+ };
578
+ constructor(params = {}) {
579
+ super();
580
+ this.params = { ...params };
581
+ }
582
+ augment(X, axis) {
583
+ return this.augmentMatrix(X, axis);
584
+ }
585
+ }
586
+ NativeMethod.register("augmentation.environmental.moisture", Moisture);
587
+ /** Native `augmentation.environmental.temperature` (augmenter). Required inputs: axis. */
588
+ export class Temperature extends NativeProcedure {
589
+ methodId = "augmentation.environmental.temperature";
590
+ paramTypes = {
591
+ temperature_delta: "double",
592
+ use_temp_range: "bool",
593
+ temp_low: "double",
594
+ temp_high: "double",
595
+ enable_shift: "bool",
596
+ enable_intensity: "bool",
597
+ enable_broadening: "bool",
598
+ region_specific: "bool",
599
+ seed: "int",
600
+ };
601
+ constructor(params = {}) {
602
+ super();
603
+ this.params = { ...params };
604
+ }
605
+ augment(X, axis) {
606
+ return this.augmentMatrix(X, axis);
607
+ }
608
+ }
609
+ NativeMethod.register("augmentation.environmental.temperature", Temperature);
610
+ /** Native `augmentation.mixup.local_mixup` (augmenter). Required inputs: y. */
611
+ export class LocalMixup extends NativeProcedure {
612
+ methodId = "augmentation.mixup.local_mixup";
613
+ paramTypes = {
614
+ alpha: "double",
615
+ k_neighbors: "int",
616
+ seed: "int",
617
+ };
618
+ constructor(params = {}) {
619
+ super();
620
+ this.params = { ...params };
621
+ }
622
+ augment(X, y, axis) {
623
+ return this.augmentWithTargets(X, y, axis);
624
+ }
625
+ }
626
+ NativeMethod.register("augmentation.mixup.local_mixup", LocalMixup);
627
+ /** Native `augmentation.mixup.mixup` (augmenter). Required inputs: y. */
628
+ export class Mixup extends NativeProcedure {
629
+ methodId = "augmentation.mixup.mixup";
630
+ paramTypes = {
631
+ alpha: "double",
632
+ seed: "int",
633
+ };
634
+ constructor(params = {}) {
635
+ super();
636
+ this.params = { ...params };
637
+ }
638
+ augment(X, y, axis) {
639
+ return this.augmentWithTargets(X, y, axis);
640
+ }
641
+ }
642
+ NativeMethod.register("augmentation.mixup.mixup", Mixup);
643
+ /** Native `augmentation.noise.gaussian_noise` (augmenter). */
644
+ export class GaussianNoise extends NativeProcedure {
645
+ methodId = "augmentation.noise.gaussian_noise";
646
+ paramTypes = {
647
+ sigma: "double",
648
+ seed: "int",
649
+ };
650
+ constructor(params = {}) {
651
+ super();
652
+ this.params = { ...params };
653
+ }
654
+ augment(X, axis) {
655
+ return this.augmentMatrix(X, axis);
656
+ }
657
+ }
658
+ NativeMethod.register("augmentation.noise.gaussian_noise", GaussianNoise);
659
+ /** Native `augmentation.noise.hetero_noise` (augmenter). */
660
+ export class HeteroNoise extends NativeProcedure {
661
+ methodId = "augmentation.noise.hetero_noise";
662
+ paramTypes = {
663
+ noise_base: "double",
664
+ noise_signal_dep: "double",
665
+ seed: "int",
666
+ };
667
+ constructor(params = {}) {
668
+ super();
669
+ this.params = { ...params };
670
+ }
671
+ augment(X, axis) {
672
+ return this.augmentMatrix(X, axis);
673
+ }
674
+ }
675
+ NativeMethod.register("augmentation.noise.hetero_noise", HeteroNoise);
676
+ /** Native `augmentation.noise.multiplicative_noise` (augmenter). */
677
+ export class MultiplicativeNoise extends NativeProcedure {
678
+ methodId = "augmentation.noise.multiplicative_noise";
679
+ paramTypes = {
680
+ sigma_gain: "double",
681
+ seed: "int",
682
+ };
683
+ constructor(params = {}) {
684
+ super();
685
+ this.params = { ...params };
686
+ }
687
+ augment(X, axis) {
688
+ return this.augmentMatrix(X, axis);
689
+ }
690
+ }
691
+ NativeMethod.register("augmentation.noise.multiplicative_noise", MultiplicativeNoise);
692
+ /** Native `augmentation.noise.spike_noise` (augmenter). */
693
+ export class SpikeNoise extends NativeProcedure {
694
+ methodId = "augmentation.noise.spike_noise";
695
+ paramTypes = {
696
+ n_spikes_min: "int",
697
+ n_spikes_max: "int",
698
+ amplitude_min: "double",
699
+ amplitude_max: "double",
700
+ seed: "int",
701
+ };
702
+ constructor(params = {}) {
703
+ super();
704
+ this.params = { ...params };
705
+ }
706
+ augment(X, axis) {
707
+ return this.augmentMatrix(X, axis);
708
+ }
709
+ }
710
+ NativeMethod.register("augmentation.noise.spike_noise", SpikeNoise);
711
+ /** Native `augmentation.random.random_x_op` (augmenter). */
712
+ export class RandomXOp extends NativeProcedure {
713
+ methodId = "augmentation.random.random_x_op";
714
+ paramTypes = {
715
+ op_kind: "enum",
716
+ operator_range_min: "double",
717
+ operator_range_max: "double",
718
+ seed: "int",
719
+ };
720
+ constructor(params = {}) {
721
+ super();
722
+ this.params = { ...params };
723
+ }
724
+ augment(X, axis) {
725
+ return this.augmentMatrix(X, axis);
726
+ }
727
+ }
728
+ NativeMethod.register("augmentation.random.random_x_op", RandomXOp);
729
+ /** Native `augmentation.random.rotate_translate` (augmenter). */
730
+ export class RotateTranslate extends NativeProcedure {
731
+ methodId = "augmentation.random.rotate_translate";
732
+ paramTypes = {
733
+ p_range: "double",
734
+ y_factor: "double",
735
+ seed: "int",
736
+ };
737
+ constructor(params = {}) {
738
+ super();
739
+ this.params = { ...params };
740
+ }
741
+ augment(X, axis) {
742
+ return this.augmentMatrix(X, axis);
743
+ }
744
+ }
745
+ NativeMethod.register("augmentation.random.rotate_translate", RotateTranslate);
746
+ /** Native `augmentation.scattering.batch_effect` (augmenter). */
747
+ export class BatchEffect extends NativeProcedure {
748
+ methodId = "augmentation.scattering.batch_effect";
749
+ paramTypes = {
750
+ offset_std: "double",
751
+ slope_std: "double",
752
+ gain_std: "double",
753
+ variation_scope: "enum",
754
+ seed: "int",
755
+ };
756
+ constructor(params = {}) {
757
+ super();
758
+ this.params = { ...params };
759
+ }
760
+ augment(X, axis) {
761
+ return this.augmentMatrix(X, axis);
762
+ }
763
+ }
764
+ NativeMethod.register("augmentation.scattering.batch_effect", BatchEffect);
765
+ /** Native `augmentation.scattering.dead_band` (augmenter). */
766
+ export class DeadBand extends NativeProcedure {
767
+ methodId = "augmentation.scattering.dead_band";
768
+ paramTypes = {
769
+ n_bands: "int",
770
+ width_low: "int",
771
+ width_high: "int",
772
+ noise_std: "double",
773
+ probability: "double",
774
+ variation_scope: "enum",
775
+ seed: "int",
776
+ };
777
+ constructor(params = {}) {
778
+ super();
779
+ this.params = { ...params };
780
+ }
781
+ augment(X, axis) {
782
+ return this.augmentMatrix(X, axis);
783
+ }
784
+ }
785
+ NativeMethod.register("augmentation.scattering.dead_band", DeadBand);
786
+ /** Native `augmentation.scattering.emsc_distort` (augmenter). Required inputs: axis. */
787
+ export class EMSCDistort extends NativeProcedure {
788
+ methodId = "augmentation.scattering.emsc_distort";
789
+ paramTypes = {
790
+ mult_low: "double",
791
+ mult_high: "double",
792
+ add_low: "double",
793
+ add_high: "double",
794
+ polynomial_order: "int",
795
+ polynomial_strength: "double",
796
+ correlation: "double",
797
+ seed: "int",
798
+ };
799
+ constructor(params = {}) {
800
+ super();
801
+ this.params = { ...params };
802
+ }
803
+ augment(X, axis) {
804
+ return this.augmentMatrix(X, axis);
805
+ }
806
+ }
807
+ NativeMethod.register("augmentation.scattering.emsc_distort", EMSCDistort);
808
+ /** Native `augmentation.scattering.instrument_broaden` (augmenter). */
809
+ export class InstrumentBroaden extends NativeProcedure {
810
+ methodId = "augmentation.scattering.instrument_broaden";
811
+ paramTypes = {
812
+ fwhm: "double",
813
+ use_fwhm_range: "bool",
814
+ fwhm_low: "double",
815
+ fwhm_high: "double",
816
+ variation_scope: "enum",
817
+ seed: "int",
818
+ };
819
+ constructor(params = {}) {
820
+ super();
821
+ this.params = { ...params };
822
+ }
823
+ augment(X, axis) {
824
+ return this.augmentMatrix(X, axis);
825
+ }
826
+ }
827
+ NativeMethod.register("augmentation.scattering.instrument_broaden", InstrumentBroaden);
828
+ /** Native `augmentation.scattering.particle_size` (augmenter). Required inputs: axis. */
829
+ export class ParticleSize extends NativeProcedure {
830
+ methodId = "augmentation.scattering.particle_size";
831
+ paramTypes = {
832
+ mean_size_um: "double",
833
+ size_variation_um: "double",
834
+ use_size_range: "bool",
835
+ size_range_low_um: "double",
836
+ size_range_high_um: "double",
837
+ reference_size_um: "double",
838
+ wavelength_exponent: "double",
839
+ size_effect_strength: "double",
840
+ include_path_length: "bool",
841
+ path_length_sensitivity: "double",
842
+ seed: "int",
843
+ };
844
+ constructor(params = {}) {
845
+ super();
846
+ this.params = { ...params };
847
+ }
848
+ augment(X, axis) {
849
+ return this.augmentMatrix(X, axis);
850
+ }
851
+ }
852
+ NativeMethod.register("augmentation.scattering.particle_size", ParticleSize);
853
+ /** Native `augmentation.scattering.scatter_sim_msc` (augmenter). */
854
+ export class ScatterSimMSC extends NativeProcedure {
855
+ methodId = "augmentation.scattering.scatter_sim_msc";
856
+ paramTypes = {
857
+ a_low: "double",
858
+ a_high: "double",
859
+ b_low: "double",
860
+ b_high: "double",
861
+ seed: "int",
862
+ };
863
+ constructor(params = {}) {
864
+ super();
865
+ this.params = { ...params };
866
+ }
867
+ augment(X, axis) {
868
+ return this.augmentMatrix(X, axis);
869
+ }
870
+ }
871
+ NativeMethod.register("augmentation.scattering.scatter_sim_msc", ScatterSimMSC);
872
+ /** Native `augmentation.spectral.band_mask` (augmenter). */
873
+ export class BandMask extends NativeProcedure {
874
+ methodId = "augmentation.spectral.band_mask";
875
+ paramTypes = {
876
+ n_bands_lo: "int",
877
+ n_bands_hi: "int",
878
+ bw_lo: "int",
879
+ bw_hi: "int",
880
+ mode: "enum",
881
+ seed: "int",
882
+ };
883
+ constructor(params = {}) {
884
+ super();
885
+ this.params = { ...params };
886
+ }
887
+ augment(X, axis) {
888
+ return this.augmentMatrix(X, axis);
889
+ }
890
+ }
891
+ NativeMethod.register("augmentation.spectral.band_mask", BandMask);
892
+ /** Native `augmentation.spectral.band_perturb` (augmenter). */
893
+ export class BandPerturb extends NativeProcedure {
894
+ methodId = "augmentation.spectral.band_perturb";
895
+ paramTypes = {
896
+ n_bands: "int",
897
+ bw_lo: "int",
898
+ bw_hi: "int",
899
+ gain_lo: "double",
900
+ gain_hi: "double",
901
+ offset_lo: "double",
902
+ offset_hi: "double",
903
+ seed: "int",
904
+ };
905
+ constructor(params = {}) {
906
+ super();
907
+ this.params = { ...params };
908
+ }
909
+ augment(X, axis) {
910
+ return this.augmentMatrix(X, axis);
911
+ }
912
+ }
913
+ NativeMethod.register("augmentation.spectral.band_perturb", BandPerturb);
914
+ /** Native `augmentation.spectral.channel_dropout` (augmenter). */
915
+ export class ChannelDropout extends NativeProcedure {
916
+ methodId = "augmentation.spectral.channel_dropout";
917
+ paramTypes = {
918
+ dropout_prob: "double",
919
+ mode: "enum",
920
+ seed: "int",
921
+ };
922
+ constructor(params = {}) {
923
+ super();
924
+ this.params = { ...params };
925
+ }
926
+ augment(X, axis) {
927
+ return this.augmentMatrix(X, axis);
928
+ }
929
+ }
930
+ NativeMethod.register("augmentation.spectral.channel_dropout", ChannelDropout);
931
+ /** Native `augmentation.spectral.gauss_jitter` (augmenter). */
932
+ export class GaussJitter extends NativeProcedure {
933
+ methodId = "augmentation.spectral.gauss_jitter";
934
+ paramTypes = {
935
+ sigma_lo: "double",
936
+ sigma_hi: "double",
937
+ kernel_width: "int",
938
+ seed: "int",
939
+ };
940
+ constructor(params = {}) {
941
+ super();
942
+ this.params = { ...params };
943
+ }
944
+ augment(X, axis) {
945
+ return this.augmentMatrix(X, axis);
946
+ }
947
+ }
948
+ NativeMethod.register("augmentation.spectral.gauss_jitter", GaussJitter);
949
+ /** Native `augmentation.spectral.local_clip` (augmenter). */
950
+ export class LocalClip extends NativeProcedure {
951
+ methodId = "augmentation.spectral.local_clip";
952
+ paramTypes = {
953
+ n_regions: "int",
954
+ width_lo: "int",
955
+ width_hi: "int",
956
+ seed: "int",
957
+ };
958
+ constructor(params = {}) {
959
+ super();
960
+ this.params = { ...params };
961
+ }
962
+ augment(X, axis) {
963
+ return this.augmentMatrix(X, axis);
964
+ }
965
+ }
966
+ NativeMethod.register("augmentation.spectral.local_clip", LocalClip);
967
+ /** Native `augmentation.spectral.magnitude_warp` (augmenter). */
968
+ export class MagnitudeWarp extends NativeProcedure {
969
+ methodId = "augmentation.spectral.magnitude_warp";
970
+ paramTypes = {
971
+ n_control_points: "int",
972
+ gain_lo: "double",
973
+ gain_hi: "double",
974
+ seed: "int",
975
+ };
976
+ constructor(params = {}) {
977
+ super();
978
+ this.params = { ...params };
979
+ }
980
+ augment(X, axis) {
981
+ return this.augmentMatrix(X, axis);
982
+ }
983
+ }
984
+ NativeMethod.register("augmentation.spectral.magnitude_warp", MagnitudeWarp);
985
+ /** Native `augmentation.spectral.unsharp_mask` (augmenter). */
986
+ export class UnsharpMask extends NativeProcedure {
987
+ methodId = "augmentation.spectral.unsharp_mask";
988
+ paramTypes = {
989
+ amount_lo: "double",
990
+ amount_hi: "double",
991
+ sigma: "double",
992
+ kernel_width: "int",
993
+ seed: "int",
994
+ };
995
+ constructor(params = {}) {
996
+ super();
997
+ this.params = { ...params };
998
+ }
999
+ augment(X, axis) {
1000
+ return this.augmentMatrix(X, axis);
1001
+ }
1002
+ }
1003
+ NativeMethod.register("augmentation.spectral.unsharp_mask", UnsharpMask);
1004
+ /** Native `augmentation.splines.spline_curve_simplification` (augmenter). */
1005
+ export class SplineCurveSimplification extends NativeProcedure {
1006
+ methodId = "augmentation.splines.spline_curve_simplification";
1007
+ paramTypes = {
1008
+ spline_points: "int",
1009
+ uniform: "bool",
1010
+ seed: "int",
1011
+ };
1012
+ constructor(params = {}) {
1013
+ super();
1014
+ this.params = { ...params };
1015
+ }
1016
+ augment(X, axis) {
1017
+ return this.augmentMatrix(X, axis);
1018
+ }
1019
+ }
1020
+ NativeMethod.register("augmentation.splines.spline_curve_simplification", SplineCurveSimplification);
1021
+ /** Native `augmentation.splines.spline_smoothing` (augmenter). */
1022
+ export class SplineSmoothing extends NativeProcedure {
1023
+ methodId = "augmentation.splines.spline_smoothing";
1024
+ paramTypes = {
1025
+ seed: "int",
1026
+ };
1027
+ constructor(params = {}) {
1028
+ super();
1029
+ this.params = { ...params };
1030
+ }
1031
+ augment(X, axis) {
1032
+ return this.augmentMatrix(X, axis);
1033
+ }
1034
+ }
1035
+ NativeMethod.register("augmentation.splines.spline_smoothing", SplineSmoothing);
1036
+ /** Native `augmentation.splines.spline_x_perturbations` (augmenter). */
1037
+ export class SplineXPerturbations extends NativeProcedure {
1038
+ methodId = "augmentation.splines.spline_x_perturbations";
1039
+ paramTypes = {
1040
+ spline_degree: "int",
1041
+ perturbation_density: "double",
1042
+ perturbation_range_min: "double",
1043
+ perturbation_range_max: "double",
1044
+ seed: "int",
1045
+ };
1046
+ constructor(params = {}) {
1047
+ super();
1048
+ this.params = { ...params };
1049
+ }
1050
+ augment(X, axis) {
1051
+ return this.augmentMatrix(X, axis);
1052
+ }
1053
+ }
1054
+ NativeMethod.register("augmentation.splines.spline_x_perturbations", SplineXPerturbations);
1055
+ /** Native `augmentation.splines.spline_x_simplification` (augmenter). */
1056
+ export class SplineXSimplification extends NativeProcedure {
1057
+ methodId = "augmentation.splines.spline_x_simplification";
1058
+ paramTypes = {
1059
+ spline_points: "int",
1060
+ uniform: "bool",
1061
+ seed: "int",
1062
+ };
1063
+ constructor(params = {}) {
1064
+ super();
1065
+ this.params = { ...params };
1066
+ }
1067
+ augment(X, axis) {
1068
+ return this.augmentMatrix(X, axis);
1069
+ }
1070
+ }
1071
+ NativeMethod.register("augmentation.splines.spline_x_simplification", SplineXSimplification);
1072
+ /** Native `augmentation.splines.spline_y_perturbations` (augmenter). */
1073
+ export class SplineYPerturbations extends NativeProcedure {
1074
+ methodId = "augmentation.splines.spline_y_perturbations";
1075
+ paramTypes = {
1076
+ spline_points: "int",
1077
+ perturbation_intensity: "double",
1078
+ seed: "int",
1079
+ };
1080
+ constructor(params = {}) {
1081
+ super();
1082
+ this.params = { ...params };
1083
+ }
1084
+ augment(X, axis) {
1085
+ return this.augmentMatrix(X, axis);
1086
+ }
1087
+ }
1088
+ NativeMethod.register("augmentation.splines.spline_y_perturbations", SplineYPerturbations);
1089
+ /** Native `augmentation.wavelength.local_warp` (augmenter). */
1090
+ export class LocalWarp extends NativeProcedure {
1091
+ methodId = "augmentation.wavelength.local_warp";
1092
+ paramTypes = {
1093
+ n_control_points: "int",
1094
+ max_shift: "double",
1095
+ seed: "int",
1096
+ };
1097
+ constructor(params = {}) {
1098
+ super();
1099
+ this.params = { ...params };
1100
+ }
1101
+ augment(X, axis) {
1102
+ return this.augmentMatrix(X, axis);
1103
+ }
1104
+ }
1105
+ NativeMethod.register("augmentation.wavelength.local_warp", LocalWarp);
1106
+ /** Native `augmentation.wavelength.wavelength_shift` (augmenter). */
1107
+ export class WavelengthShift extends NativeProcedure {
1108
+ methodId = "augmentation.wavelength.wavelength_shift";
1109
+ paramTypes = {
1110
+ shift_lo: "double",
1111
+ shift_hi: "double",
1112
+ seed: "int",
1113
+ };
1114
+ constructor(params = {}) {
1115
+ super();
1116
+ this.params = { ...params };
1117
+ }
1118
+ augment(X, axis) {
1119
+ return this.augmentMatrix(X, axis);
1120
+ }
1121
+ }
1122
+ NativeMethod.register("augmentation.wavelength.wavelength_shift", WavelengthShift);
1123
+ /** Native `augmentation.wavelength.wavelength_stretch` (augmenter). */
1124
+ export class WavelengthStretch extends NativeProcedure {
1125
+ methodId = "augmentation.wavelength.wavelength_stretch";
1126
+ paramTypes = {
1127
+ stretch_lo: "double",
1128
+ stretch_hi: "double",
1129
+ seed: "int",
1130
+ };
1131
+ constructor(params = {}) {
1132
+ super();
1133
+ this.params = { ...params };
1134
+ }
1135
+ augment(X, axis) {
1136
+ return this.augmentMatrix(X, axis);
1137
+ }
1138
+ }
1139
+ NativeMethod.register("augmentation.wavelength.wavelength_stretch", WavelengthStretch);
1140
+ /** Native `diagnostics.approximate_press` (generic). Required inputs: y. */
1141
+ export class ApproximatePress extends NativeProcedure {
1142
+ methodId = "diagnostics.approximate_press";
1143
+ paramTypes = {
1144
+ max_components: "int",
1145
+ };
1146
+ constructor(params = {}) {
1147
+ super();
1148
+ this.params = { ...params };
1149
+ }
1150
+ run(X, y, inputs = {}) {
1151
+ return this.runOutputs(X, y, inputs);
1152
+ }
1153
+ }
1154
+ NativeMethod.register("diagnostics.approximate_press", ApproximatePress);
1155
+ /** Native `diagnostics.model_selection` (generic). */
1156
+ export class ModelSelection extends NativeProcedure {
1157
+ methodId = "diagnostics.model_selection";
1158
+ paramTypes = {};
1159
+ constructor(params = {}) {
1160
+ super();
1161
+ this.params = { ...params };
1162
+ }
1163
+ run(X, y, inputs = {}) {
1164
+ return this.runOutputs(X, y, inputs);
1165
+ }
1166
+ }
1167
+ NativeMethod.register("diagnostics.model_selection", ModelSelection);
1168
+ /** Native `diagnostics.pls_diagnostics` (generic). Required inputs: y. */
1169
+ export class PLSDiagnostics extends NativeProcedure {
1170
+ methodId = "diagnostics.pls_diagnostics";
1171
+ paramTypes = {
1172
+ n_components: "int",
1173
+ center_x: "bool",
1174
+ scale_x: "bool",
1175
+ center_y: "bool",
1176
+ scale_y: "bool",
1177
+ };
1178
+ constructor(params = {}) {
1179
+ super();
1180
+ this.params = { ...params };
1181
+ }
1182
+ run(X, y, inputs = {}) {
1183
+ return this.runOutputs(X, y, inputs);
1184
+ }
1185
+ }
1186
+ NativeMethod.register("diagnostics.pls_diagnostics", PLSDiagnostics);
1187
+ /** Native `diagnostics.pls_monitoring` (generic). Required inputs: y, target_domain. */
1188
+ export class PLSMonitoring extends NativeProcedure {
1189
+ methodId = "diagnostics.pls_monitoring";
1190
+ paramTypes = {
1191
+ n_components: "int",
1192
+ center_x: "bool",
1193
+ scale_x: "bool",
1194
+ center_y: "bool",
1195
+ scale_y: "bool",
1196
+ alpha: "double",
1197
+ };
1198
+ constructor(params = {}) {
1199
+ super();
1200
+ this.params = { ...params };
1201
+ }
1202
+ run(X, y, inputs = {}) {
1203
+ return this.runOutputs(X, y, inputs);
1204
+ }
1205
+ }
1206
+ NativeMethod.register("diagnostics.pls_monitoring", PLSMonitoring);
1207
+ /** Native `diagnostics.regression_metrics` (generic). Required inputs: y. */
1208
+ export class RegressionMetrics extends NativeProcedure {
1209
+ methodId = "diagnostics.regression_metrics";
1210
+ paramTypes = {};
1211
+ constructor(params = {}) {
1212
+ super();
1213
+ this.params = { ...params };
1214
+ }
1215
+ run(X, y, inputs = {}) {
1216
+ return this.runOutputs(X, y, inputs);
1217
+ }
1218
+ }
1219
+ NativeMethod.register("diagnostics.regression_metrics", RegressionMetrics);
1220
+ /** Native `filters.correlation` (selector). */
1221
+ export class CorrelationFilter extends NativeEstimator {
1222
+ methodId = "filters.correlation";
1223
+ paramTypes = {
1224
+ threshold: "double",
1225
+ top_k: "int",
1226
+ };
1227
+ constructor(params = {}) {
1228
+ super();
1229
+ this.params = { ...params };
1230
+ }
1231
+ transform(X) {
1232
+ return this.transformMatrix(X);
1233
+ }
1234
+ selectedIndices() {
1235
+ return this.selectedIndexArray();
1236
+ }
1237
+ }
1238
+ NativeMethod.register("filters.correlation", CorrelationFilter);
1239
+ /** Native `filters.high_leverage` (sample_filter). */
1240
+ export class HighLeverageFilter extends NativeEstimator {
1241
+ methodId = "filters.high_leverage";
1242
+ paramTypes = {
1243
+ method: "enum",
1244
+ threshold_multiplier: "double",
1245
+ absolute_threshold: "double",
1246
+ n_components: "int",
1247
+ center: "bool",
1248
+ };
1249
+ constructor(params = {}) {
1250
+ super();
1251
+ this.params = { ...params };
1252
+ }
1253
+ getMask(X, y) {
1254
+ return this.maskArray(X, y);
1255
+ }
1256
+ }
1257
+ NativeMethod.register("filters.high_leverage", HighLeverageFilter);
1258
+ /** Native `filters.spectral_quality` (sample_filter). */
1259
+ export class SpectralQualityFilter extends NativeEstimator {
1260
+ methodId = "filters.spectral_quality";
1261
+ paramTypes = {
1262
+ max_nan_ratio: "double",
1263
+ max_zero_ratio: "double",
1264
+ min_variance: "double",
1265
+ max_value: "double",
1266
+ min_value: "double",
1267
+ check_inf: "bool",
1268
+ };
1269
+ constructor(params = {}) {
1270
+ super();
1271
+ this.params = { ...params };
1272
+ }
1273
+ getMask(X, y) {
1274
+ return this.maskArray(X, y);
1275
+ }
1276
+ }
1277
+ NativeMethod.register("filters.spectral_quality", SpectralQualityFilter);
1278
+ /** Native `filters.variance` (selector). */
1279
+ export class VarianceFilter extends NativeEstimator {
1280
+ methodId = "filters.variance";
1281
+ paramTypes = {
1282
+ threshold: "double",
1283
+ top_k: "int",
1284
+ };
1285
+ constructor(params = {}) {
1286
+ super();
1287
+ this.params = { ...params };
1288
+ }
1289
+ transform(X) {
1290
+ return this.transformMatrix(X);
1291
+ }
1292
+ selectedIndices() {
1293
+ return this.selectedIndexArray();
1294
+ }
1295
+ }
1296
+ NativeMethod.register("filters.variance", VarianceFilter);
1297
+ /** Native `filters.x_outlier` (sample_filter). */
1298
+ export class XOutlierFilter extends NativeEstimator {
1299
+ methodId = "filters.x_outlier";
1300
+ paramTypes = {
1301
+ method: "enum",
1302
+ threshold: "double",
1303
+ n_components: "int",
1304
+ contamination: "double",
1305
+ seed: "int",
1306
+ n_estimators: "int",
1307
+ max_samples: "int",
1308
+ };
1309
+ constructor(params = {}) {
1310
+ super();
1311
+ this.params = { ...params };
1312
+ }
1313
+ getMask(X, y) {
1314
+ return this.maskArray(X, y);
1315
+ }
1316
+ }
1317
+ NativeMethod.register("filters.x_outlier", XOutlierFilter);
1318
+ /** Native `filters.y_outlier` (sample_filter). */
1319
+ export class YOutlierFilter extends NativeEstimator {
1320
+ methodId = "filters.y_outlier";
1321
+ paramTypes = {
1322
+ method: "enum",
1323
+ threshold: "double",
1324
+ lower_percentile: "double",
1325
+ upper_percentile: "double",
1326
+ };
1327
+ constructor(params = {}) {
1328
+ super();
1329
+ this.params = { ...params };
1330
+ }
1331
+ getMask(X, y) {
1332
+ return this.maskArray(X, y);
1333
+ }
1334
+ }
1335
+ NativeMethod.register("filters.y_outlier", YOutlierFilter);
1336
+ /** Native `models.classification.pls_lda` (classifier). Required fit inputs: labels. */
1337
+ export class PLSLDA extends NativeEstimator {
1338
+ methodId = "models.classification.pls_lda";
1339
+ paramTypes = {
1340
+ n_components: "int",
1341
+ };
1342
+ labelTarget = true;
1343
+ constructor(params = {}) {
1344
+ super();
1345
+ this.params = { ...params };
1346
+ }
1347
+ decisionFunction(X) {
1348
+ return this.decisionMatrix(X);
1349
+ }
1350
+ predictLabels(X) {
1351
+ return this.labelArray(X);
1352
+ }
1353
+ classes() {
1354
+ return this.classArray();
1355
+ }
1356
+ }
1357
+ NativeMethod.register("models.classification.pls_lda", PLSLDA);
1358
+ /** Native `models.classification.pls_logistic` (classifier). Required fit inputs: labels. */
1359
+ export class PLSLogistic extends NativeEstimator {
1360
+ methodId = "models.classification.pls_logistic";
1361
+ paramTypes = {
1362
+ n_components: "int",
1363
+ max_iter: "int",
1364
+ };
1365
+ labelTarget = true;
1366
+ constructor(params = {}) {
1367
+ super();
1368
+ this.params = { ...params };
1369
+ }
1370
+ decisionFunction(X) {
1371
+ return this.decisionMatrix(X);
1372
+ }
1373
+ predictLabels(X) {
1374
+ return this.labelArray(X);
1375
+ }
1376
+ classes() {
1377
+ return this.classArray();
1378
+ }
1379
+ predictProba(X) {
1380
+ return this.probaMatrix(X);
1381
+ }
1382
+ }
1383
+ NativeMethod.register("models.classification.pls_logistic", PLSLogistic);
1384
+ /** Native `models.classification.pls_qda` (classifier). Required fit inputs: labels. */
1385
+ export class PLSQDA extends NativeEstimator {
1386
+ methodId = "models.classification.pls_qda";
1387
+ paramTypes = {
1388
+ n_components: "int",
1389
+ };
1390
+ labelTarget = true;
1391
+ constructor(params = {}) {
1392
+ super();
1393
+ this.params = { ...params };
1394
+ }
1395
+ decisionFunction(X) {
1396
+ return this.decisionMatrix(X);
1397
+ }
1398
+ predictLabels(X) {
1399
+ return this.labelArray(X);
1400
+ }
1401
+ classes() {
1402
+ return this.classArray();
1403
+ }
1404
+ predictProba(X) {
1405
+ return this.probaMatrix(X);
1406
+ }
1407
+ }
1408
+ NativeMethod.register("models.classification.pls_qda", PLSQDA);
1409
+ /** Native `models.ensembles.bagging_pls` (regressor). */
1410
+ export class BaggingPLS extends NativeEstimator {
1411
+ methodId = "models.ensembles.bagging_pls";
1412
+ paramTypes = {
1413
+ n_components: "int",
1414
+ n_estimators: "int",
1415
+ seed: "int",
1416
+ };
1417
+ constructor(params = {}) {
1418
+ super();
1419
+ this.params = { ...params };
1420
+ }
1421
+ predict(X) {
1422
+ return this.predictMatrix(X);
1423
+ }
1424
+ }
1425
+ NativeMethod.register("models.ensembles.bagging_pls", BaggingPLS);
1426
+ /** Native `models.ensembles.boosting_pls` (regressor). */
1427
+ export class BoostingPLS extends NativeEstimator {
1428
+ methodId = "models.ensembles.boosting_pls";
1429
+ paramTypes = {
1430
+ n_components: "int",
1431
+ n_estimators: "int",
1432
+ learning_rate: "double",
1433
+ };
1434
+ constructor(params = {}) {
1435
+ super();
1436
+ this.params = { ...params };
1437
+ }
1438
+ predict(X) {
1439
+ return this.predictMatrix(X);
1440
+ }
1441
+ }
1442
+ NativeMethod.register("models.ensembles.boosting_pls", BoostingPLS);
1443
+ /** Native `models.ensembles.random_subspace_pls` (regressor). */
1444
+ export class RandomSubspacePLS extends NativeEstimator {
1445
+ methodId = "models.ensembles.random_subspace_pls";
1446
+ paramTypes = {
1447
+ n_components: "int",
1448
+ n_estimators: "int",
1449
+ features_per_subspace: "int",
1450
+ seed: "int",
1451
+ };
1452
+ constructor(params = {}) {
1453
+ super();
1454
+ this.params = { ...params };
1455
+ }
1456
+ predict(X) {
1457
+ return this.predictMatrix(X);
1458
+ }
1459
+ }
1460
+ NativeMethod.register("models.ensembles.random_subspace_pls", RandomSubspacePLS);
1461
+ /** Native `models.heads.pls_cox` (regressor). */
1462
+ export class PLSCox extends NativeEstimator {
1463
+ methodId = "models.heads.pls_cox";
1464
+ paramTypes = {
1465
+ n_components: "int",
1466
+ max_iter: "int",
1467
+ tol: "double",
1468
+ };
1469
+ constructor(params = {}) {
1470
+ super();
1471
+ this.params = { ...params };
1472
+ }
1473
+ predict(X) {
1474
+ return this.predictMatrix(X);
1475
+ }
1476
+ }
1477
+ NativeMethod.register("models.heads.pls_cox", PLSCox);
1478
+ /** Native `models.heads.pls_glm` (regressor). */
1479
+ export class PLSGLM extends NativeEstimator {
1480
+ methodId = "models.heads.pls_glm";
1481
+ paramTypes = {
1482
+ n_components: "int",
1483
+ family: "enum",
1484
+ max_iter: "int",
1485
+ tol: "double",
1486
+ };
1487
+ constructor(params = {}) {
1488
+ super();
1489
+ this.params = { ...params };
1490
+ }
1491
+ predict(X) {
1492
+ return this.predictMatrix(X);
1493
+ }
1494
+ }
1495
+ NativeMethod.register("models.heads.pls_glm", PLSGLM);
1496
+ /** Native `models.local.lw_pls` (regressor). */
1497
+ export class LWPLS extends NativeEstimator {
1498
+ methodId = "models.local.lw_pls";
1499
+ paramTypes = {
1500
+ n_components: "int",
1501
+ n_neighbors: "int",
1502
+ mode: "enum",
1503
+ };
1504
+ constructor(params = {}) {
1505
+ super();
1506
+ this.params = { ...params };
1507
+ }
1508
+ predict(X) {
1509
+ return this.predictMatrix(X);
1510
+ }
1511
+ }
1512
+ NativeMethod.register("models.local.lw_pls", LWPLS);
1513
+ /** Native `models.multiblock.mb_pls` (regressor). Required fit inputs: blocks. */
1514
+ export class MBPLS extends NativeEstimator {
1515
+ methodId = "models.multiblock.mb_pls";
1516
+ paramTypes = {
1517
+ n_components: "int",
1518
+ };
1519
+ constructor(params = {}) {
1520
+ super();
1521
+ this.params = { ...params };
1522
+ }
1523
+ predict(X) {
1524
+ return this.predictMatrix(X);
1525
+ }
1526
+ }
1527
+ NativeMethod.register("models.multiblock.mb_pls", MBPLS);
1528
+ /** Native `models.multiblock.mir_pls` (regressor). */
1529
+ export class MIRPLS extends NativeEstimator {
1530
+ methodId = "models.multiblock.mir_pls";
1531
+ paramTypes = {
1532
+ n_components: "int",
1533
+ };
1534
+ constructor(params = {}) {
1535
+ super();
1536
+ this.params = { ...params };
1537
+ }
1538
+ predict(X) {
1539
+ return this.predictMatrix(X);
1540
+ }
1541
+ }
1542
+ NativeMethod.register("models.multiblock.mir_pls", MIRPLS);
1543
+ /** Native `models.multiblock.o2pls` (regressor). */
1544
+ export class O2PLS extends NativeEstimator {
1545
+ methodId = "models.multiblock.o2pls";
1546
+ paramTypes = {
1547
+ n_predictive: "int",
1548
+ n_x_orthogonal: "int",
1549
+ n_y_orthogonal: "int",
1550
+ };
1551
+ constructor(params = {}) {
1552
+ super();
1553
+ this.params = { ...params };
1554
+ }
1555
+ predict(X) {
1556
+ return this.predictMatrix(X);
1557
+ }
1558
+ }
1559
+ NativeMethod.register("models.multiblock.o2pls", O2PLS);
1560
+ /** Native `models.multiblock.on_pls` (transformer). Required fit inputs: blocks. */
1561
+ export class OnPLS extends NativeEstimator {
1562
+ methodId = "models.multiblock.on_pls";
1563
+ paramTypes = {
1564
+ n_joint: "int",
1565
+ n_unique_per_block: "int_array",
1566
+ };
1567
+ constructor(params = {}) {
1568
+ super();
1569
+ this.params = { ...params };
1570
+ }
1571
+ transform(X) {
1572
+ return this.transformMatrix(X);
1573
+ }
1574
+ }
1575
+ NativeMethod.register("models.multiblock.on_pls", OnPLS);
1576
+ /** Native `models.multiblock.rosa` (regressor). Required fit inputs: blocks. */
1577
+ export class ROSA extends NativeEstimator {
1578
+ methodId = "models.multiblock.rosa";
1579
+ paramTypes = {
1580
+ n_components: "int",
1581
+ };
1582
+ constructor(params = {}) {
1583
+ super();
1584
+ this.params = { ...params };
1585
+ }
1586
+ predict(X) {
1587
+ return this.predictMatrix(X);
1588
+ }
1589
+ }
1590
+ NativeMethod.register("models.multiblock.rosa", ROSA);
1591
+ /** Native `models.multiblock.so_pls` (regressor). Required fit inputs: blocks. */
1592
+ export class SOPLS extends NativeEstimator {
1593
+ methodId = "models.multiblock.so_pls";
1594
+ paramTypes = {
1595
+ n_components_per_block: "int_array",
1596
+ };
1597
+ constructor(params = {}) {
1598
+ super();
1599
+ this.params = { ...params };
1600
+ }
1601
+ predict(X) {
1602
+ return this.predictMatrix(X);
1603
+ }
1604
+ }
1605
+ NativeMethod.register("models.multiblock.so_pls", SOPLS);
1606
+ /** Native `models.pls.cppls` (regressor). */
1607
+ export class CPPLS extends NativeEstimator {
1608
+ methodId = "models.pls.cppls";
1609
+ paramTypes = {
1610
+ n_components: "int",
1611
+ gamma: "double",
1612
+ };
1613
+ constructor(params = {}) {
1614
+ super();
1615
+ this.params = { ...params };
1616
+ }
1617
+ predict(X) {
1618
+ return this.predictMatrix(X);
1619
+ }
1620
+ }
1621
+ NativeMethod.register("models.pls.cppls", CPPLS);
1622
+ /** Native `models.pls.kernel` (regressor). */
1623
+ export class KernelPLS extends NativeEstimator {
1624
+ methodId = "models.pls.kernel";
1625
+ paramTypes = {
1626
+ n_components: "int",
1627
+ kernel: "enum",
1628
+ gamma: "double",
1629
+ coef0: "double",
1630
+ degree: "int",
1631
+ };
1632
+ constructor(params = {}) {
1633
+ super();
1634
+ this.params = { ...params };
1635
+ }
1636
+ predict(X) {
1637
+ return this.predictMatrix(X);
1638
+ }
1639
+ }
1640
+ NativeMethod.register("models.pls.kernel", KernelPLS);
1641
+ /** Native `models.pls.pcr` (transformer, regressor). */
1642
+ export class PCR extends NativeEstimator {
1643
+ methodId = "models.pls.pcr";
1644
+ paramTypes = {
1645
+ n_components: "int",
1646
+ center_x: "bool",
1647
+ scale_x: "bool",
1648
+ center_y: "bool",
1649
+ scale_y: "bool",
1650
+ };
1651
+ constructor(params = {}) {
1652
+ super();
1653
+ this.params = { ...params };
1654
+ }
1655
+ predict(X) {
1656
+ return this.predictMatrix(X);
1657
+ }
1658
+ transform(X) {
1659
+ return this.transformMatrix(X);
1660
+ }
1661
+ }
1662
+ NativeMethod.register("models.pls.pcr", PCR);
1663
+ /** Native `models.pls.pls_fit_simple` (transformer, regressor). */
1664
+ export class SimplePLS extends NativeEstimator {
1665
+ methodId = "models.pls.pls_fit_simple";
1666
+ paramTypes = {
1667
+ n_components: "int",
1668
+ };
1669
+ constructor(params = {}) {
1670
+ super();
1671
+ this.params = { ...params };
1672
+ }
1673
+ predict(X) {
1674
+ return this.predictMatrix(X);
1675
+ }
1676
+ transform(X) {
1677
+ return this.transformMatrix(X);
1678
+ }
1679
+ }
1680
+ NativeMethod.register("models.pls.pls_fit_simple", SimplePLS);
1681
+ /** Native `models.pls.pls_regression` (transformer, regressor). */
1682
+ export class PLSRegression extends NativeEstimator {
1683
+ methodId = "models.pls.pls_regression";
1684
+ paramTypes = {
1685
+ n_components: "int",
1686
+ solver: "enum",
1687
+ center_x: "bool",
1688
+ scale_x: "bool",
1689
+ center_y: "bool",
1690
+ scale_y: "bool",
1691
+ };
1692
+ constructor(params = {}) {
1693
+ super();
1694
+ this.params = { ...params };
1695
+ }
1696
+ predict(X) {
1697
+ return this.predictMatrix(X);
1698
+ }
1699
+ transform(X) {
1700
+ return this.transformMatrix(X);
1701
+ }
1702
+ }
1703
+ NativeMethod.register("models.pls.pls_regression", PLSRegression);
1704
+ /** Native `models.regularized.continuum_regression` (regressor). */
1705
+ export class ContinuumRegression extends NativeEstimator {
1706
+ methodId = "models.regularized.continuum_regression";
1707
+ paramTypes = {
1708
+ n_components: "int",
1709
+ tau: "double",
1710
+ };
1711
+ constructor(params = {}) {
1712
+ super();
1713
+ this.params = { ...params };
1714
+ }
1715
+ predict(X) {
1716
+ return this.predictMatrix(X);
1717
+ }
1718
+ }
1719
+ NativeMethod.register("models.regularized.continuum_regression", ContinuumRegression);
1720
+ /** Native `models.regularized.ridge` (regressor). */
1721
+ export class Ridge extends NativeEstimator {
1722
+ methodId = "models.regularized.ridge";
1723
+ paramTypes = {
1724
+ alpha: "double",
1725
+ center_x: "bool",
1726
+ scale_x: "bool",
1727
+ center_y: "bool",
1728
+ };
1729
+ constructor(params = {}) {
1730
+ super();
1731
+ this.params = { ...params };
1732
+ }
1733
+ predict(X) {
1734
+ return this.predictMatrix(X);
1735
+ }
1736
+ }
1737
+ NativeMethod.register("models.regularized.ridge", Ridge);
1738
+ /** Native `models.regularized.ridge_pls` (regressor). */
1739
+ export class RidgePLS extends NativeEstimator {
1740
+ methodId = "models.regularized.ridge_pls";
1741
+ paramTypes = {
1742
+ n_components: "int",
1743
+ ridge_lambda: "double",
1744
+ center_x: "bool",
1745
+ scale_x: "bool",
1746
+ center_y: "bool",
1747
+ scale_y: "bool",
1748
+ };
1749
+ constructor(params = {}) {
1750
+ super();
1751
+ this.params = { ...params };
1752
+ }
1753
+ predict(X) {
1754
+ return this.predictMatrix(X);
1755
+ }
1756
+ }
1757
+ NativeMethod.register("models.regularized.ridge_pls", RidgePLS);
1758
+ /** Native `models.regularized.robust_pls` (regressor). */
1759
+ export class RobustPLS extends NativeEstimator {
1760
+ methodId = "models.regularized.robust_pls";
1761
+ paramTypes = {
1762
+ n_components: "int",
1763
+ huber_k: "double",
1764
+ max_irls_iter: "int",
1765
+ center_x: "bool",
1766
+ scale_x: "bool",
1767
+ center_y: "bool",
1768
+ scale_y: "bool",
1769
+ };
1770
+ constructor(params = {}) {
1771
+ super();
1772
+ this.params = { ...params };
1773
+ }
1774
+ predict(X) {
1775
+ return this.predictMatrix(X);
1776
+ }
1777
+ }
1778
+ NativeMethod.register("models.regularized.robust_pls", RobustPLS);
1779
+ /** Native `models.regularized.weighted_pls` (regressor). */
1780
+ export class WeightedPLS extends NativeEstimator {
1781
+ methodId = "models.regularized.weighted_pls";
1782
+ paramTypes = {
1783
+ n_components: "int",
1784
+ center_x: "bool",
1785
+ scale_x: "bool",
1786
+ center_y: "bool",
1787
+ scale_y: "bool",
1788
+ };
1789
+ constructor(params = {}) {
1790
+ super();
1791
+ this.params = { ...params };
1792
+ }
1793
+ predict(X) {
1794
+ return this.predictMatrix(X);
1795
+ }
1796
+ }
1797
+ NativeMethod.register("models.regularized.weighted_pls", WeightedPLS);
1798
+ /** Native `models.sparse.fused_sparse_pls` (regressor). */
1799
+ export class FusedSparsePLS extends NativeEstimator {
1800
+ methodId = "models.sparse.fused_sparse_pls";
1801
+ paramTypes = {
1802
+ n_components: "int",
1803
+ l1_lambda: "double",
1804
+ fusion_lambda: "double",
1805
+ };
1806
+ constructor(params = {}) {
1807
+ super();
1808
+ this.params = { ...params };
1809
+ }
1810
+ predict(X) {
1811
+ return this.predictMatrix(X);
1812
+ }
1813
+ }
1814
+ NativeMethod.register("models.sparse.fused_sparse_pls", FusedSparsePLS);
1815
+ /** Native `models.sparse.group_sparse_pls` (regressor). Required fit inputs: feature_groups. */
1816
+ export class GroupSparsePLS extends NativeEstimator {
1817
+ methodId = "models.sparse.group_sparse_pls";
1818
+ paramTypes = {
1819
+ n_components: "int",
1820
+ group_lambda: "double",
1821
+ };
1822
+ constructor(params = {}) {
1823
+ super();
1824
+ this.params = { ...params };
1825
+ }
1826
+ predict(X) {
1827
+ return this.predictMatrix(X);
1828
+ }
1829
+ }
1830
+ NativeMethod.register("models.sparse.group_sparse_pls", GroupSparsePLS);
1831
+ /** Native `models.sparse.sparse_pls_da` (classifier). Required fit inputs: labels. */
1832
+ export class SparsePLSDA extends NativeEstimator {
1833
+ methodId = "models.sparse.sparse_pls_da";
1834
+ paramTypes = {
1835
+ n_components: "int",
1836
+ sparsity_lambda: "double",
1837
+ };
1838
+ labelTarget = true;
1839
+ constructor(params = {}) {
1840
+ super();
1841
+ this.params = { ...params };
1842
+ }
1843
+ decisionFunction(X) {
1844
+ return this.decisionMatrix(X);
1845
+ }
1846
+ predictLabels(X) {
1847
+ return this.labelArray(X);
1848
+ }
1849
+ classes() {
1850
+ return this.classArray();
1851
+ }
1852
+ }
1853
+ NativeMethod.register("models.sparse.sparse_pls_da", SparsePLSDA);
1854
+ /** Native `models.sparse.sparse_simpls` (regressor). */
1855
+ export class SparseSIMPLS extends NativeEstimator {
1856
+ methodId = "models.sparse.sparse_simpls";
1857
+ paramTypes = {
1858
+ n_components: "int",
1859
+ sparsity_lambda: "double",
1860
+ };
1861
+ constructor(params = {}) {
1862
+ super();
1863
+ this.params = { ...params };
1864
+ }
1865
+ predict(X) {
1866
+ return this.predictMatrix(X);
1867
+ }
1868
+ }
1869
+ NativeMethod.register("models.sparse.sparse_simpls", SparseSIMPLS);
1870
+ /** Native `models.specialized.ecr` (regressor). */
1871
+ export class ECR extends NativeEstimator {
1872
+ methodId = "models.specialized.ecr";
1873
+ paramTypes = {
1874
+ n_components: "int",
1875
+ alpha: "double",
1876
+ };
1877
+ constructor(params = {}) {
1878
+ super();
1879
+ this.params = { ...params };
1880
+ }
1881
+ predict(X) {
1882
+ return this.predictMatrix(X);
1883
+ }
1884
+ }
1885
+ NativeMethod.register("models.specialized.ecr", ECR);
1886
+ /** Native `models.specialized.gpr_pls` (regressor). */
1887
+ export class GPRPLS extends NativeEstimator {
1888
+ methodId = "models.specialized.gpr_pls";
1889
+ paramTypes = {
1890
+ n_components: "int",
1891
+ length_scale: "double",
1892
+ noise_level: "double",
1893
+ };
1894
+ constructor(params = {}) {
1895
+ super();
1896
+ this.params = { ...params };
1897
+ }
1898
+ predict(X) {
1899
+ return this.predictMatrix(X);
1900
+ }
1901
+ }
1902
+ NativeMethod.register("models.specialized.gpr_pls", GPRPLS);
1903
+ /** Native `models.specialized.missing_aware_nipals` (regressor). */
1904
+ export class MissingAwareNIPALS extends NativeEstimator {
1905
+ methodId = "models.specialized.missing_aware_nipals";
1906
+ paramTypes = {
1907
+ n_components: "int",
1908
+ };
1909
+ constructor(params = {}) {
1910
+ super();
1911
+ this.params = { ...params };
1912
+ }
1913
+ predict(X) {
1914
+ return this.predictMatrix(X);
1915
+ }
1916
+ }
1917
+ NativeMethod.register("models.specialized.missing_aware_nipals", MissingAwareNIPALS);
1918
+ /** Native `models.specialized.recursive` (transformer, regressor). */
1919
+ export class RecursivePLS extends NativeEstimator {
1920
+ methodId = "models.specialized.recursive";
1921
+ paramTypes = {
1922
+ n_components: "int",
1923
+ window_size: "int",
1924
+ };
1925
+ constructor(params = {}) {
1926
+ super();
1927
+ this.params = { ...params };
1928
+ }
1929
+ predict(X) {
1930
+ return this.predictMatrix(X);
1931
+ }
1932
+ transform(X) {
1933
+ return this.transformMatrix(X);
1934
+ }
1935
+ }
1936
+ NativeMethod.register("models.specialized.recursive", RecursivePLS);
1937
+ /** Native `models.specialized.tensor_pls` (regressor). */
1938
+ export class NPLS extends NativeEstimator {
1939
+ methodId = "models.specialized.tensor_pls";
1940
+ paramTypes = {
1941
+ n_components: "int",
1942
+ mode_j: "int",
1943
+ mode_k: "int",
1944
+ };
1945
+ constructor(params = {}) {
1946
+ super();
1947
+ this.params = { ...params };
1948
+ }
1949
+ predict(X) {
1950
+ return this.predictMatrix(X);
1951
+ }
1952
+ }
1953
+ NativeMethod.register("models.specialized.tensor_pls", NPLS);
1954
+ /** Native `models.transfer.di_pls` (regressor). Required fit inputs: target_domain. */
1955
+ export class DIPLS extends NativeEstimator {
1956
+ methodId = "models.transfer.di_pls";
1957
+ paramTypes = {
1958
+ n_components: "int",
1959
+ di_lambda: "double",
1960
+ };
1961
+ constructor(params = {}) {
1962
+ super();
1963
+ this.params = { ...params };
1964
+ }
1965
+ predict(X) {
1966
+ return this.predictMatrix(X);
1967
+ }
1968
+ }
1969
+ NativeMethod.register("models.transfer.di_pls", DIPLS);
1970
+ /** Native `models.transfer.ds` (transformer). Required fit inputs: target_domain. */
1971
+ export class DS extends NativeEstimator {
1972
+ methodId = "models.transfer.ds";
1973
+ paramTypes = {};
1974
+ constructor(params = {}) {
1975
+ super();
1976
+ this.params = { ...params };
1977
+ }
1978
+ transform(X) {
1979
+ return this.transformMatrix(X);
1980
+ }
1981
+ }
1982
+ NativeMethod.register("models.transfer.ds", DS);
1983
+ /** Native `models.transfer.pds` (transformer). Required fit inputs: target_domain. */
1984
+ export class PDS extends NativeEstimator {
1985
+ methodId = "models.transfer.pds";
1986
+ paramTypes = {
1987
+ window_half_width: "int",
1988
+ };
1989
+ constructor(params = {}) {
1990
+ super();
1991
+ this.params = { ...params };
1992
+ }
1993
+ transform(X) {
1994
+ return this.transformMatrix(X);
1995
+ }
1996
+ }
1997
+ NativeMethod.register("models.transfer.pds", PDS);
1998
+ /** Native `preprocessing.alignment.cow_align` (transformer). */
1999
+ export class CorrelationOptimizedWarping extends NativeEstimator {
2000
+ methodId = "preprocessing.alignment.cow_align";
2001
+ paramTypes = {
2002
+ reference: "double_array",
2003
+ interval_size: "int",
2004
+ max_shift: "int",
2005
+ };
2006
+ constructor(params = {}) {
2007
+ super();
2008
+ this.params = { ...params };
2009
+ }
2010
+ transform(X) {
2011
+ return this.transformMatrix(X);
2012
+ }
2013
+ }
2014
+ NativeMethod.register("preprocessing.alignment.cow_align", CorrelationOptimizedWarping);
2015
+ /** Native `preprocessing.alignment.dtw_align` (transformer). */
2016
+ export class DynamicTimeWarpingAlignment extends NativeEstimator {
2017
+ methodId = "preprocessing.alignment.dtw_align";
2018
+ paramTypes = {
2019
+ reference: "double_array",
2020
+ };
2021
+ constructor(params = {}) {
2022
+ super();
2023
+ this.params = { ...params };
2024
+ }
2025
+ transform(X) {
2026
+ return this.transformMatrix(X);
2027
+ }
2028
+ }
2029
+ NativeMethod.register("preprocessing.alignment.dtw_align", DynamicTimeWarpingAlignment);
2030
+ /** Native `preprocessing.alignment.icoshift_align` (transformer). */
2031
+ export class IcoshiftAlignment extends NativeEstimator {
2032
+ methodId = "preprocessing.alignment.icoshift_align";
2033
+ paramTypes = {
2034
+ reference: "double_array",
2035
+ interval_size: "int",
2036
+ max_shift: "int",
2037
+ };
2038
+ constructor(params = {}) {
2039
+ super();
2040
+ this.params = { ...params };
2041
+ }
2042
+ transform(X) {
2043
+ return this.transformMatrix(X);
2044
+ }
2045
+ }
2046
+ NativeMethod.register("preprocessing.alignment.icoshift_align", IcoshiftAlignment);
2047
+ /** Native `preprocessing.alignment.xcorr_align` (transformer). */
2048
+ export class CrossCorrelationAlignment extends NativeEstimator {
2049
+ methodId = "preprocessing.alignment.xcorr_align";
2050
+ paramTypes = {
2051
+ reference: "double_array",
2052
+ max_shift: "int",
2053
+ };
2054
+ constructor(params = {}) {
2055
+ super();
2056
+ this.params = { ...params };
2057
+ }
2058
+ transform(X) {
2059
+ return this.transformMatrix(X);
2060
+ }
2061
+ }
2062
+ NativeMethod.register("preprocessing.alignment.xcorr_align", CrossCorrelationAlignment);
2063
+ /** Native `preprocessing.baselines.airpls` (transformer). */
2064
+ export class AirPLS extends NativeEstimator {
2065
+ methodId = "preprocessing.baselines.airpls";
2066
+ paramTypes = {
2067
+ lam: "double",
2068
+ max_iter: "int",
2069
+ tol: "double",
2070
+ };
2071
+ constructor(params = {}) {
2072
+ super();
2073
+ this.params = { ...params };
2074
+ }
2075
+ transform(X) {
2076
+ return this.transformMatrix(X);
2077
+ }
2078
+ }
2079
+ NativeMethod.register("preprocessing.baselines.airpls", AirPLS);
2080
+ /** Native `preprocessing.baselines.arpls` (transformer). */
2081
+ export class ArPLS extends NativeEstimator {
2082
+ methodId = "preprocessing.baselines.arpls";
2083
+ paramTypes = {
2084
+ lam: "double",
2085
+ max_iter: "int",
2086
+ tol: "double",
2087
+ };
2088
+ constructor(params = {}) {
2089
+ super();
2090
+ this.params = { ...params };
2091
+ }
2092
+ transform(X) {
2093
+ return this.transformMatrix(X);
2094
+ }
2095
+ }
2096
+ NativeMethod.register("preprocessing.baselines.arpls", ArPLS);
2097
+ /** Native `preprocessing.baselines.asls` (transformer). */
2098
+ export class AsLS extends NativeEstimator {
2099
+ methodId = "preprocessing.baselines.asls";
2100
+ paramTypes = {
2101
+ lam: "double",
2102
+ p: "double",
2103
+ max_iter: "int",
2104
+ tol: "double",
2105
+ };
2106
+ constructor(params = {}) {
2107
+ super();
2108
+ this.params = { ...params };
2109
+ }
2110
+ transform(X) {
2111
+ return this.transformMatrix(X);
2112
+ }
2113
+ }
2114
+ NativeMethod.register("preprocessing.baselines.asls", AsLS);
2115
+ /** Native `preprocessing.baselines.beads` (transformer). */
2116
+ export class BEADS extends NativeEstimator {
2117
+ methodId = "preprocessing.baselines.beads";
2118
+ paramTypes = {
2119
+ lam_0: "double",
2120
+ lam_1: "double",
2121
+ lam_2: "double",
2122
+ max_iter: "int",
2123
+ tol: "double",
2124
+ };
2125
+ constructor(params = {}) {
2126
+ super();
2127
+ this.params = { ...params };
2128
+ }
2129
+ transform(X) {
2130
+ return this.transformMatrix(X);
2131
+ }
2132
+ }
2133
+ NativeMethod.register("preprocessing.baselines.beads", BEADS);
2134
+ /** Native `preprocessing.baselines.detrend` (transformer). */
2135
+ export class Detrend extends NativeEstimator {
2136
+ methodId = "preprocessing.baselines.detrend";
2137
+ paramTypes = {
2138
+ polyorder: "int",
2139
+ };
2140
+ constructor(params = {}) {
2141
+ super();
2142
+ this.params = { ...params };
2143
+ }
2144
+ transform(X) {
2145
+ return this.transformMatrix(X);
2146
+ }
2147
+ }
2148
+ NativeMethod.register("preprocessing.baselines.detrend", Detrend);
2149
+ /** Native `preprocessing.baselines.iasls` (transformer). */
2150
+ export class IAsLS extends NativeEstimator {
2151
+ methodId = "preprocessing.baselines.iasls";
2152
+ paramTypes = {
2153
+ lam: "double",
2154
+ p: "double",
2155
+ lam_1: "double",
2156
+ polyorder: "int",
2157
+ diff_order: "int",
2158
+ max_iter: "int",
2159
+ tol: "double",
2160
+ };
2161
+ constructor(params = {}) {
2162
+ super();
2163
+ this.params = { ...params };
2164
+ }
2165
+ transform(X) {
2166
+ return this.transformMatrix(X);
2167
+ }
2168
+ }
2169
+ NativeMethod.register("preprocessing.baselines.iasls", IAsLS);
2170
+ /** Native `preprocessing.baselines.imodpoly` (transformer). */
2171
+ export class IModPoly extends NativeEstimator {
2172
+ methodId = "preprocessing.baselines.imodpoly";
2173
+ paramTypes = {
2174
+ polyorder: "int",
2175
+ max_iter: "int",
2176
+ tol: "double",
2177
+ };
2178
+ constructor(params = {}) {
2179
+ super();
2180
+ this.params = { ...params };
2181
+ }
2182
+ transform(X) {
2183
+ return this.transformMatrix(X);
2184
+ }
2185
+ }
2186
+ NativeMethod.register("preprocessing.baselines.imodpoly", IModPoly);
2187
+ /** Native `preprocessing.baselines.modpoly` (transformer). */
2188
+ export class ModPoly extends NativeEstimator {
2189
+ methodId = "preprocessing.baselines.modpoly";
2190
+ paramTypes = {
2191
+ polyorder: "int",
2192
+ max_iter: "int",
2193
+ tol: "double",
2194
+ };
2195
+ constructor(params = {}) {
2196
+ super();
2197
+ this.params = { ...params };
2198
+ }
2199
+ transform(X) {
2200
+ return this.transformMatrix(X);
2201
+ }
2202
+ }
2203
+ NativeMethod.register("preprocessing.baselines.modpoly", ModPoly);
2204
+ /** Native `preprocessing.baselines.rolling_ball` (transformer). */
2205
+ export class RollingBall extends NativeEstimator {
2206
+ methodId = "preprocessing.baselines.rolling_ball";
2207
+ paramTypes = {
2208
+ half_window: "int",
2209
+ smooth_half_window: "int",
2210
+ };
2211
+ constructor(params = {}) {
2212
+ super();
2213
+ this.params = { ...params };
2214
+ }
2215
+ transform(X) {
2216
+ return this.transformMatrix(X);
2217
+ }
2218
+ }
2219
+ NativeMethod.register("preprocessing.baselines.rolling_ball", RollingBall);
2220
+ /** Native `preprocessing.baselines.saps` (transformer). Required fit inputs: target_domain. */
2221
+ export class ScoreAugmentedProjectionStandardization extends NativeEstimator {
2222
+ methodId = "preprocessing.baselines.saps";
2223
+ paramTypes = {
2224
+ n_components: "int",
2225
+ score_weight: "double",
2226
+ fit_intercept: "bool",
2227
+ ridge: "double",
2228
+ };
2229
+ constructor(params = {}) {
2230
+ super();
2231
+ this.params = { ...params };
2232
+ }
2233
+ transform(X) {
2234
+ return this.transformMatrix(X);
2235
+ }
2236
+ }
2237
+ NativeMethod.register("preprocessing.baselines.saps", ScoreAugmentedProjectionStandardization);
2238
+ /** Native `preprocessing.baselines.snip` (transformer). */
2239
+ export class SNIP extends NativeEstimator {
2240
+ methodId = "preprocessing.baselines.snip";
2241
+ paramTypes = {
2242
+ max_half_window: "int",
2243
+ };
2244
+ constructor(params = {}) {
2245
+ super();
2246
+ this.params = { ...params };
2247
+ }
2248
+ transform(X) {
2249
+ return this.transformMatrix(X);
2250
+ }
2251
+ }
2252
+ NativeMethod.register("preprocessing.baselines.snip", SNIP);
2253
+ /** Native `preprocessing.derivatives.derivate` (transformer). */
2254
+ export class Derivate extends NativeEstimator {
2255
+ methodId = "preprocessing.derivatives.derivate";
2256
+ paramTypes = {
2257
+ order: "int",
2258
+ delta: "double",
2259
+ };
2260
+ constructor(params = {}) {
2261
+ super();
2262
+ this.params = { ...params };
2263
+ }
2264
+ transform(X) {
2265
+ return this.transformMatrix(X);
2266
+ }
2267
+ }
2268
+ NativeMethod.register("preprocessing.derivatives.derivate", Derivate);
2269
+ /** Native `preprocessing.derivatives.first_derivative` (transformer). */
2270
+ export class FirstDerivative extends NativeEstimator {
2271
+ methodId = "preprocessing.derivatives.first_derivative";
2272
+ paramTypes = {
2273
+ delta: "double",
2274
+ edge_order: "int",
2275
+ };
2276
+ constructor(params = {}) {
2277
+ super();
2278
+ this.params = { ...params };
2279
+ }
2280
+ transform(X) {
2281
+ return this.transformMatrix(X);
2282
+ }
2283
+ }
2284
+ NativeMethod.register("preprocessing.derivatives.first_derivative", FirstDerivative);
2285
+ /** Native `preprocessing.derivatives.norris_williams` (transformer). */
2286
+ export class NorrisWilliams extends NativeEstimator {
2287
+ methodId = "preprocessing.derivatives.norris_williams";
2288
+ paramTypes = {
2289
+ segment: "int",
2290
+ gap: "int",
2291
+ derivative_order: "int",
2292
+ delta: "double",
2293
+ };
2294
+ constructor(params = {}) {
2295
+ super();
2296
+ this.params = { ...params };
2297
+ }
2298
+ transform(X) {
2299
+ return this.transformMatrix(X);
2300
+ }
2301
+ }
2302
+ NativeMethod.register("preprocessing.derivatives.norris_williams", NorrisWilliams);
2303
+ /** Native `preprocessing.derivatives.savitzky_golay` (transformer). */
2304
+ export class SavitzkyGolay extends NativeEstimator {
2305
+ methodId = "preprocessing.derivatives.savitzky_golay";
2306
+ paramTypes = {
2307
+ window_length: "int",
2308
+ polyorder: "int",
2309
+ deriv: "int",
2310
+ delta: "double",
2311
+ mode: "enum",
2312
+ cval: "double",
2313
+ };
2314
+ constructor(params = {}) {
2315
+ super();
2316
+ this.params = { ...params };
2317
+ }
2318
+ transform(X) {
2319
+ return this.transformMatrix(X);
2320
+ }
2321
+ }
2322
+ NativeMethod.register("preprocessing.derivatives.savitzky_golay", SavitzkyGolay);
2323
+ /** Native `preprocessing.derivatives.second_derivative` (transformer). */
2324
+ export class SecondDerivative extends NativeEstimator {
2325
+ methodId = "preprocessing.derivatives.second_derivative";
2326
+ paramTypes = {
2327
+ delta: "double",
2328
+ edge_order: "int",
2329
+ };
2330
+ constructor(params = {}) {
2331
+ super();
2332
+ this.params = { ...params };
2333
+ }
2334
+ transform(X) {
2335
+ return this.transformMatrix(X);
2336
+ }
2337
+ }
2338
+ NativeMethod.register("preprocessing.derivatives.second_derivative", SecondDerivative);
2339
+ /** Native `preprocessing.feature_selection.flexible_pca` (transformer). */
2340
+ export class FlexiblePCA extends NativeEstimator {
2341
+ methodId = "preprocessing.feature_selection.flexible_pca";
2342
+ paramTypes = {
2343
+ n_components: "double",
2344
+ };
2345
+ constructor(params = {}) {
2346
+ super();
2347
+ this.params = { ...params };
2348
+ }
2349
+ transform(X) {
2350
+ return this.transformMatrix(X);
2351
+ }
2352
+ }
2353
+ NativeMethod.register("preprocessing.feature_selection.flexible_pca", FlexiblePCA);
2354
+ /** Native `preprocessing.feature_selection.flexible_svd` (transformer). */
2355
+ export class FlexibleSVD extends NativeEstimator {
2356
+ methodId = "preprocessing.feature_selection.flexible_svd";
2357
+ paramTypes = {
2358
+ n_components: "double",
2359
+ };
2360
+ constructor(params = {}) {
2361
+ super();
2362
+ this.params = { ...params };
2363
+ }
2364
+ transform(X) {
2365
+ return this.transformMatrix(X);
2366
+ }
2367
+ }
2368
+ NativeMethod.register("preprocessing.feature_selection.flexible_svd", FlexibleSVD);
2369
+ /** Native `preprocessing.orthogonalization.epo` (transformer). */
2370
+ export class EPO extends NativeEstimator {
2371
+ methodId = "preprocessing.orthogonalization.epo";
2372
+ paramTypes = {
2373
+ scale: "bool",
2374
+ };
2375
+ constructor(params = {}) {
2376
+ super();
2377
+ this.params = { ...params };
2378
+ }
2379
+ transform(X) {
2380
+ return this.transformMatrix(X);
2381
+ }
2382
+ }
2383
+ NativeMethod.register("preprocessing.orthogonalization.epo", EPO);
2384
+ /** Native `preprocessing.orthogonalization.osc` (transformer). */
2385
+ export class OSC extends NativeEstimator {
2386
+ methodId = "preprocessing.orthogonalization.osc";
2387
+ paramTypes = {
2388
+ n_components: "int",
2389
+ scale: "bool",
2390
+ };
2391
+ constructor(params = {}) {
2392
+ super();
2393
+ this.params = { ...params };
2394
+ }
2395
+ transform(X) {
2396
+ return this.transformMatrix(X);
2397
+ }
2398
+ }
2399
+ NativeMethod.register("preprocessing.orthogonalization.osc", OSC);
2400
+ /** Native `preprocessing.resampling.crop` (transformer). */
2401
+ export class CropTransformer extends NativeEstimator {
2402
+ methodId = "preprocessing.resampling.crop";
2403
+ paramTypes = {
2404
+ start: "int",
2405
+ end: "int",
2406
+ };
2407
+ constructor(params = {}) {
2408
+ super();
2409
+ this.params = { ...params };
2410
+ }
2411
+ transform(X) {
2412
+ return this.transformMatrix(X);
2413
+ }
2414
+ }
2415
+ NativeMethod.register("preprocessing.resampling.crop", CropTransformer);
2416
+ /** Native `preprocessing.resampling.kbins_discretizer` (transformer). */
2417
+ export class IntegerKBinsDiscretizer extends NativeEstimator {
2418
+ methodId = "preprocessing.resampling.kbins_discretizer";
2419
+ paramTypes = {
2420
+ n_bins: "int",
2421
+ strategy: "enum",
2422
+ };
2423
+ constructor(params = {}) {
2424
+ super();
2425
+ this.params = { ...params };
2426
+ }
2427
+ transform(X) {
2428
+ return this.transformMatrix(X);
2429
+ }
2430
+ }
2431
+ NativeMethod.register("preprocessing.resampling.kbins_discretizer", IntegerKBinsDiscretizer);
2432
+ /** Native `preprocessing.resampling.range_discretizer` (transformer). */
2433
+ export class RangeDiscretizer extends NativeEstimator {
2434
+ methodId = "preprocessing.resampling.range_discretizer";
2435
+ paramTypes = {
2436
+ edges: "double_array",
2437
+ };
2438
+ constructor(params = {}) {
2439
+ super();
2440
+ this.params = { ...params };
2441
+ }
2442
+ transform(X) {
2443
+ return this.transformMatrix(X);
2444
+ }
2445
+ }
2446
+ NativeMethod.register("preprocessing.resampling.range_discretizer", RangeDiscretizer);
2447
+ /** Native `preprocessing.resampling.resample_transformer` (transformer). */
2448
+ export class ResampleTransformer extends NativeEstimator {
2449
+ methodId = "preprocessing.resampling.resample_transformer";
2450
+ paramTypes = {
2451
+ num_samples: "int",
2452
+ };
2453
+ constructor(params = {}) {
2454
+ super();
2455
+ this.params = { ...params };
2456
+ }
2457
+ transform(X) {
2458
+ return this.transformMatrix(X);
2459
+ }
2460
+ }
2461
+ NativeMethod.register("preprocessing.resampling.resample_transformer", ResampleTransformer);
2462
+ /** Native `preprocessing.resampling.resampler` (transformer). Required fit inputs: axis. */
2463
+ export class Resampler extends NativeEstimator {
2464
+ methodId = "preprocessing.resampling.resampler";
2465
+ paramTypes = {
2466
+ target_wavelengths: "double_array",
2467
+ method: "enum",
2468
+ crop_min: "double",
2469
+ crop_max: "double",
2470
+ use_crop: "bool",
2471
+ fill_value: "double",
2472
+ bounds_error: "bool",
2473
+ extrapolate: "bool",
2474
+ tgt_min: "double",
2475
+ tgt_step: "double",
2476
+ tgt_n: "int",
2477
+ };
2478
+ constructor(params = {}) {
2479
+ super();
2480
+ this.params = { ...params };
2481
+ }
2482
+ transform(X) {
2483
+ return this.transformMatrix(X);
2484
+ }
2485
+ }
2486
+ NativeMethod.register("preprocessing.resampling.resampler", Resampler);
2487
+ /** Native `preprocessing.scaling.baseline` (transformer). */
2488
+ export class BaselineCenter extends NativeEstimator {
2489
+ methodId = "preprocessing.scaling.baseline";
2490
+ paramTypes = {};
2491
+ constructor(params = {}) {
2492
+ super();
2493
+ this.params = { ...params };
2494
+ }
2495
+ transform(X) {
2496
+ return this.transformMatrix(X);
2497
+ }
2498
+ }
2499
+ NativeMethod.register("preprocessing.scaling.baseline", BaselineCenter);
2500
+ /** Native `preprocessing.scaling.log_transform` (transformer). */
2501
+ export class LogTransform extends NativeEstimator {
2502
+ methodId = "preprocessing.scaling.log_transform";
2503
+ paramTypes = {
2504
+ base: "double",
2505
+ offset: "double",
2506
+ auto_offset: "bool",
2507
+ min_value: "double",
2508
+ };
2509
+ constructor(params = {}) {
2510
+ super();
2511
+ this.params = { ...params };
2512
+ }
2513
+ transform(X) {
2514
+ return this.transformMatrix(X);
2515
+ }
2516
+ }
2517
+ NativeMethod.register("preprocessing.scaling.log_transform", LogTransform);
2518
+ /** Native `preprocessing.scaling.normalize` (transformer). */
2519
+ export class Normalize extends NativeEstimator {
2520
+ methodId = "preprocessing.scaling.normalize";
2521
+ paramTypes = {
2522
+ feature_min: "double",
2523
+ feature_max: "double",
2524
+ };
2525
+ constructor(params = {}) {
2526
+ super();
2527
+ this.params = { ...params };
2528
+ }
2529
+ transform(X) {
2530
+ return this.transformMatrix(X);
2531
+ }
2532
+ }
2533
+ NativeMethod.register("preprocessing.scaling.normalize", Normalize);
2534
+ /** Native `preprocessing.scaling.simple_scale` (transformer). */
2535
+ export class SimpleScale extends NativeEstimator {
2536
+ methodId = "preprocessing.scaling.simple_scale";
2537
+ paramTypes = {};
2538
+ constructor(params = {}) {
2539
+ super();
2540
+ this.params = { ...params };
2541
+ }
2542
+ transform(X) {
2543
+ return this.transformMatrix(X);
2544
+ }
2545
+ }
2546
+ NativeMethod.register("preprocessing.scaling.simple_scale", SimpleScale);
2547
+ /** Native `preprocessing.scatter.area_normalization` (transformer). */
2548
+ export class AreaNormalization extends NativeEstimator {
2549
+ methodId = "preprocessing.scatter.area_normalization";
2550
+ paramTypes = {
2551
+ method: "enum",
2552
+ };
2553
+ constructor(params = {}) {
2554
+ super();
2555
+ this.params = { ...params };
2556
+ }
2557
+ transform(X) {
2558
+ return this.transformMatrix(X);
2559
+ }
2560
+ }
2561
+ NativeMethod.register("preprocessing.scatter.area_normalization", AreaNormalization);
2562
+ /** Native `preprocessing.scatter.emsc` (transformer). */
2563
+ export class EMSC extends NativeEstimator {
2564
+ methodId = "preprocessing.scatter.emsc";
2565
+ paramTypes = {
2566
+ degree: "int",
2567
+ };
2568
+ constructor(params = {}) {
2569
+ super();
2570
+ this.params = { ...params };
2571
+ }
2572
+ transform(X) {
2573
+ return this.transformMatrix(X);
2574
+ }
2575
+ }
2576
+ NativeMethod.register("preprocessing.scatter.emsc", EMSC);
2577
+ /** Native `preprocessing.scatter.local_centering` (transformer). Required fit inputs: target_domain. */
2578
+ export class LocalCentering extends NativeEstimator {
2579
+ methodId = "preprocessing.scatter.local_centering";
2580
+ paramTypes = {};
2581
+ constructor(params = {}) {
2582
+ super();
2583
+ this.params = { ...params };
2584
+ }
2585
+ transform(X) {
2586
+ return this.transformMatrix(X);
2587
+ }
2588
+ }
2589
+ NativeMethod.register("preprocessing.scatter.local_centering", LocalCentering);
2590
+ /** Native `preprocessing.scatter.local_snv` (transformer). */
2591
+ export class LSNV extends NativeEstimator {
2592
+ methodId = "preprocessing.scatter.local_snv";
2593
+ paramTypes = {
2594
+ window: "int",
2595
+ pad_mode: "enum",
2596
+ constant_value: "double",
2597
+ };
2598
+ constructor(params = {}) {
2599
+ super();
2600
+ this.params = { ...params };
2601
+ }
2602
+ transform(X) {
2603
+ return this.transformMatrix(X);
2604
+ }
2605
+ }
2606
+ NativeMethod.register("preprocessing.scatter.local_snv", LSNV);
2607
+ /** Native `preprocessing.scatter.localized_msc` (transformer). */
2608
+ export class LocalizedMSC extends NativeEstimator {
2609
+ methodId = "preprocessing.scatter.localized_msc";
2610
+ paramTypes = {
2611
+ window_size: "int",
2612
+ reference: "double_array",
2613
+ eps: "double",
2614
+ };
2615
+ constructor(params = {}) {
2616
+ super();
2617
+ this.params = { ...params };
2618
+ }
2619
+ transform(X) {
2620
+ return this.transformMatrix(X);
2621
+ }
2622
+ }
2623
+ NativeMethod.register("preprocessing.scatter.localized_msc", LocalizedMSC);
2624
+ /** Native `preprocessing.scatter.msc` (transformer). */
2625
+ export class MSC extends NativeEstimator {
2626
+ methodId = "preprocessing.scatter.msc";
2627
+ paramTypes = {};
2628
+ constructor(params = {}) {
2629
+ super();
2630
+ this.params = { ...params };
2631
+ }
2632
+ transform(X) {
2633
+ return this.transformMatrix(X);
2634
+ }
2635
+ }
2636
+ NativeMethod.register("preprocessing.scatter.msc", MSC);
2637
+ /** Native `preprocessing.scatter.piecewise_msc` (transformer). */
2638
+ export class PiecewiseMSC extends NativeEstimator {
2639
+ methodId = "preprocessing.scatter.piecewise_msc";
2640
+ paramTypes = {
2641
+ window_size: "int",
2642
+ reference: "double_array",
2643
+ eps: "double",
2644
+ };
2645
+ constructor(params = {}) {
2646
+ super();
2647
+ this.params = { ...params };
2648
+ }
2649
+ transform(X) {
2650
+ return this.transformMatrix(X);
2651
+ }
2652
+ }
2653
+ NativeMethod.register("preprocessing.scatter.piecewise_msc", PiecewiseMSC);
2654
+ /** Native `preprocessing.scatter.piecewise_snv` (transformer). */
2655
+ export class PiecewiseSNV extends NativeEstimator {
2656
+ methodId = "preprocessing.scatter.piecewise_snv";
2657
+ paramTypes = {
2658
+ window_size: "int",
2659
+ ddof: "int",
2660
+ eps: "double",
2661
+ };
2662
+ constructor(params = {}) {
2663
+ super();
2664
+ this.params = { ...params };
2665
+ }
2666
+ transform(X) {
2667
+ return this.transformMatrix(X);
2668
+ }
2669
+ }
2670
+ NativeMethod.register("preprocessing.scatter.piecewise_snv", PiecewiseSNV);
2671
+ /** Native `preprocessing.scatter.robust_snv` (transformer). */
2672
+ export class RNV extends NativeEstimator {
2673
+ methodId = "preprocessing.scatter.robust_snv";
2674
+ paramTypes = {
2675
+ with_center: "bool",
2676
+ with_scale: "bool",
2677
+ k: "double",
2678
+ };
2679
+ constructor(params = {}) {
2680
+ super();
2681
+ this.params = { ...params };
2682
+ }
2683
+ transform(X) {
2684
+ return this.transformMatrix(X);
2685
+ }
2686
+ }
2687
+ NativeMethod.register("preprocessing.scatter.robust_snv", RNV);
2688
+ /** Native `preprocessing.scatter.snv` (transformer). */
2689
+ export class SNV extends NativeEstimator {
2690
+ methodId = "preprocessing.scatter.snv";
2691
+ paramTypes = {
2692
+ with_mean: "bool",
2693
+ with_std: "bool",
2694
+ ddof: "int",
2695
+ };
2696
+ constructor(params = {}) {
2697
+ super();
2698
+ this.params = { ...params };
2699
+ }
2700
+ transform(X) {
2701
+ return this.transformMatrix(X);
2702
+ }
2703
+ }
2704
+ NativeMethod.register("preprocessing.scatter.snv", SNV);
2705
+ /** Native `preprocessing.scatter.vsn` (transformer). */
2706
+ export class VariableSortingNormalization extends NativeEstimator {
2707
+ methodId = "preprocessing.scatter.vsn";
2708
+ paramTypes = {
2709
+ eps: "double",
2710
+ };
2711
+ constructor(params = {}) {
2712
+ super();
2713
+ this.params = { ...params };
2714
+ }
2715
+ transform(X) {
2716
+ return this.transformMatrix(X);
2717
+ }
2718
+ }
2719
+ NativeMethod.register("preprocessing.scatter.vsn", VariableSortingNormalization);
2720
+ /** Native `preprocessing.scatter.weighted_snv` (transformer). */
2721
+ export class WeightedSNV extends NativeEstimator {
2722
+ methodId = "preprocessing.scatter.weighted_snv";
2723
+ paramTypes = {
2724
+ weights: "double_array",
2725
+ ddof: "int",
2726
+ eps: "double",
2727
+ };
2728
+ constructor(params = {}) {
2729
+ super();
2730
+ this.params = { ...params };
2731
+ }
2732
+ transform(X) {
2733
+ return this.transformMatrix(X);
2734
+ }
2735
+ }
2736
+ NativeMethod.register("preprocessing.scatter.weighted_snv", WeightedSNV);
2737
+ /** Native `preprocessing.signal_conversion.fraction_to_percent` (transformer). */
2738
+ export class FractionToPercent extends NativeEstimator {
2739
+ methodId = "preprocessing.signal_conversion.fraction_to_percent";
2740
+ paramTypes = {};
2741
+ constructor(params = {}) {
2742
+ super();
2743
+ this.params = { ...params };
2744
+ }
2745
+ transform(X) {
2746
+ return this.transformMatrix(X);
2747
+ }
2748
+ }
2749
+ NativeMethod.register("preprocessing.signal_conversion.fraction_to_percent", FractionToPercent);
2750
+ /** Native `preprocessing.signal_conversion.from_absorbance` (transformer). */
2751
+ export class FromAbsorbance extends NativeEstimator {
2752
+ methodId = "preprocessing.signal_conversion.from_absorbance";
2753
+ paramTypes = {
2754
+ is_percent: "bool",
2755
+ };
2756
+ constructor(params = {}) {
2757
+ super();
2758
+ this.params = { ...params };
2759
+ }
2760
+ transform(X) {
2761
+ return this.transformMatrix(X);
2762
+ }
2763
+ }
2764
+ NativeMethod.register("preprocessing.signal_conversion.from_absorbance", FromAbsorbance);
2765
+ /** Native `preprocessing.signal_conversion.kubelka_munk` (transformer). */
2766
+ export class KubelkaMunk extends NativeEstimator {
2767
+ methodId = "preprocessing.signal_conversion.kubelka_munk";
2768
+ paramTypes = {
2769
+ is_percent: "bool",
2770
+ epsilon: "double",
2771
+ };
2772
+ constructor(params = {}) {
2773
+ super();
2774
+ this.params = { ...params };
2775
+ }
2776
+ transform(X) {
2777
+ return this.transformMatrix(X);
2778
+ }
2779
+ }
2780
+ NativeMethod.register("preprocessing.signal_conversion.kubelka_munk", KubelkaMunk);
2781
+ /** Native `preprocessing.signal_conversion.percent_to_fraction` (transformer). */
2782
+ export class PercentToFraction extends NativeEstimator {
2783
+ methodId = "preprocessing.signal_conversion.percent_to_fraction";
2784
+ paramTypes = {};
2785
+ constructor(params = {}) {
2786
+ super();
2787
+ this.params = { ...params };
2788
+ }
2789
+ transform(X) {
2790
+ return this.transformMatrix(X);
2791
+ }
2792
+ }
2793
+ NativeMethod.register("preprocessing.signal_conversion.percent_to_fraction", PercentToFraction);
2794
+ /** Native `preprocessing.signal_conversion.to_absorbance` (transformer). */
2795
+ export class ToAbsorbance extends NativeEstimator {
2796
+ methodId = "preprocessing.signal_conversion.to_absorbance";
2797
+ paramTypes = {
2798
+ is_percent: "bool",
2799
+ epsilon: "double",
2800
+ clip_negative: "bool",
2801
+ };
2802
+ constructor(params = {}) {
2803
+ super();
2804
+ this.params = { ...params };
2805
+ }
2806
+ transform(X) {
2807
+ return this.transformMatrix(X);
2808
+ }
2809
+ }
2810
+ NativeMethod.register("preprocessing.signal_conversion.to_absorbance", ToAbsorbance);
2811
+ /** Native `preprocessing.smoothing.gaussian` (transformer). */
2812
+ export class Gaussian extends NativeEstimator {
2813
+ methodId = "preprocessing.smoothing.gaussian";
2814
+ paramTypes = {
2815
+ sigma: "double",
2816
+ order: "int",
2817
+ mode: "enum",
2818
+ cval: "double",
2819
+ truncate: "double",
2820
+ };
2821
+ constructor(params = {}) {
2822
+ super();
2823
+ this.params = { ...params };
2824
+ }
2825
+ transform(X) {
2826
+ return this.transformMatrix(X);
2827
+ }
2828
+ }
2829
+ NativeMethod.register("preprocessing.smoothing.gaussian", Gaussian);
2830
+ /** Native `preprocessing.specialized.fck_static` (transformer). */
2831
+ export class FCKStaticTransformer extends NativeEstimator {
2832
+ methodId = "preprocessing.specialized.fck_static";
2833
+ paramTypes = {
2834
+ kernel_size: "int",
2835
+ alphas: "double_array",
2836
+ sigmas: "double_array",
2837
+ };
2838
+ constructor(params = {}) {
2839
+ super();
2840
+ this.params = { ...params };
2841
+ }
2842
+ transform(X) {
2843
+ return this.transformMatrix(X);
2844
+ }
2845
+ }
2846
+ NativeMethod.register("preprocessing.specialized.fck_static", FCKStaticTransformer);
2847
+ /** Native `preprocessing.transfer.direct_standardization` (transformer). Required fit inputs: target_domain. */
2848
+ export class DirectStandardization extends NativeEstimator {
2849
+ methodId = "preprocessing.transfer.direct_standardization";
2850
+ paramTypes = {
2851
+ fit_intercept: "bool",
2852
+ ridge: "double",
2853
+ };
2854
+ constructor(params = {}) {
2855
+ super();
2856
+ this.params = { ...params };
2857
+ }
2858
+ transform(X) {
2859
+ return this.transformMatrix(X);
2860
+ }
2861
+ }
2862
+ NativeMethod.register("preprocessing.transfer.direct_standardization", DirectStandardization);
2863
+ /** Native `preprocessing.transfer.piecewise_direct_standardization` (transformer). Required fit inputs: target_domain. */
2864
+ export class PiecewiseDirectStandardization extends NativeEstimator {
2865
+ methodId = "preprocessing.transfer.piecewise_direct_standardization";
2866
+ paramTypes = {
2867
+ window_size: "int",
2868
+ fit_intercept: "bool",
2869
+ ridge: "double",
2870
+ };
2871
+ constructor(params = {}) {
2872
+ super();
2873
+ this.params = { ...params };
2874
+ }
2875
+ transform(X) {
2876
+ return this.transformMatrix(X);
2877
+ }
2878
+ }
2879
+ NativeMethod.register("preprocessing.transfer.piecewise_direct_standardization", PiecewiseDirectStandardization);
2880
+ /** Native `preprocessing.transfer.robust_direct_standardization` (transformer). Required fit inputs: target_domain. */
2881
+ export class RobustDirectStandardization extends NativeEstimator {
2882
+ methodId = "preprocessing.transfer.robust_direct_standardization";
2883
+ paramTypes = {
2884
+ fit_intercept: "bool",
2885
+ ridge: "double",
2886
+ trim_quantile: "double",
2887
+ max_iter: "int",
2888
+ };
2889
+ constructor(params = {}) {
2890
+ super();
2891
+ this.params = { ...params };
2892
+ }
2893
+ transform(X) {
2894
+ return this.transformMatrix(X);
2895
+ }
2896
+ }
2897
+ NativeMethod.register("preprocessing.transfer.robust_direct_standardization", RobustDirectStandardization);
2898
+ /** Native `preprocessing.transfer.slope_bias` (transformer). */
2899
+ export class SlopeBiasCorrection extends NativeEstimator {
2900
+ methodId = "preprocessing.transfer.slope_bias";
2901
+ paramTypes = {};
2902
+ constructor(params = {}) {
2903
+ super();
2904
+ this.params = { ...params };
2905
+ }
2906
+ transform(X) {
2907
+ return this.transformMatrix(X);
2908
+ }
2909
+ }
2910
+ NativeMethod.register("preprocessing.transfer.slope_bias", SlopeBiasCorrection);
2911
+ /** Native `preprocessing.wavelets.haar` (transformer). */
2912
+ export class Haar extends NativeEstimator {
2913
+ methodId = "preprocessing.wavelets.haar";
2914
+ paramTypes = {};
2915
+ constructor(params = {}) {
2916
+ super();
2917
+ this.params = { ...params };
2918
+ }
2919
+ transform(X) {
2920
+ return this.transformMatrix(X);
2921
+ }
2922
+ }
2923
+ NativeMethod.register("preprocessing.wavelets.haar", Haar);
2924
+ /** Native `preprocessing.wavelets.wavelet` (transformer). */
2925
+ export class Wavelet extends NativeEstimator {
2926
+ methodId = "preprocessing.wavelets.wavelet";
2927
+ paramTypes = {
2928
+ family: "enum",
2929
+ mode: "enum",
2930
+ };
2931
+ constructor(params = {}) {
2932
+ super();
2933
+ this.params = { ...params };
2934
+ }
2935
+ transform(X) {
2936
+ return this.transformMatrix(X);
2937
+ }
2938
+ }
2939
+ NativeMethod.register("preprocessing.wavelets.wavelet", Wavelet);
2940
+ /** Native `preprocessing.wavelets.wavelet_denoise` (transformer). */
2941
+ export class WaveletDenoise extends NativeEstimator {
2942
+ methodId = "preprocessing.wavelets.wavelet_denoise";
2943
+ paramTypes = {
2944
+ family: "enum",
2945
+ mode: "enum",
2946
+ level: "int",
2947
+ threshold_mode: "enum",
2948
+ noise_estimator: "enum",
2949
+ };
2950
+ constructor(params = {}) {
2951
+ super();
2952
+ this.params = { ...params };
2953
+ }
2954
+ transform(X) {
2955
+ return this.transformMatrix(X);
2956
+ }
2957
+ }
2958
+ NativeMethod.register("preprocessing.wavelets.wavelet_denoise", WaveletDenoise);
2959
+ /** Native `preprocessing.wavelets.wavelet_features` (transformer). */
2960
+ export class WaveletFeatures extends NativeEstimator {
2961
+ methodId = "preprocessing.wavelets.wavelet_features";
2962
+ paramTypes = {
2963
+ family: "enum",
2964
+ mode: "enum",
2965
+ max_level: "int",
2966
+ entropy: "enum",
2967
+ };
2968
+ constructor(params = {}) {
2969
+ super();
2970
+ this.params = { ...params };
2971
+ }
2972
+ transform(X) {
2973
+ return this.transformMatrix(X);
2974
+ }
2975
+ }
2976
+ NativeMethod.register("preprocessing.wavelets.wavelet_features", WaveletFeatures);
2977
+ /** Native `preprocessing.wavelets.wavelet_pca` (transformer). */
2978
+ export class WaveletPCA extends NativeEstimator {
2979
+ methodId = "preprocessing.wavelets.wavelet_pca";
2980
+ paramTypes = {
2981
+ family: "enum",
2982
+ mode: "enum",
2983
+ max_level: "int",
2984
+ n_components: "double",
2985
+ };
2986
+ constructor(params = {}) {
2987
+ super();
2988
+ this.params = { ...params };
2989
+ }
2990
+ transform(X) {
2991
+ return this.transformMatrix(X);
2992
+ }
2993
+ }
2994
+ NativeMethod.register("preprocessing.wavelets.wavelet_pca", WaveletPCA);
2995
+ /** Native `preprocessing.wavelets.wavelet_svd` (transformer). */
2996
+ export class WaveletSVD extends NativeEstimator {
2997
+ methodId = "preprocessing.wavelets.wavelet_svd";
2998
+ paramTypes = {
2999
+ family: "enum",
3000
+ mode: "enum",
3001
+ max_level: "int",
3002
+ n_components: "double",
3003
+ };
3004
+ constructor(params = {}) {
3005
+ super();
3006
+ this.params = { ...params };
3007
+ }
3008
+ transform(X) {
3009
+ return this.transformMatrix(X);
3010
+ }
3011
+ }
3012
+ NativeMethod.register("preprocessing.wavelets.wavelet_svd", WaveletSVD);
3013
+ /** Native `selection.bipls` (selector). */
3014
+ export class BiPLS extends NativeEstimator {
3015
+ methodId = "selection.bipls";
3016
+ paramTypes = {
3017
+ n_components: "int",
3018
+ interval_width: "int",
3019
+ min_intervals: "int",
3020
+ cv: "int",
3021
+ };
3022
+ constructor(params = {}) {
3023
+ super();
3024
+ this.params = { ...params };
3025
+ }
3026
+ transform(X) {
3027
+ return this.transformMatrix(X);
3028
+ }
3029
+ selectedIndices() {
3030
+ return this.selectedIndexArray();
3031
+ }
3032
+ }
3033
+ NativeMethod.register("selection.bipls", BiPLS);
3034
+ /** Native `selection.bve` (selector). */
3035
+ export class BVE extends NativeEstimator {
3036
+ methodId = "selection.bve";
3037
+ paramTypes = {
3038
+ n_components: "int",
3039
+ n_steps: "int",
3040
+ min_features: "int",
3041
+ cv: "int",
3042
+ };
3043
+ constructor(params = {}) {
3044
+ super();
3045
+ this.params = { ...params };
3046
+ }
3047
+ transform(X) {
3048
+ return this.transformMatrix(X);
3049
+ }
3050
+ selectedIndices() {
3051
+ return this.selectedIndexArray();
3052
+ }
3053
+ }
3054
+ NativeMethod.register("selection.bve", BVE);
3055
+ /** Native `selection.cars` (selector). */
3056
+ export class CARS extends NativeEstimator {
3057
+ methodId = "selection.cars";
3058
+ paramTypes = {
3059
+ n_components: "int",
3060
+ n_iterations: "int",
3061
+ min_features: "int",
3062
+ cv: "int",
3063
+ };
3064
+ constructor(params = {}) {
3065
+ super();
3066
+ this.params = { ...params };
3067
+ }
3068
+ transform(X) {
3069
+ return this.transformMatrix(X);
3070
+ }
3071
+ selectedIndices() {
3072
+ return this.selectedIndexArray();
3073
+ }
3074
+ }
3075
+ NativeMethod.register("selection.cars", CARS);
3076
+ /** Native `selection.emcuve` (selector). */
3077
+ export class EMCUVE extends NativeEstimator {
3078
+ methodId = "selection.emcuve";
3079
+ paramTypes = {
3080
+ n_components: "int",
3081
+ noise_features: "int",
3082
+ noise_seed: "int",
3083
+ n_ensembles: "int",
3084
+ vote_threshold: "double",
3085
+ cv: "int",
3086
+ };
3087
+ constructor(params = {}) {
3088
+ super();
3089
+ this.params = { ...params };
3090
+ }
3091
+ transform(X) {
3092
+ return this.transformMatrix(X);
3093
+ }
3094
+ selectedIndices() {
3095
+ return this.selectedIndexArray();
3096
+ }
3097
+ }
3098
+ NativeMethod.register("selection.emcuve", EMCUVE);
3099
+ /** Native `selection.ga` (selector). */
3100
+ export class GA extends NativeEstimator {
3101
+ methodId = "selection.ga";
3102
+ paramTypes = {
3103
+ n_components: "int",
3104
+ n_generations: "int",
3105
+ population_size: "int",
3106
+ min_features: "int",
3107
+ max_features: "int",
3108
+ mutation_rate: "double",
3109
+ cv: "int",
3110
+ seed: "int",
3111
+ };
3112
+ constructor(params = {}) {
3113
+ super();
3114
+ this.params = { ...params };
3115
+ }
3116
+ transform(X) {
3117
+ return this.transformMatrix(X);
3118
+ }
3119
+ selectedIndices() {
3120
+ return this.selectedIndexArray();
3121
+ }
3122
+ }
3123
+ NativeMethod.register("selection.ga", GA);
3124
+ /** Native `selection.interval` (transformer). */
3125
+ export class IntervalGenerator extends NativeEstimator {
3126
+ methodId = "selection.interval";
3127
+ paramTypes = {
3128
+ interval_size: "int",
3129
+ step: "int",
3130
+ };
3131
+ constructor(params = {}) {
3132
+ super();
3133
+ this.params = { ...params };
3134
+ }
3135
+ transform(X) {
3136
+ return this.transformMatrix(X);
3137
+ }
3138
+ }
3139
+ NativeMethod.register("selection.interval", IntervalGenerator);
3140
+ /** Native `selection.ipw` (selector). */
3141
+ export class IPW extends NativeEstimator {
3142
+ methodId = "selection.ipw";
3143
+ paramTypes = {
3144
+ top_k: "int",
3145
+ n_components: "int",
3146
+ n_iterations: "int",
3147
+ damping: "double",
3148
+ weight_floor: "double",
3149
+ cv: "int",
3150
+ };
3151
+ constructor(params = {}) {
3152
+ super();
3153
+ this.params = { ...params };
3154
+ }
3155
+ transform(X) {
3156
+ return this.transformMatrix(X);
3157
+ }
3158
+ selectedIndices() {
3159
+ return this.selectedIndexArray();
3160
+ }
3161
+ }
3162
+ NativeMethod.register("selection.ipw", IPW);
3163
+ /** Native `selection.irf` (selector). */
3164
+ export class IRF extends NativeEstimator {
3165
+ methodId = "selection.irf";
3166
+ paramTypes = {
3167
+ top_k: "int",
3168
+ n_components: "int",
3169
+ n_iterations: "int",
3170
+ window_size: "int",
3171
+ initial_intervals: "int",
3172
+ cv: "int",
3173
+ seed: "int",
3174
+ };
3175
+ constructor(params = {}) {
3176
+ super();
3177
+ this.params = { ...params };
3178
+ }
3179
+ transform(X) {
3180
+ return this.transformMatrix(X);
3181
+ }
3182
+ selectedIndices() {
3183
+ return this.selectedIndexArray();
3184
+ }
3185
+ }
3186
+ NativeMethod.register("selection.irf", IRF);
3187
+ /** Native `selection.iriv` (selector). */
3188
+ export class IRIV extends NativeEstimator {
3189
+ methodId = "selection.iriv";
3190
+ paramTypes = {
3191
+ n_components: "int",
3192
+ max_rounds: "int",
3193
+ cv: "int",
3194
+ seed: "int",
3195
+ };
3196
+ constructor(params = {}) {
3197
+ super();
3198
+ this.params = { ...params };
3199
+ }
3200
+ transform(X) {
3201
+ return this.transformMatrix(X);
3202
+ }
3203
+ selectedIndices() {
3204
+ return this.selectedIndexArray();
3205
+ }
3206
+ }
3207
+ NativeMethod.register("selection.iriv", IRIV);
3208
+ /** Native `selection.pso` (selector). */
3209
+ export class PSO extends NativeEstimator {
3210
+ methodId = "selection.pso";
3211
+ paramTypes = {
3212
+ n_components: "int",
3213
+ n_swarm: "int",
3214
+ n_iterations: "int",
3215
+ w: "double",
3216
+ c1: "double",
3217
+ c2: "double",
3218
+ v_max: "double",
3219
+ cv: "int",
3220
+ seed: "int",
3221
+ };
3222
+ constructor(params = {}) {
3223
+ super();
3224
+ this.params = { ...params };
3225
+ }
3226
+ transform(X) {
3227
+ return this.transformMatrix(X);
3228
+ }
3229
+ selectedIndices() {
3230
+ return this.selectedIndexArray();
3231
+ }
3232
+ }
3233
+ NativeMethod.register("selection.pso", PSO);
3234
+ /** Native `selection.random_frog` (selector). */
3235
+ export class RandomFrog extends NativeEstimator {
3236
+ methodId = "selection.random_frog";
3237
+ paramTypes = {
3238
+ top_k: "int",
3239
+ n_components: "int",
3240
+ n_iterations: "int",
3241
+ initial_size: "int",
3242
+ min_size: "int",
3243
+ max_size: "int",
3244
+ cv: "int",
3245
+ seed: "int",
3246
+ };
3247
+ constructor(params = {}) {
3248
+ super();
3249
+ this.params = { ...params };
3250
+ }
3251
+ transform(X) {
3252
+ return this.transformMatrix(X);
3253
+ }
3254
+ selectedIndices() {
3255
+ return this.selectedIndexArray();
3256
+ }
3257
+ }
3258
+ NativeMethod.register("selection.random_frog", RandomFrog);
3259
+ /** Native `selection.randomization` (selector). */
3260
+ export class Randomization extends NativeEstimator {
3261
+ methodId = "selection.randomization";
3262
+ paramTypes = {
3263
+ n_components: "int",
3264
+ n_permutations: "int",
3265
+ randomization_seed: "int",
3266
+ alpha: "double",
3267
+ };
3268
+ constructor(params = {}) {
3269
+ super();
3270
+ this.params = { ...params };
3271
+ }
3272
+ transform(X) {
3273
+ return this.transformMatrix(X);
3274
+ }
3275
+ selectedIndices() {
3276
+ return this.selectedIndexArray();
3277
+ }
3278
+ }
3279
+ NativeMethod.register("selection.randomization", Randomization);
3280
+ /** Native `selection.rep` (selector). */
3281
+ export class REP extends NativeEstimator {
3282
+ methodId = "selection.rep";
3283
+ paramTypes = {
3284
+ n_components: "int",
3285
+ n_steps: "int",
3286
+ min_features: "int",
3287
+ remove_count: "int",
3288
+ cv: "int",
3289
+ };
3290
+ constructor(params = {}) {
3291
+ super();
3292
+ this.params = { ...params };
3293
+ }
3294
+ transform(X) {
3295
+ return this.transformMatrix(X);
3296
+ }
3297
+ selectedIndices() {
3298
+ return this.selectedIndexArray();
3299
+ }
3300
+ }
3301
+ NativeMethod.register("selection.rep", REP);
3302
+ /** Native `selection.scars` (selector). */
3303
+ export class SCARS extends NativeEstimator {
3304
+ methodId = "selection.scars";
3305
+ paramTypes = {
3306
+ n_components: "int",
3307
+ n_iterations: "int",
3308
+ min_features: "int",
3309
+ sample_fraction: "double",
3310
+ cv: "int",
3311
+ seed: "int",
3312
+ };
3313
+ constructor(params = {}) {
3314
+ super();
3315
+ this.params = { ...params };
3316
+ }
3317
+ transform(X) {
3318
+ return this.transformMatrix(X);
3319
+ }
3320
+ selectedIndices() {
3321
+ return this.selectedIndexArray();
3322
+ }
3323
+ }
3324
+ NativeMethod.register("selection.scars", SCARS);
3325
+ /** Native `selection.shaving` (selector). */
3326
+ export class Shaving extends NativeEstimator {
3327
+ methodId = "selection.shaving";
3328
+ paramTypes = {
3329
+ n_components: "int",
3330
+ n_steps: "int",
3331
+ min_features: "int",
3332
+ shave_fraction: "double",
3333
+ cv: "int",
3334
+ };
3335
+ constructor(params = {}) {
3336
+ super();
3337
+ this.params = { ...params };
3338
+ }
3339
+ transform(X) {
3340
+ return this.transformMatrix(X);
3341
+ }
3342
+ selectedIndices() {
3343
+ return this.selectedIndexArray();
3344
+ }
3345
+ }
3346
+ NativeMethod.register("selection.shaving", Shaving);
3347
+ /** Native `selection.sipls` (selector). */
3348
+ export class SiPLS extends NativeEstimator {
3349
+ methodId = "selection.sipls";
3350
+ paramTypes = {
3351
+ n_components: "int",
3352
+ interval_width: "int",
3353
+ combination_size: "int",
3354
+ cv: "int",
3355
+ };
3356
+ constructor(params = {}) {
3357
+ super();
3358
+ this.params = { ...params };
3359
+ }
3360
+ transform(X) {
3361
+ return this.transformMatrix(X);
3362
+ }
3363
+ selectedIndices() {
3364
+ return this.selectedIndexArray();
3365
+ }
3366
+ }
3367
+ NativeMethod.register("selection.sipls", SiPLS);
3368
+ /** Native `selection.spa` (selector). */
3369
+ export class SPA extends NativeEstimator {
3370
+ methodId = "selection.spa";
3371
+ paramTypes = {
3372
+ top_k: "int",
3373
+ n_components: "int",
3374
+ };
3375
+ constructor(params = {}) {
3376
+ super();
3377
+ this.params = { ...params };
3378
+ }
3379
+ transform(X) {
3380
+ return this.transformMatrix(X);
3381
+ }
3382
+ selectedIndices() {
3383
+ return this.selectedIndexArray();
3384
+ }
3385
+ }
3386
+ NativeMethod.register("selection.spa", SPA);
3387
+ /** Native `selection.st` (selector). */
3388
+ export class ST extends NativeEstimator {
3389
+ methodId = "selection.st";
3390
+ paramTypes = {
3391
+ thresholds: "double_array",
3392
+ n_components: "int",
3393
+ min_selected: "int",
3394
+ cv: "int",
3395
+ };
3396
+ constructor(params = {}) {
3397
+ super();
3398
+ this.params = { ...params };
3399
+ }
3400
+ transform(X) {
3401
+ return this.transformMatrix(X);
3402
+ }
3403
+ selectedIndices() {
3404
+ return this.selectedIndexArray();
3405
+ }
3406
+ }
3407
+ NativeMethod.register("selection.st", ST);
3408
+ /** Native `selection.stability` (selector). */
3409
+ export class Stability extends NativeEstimator {
3410
+ methodId = "selection.stability";
3411
+ paramTypes = {
3412
+ top_k: "int",
3413
+ n_components: "int",
3414
+ cv: "int",
3415
+ };
3416
+ constructor(params = {}) {
3417
+ super();
3418
+ this.params = { ...params };
3419
+ }
3420
+ transform(X) {
3421
+ return this.transformMatrix(X);
3422
+ }
3423
+ selectedIndices() {
3424
+ return this.selectedIndexArray();
3425
+ }
3426
+ }
3427
+ NativeMethod.register("selection.stability", Stability);
3428
+ /** Native `selection.t2` (selector). */
3429
+ export class T2 extends NativeEstimator {
3430
+ methodId = "selection.t2";
3431
+ paramTypes = {
3432
+ alpha_thresholds: "double_array",
3433
+ n_components: "int",
3434
+ min_selected: "int",
3435
+ cv: "int",
3436
+ };
3437
+ constructor(params = {}) {
3438
+ super();
3439
+ this.params = { ...params };
3440
+ }
3441
+ transform(X) {
3442
+ return this.transformMatrix(X);
3443
+ }
3444
+ selectedIndices() {
3445
+ return this.selectedIndexArray();
3446
+ }
3447
+ }
3448
+ NativeMethod.register("selection.t2", T2);
3449
+ /** Native `selection.uve` (selector). */
3450
+ export class UVE extends NativeEstimator {
3451
+ methodId = "selection.uve";
3452
+ paramTypes = {
3453
+ n_components: "int",
3454
+ noise_features: "int",
3455
+ noise_seed: "int",
3456
+ min_features: "int",
3457
+ cv: "int",
3458
+ };
3459
+ constructor(params = {}) {
3460
+ super();
3461
+ this.params = { ...params };
3462
+ }
3463
+ transform(X) {
3464
+ return this.transformMatrix(X);
3465
+ }
3466
+ selectedIndices() {
3467
+ return this.selectedIndexArray();
3468
+ }
3469
+ }
3470
+ NativeMethod.register("selection.uve", UVE);
3471
+ /** Native `selection.variable_select` (selector). */
3472
+ export class VariableSelect extends NativeEstimator {
3473
+ methodId = "selection.variable_select";
3474
+ paramTypes = {
3475
+ top_k: "int",
3476
+ n_components: "int",
3477
+ rank_method: "enum",
3478
+ };
3479
+ constructor(params = {}) {
3480
+ super();
3481
+ this.params = { ...params };
3482
+ }
3483
+ transform(X) {
3484
+ return this.transformMatrix(X);
3485
+ }
3486
+ selectedIndices() {
3487
+ return this.selectedIndexArray();
3488
+ }
3489
+ }
3490
+ NativeMethod.register("selection.variable_select", VariableSelect);
3491
+ /** Native `selection.vip_spa` (selector). */
3492
+ export class VIPSPA extends NativeEstimator {
3493
+ methodId = "selection.vip_spa";
3494
+ paramTypes = {
3495
+ top_k: "int",
3496
+ n_components: "int",
3497
+ vip_threshold: "double",
3498
+ };
3499
+ constructor(params = {}) {
3500
+ super();
3501
+ this.params = { ...params };
3502
+ }
3503
+ transform(X) {
3504
+ return this.transformMatrix(X);
3505
+ }
3506
+ selectedIndices() {
3507
+ return this.selectedIndexArray();
3508
+ }
3509
+ }
3510
+ NativeMethod.register("selection.vip_spa", VIPSPA);
3511
+ /** Native `selection.vissa` (selector). */
3512
+ export class VISSA extends NativeEstimator {
3513
+ methodId = "selection.vissa";
3514
+ paramTypes = {
3515
+ n_components: "int",
3516
+ n_iterations: "int",
3517
+ n_submodels: "int",
3518
+ ratio_kept: "double",
3519
+ threshold: "double",
3520
+ floor_probability: "double",
3521
+ cv: "int",
3522
+ seed: "int",
3523
+ };
3524
+ constructor(params = {}) {
3525
+ super();
3526
+ this.params = { ...params };
3527
+ }
3528
+ transform(X) {
3529
+ return this.transformMatrix(X);
3530
+ }
3531
+ selectedIndices() {
3532
+ return this.selectedIndexArray();
3533
+ }
3534
+ }
3535
+ NativeMethod.register("selection.vissa", VISSA);
3536
+ /** Native `selection.wvc` (selector). */
3537
+ export class WVC extends NativeEstimator {
3538
+ methodId = "selection.wvc";
3539
+ paramTypes = {
3540
+ top_k: "int",
3541
+ n_components: "int",
3542
+ normalize: "bool",
3543
+ };
3544
+ constructor(params = {}) {
3545
+ super();
3546
+ this.params = { ...params };
3547
+ }
3548
+ transform(X) {
3549
+ return this.transformMatrix(X);
3550
+ }
3551
+ selectedIndices() {
3552
+ return this.selectedIndexArray();
3553
+ }
3554
+ }
3555
+ NativeMethod.register("selection.wvc", WVC);
3556
+ /** Native `selection.wvc_threshold` (selector). */
3557
+ export class WVCThreshold extends NativeEstimator {
3558
+ methodId = "selection.wvc_threshold";
3559
+ paramTypes = {
3560
+ n_components: "int",
3561
+ normalize: "bool",
3562
+ score_threshold: "double",
3563
+ threshold_factor: "double",
3564
+ min_selected: "int",
3565
+ };
3566
+ constructor(params = {}) {
3567
+ super();
3568
+ this.params = { ...params };
3569
+ }
3570
+ transform(X) {
3571
+ return this.transformMatrix(X);
3572
+ }
3573
+ selectedIndices() {
3574
+ return this.selectedIndexArray();
3575
+ }
3576
+ }
3577
+ NativeMethod.register("selection.wvc_threshold", WVCThreshold);
3578
+ /** Native `splitters.binned_strat_group_kfold` (splitter). Required inputs: y, groups. */
3579
+ export class BinnedStratifiedGroupKFold extends NativeProcedure {
3580
+ methodId = "splitters.binned_strat_group_kfold";
3581
+ paramTypes = {
3582
+ n_splits: "int",
3583
+ n_bins: "int",
3584
+ strategy: "enum",
3585
+ shuffle: "bool",
3586
+ seed: "int",
3587
+ };
3588
+ constructor(params = {}) {
3589
+ super();
3590
+ this.params = { ...params };
3591
+ }
3592
+ split(X, y, groups) {
3593
+ return this.splitFolds(X, y, groups);
3594
+ }
3595
+ }
3596
+ NativeMethod.register("splitters.binned_strat_group_kfold", BinnedStratifiedGroupKFold);
3597
+ /** Native `splitters.kbins_stratified` (splitter). Required inputs: y. */
3598
+ export class KBinsStratified extends NativeProcedure {
3599
+ methodId = "splitters.kbins_stratified";
3600
+ paramTypes = {
3601
+ test_size: "double",
3602
+ seed: "int",
3603
+ n_bins: "int",
3604
+ strategy: "enum",
3605
+ };
3606
+ constructor(params = {}) {
3607
+ super();
3608
+ this.params = { ...params };
3609
+ }
3610
+ split(X, y, groups) {
3611
+ return this.splitFolds(X, y, groups);
3612
+ }
3613
+ }
3614
+ NativeMethod.register("splitters.kbins_stratified", KBinsStratified);
3615
+ /** Native `splitters.kennard_stone` (splitter). */
3616
+ export class KennardStone extends NativeProcedure {
3617
+ methodId = "splitters.kennard_stone";
3618
+ paramTypes = {
3619
+ test_size: "double",
3620
+ };
3621
+ constructor(params = {}) {
3622
+ super();
3623
+ this.params = { ...params };
3624
+ }
3625
+ split(X, y, groups) {
3626
+ return this.splitFolds(X, y, groups);
3627
+ }
3628
+ }
3629
+ NativeMethod.register("splitters.kennard_stone", KennardStone);
3630
+ /** Native `splitters.kmeans` (splitter). */
3631
+ export class KMeans extends NativeProcedure {
3632
+ methodId = "splitters.kmeans";
3633
+ paramTypes = {
3634
+ test_size: "double",
3635
+ seed: "int",
3636
+ max_iter: "int",
3637
+ };
3638
+ constructor(params = {}) {
3639
+ super();
3640
+ this.params = { ...params };
3641
+ }
3642
+ split(X, y, groups) {
3643
+ return this.splitFolds(X, y, groups);
3644
+ }
3645
+ }
3646
+ NativeMethod.register("splitters.kmeans", KMeans);
3647
+ /** Native `splitters.split_splitter` (splitter). */
3648
+ export class SPlitSplitter extends NativeProcedure {
3649
+ methodId = "splitters.split_splitter";
3650
+ paramTypes = {
3651
+ test_size: "double",
3652
+ seed: "int",
3653
+ };
3654
+ constructor(params = {}) {
3655
+ super();
3656
+ this.params = { ...params };
3657
+ }
3658
+ split(X, y, groups) {
3659
+ return this.splitFolds(X, y, groups);
3660
+ }
3661
+ }
3662
+ NativeMethod.register("splitters.split_splitter", SPlitSplitter);
3663
+ /** Native `splitters.spxy` (splitter). Required inputs: y. */
3664
+ export class SPXY extends NativeProcedure {
3665
+ methodId = "splitters.spxy";
3666
+ paramTypes = {
3667
+ test_size: "double",
3668
+ };
3669
+ constructor(params = {}) {
3670
+ super();
3671
+ this.params = { ...params };
3672
+ }
3673
+ split(X, y, groups) {
3674
+ return this.splitFolds(X, y, groups);
3675
+ }
3676
+ }
3677
+ NativeMethod.register("splitters.spxy", SPXY);
3678
+ /** Native `splitters.spxy_fold` (splitter). Required inputs: y. */
3679
+ export class SPXYFold extends NativeProcedure {
3680
+ methodId = "splitters.spxy_fold";
3681
+ paramTypes = {
3682
+ n_splits: "int",
3683
+ y_metric: "enum",
3684
+ };
3685
+ constructor(params = {}) {
3686
+ super();
3687
+ this.params = { ...params };
3688
+ }
3689
+ split(X, y, groups) {
3690
+ return this.splitFolds(X, y, groups);
3691
+ }
3692
+ }
3693
+ NativeMethod.register("splitters.spxy_fold", SPXYFold);
3694
+ /** Native `splitters.spxy_g_fold` (splitter). Required inputs: y, groups. */
3695
+ export class SPXYGroupFold extends NativeProcedure {
3696
+ methodId = "splitters.spxy_g_fold";
3697
+ paramTypes = {
3698
+ n_splits: "int",
3699
+ y_metric: "enum",
3700
+ aggregation: "enum",
3701
+ };
3702
+ constructor(params = {}) {
3703
+ super();
3704
+ this.params = { ...params };
3705
+ }
3706
+ split(X, y, groups) {
3707
+ return this.splitFolds(X, y, groups);
3708
+ }
3709
+ }
3710
+ NativeMethod.register("splitters.spxy_g_fold", SPXYGroupFold);
3711
+ /** Native `splitters.systematic_circular` (splitter). Required inputs: y. */
3712
+ export class SystematicCircular extends NativeProcedure {
3713
+ methodId = "splitters.systematic_circular";
3714
+ paramTypes = {
3715
+ test_size: "double",
3716
+ seed: "int",
3717
+ };
3718
+ constructor(params = {}) {
3719
+ super();
3720
+ this.params = { ...params };
3721
+ }
3722
+ split(X, y, groups) {
3723
+ return this.splitFolds(X, y, groups);
3724
+ }
3725
+ }
3726
+ NativeMethod.register("splitters.systematic_circular", SystematicCircular);
3727
+ /** Native `utilities.hotelling_t2` (generic). */
3728
+ export class HotellingT2 extends NativeProcedure {
3729
+ methodId = "utilities.hotelling_t2";
3730
+ paramTypes = {
3731
+ n_components: "int",
3732
+ alpha: "double",
3733
+ };
3734
+ constructor(params = {}) {
3735
+ super();
3736
+ this.params = { ...params };
3737
+ }
3738
+ run(X, y, inputs = {}) {
3739
+ return this.runOutputs(X, y, inputs);
3740
+ }
3741
+ }
3742
+ NativeMethod.register("utilities.hotelling_t2", HotellingT2);
3743
+ /** Native `utilities.moments` (generic). Required inputs: y. */
3744
+ export class Moments extends NativeProcedure {
3745
+ methodId = "utilities.moments";
3746
+ paramTypes = {};
3747
+ constructor(params = {}) {
3748
+ super();
3749
+ this.params = { ...params };
3750
+ }
3751
+ run(X, y, inputs = {}) {
3752
+ return this.runOutputs(X, y, inputs);
3753
+ }
3754
+ }
3755
+ NativeMethod.register("utilities.moments", Moments);
3756
+ /** Native `utilities.q_residuals` (generic). */
3757
+ export class QResiduals extends NativeProcedure {
3758
+ methodId = "utilities.q_residuals";
3759
+ paramTypes = {
3760
+ n_components: "int",
3761
+ alpha: "double",
3762
+ };
3763
+ constructor(params = {}) {
3764
+ super();
3765
+ this.params = { ...params };
3766
+ }
3767
+ run(X, y, inputs = {}) {
3768
+ return this.runOutputs(X, y, inputs);
3769
+ }
3770
+ }
3771
+ NativeMethod.register("utilities.q_residuals", QResiduals);
3772
+ /** Native `utilities.signal_type_detector` (generic). */
3773
+ export class SignalTypeDetector extends NativeProcedure {
3774
+ methodId = "utilities.signal_type_detector";
3775
+ paramTypes = {
3776
+ confidence_threshold: "double",
3777
+ };
3778
+ constructor(params = {}) {
3779
+ super();
3780
+ this.params = { ...params };
3781
+ }
3782
+ run(X, y, inputs = {}) {
3783
+ return this.runOutputs(X, y, inputs);
3784
+ }
3785
+ }
3786
+ NativeMethod.register("utilities.signal_type_detector", SignalTypeDetector);
3787
+ /** Native `utilities.sweep` (generic). Required inputs: y. */
3788
+ export class Sweep extends NativeProcedure {
3789
+ methodId = "utilities.sweep";
3790
+ paramTypes = {
3791
+ cv: "int",
3792
+ ridge_lambdas: "double_array",
3793
+ pls_components: "int_array",
3794
+ heads: "enum",
3795
+ center_x: "bool",
3796
+ scale_x: "bool",
3797
+ center_y: "bool",
3798
+ scale_y: "bool",
3799
+ };
3800
+ constructor(params = {}) {
3801
+ super();
3802
+ this.params = { ...params };
3803
+ }
3804
+ run(X, y, inputs = {}) {
3805
+ return this.runOutputs(X, y, inputs);
3806
+ }
3807
+ }
3808
+ NativeMethod.register("utilities.sweep", Sweep);
3809
+ /** Native `utilities.transfer_metrics` (generic). Required inputs: target_domain. */
3810
+ export class TransferMetrics extends NativeProcedure {
3811
+ methodId = "utilities.transfer_metrics";
3812
+ paramTypes = {
3813
+ n_components: "int",
3814
+ k_neighbors: "int",
3815
+ seed: "int",
3816
+ };
3817
+ constructor(params = {}) {
3818
+ super();
3819
+ this.params = { ...params };
3820
+ }
3821
+ run(X, y, inputs = {}) {
3822
+ return this.runOutputs(X, y, inputs);
3823
+ }
3824
+ }
3825
+ NativeMethod.register("utilities.transfer_metrics", TransferMetrics);