@elaraai/east-py-datascience 0.0.2-beta.8 → 0.0.2-beta.80

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.
Files changed (123) hide show
  1. package/README.md +58 -1
  2. package/dist/src/alns/alns.d.ts +528 -0
  3. package/dist/src/alns/alns.d.ts.map +1 -0
  4. package/dist/src/alns/alns.js +238 -0
  5. package/dist/src/alns/alns.js.map +1 -0
  6. package/dist/src/google_or/google_or.d.ts +2422 -0
  7. package/dist/src/google_or/google_or.d.ts.map +1 -0
  8. package/dist/src/google_or/google_or.js +542 -0
  9. package/dist/src/google_or/google_or.js.map +1 -0
  10. package/dist/{gp → src/gp}/gp.d.ts +185 -136
  11. package/dist/src/gp/gp.d.ts.map +1 -0
  12. package/dist/{gp → src/gp}/gp.js +64 -12
  13. package/dist/src/gp/gp.js.map +1 -0
  14. package/dist/src/index.d.ts +34 -0
  15. package/dist/src/index.d.ts.map +1 -0
  16. package/dist/src/index.js +57 -0
  17. package/dist/src/index.js.map +1 -0
  18. package/dist/src/lightgbm/lightgbm.d.ts +575 -0
  19. package/dist/src/lightgbm/lightgbm.d.ts.map +1 -0
  20. package/dist/{lightgbm → src/lightgbm}/lightgbm.js +104 -18
  21. package/dist/src/lightgbm/lightgbm.js.map +1 -0
  22. package/dist/src/lightning/lightning.d.ts +1594 -0
  23. package/dist/src/lightning/lightning.d.ts.map +1 -0
  24. package/dist/src/lightning/lightning.js +468 -0
  25. package/dist/src/lightning/lightning.js.map +1 -0
  26. package/dist/{mads → src/mads}/mads.d.ts +109 -112
  27. package/dist/src/mads/mads.d.ts.map +1 -0
  28. package/dist/{mads → src/mads}/mads.js +6 -8
  29. package/dist/src/mads/mads.js.map +1 -0
  30. package/dist/src/mapie/mapie.d.ts +3680 -0
  31. package/dist/src/mapie/mapie.d.ts.map +1 -0
  32. package/dist/src/mapie/mapie.js +616 -0
  33. package/dist/src/mapie/mapie.js.map +1 -0
  34. package/dist/{ngboost → src/ngboost}/ngboost.d.ts +192 -142
  35. package/dist/src/ngboost/ngboost.d.ts.map +1 -0
  36. package/dist/{ngboost → src/ngboost}/ngboost.js +67 -14
  37. package/dist/src/ngboost/ngboost.js.map +1 -0
  38. package/dist/src/optimization/optimization.d.ts +420 -0
  39. package/dist/src/optimization/optimization.d.ts.map +1 -0
  40. package/dist/src/optimization/optimization.js +257 -0
  41. package/dist/src/optimization/optimization.js.map +1 -0
  42. package/dist/{optuna → src/optuna}/optuna.d.ts +374 -314
  43. package/dist/src/optuna/optuna.d.ts.map +1 -0
  44. package/dist/{optuna → src/optuna}/optuna.js +2 -0
  45. package/dist/src/optuna/optuna.js.map +1 -0
  46. package/dist/src/pymc/pymc.d.ts +2932 -0
  47. package/dist/src/pymc/pymc.d.ts.map +1 -0
  48. package/dist/src/pymc/pymc.js +688 -0
  49. package/dist/src/pymc/pymc.js.map +1 -0
  50. package/dist/src/scipy/scipy.d.ts +2205 -0
  51. package/dist/src/scipy/scipy.d.ts.map +1 -0
  52. package/dist/src/scipy/scipy.js +884 -0
  53. package/dist/src/scipy/scipy.js.map +1 -0
  54. package/dist/src/shap/shap.d.ts +2988 -0
  55. package/dist/src/shap/shap.d.ts.map +1 -0
  56. package/dist/src/shap/shap.js +500 -0
  57. package/dist/src/shap/shap.js.map +1 -0
  58. package/dist/{simanneal → src/simanneal}/simanneal.d.ts +257 -160
  59. package/dist/src/simanneal/simanneal.d.ts.map +1 -0
  60. package/dist/{simanneal → src/simanneal}/simanneal.js +105 -8
  61. package/dist/src/simanneal/simanneal.js.map +1 -0
  62. package/dist/src/simulation/simulation.d.ts +431 -0
  63. package/dist/src/simulation/simulation.d.ts.map +1 -0
  64. package/dist/src/simulation/simulation.js +306 -0
  65. package/dist/src/simulation/simulation.js.map +1 -0
  66. package/dist/src/sklearn/sklearn.d.ts +6362 -0
  67. package/dist/src/sklearn/sklearn.d.ts.map +1 -0
  68. package/dist/src/sklearn/sklearn.js +1508 -0
  69. package/dist/src/sklearn/sklearn.js.map +1 -0
  70. package/dist/src/torch/torch.d.ts +1205 -0
  71. package/dist/src/torch/torch.d.ts.map +1 -0
  72. package/dist/{torch → src/torch}/torch.js +109 -18
  73. package/dist/src/torch/torch.js.map +1 -0
  74. package/dist/src/types.d.ts +43 -0
  75. package/dist/src/types.d.ts.map +1 -0
  76. package/dist/src/types.js +44 -0
  77. package/dist/src/types.js.map +1 -0
  78. package/dist/src/xgboost/xgboost.d.ts +1424 -0
  79. package/dist/src/xgboost/xgboost.d.ts.map +1 -0
  80. package/dist/src/xgboost/xgboost.js +432 -0
  81. package/dist/src/xgboost/xgboost.js.map +1 -0
  82. package/package.json +12 -12
  83. package/dist/gp/gp.d.ts.map +0 -1
  84. package/dist/gp/gp.js.map +0 -1
  85. package/dist/index.d.ts +0 -27
  86. package/dist/index.d.ts.map +0 -1
  87. package/dist/index.js +0 -41
  88. package/dist/index.js.map +0 -1
  89. package/dist/lightgbm/lightgbm.d.ts +0 -494
  90. package/dist/lightgbm/lightgbm.d.ts.map +0 -1
  91. package/dist/lightgbm/lightgbm.js.map +0 -1
  92. package/dist/mads/mads.d.ts.map +0 -1
  93. package/dist/mads/mads.js.map +0 -1
  94. package/dist/ngboost/ngboost.d.ts.map +0 -1
  95. package/dist/ngboost/ngboost.js.map +0 -1
  96. package/dist/optuna/optuna.d.ts.map +0 -1
  97. package/dist/optuna/optuna.js.map +0 -1
  98. package/dist/scipy/scipy.d.ts +0 -1260
  99. package/dist/scipy/scipy.d.ts.map +0 -1
  100. package/dist/scipy/scipy.js +0 -413
  101. package/dist/scipy/scipy.js.map +0 -1
  102. package/dist/shap/shap.d.ts +0 -657
  103. package/dist/shap/shap.d.ts.map +0 -1
  104. package/dist/shap/shap.js +0 -241
  105. package/dist/shap/shap.js.map +0 -1
  106. package/dist/simanneal/simanneal.d.ts.map +0 -1
  107. package/dist/simanneal/simanneal.js.map +0 -1
  108. package/dist/sklearn/sklearn.d.ts +0 -2691
  109. package/dist/sklearn/sklearn.d.ts.map +0 -1
  110. package/dist/sklearn/sklearn.js +0 -524
  111. package/dist/sklearn/sklearn.js.map +0 -1
  112. package/dist/torch/torch.d.ts +0 -1081
  113. package/dist/torch/torch.d.ts.map +0 -1
  114. package/dist/torch/torch.js.map +0 -1
  115. package/dist/tsconfig.tsbuildinfo +0 -1
  116. package/dist/types.d.ts +0 -80
  117. package/dist/types.d.ts.map +0 -1
  118. package/dist/types.js +0 -81
  119. package/dist/types.js.map +0 -1
  120. package/dist/xgboost/xgboost.d.ts +0 -504
  121. package/dist/xgboost/xgboost.d.ts.map +0 -1
  122. package/dist/xgboost/xgboost.js +0 -177
  123. package/dist/xgboost/xgboost.js.map +0 -1
@@ -15,6 +15,7 @@
15
15
  * @packageDocumentation
16
16
  */
17
17
  import { StructType, VariantType, OptionType, ArrayType, IntegerType, BooleanType, FloatType, NullType } from "@elaraai/east";
18
+ import { VectorType } from "../types.js";
18
19
  export { VectorType, ScalarObjectiveType } from "../types.js";
19
20
  /**
20
21
  * MADS optimization bounds.
@@ -23,9 +24,9 @@ export { VectorType, ScalarObjectiveType } from "../types.js";
23
24
  */
24
25
  export declare const MADSBoundsType: StructType<{
25
26
  /** Lower bounds for each dimension */
26
- lower: ArrayType<FloatType>;
27
+ readonly lower: VectorType<FloatType>;
27
28
  /** Upper bounds for each dimension */
28
- upper: ArrayType<FloatType>;
29
+ readonly upper: VectorType<FloatType>;
29
30
  }>;
30
31
  /**
31
32
  * MADS constraint type.
@@ -38,9 +39,9 @@ export declare const MADSBoundsType: StructType<{
38
39
  */
39
40
  export declare const MADSConstraintType: VariantType<{
40
41
  /** Extreme barrier constraint - infeasible points rejected */
41
- eb: import("@elaraai/east").FunctionType<[ArrayType<FloatType>], FloatType>;
42
+ readonly eb: import("@elaraai/east").FunctionType<[VectorType<FloatType>], FloatType>;
42
43
  /** Progressive barrier constraint - temporary violations allowed */
43
- pb: import("@elaraai/east").FunctionType<[ArrayType<FloatType>], FloatType>;
44
+ readonly pb: import("@elaraai/east").FunctionType<[VectorType<FloatType>], FloatType>;
44
45
  }>;
45
46
  /**
46
47
  * MADS direction type for poll step.
@@ -49,13 +50,13 @@ export declare const MADSConstraintType: VariantType<{
49
50
  */
50
51
  export declare const MADSDirectionType: VariantType<{
51
52
  /** ORTHO 2N: 2n orthogonal directions (default) */
52
- ortho_2n: NullType;
53
+ readonly ortho_2n: NullType;
53
54
  /** ORTHO N+1: n+1 directions forming a simplex */
54
- ortho_n_plus_1: NullType;
55
+ readonly ortho_n_plus_1: NullType;
55
56
  /** LT 2N: Lower triangular with 2n directions */
56
- lt_2n: NullType;
57
+ readonly lt_2n: NullType;
57
58
  /** Single direction */
58
- single: NullType;
59
+ readonly single: NullType;
59
60
  }>;
60
61
  /**
61
62
  * MADS optimization configuration.
@@ -64,26 +65,26 @@ export declare const MADSDirectionType: VariantType<{
64
65
  */
65
66
  export declare const MADSConfigType: StructType<{
66
67
  /** Maximum number of blackbox evaluations */
67
- max_bb_eval: OptionType<IntegerType>;
68
+ readonly max_bb_eval: OptionType<IntegerType>;
68
69
  /** Display verbosity level (0 = silent) */
69
- display_degree: OptionType<IntegerType>;
70
+ readonly display_degree: OptionType<IntegerType>;
70
71
  /** Direction type for poll step */
71
- direction_type: OptionType<VariantType<{
72
+ readonly direction_type: OptionType<VariantType<{
72
73
  /** ORTHO 2N: 2n orthogonal directions (default) */
73
- ortho_2n: NullType;
74
+ readonly ortho_2n: NullType;
74
75
  /** ORTHO N+1: n+1 directions forming a simplex */
75
- ortho_n_plus_1: NullType;
76
+ readonly ortho_n_plus_1: NullType;
76
77
  /** LT 2N: Lower triangular with 2n directions */
77
- lt_2n: NullType;
78
+ readonly lt_2n: NullType;
78
79
  /** Single direction */
79
- single: NullType;
80
+ readonly single: NullType;
80
81
  }>>;
81
82
  /** Initial mesh size */
82
- initial_mesh_size: OptionType<FloatType>;
83
+ readonly initial_mesh_size: OptionType<FloatType>;
83
84
  /** Minimum mesh size (stopping criterion) */
84
- min_mesh_size: OptionType<FloatType>;
85
+ readonly min_mesh_size: OptionType<FloatType>;
85
86
  /** Random seed for reproducibility */
86
- seed: OptionType<IntegerType>;
87
+ readonly seed: OptionType<IntegerType>;
87
88
  }>;
88
89
  /**
89
90
  * MADS single-objective optimization result.
@@ -92,13 +93,13 @@ export declare const MADSConfigType: StructType<{
92
93
  */
93
94
  export declare const MADSResultType: StructType<{
94
95
  /** Best solution vector found */
95
- x_best: ArrayType<FloatType>;
96
+ readonly x_best: VectorType<FloatType>;
96
97
  /** Best objective value */
97
- f_best: FloatType;
98
+ readonly f_best: FloatType;
98
99
  /** Number of blackbox evaluations performed */
99
- bb_eval: IntegerType;
100
+ readonly bb_eval: IntegerType;
100
101
  /** Whether optimization succeeded */
101
- success: BooleanType;
102
+ readonly success: BooleanType;
102
103
  }>;
103
104
  /**
104
105
  * Single-objective MADS optimization with optional constraints.
@@ -119,7 +120,7 @@ export declare const MADSResultType: StructType<{
119
120
  * import { MADS } from "@elaraai/east-py-datascience";
120
121
  *
121
122
  * // Minimize sum of squares
122
- * const objective = East.function([MADS.Types.VectorType], FloatType, ($, x) => {
123
+ * const objective = East.function([MADS.Types.VectorType(FloatType)], FloatType, ($, x) => {
123
124
  * return x.reduce((acc, xi) => acc.add(xi.multiply(xi)), East.value(0.0));
124
125
  * });
125
126
  *
@@ -142,115 +143,113 @@ export declare const MADSResultType: StructType<{
142
143
  * console.log(`Best: ${result.f_best}`);
143
144
  * ```
144
145
  */
145
- export declare const mads_optimize: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").FunctionType<[ArrayType<FloatType>], FloatType>, ArrayType<FloatType>, StructType<{
146
+ export declare const mads_optimize: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").FunctionType<[VectorType<FloatType>], FloatType>, VectorType<FloatType>, StructType<{
146
147
  /** Lower bounds for each dimension */
147
- lower: ArrayType<FloatType>;
148
+ readonly lower: VectorType<FloatType>;
148
149
  /** Upper bounds for each dimension */
149
- upper: ArrayType<FloatType>;
150
+ readonly upper: VectorType<FloatType>;
150
151
  }>, OptionType<ArrayType<VariantType<{
151
152
  /** Extreme barrier constraint - infeasible points rejected */
152
- eb: import("@elaraai/east").FunctionType<[ArrayType<FloatType>], FloatType>;
153
+ readonly eb: import("@elaraai/east").FunctionType<[VectorType<FloatType>], FloatType>;
153
154
  /** Progressive barrier constraint - temporary violations allowed */
154
- pb: import("@elaraai/east").FunctionType<[ArrayType<FloatType>], FloatType>;
155
+ readonly pb: import("@elaraai/east").FunctionType<[VectorType<FloatType>], FloatType>;
155
156
  }>>>, StructType<{
156
157
  /** Maximum number of blackbox evaluations */
157
- max_bb_eval: OptionType<IntegerType>;
158
+ readonly max_bb_eval: OptionType<IntegerType>;
158
159
  /** Display verbosity level (0 = silent) */
159
- display_degree: OptionType<IntegerType>;
160
+ readonly display_degree: OptionType<IntegerType>;
160
161
  /** Direction type for poll step */
161
- direction_type: OptionType<VariantType<{
162
+ readonly direction_type: OptionType<VariantType<{
162
163
  /** ORTHO 2N: 2n orthogonal directions (default) */
163
- ortho_2n: NullType;
164
+ readonly ortho_2n: NullType;
164
165
  /** ORTHO N+1: n+1 directions forming a simplex */
165
- ortho_n_plus_1: NullType;
166
+ readonly ortho_n_plus_1: NullType;
166
167
  /** LT 2N: Lower triangular with 2n directions */
167
- lt_2n: NullType;
168
+ readonly lt_2n: NullType;
168
169
  /** Single direction */
169
- single: NullType;
170
+ readonly single: NullType;
170
171
  }>>;
171
172
  /** Initial mesh size */
172
- initial_mesh_size: OptionType<FloatType>;
173
+ readonly initial_mesh_size: OptionType<FloatType>;
173
174
  /** Minimum mesh size (stopping criterion) */
174
- min_mesh_size: OptionType<FloatType>;
175
+ readonly min_mesh_size: OptionType<FloatType>;
175
176
  /** Random seed for reproducibility */
176
- seed: OptionType<IntegerType>;
177
+ readonly seed: OptionType<IntegerType>;
177
178
  }>], StructType<{
178
179
  /** Best solution vector found */
179
- x_best: ArrayType<FloatType>;
180
+ readonly x_best: VectorType<FloatType>;
180
181
  /** Best objective value */
181
- f_best: FloatType;
182
+ readonly f_best: FloatType;
182
183
  /** Number of blackbox evaluations performed */
183
- bb_eval: IntegerType;
184
+ readonly bb_eval: IntegerType;
184
185
  /** Whether optimization succeeded */
185
- success: BooleanType;
186
+ readonly success: BooleanType;
186
187
  }>>;
187
188
  /**
188
189
  * Type definitions for MADS optimization.
189
190
  */
190
191
  export declare const MADSTypes: {
191
- /** Vector type (array of floats) */
192
- readonly VectorType: ArrayType<FloatType>;
193
192
  /** Scalar objective function type */
194
- readonly ScalarObjectiveType: import("@elaraai/east").FunctionType<[ArrayType<FloatType>], FloatType>;
193
+ readonly ScalarObjectiveType: import("@elaraai/east").FunctionType<[VectorType<FloatType>], FloatType>;
195
194
  /** Bounds type with lower and upper vectors */
196
195
  readonly BoundsType: StructType<{
197
196
  /** Lower bounds for each dimension */
198
- lower: ArrayType<FloatType>;
197
+ readonly lower: VectorType<FloatType>;
199
198
  /** Upper bounds for each dimension */
200
- upper: ArrayType<FloatType>;
199
+ readonly upper: VectorType<FloatType>;
201
200
  }>;
202
201
  /** Constraint type (eb or pb variant) */
203
202
  readonly ConstraintType: VariantType<{
204
203
  /** Extreme barrier constraint - infeasible points rejected */
205
- eb: import("@elaraai/east").FunctionType<[ArrayType<FloatType>], FloatType>;
204
+ readonly eb: import("@elaraai/east").FunctionType<[VectorType<FloatType>], FloatType>;
206
205
  /** Progressive barrier constraint - temporary violations allowed */
207
- pb: import("@elaraai/east").FunctionType<[ArrayType<FloatType>], FloatType>;
206
+ readonly pb: import("@elaraai/east").FunctionType<[VectorType<FloatType>], FloatType>;
208
207
  }>;
209
208
  /** Direction type for poll step */
210
209
  readonly DirectionType: VariantType<{
211
210
  /** ORTHO 2N: 2n orthogonal directions (default) */
212
- ortho_2n: NullType;
211
+ readonly ortho_2n: NullType;
213
212
  /** ORTHO N+1: n+1 directions forming a simplex */
214
- ortho_n_plus_1: NullType;
213
+ readonly ortho_n_plus_1: NullType;
215
214
  /** LT 2N: Lower triangular with 2n directions */
216
- lt_2n: NullType;
215
+ readonly lt_2n: NullType;
217
216
  /** Single direction */
218
- single: NullType;
217
+ readonly single: NullType;
219
218
  }>;
220
219
  /** Configuration type */
221
220
  readonly ConfigType: StructType<{
222
221
  /** Maximum number of blackbox evaluations */
223
- max_bb_eval: OptionType<IntegerType>;
222
+ readonly max_bb_eval: OptionType<IntegerType>;
224
223
  /** Display verbosity level (0 = silent) */
225
- display_degree: OptionType<IntegerType>;
224
+ readonly display_degree: OptionType<IntegerType>;
226
225
  /** Direction type for poll step */
227
- direction_type: OptionType<VariantType<{
226
+ readonly direction_type: OptionType<VariantType<{
228
227
  /** ORTHO 2N: 2n orthogonal directions (default) */
229
- ortho_2n: NullType;
228
+ readonly ortho_2n: NullType;
230
229
  /** ORTHO N+1: n+1 directions forming a simplex */
231
- ortho_n_plus_1: NullType;
230
+ readonly ortho_n_plus_1: NullType;
232
231
  /** LT 2N: Lower triangular with 2n directions */
233
- lt_2n: NullType;
232
+ readonly lt_2n: NullType;
234
233
  /** Single direction */
235
- single: NullType;
234
+ readonly single: NullType;
236
235
  }>>;
237
236
  /** Initial mesh size */
238
- initial_mesh_size: OptionType<FloatType>;
237
+ readonly initial_mesh_size: OptionType<FloatType>;
239
238
  /** Minimum mesh size (stopping criterion) */
240
- min_mesh_size: OptionType<FloatType>;
239
+ readonly min_mesh_size: OptionType<FloatType>;
241
240
  /** Random seed for reproducibility */
242
- seed: OptionType<IntegerType>;
241
+ readonly seed: OptionType<IntegerType>;
243
242
  }>;
244
243
  /** Single-objective result type */
245
244
  readonly ResultType: StructType<{
246
245
  /** Best solution vector found */
247
- x_best: ArrayType<FloatType>;
246
+ readonly x_best: VectorType<FloatType>;
248
247
  /** Best objective value */
249
- f_best: FloatType;
248
+ readonly f_best: FloatType;
250
249
  /** Number of blackbox evaluations performed */
251
- bb_eval: IntegerType;
250
+ readonly bb_eval: IntegerType;
252
251
  /** Whether optimization succeeded */
253
- success: BooleanType;
252
+ readonly success: BooleanType;
254
253
  }>;
255
254
  };
256
255
  /**
@@ -270,7 +269,7 @@ export declare const MADSTypes: {
270
269
  * import { East, FloatType, variant } from "@elaraai/east";
271
270
  * import { MADS } from "@elaraai/east-py-datascience";
272
271
  *
273
- * const objective = East.function([MADS.Types.VectorType], FloatType, ($, x) => {
272
+ * const objective = East.function([MADS.Types.VectorType(FloatType)], FloatType, ($, x) => {
274
273
  * return x.reduce((acc, xi) => acc.add(xi.multiply(xi)), East.value(0.0));
275
274
  * });
276
275
  *
@@ -298,115 +297,113 @@ export declare const MADS: {
298
297
  *
299
298
  * Minimizes an objective function subject to bound and nonlinear constraints.
300
299
  */
301
- readonly optimize: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").FunctionType<[ArrayType<FloatType>], FloatType>, ArrayType<FloatType>, StructType<{
300
+ readonly optimize: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").FunctionType<[VectorType<FloatType>], FloatType>, VectorType<FloatType>, StructType<{
302
301
  /** Lower bounds for each dimension */
303
- lower: ArrayType<FloatType>;
302
+ readonly lower: VectorType<FloatType>;
304
303
  /** Upper bounds for each dimension */
305
- upper: ArrayType<FloatType>;
304
+ readonly upper: VectorType<FloatType>;
306
305
  }>, OptionType<ArrayType<VariantType<{
307
306
  /** Extreme barrier constraint - infeasible points rejected */
308
- eb: import("@elaraai/east").FunctionType<[ArrayType<FloatType>], FloatType>;
307
+ readonly eb: import("@elaraai/east").FunctionType<[VectorType<FloatType>], FloatType>;
309
308
  /** Progressive barrier constraint - temporary violations allowed */
310
- pb: import("@elaraai/east").FunctionType<[ArrayType<FloatType>], FloatType>;
309
+ readonly pb: import("@elaraai/east").FunctionType<[VectorType<FloatType>], FloatType>;
311
310
  }>>>, StructType<{
312
311
  /** Maximum number of blackbox evaluations */
313
- max_bb_eval: OptionType<IntegerType>;
312
+ readonly max_bb_eval: OptionType<IntegerType>;
314
313
  /** Display verbosity level (0 = silent) */
315
- display_degree: OptionType<IntegerType>;
314
+ readonly display_degree: OptionType<IntegerType>;
316
315
  /** Direction type for poll step */
317
- direction_type: OptionType<VariantType<{
316
+ readonly direction_type: OptionType<VariantType<{
318
317
  /** ORTHO 2N: 2n orthogonal directions (default) */
319
- ortho_2n: NullType;
318
+ readonly ortho_2n: NullType;
320
319
  /** ORTHO N+1: n+1 directions forming a simplex */
321
- ortho_n_plus_1: NullType;
320
+ readonly ortho_n_plus_1: NullType;
322
321
  /** LT 2N: Lower triangular with 2n directions */
323
- lt_2n: NullType;
322
+ readonly lt_2n: NullType;
324
323
  /** Single direction */
325
- single: NullType;
324
+ readonly single: NullType;
326
325
  }>>;
327
326
  /** Initial mesh size */
328
- initial_mesh_size: OptionType<FloatType>;
327
+ readonly initial_mesh_size: OptionType<FloatType>;
329
328
  /** Minimum mesh size (stopping criterion) */
330
- min_mesh_size: OptionType<FloatType>;
329
+ readonly min_mesh_size: OptionType<FloatType>;
331
330
  /** Random seed for reproducibility */
332
- seed: OptionType<IntegerType>;
331
+ readonly seed: OptionType<IntegerType>;
333
332
  }>], StructType<{
334
333
  /** Best solution vector found */
335
- x_best: ArrayType<FloatType>;
334
+ readonly x_best: VectorType<FloatType>;
336
335
  /** Best objective value */
337
- f_best: FloatType;
336
+ readonly f_best: FloatType;
338
337
  /** Number of blackbox evaluations performed */
339
- bb_eval: IntegerType;
338
+ readonly bb_eval: IntegerType;
340
339
  /** Whether optimization succeeded */
341
- success: BooleanType;
340
+ readonly success: BooleanType;
342
341
  }>>;
343
342
  /**
344
343
  * Type definitions for MADS functions.
345
344
  */
346
345
  readonly Types: {
347
- /** Vector type (array of floats) */
348
- readonly VectorType: ArrayType<FloatType>;
349
346
  /** Scalar objective function type */
350
- readonly ScalarObjectiveType: import("@elaraai/east").FunctionType<[ArrayType<FloatType>], FloatType>;
347
+ readonly ScalarObjectiveType: import("@elaraai/east").FunctionType<[VectorType<FloatType>], FloatType>;
351
348
  /** Bounds type with lower and upper vectors */
352
349
  readonly BoundsType: StructType<{
353
350
  /** Lower bounds for each dimension */
354
- lower: ArrayType<FloatType>;
351
+ readonly lower: VectorType<FloatType>;
355
352
  /** Upper bounds for each dimension */
356
- upper: ArrayType<FloatType>;
353
+ readonly upper: VectorType<FloatType>;
357
354
  }>;
358
355
  /** Constraint type (eb or pb variant) */
359
356
  readonly ConstraintType: VariantType<{
360
357
  /** Extreme barrier constraint - infeasible points rejected */
361
- eb: import("@elaraai/east").FunctionType<[ArrayType<FloatType>], FloatType>;
358
+ readonly eb: import("@elaraai/east").FunctionType<[VectorType<FloatType>], FloatType>;
362
359
  /** Progressive barrier constraint - temporary violations allowed */
363
- pb: import("@elaraai/east").FunctionType<[ArrayType<FloatType>], FloatType>;
360
+ readonly pb: import("@elaraai/east").FunctionType<[VectorType<FloatType>], FloatType>;
364
361
  }>;
365
362
  /** Direction type for poll step */
366
363
  readonly DirectionType: VariantType<{
367
364
  /** ORTHO 2N: 2n orthogonal directions (default) */
368
- ortho_2n: NullType;
365
+ readonly ortho_2n: NullType;
369
366
  /** ORTHO N+1: n+1 directions forming a simplex */
370
- ortho_n_plus_1: NullType;
367
+ readonly ortho_n_plus_1: NullType;
371
368
  /** LT 2N: Lower triangular with 2n directions */
372
- lt_2n: NullType;
369
+ readonly lt_2n: NullType;
373
370
  /** Single direction */
374
- single: NullType;
371
+ readonly single: NullType;
375
372
  }>;
376
373
  /** Configuration type */
377
374
  readonly ConfigType: StructType<{
378
375
  /** Maximum number of blackbox evaluations */
379
- max_bb_eval: OptionType<IntegerType>;
376
+ readonly max_bb_eval: OptionType<IntegerType>;
380
377
  /** Display verbosity level (0 = silent) */
381
- display_degree: OptionType<IntegerType>;
378
+ readonly display_degree: OptionType<IntegerType>;
382
379
  /** Direction type for poll step */
383
- direction_type: OptionType<VariantType<{
380
+ readonly direction_type: OptionType<VariantType<{
384
381
  /** ORTHO 2N: 2n orthogonal directions (default) */
385
- ortho_2n: NullType;
382
+ readonly ortho_2n: NullType;
386
383
  /** ORTHO N+1: n+1 directions forming a simplex */
387
- ortho_n_plus_1: NullType;
384
+ readonly ortho_n_plus_1: NullType;
388
385
  /** LT 2N: Lower triangular with 2n directions */
389
- lt_2n: NullType;
386
+ readonly lt_2n: NullType;
390
387
  /** Single direction */
391
- single: NullType;
388
+ readonly single: NullType;
392
389
  }>>;
393
390
  /** Initial mesh size */
394
- initial_mesh_size: OptionType<FloatType>;
391
+ readonly initial_mesh_size: OptionType<FloatType>;
395
392
  /** Minimum mesh size (stopping criterion) */
396
- min_mesh_size: OptionType<FloatType>;
393
+ readonly min_mesh_size: OptionType<FloatType>;
397
394
  /** Random seed for reproducibility */
398
- seed: OptionType<IntegerType>;
395
+ readonly seed: OptionType<IntegerType>;
399
396
  }>;
400
397
  /** Single-objective result type */
401
398
  readonly ResultType: StructType<{
402
399
  /** Best solution vector found */
403
- x_best: ArrayType<FloatType>;
400
+ readonly x_best: VectorType<FloatType>;
404
401
  /** Best objective value */
405
- f_best: FloatType;
402
+ readonly f_best: FloatType;
406
403
  /** Number of blackbox evaluations performed */
407
- bb_eval: IntegerType;
404
+ readonly bb_eval: IntegerType;
408
405
  /** Whether optimization succeeded */
409
- success: BooleanType;
406
+ readonly success: BooleanType;
410
407
  }>;
411
408
  };
412
409
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mads.d.ts","sourceRoot":"","sources":["../../../src/mads/mads.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;;;GAWG;AAEH,OAAO,EAEH,UAAU,EACV,WAAW,EACX,UAAU,EACV,SAAS,EACT,WAAW,EACX,WAAW,EACX,SAAS,EACT,QAAQ,EACX,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,UAAU,EAAuB,MAAM,aAAa,CAAC;AAG9D,OAAO,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAE9D;;;;GAIG;AACH,eAAO,MAAM,cAAc;IACvB,sCAAsC;;IAEtC,sCAAsC;;EAExC,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB;IAC3B,8DAA8D;;IAE9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;;YAElD,iDAAiD;;YAEjD,uBAAuB;;;QAgBvB,wBAAwB;;QAExB,6CAA6C;;QAE7C,sCAAsC;;;IAgGtC,mCAAmC;;QAtFnC,iCAAiC;;QAEjC,2BAA2B;;QAE3B,+CAA+C;;QAE/C,qCAAqC;;;CAkF/B,CAAC;AAEX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,eAAO,MAAM,IAAI;IACb;;;;OAIG;;QAtMH,sCAAsC;;QAEtC,sCAAsC;;;QActC,8DAA8D;;QAE9D,oEAAoE;;;QA0BpE,6CAA6C;;QAE7C,2CAA2C;;QAE3C,mCAAmC;;YApBnC,mDAAmD;;YAEnD,kDAAkD;;YAElD,iDAAiD;;YAEjD,uBAAuB;;;QAgBvB,wBAAwB;;QAExB,6CAA6C;;QAE7C,sCAAsC;;;QAUtC,iCAAiC;;QAEjC,2BAA2B;;QAE3B,+CAA+C;;QAE/C,qCAAqC;;;IAmIrC;;OAEG;;QA/DH,qCAAqC;;QAErC,+CAA+C;;YA9I/C,sCAAsC;;YAEtC,sCAAsC;;;QA8ItC,yCAAyC;;YAhIzC,8DAA8D;;YAE9D,oEAAoE;;;QAgIpE,mCAAmC;;YAtHnC,mDAAmD;;YAEnD,kDAAkD;;YAElD,iDAAiD;;YAEjD,uBAAuB;;;QAkHvB,yBAAyB;;YAxGzB,6CAA6C;;YAE7C,2CAA2C;;YAE3C,mCAAmC;;gBApBnC,mDAAmD;;gBAEnD,kDAAkD;;gBAElD,iDAAiD;;gBAEjD,uBAAuB;;;YAgBvB,wBAAwB;;YAExB,6CAA6C;;YAE7C,sCAAsC;;;QAgGtC,mCAAmC;;YAtFnC,iCAAiC;;YAEjC,2BAA2B;;YAE3B,+CAA+C;;YAE/C,qCAAqC;;;;CAwI/B,CAAC"}
@@ -25,9 +25,9 @@ export { VectorType, ScalarObjectiveType } from "../types.js";
25
25
  */
26
26
  export const MADSBoundsType = StructType({
27
27
  /** Lower bounds for each dimension */
28
- lower: VectorType,
28
+ lower: VectorType(FloatType),
29
29
  /** Upper bounds for each dimension */
30
- upper: VectorType,
30
+ upper: VectorType(FloatType),
31
31
  });
32
32
  /**
33
33
  * MADS constraint type.
@@ -85,7 +85,7 @@ export const MADSConfigType = StructType({
85
85
  */
86
86
  export const MADSResultType = StructType({
87
87
  /** Best solution vector found */
88
- x_best: VectorType,
88
+ x_best: VectorType(FloatType),
89
89
  /** Best objective value */
90
90
  f_best: FloatType,
91
91
  /** Number of blackbox evaluations performed */
@@ -115,7 +115,7 @@ export const MADSResultType = StructType({
115
115
  * import { MADS } from "@elaraai/east-py-datascience";
116
116
  *
117
117
  * // Minimize sum of squares
118
- * const objective = East.function([MADS.Types.VectorType], FloatType, ($, x) => {
118
+ * const objective = East.function([MADS.Types.VectorType(FloatType)], FloatType, ($, x) => {
119
119
  * return x.reduce((acc, xi) => acc.add(xi.multiply(xi)), East.value(0.0));
120
120
  * });
121
121
  *
@@ -140,7 +140,7 @@ export const MADSResultType = StructType({
140
140
  */
141
141
  export const mads_optimize = East.platform("mads_optimize", [
142
142
  ScalarObjectiveType,
143
- VectorType,
143
+ VectorType(FloatType),
144
144
  MADSBoundsType,
145
145
  OptionType(ArrayType(MADSConstraintType)),
146
146
  MADSConfigType,
@@ -152,8 +152,6 @@ export const mads_optimize = East.platform("mads_optimize", [
152
152
  * Type definitions for MADS optimization.
153
153
  */
154
154
  export const MADSTypes = {
155
- /** Vector type (array of floats) */
156
- VectorType,
157
155
  /** Scalar objective function type */
158
156
  ScalarObjectiveType,
159
157
  /** Bounds type with lower and upper vectors */
@@ -184,7 +182,7 @@ export const MADSTypes = {
184
182
  * import { East, FloatType, variant } from "@elaraai/east";
185
183
  * import { MADS } from "@elaraai/east-py-datascience";
186
184
  *
187
- * const objective = East.function([MADS.Types.VectorType], FloatType, ($, x) => {
185
+ * const objective = East.function([MADS.Types.VectorType(FloatType)], FloatType, ($, x) => {
188
186
  * return x.reduce((acc, xi) => acc.add(xi.multiply(xi)), East.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