@elaraai/east-py-datascience 0.0.2-beta.9 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLA.md +26 -0
- package/CONTRIBUTING.md +28 -0
- package/LICENSE.md +2 -2
- package/README.md +108 -15
- package/package.json +21 -42
- package/dist/gp/gp.d.ts +0 -398
- package/dist/gp/gp.d.ts.map +0 -1
- package/dist/gp/gp.js +0 -170
- package/dist/gp/gp.js.map +0 -1
- package/dist/index.d.ts +0 -27
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -41
- package/dist/index.js.map +0 -1
- package/dist/lightgbm/lightgbm.d.ts +0 -494
- package/dist/lightgbm/lightgbm.d.ts.map +0 -1
- package/dist/lightgbm/lightgbm.js +0 -155
- package/dist/lightgbm/lightgbm.js.map +0 -1
- package/dist/mads/mads.d.ts +0 -413
- package/dist/mads/mads.d.ts.map +0 -1
- package/dist/mads/mads.js +0 -221
- package/dist/mads/mads.js.map +0 -1
- package/dist/ngboost/ngboost.d.ts +0 -433
- package/dist/ngboost/ngboost.d.ts.map +0 -1
- package/dist/ngboost/ngboost.js +0 -178
- package/dist/ngboost/ngboost.js.map +0 -1
- package/dist/optuna/optuna.d.ts +0 -797
- package/dist/optuna/optuna.d.ts.map +0 -1
- package/dist/optuna/optuna.js +0 -268
- package/dist/optuna/optuna.js.map +0 -1
- package/dist/scipy/scipy.d.ts +0 -1260
- package/dist/scipy/scipy.d.ts.map +0 -1
- package/dist/scipy/scipy.js +0 -413
- package/dist/scipy/scipy.js.map +0 -1
- package/dist/shap/shap.d.ts +0 -657
- package/dist/shap/shap.d.ts.map +0 -1
- package/dist/shap/shap.js +0 -241
- package/dist/shap/shap.js.map +0 -1
- package/dist/simanneal/simanneal.d.ts +0 -531
- package/dist/simanneal/simanneal.d.ts.map +0 -1
- package/dist/simanneal/simanneal.js +0 -231
- package/dist/simanneal/simanneal.js.map +0 -1
- package/dist/sklearn/sklearn.d.ts +0 -2691
- package/dist/sklearn/sklearn.d.ts.map +0 -1
- package/dist/sklearn/sklearn.js +0 -524
- package/dist/sklearn/sklearn.js.map +0 -1
- package/dist/torch/torch.d.ts +0 -1081
- package/dist/torch/torch.d.ts.map +0 -1
- package/dist/torch/torch.js +0 -349
- package/dist/torch/torch.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/types.d.ts +0 -80
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -81
- package/dist/types.js.map +0 -1
- package/dist/xgboost/xgboost.d.ts +0 -504
- package/dist/xgboost/xgboost.d.ts.map +0 -1
- package/dist/xgboost/xgboost.js +0 -177
- package/dist/xgboost/xgboost.js.map +0 -1
package/dist/gp/gp.d.ts
DELETED
|
@@ -1,398 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
-
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Gaussian Process platform functions for East.
|
|
7
|
-
*
|
|
8
|
-
* Provides Gaussian Process regression using scikit-learn.
|
|
9
|
-
* Uses cloudpickle for model serialization.
|
|
10
|
-
*
|
|
11
|
-
* @packageDocumentation
|
|
12
|
-
*/
|
|
13
|
-
import { StructType, VariantType, OptionType, IntegerType, FloatType, BooleanType, BlobType, StringType, NullType } from "@elaraai/east";
|
|
14
|
-
export { VectorType, MatrixType } from "../types.js";
|
|
15
|
-
/**
|
|
16
|
-
* Kernel type for Gaussian Process.
|
|
17
|
-
*/
|
|
18
|
-
export declare const GPKernelType: VariantType<{
|
|
19
|
-
/** Radial Basis Function (squared exponential) */
|
|
20
|
-
rbf: NullType;
|
|
21
|
-
/** Matern with nu=1/2 (exponential) */
|
|
22
|
-
matern_1_2: NullType;
|
|
23
|
-
/** Matern with nu=3/2 */
|
|
24
|
-
matern_3_2: NullType;
|
|
25
|
-
/** Matern with nu=5/2 */
|
|
26
|
-
matern_5_2: NullType;
|
|
27
|
-
/** Rational Quadratic */
|
|
28
|
-
rational_quadratic: NullType;
|
|
29
|
-
/** Dot Product (linear) */
|
|
30
|
-
dot_product: NullType;
|
|
31
|
-
}>;
|
|
32
|
-
/**
|
|
33
|
-
* Configuration for Gaussian Process Regressor.
|
|
34
|
-
*/
|
|
35
|
-
export declare const GPConfigType: StructType<{
|
|
36
|
-
/** Kernel type (default rbf) */
|
|
37
|
-
kernel: OptionType<VariantType<{
|
|
38
|
-
/** Radial Basis Function (squared exponential) */
|
|
39
|
-
rbf: NullType;
|
|
40
|
-
/** Matern with nu=1/2 (exponential) */
|
|
41
|
-
matern_1_2: NullType;
|
|
42
|
-
/** Matern with nu=3/2 */
|
|
43
|
-
matern_3_2: NullType;
|
|
44
|
-
/** Matern with nu=5/2 */
|
|
45
|
-
matern_5_2: NullType;
|
|
46
|
-
/** Rational Quadratic */
|
|
47
|
-
rational_quadratic: NullType;
|
|
48
|
-
/** Dot Product (linear) */
|
|
49
|
-
dot_product: NullType;
|
|
50
|
-
}>>;
|
|
51
|
-
/** Noise level added to diagonal (default 1e-10) */
|
|
52
|
-
alpha: OptionType<FloatType>;
|
|
53
|
-
/** Number of restarts for optimizer (default 0) */
|
|
54
|
-
n_restarts_optimizer: OptionType<IntegerType>;
|
|
55
|
-
/** Whether to normalize target values (default false) */
|
|
56
|
-
normalize_y: OptionType<BooleanType>;
|
|
57
|
-
/** Random seed for reproducibility */
|
|
58
|
-
random_state: OptionType<IntegerType>;
|
|
59
|
-
}>;
|
|
60
|
-
/**
|
|
61
|
-
* Result type for GP prediction with uncertainty.
|
|
62
|
-
*/
|
|
63
|
-
export declare const GPPredictResultType: StructType<{
|
|
64
|
-
/** Predicted mean values */
|
|
65
|
-
mean: import("@elaraai/east").ArrayType<FloatType>;
|
|
66
|
-
/** Predicted standard deviation (uncertainty) */
|
|
67
|
-
std: import("@elaraai/east").ArrayType<FloatType>;
|
|
68
|
-
}>;
|
|
69
|
-
/**
|
|
70
|
-
* Model blob type for serialized GP models.
|
|
71
|
-
*/
|
|
72
|
-
export declare const GPModelBlobType: VariantType<{
|
|
73
|
-
/** Gaussian Process Regressor */
|
|
74
|
-
gp_regressor: StructType<{
|
|
75
|
-
/** Cloudpickle serialized model */
|
|
76
|
-
data: BlobType;
|
|
77
|
-
/** Number of input features */
|
|
78
|
-
n_features: IntegerType;
|
|
79
|
-
/** Kernel type name for reference */
|
|
80
|
-
kernel_type: StringType;
|
|
81
|
-
}>;
|
|
82
|
-
}>;
|
|
83
|
-
/**
|
|
84
|
-
* Train a Gaussian Process Regressor.
|
|
85
|
-
*
|
|
86
|
-
* @param X - Feature matrix
|
|
87
|
-
* @param y - Target vector
|
|
88
|
-
* @param config - GP configuration
|
|
89
|
-
* @returns Trained GP model blob
|
|
90
|
-
*/
|
|
91
|
-
export declare const gp_train: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<import("@elaraai/east").ArrayType<FloatType>>, import("@elaraai/east").ArrayType<FloatType>, StructType<{
|
|
92
|
-
/** Kernel type (default rbf) */
|
|
93
|
-
kernel: OptionType<VariantType<{
|
|
94
|
-
/** Radial Basis Function (squared exponential) */
|
|
95
|
-
rbf: NullType;
|
|
96
|
-
/** Matern with nu=1/2 (exponential) */
|
|
97
|
-
matern_1_2: NullType;
|
|
98
|
-
/** Matern with nu=3/2 */
|
|
99
|
-
matern_3_2: NullType;
|
|
100
|
-
/** Matern with nu=5/2 */
|
|
101
|
-
matern_5_2: NullType;
|
|
102
|
-
/** Rational Quadratic */
|
|
103
|
-
rational_quadratic: NullType;
|
|
104
|
-
/** Dot Product (linear) */
|
|
105
|
-
dot_product: NullType;
|
|
106
|
-
}>>;
|
|
107
|
-
/** Noise level added to diagonal (default 1e-10) */
|
|
108
|
-
alpha: OptionType<FloatType>;
|
|
109
|
-
/** Number of restarts for optimizer (default 0) */
|
|
110
|
-
n_restarts_optimizer: OptionType<IntegerType>;
|
|
111
|
-
/** Whether to normalize target values (default false) */
|
|
112
|
-
normalize_y: OptionType<BooleanType>;
|
|
113
|
-
/** Random seed for reproducibility */
|
|
114
|
-
random_state: OptionType<IntegerType>;
|
|
115
|
-
}>], VariantType<{
|
|
116
|
-
/** Gaussian Process Regressor */
|
|
117
|
-
gp_regressor: StructType<{
|
|
118
|
-
/** Cloudpickle serialized model */
|
|
119
|
-
data: BlobType;
|
|
120
|
-
/** Number of input features */
|
|
121
|
-
n_features: IntegerType;
|
|
122
|
-
/** Kernel type name for reference */
|
|
123
|
-
kernel_type: StringType;
|
|
124
|
-
}>;
|
|
125
|
-
}>>;
|
|
126
|
-
/**
|
|
127
|
-
* Make predictions with a trained Gaussian Process.
|
|
128
|
-
*
|
|
129
|
-
* Returns point predictions (mean only).
|
|
130
|
-
*
|
|
131
|
-
* @param model - Trained GP model blob
|
|
132
|
-
* @param X - Feature matrix
|
|
133
|
-
* @returns Predicted values
|
|
134
|
-
*/
|
|
135
|
-
export declare const gp_predict: import("@elaraai/east").PlatformDefinition<[VariantType<{
|
|
136
|
-
/** Gaussian Process Regressor */
|
|
137
|
-
gp_regressor: StructType<{
|
|
138
|
-
/** Cloudpickle serialized model */
|
|
139
|
-
data: BlobType;
|
|
140
|
-
/** Number of input features */
|
|
141
|
-
n_features: IntegerType;
|
|
142
|
-
/** Kernel type name for reference */
|
|
143
|
-
kernel_type: StringType;
|
|
144
|
-
}>;
|
|
145
|
-
}>, import("@elaraai/east").ArrayType<import("@elaraai/east").ArrayType<FloatType>>], import("@elaraai/east").ArrayType<FloatType>>;
|
|
146
|
-
/**
|
|
147
|
-
* Make predictions with uncertainty estimates.
|
|
148
|
-
*
|
|
149
|
-
* Returns both mean and standard deviation.
|
|
150
|
-
*
|
|
151
|
-
* @param model - Trained GP model blob
|
|
152
|
-
* @param X - Feature matrix
|
|
153
|
-
* @returns Prediction result with mean and std
|
|
154
|
-
*/
|
|
155
|
-
export declare const gp_predict_std: import("@elaraai/east").PlatformDefinition<[VariantType<{
|
|
156
|
-
/** Gaussian Process Regressor */
|
|
157
|
-
gp_regressor: StructType<{
|
|
158
|
-
/** Cloudpickle serialized model */
|
|
159
|
-
data: BlobType;
|
|
160
|
-
/** Number of input features */
|
|
161
|
-
n_features: IntegerType;
|
|
162
|
-
/** Kernel type name for reference */
|
|
163
|
-
kernel_type: StringType;
|
|
164
|
-
}>;
|
|
165
|
-
}>, import("@elaraai/east").ArrayType<import("@elaraai/east").ArrayType<FloatType>>], StructType<{
|
|
166
|
-
/** Predicted mean values */
|
|
167
|
-
mean: import("@elaraai/east").ArrayType<FloatType>;
|
|
168
|
-
/** Predicted standard deviation (uncertainty) */
|
|
169
|
-
std: import("@elaraai/east").ArrayType<FloatType>;
|
|
170
|
-
}>>;
|
|
171
|
-
/**
|
|
172
|
-
* Type definitions for GP functions.
|
|
173
|
-
*/
|
|
174
|
-
export declare const GPTypes: {
|
|
175
|
-
/** Vector type (array of floats) */
|
|
176
|
-
readonly VectorType: import("@elaraai/east").ArrayType<FloatType>;
|
|
177
|
-
/** Matrix type (2D array of floats) */
|
|
178
|
-
readonly MatrixType: import("@elaraai/east").ArrayType<import("@elaraai/east").ArrayType<FloatType>>;
|
|
179
|
-
/** Kernel type */
|
|
180
|
-
readonly GPKernelType: VariantType<{
|
|
181
|
-
/** Radial Basis Function (squared exponential) */
|
|
182
|
-
rbf: NullType;
|
|
183
|
-
/** Matern with nu=1/2 (exponential) */
|
|
184
|
-
matern_1_2: NullType;
|
|
185
|
-
/** Matern with nu=3/2 */
|
|
186
|
-
matern_3_2: NullType;
|
|
187
|
-
/** Matern with nu=5/2 */
|
|
188
|
-
matern_5_2: NullType;
|
|
189
|
-
/** Rational Quadratic */
|
|
190
|
-
rational_quadratic: NullType;
|
|
191
|
-
/** Dot Product (linear) */
|
|
192
|
-
dot_product: NullType;
|
|
193
|
-
}>;
|
|
194
|
-
/** Configuration type */
|
|
195
|
-
readonly GPConfigType: StructType<{
|
|
196
|
-
/** Kernel type (default rbf) */
|
|
197
|
-
kernel: OptionType<VariantType<{
|
|
198
|
-
/** Radial Basis Function (squared exponential) */
|
|
199
|
-
rbf: NullType;
|
|
200
|
-
/** Matern with nu=1/2 (exponential) */
|
|
201
|
-
matern_1_2: NullType;
|
|
202
|
-
/** Matern with nu=3/2 */
|
|
203
|
-
matern_3_2: NullType;
|
|
204
|
-
/** Matern with nu=5/2 */
|
|
205
|
-
matern_5_2: NullType;
|
|
206
|
-
/** Rational Quadratic */
|
|
207
|
-
rational_quadratic: NullType;
|
|
208
|
-
/** Dot Product (linear) */
|
|
209
|
-
dot_product: NullType;
|
|
210
|
-
}>>;
|
|
211
|
-
/** Noise level added to diagonal (default 1e-10) */
|
|
212
|
-
alpha: OptionType<FloatType>;
|
|
213
|
-
/** Number of restarts for optimizer (default 0) */
|
|
214
|
-
n_restarts_optimizer: OptionType<IntegerType>;
|
|
215
|
-
/** Whether to normalize target values (default false) */
|
|
216
|
-
normalize_y: OptionType<BooleanType>;
|
|
217
|
-
/** Random seed for reproducibility */
|
|
218
|
-
random_state: OptionType<IntegerType>;
|
|
219
|
-
}>;
|
|
220
|
-
/** Prediction result type with uncertainty */
|
|
221
|
-
readonly GPPredictResultType: StructType<{
|
|
222
|
-
/** Predicted mean values */
|
|
223
|
-
mean: import("@elaraai/east").ArrayType<FloatType>;
|
|
224
|
-
/** Predicted standard deviation (uncertainty) */
|
|
225
|
-
std: import("@elaraai/east").ArrayType<FloatType>;
|
|
226
|
-
}>;
|
|
227
|
-
/** Model blob type for GP models */
|
|
228
|
-
readonly ModelBlobType: VariantType<{
|
|
229
|
-
/** Gaussian Process Regressor */
|
|
230
|
-
gp_regressor: StructType<{
|
|
231
|
-
/** Cloudpickle serialized model */
|
|
232
|
-
data: BlobType;
|
|
233
|
-
/** Number of input features */
|
|
234
|
-
n_features: IntegerType;
|
|
235
|
-
/** Kernel type name for reference */
|
|
236
|
-
kernel_type: StringType;
|
|
237
|
-
}>;
|
|
238
|
-
}>;
|
|
239
|
-
};
|
|
240
|
-
/**
|
|
241
|
-
* Gaussian Process regression.
|
|
242
|
-
*
|
|
243
|
-
* Provides probabilistic regression with uncertainty quantification.
|
|
244
|
-
*
|
|
245
|
-
* @example
|
|
246
|
-
* ```ts
|
|
247
|
-
* import { East, variant } from "@elaraai/east";
|
|
248
|
-
* import { GP } from "@elaraai/east-py-datascience";
|
|
249
|
-
*
|
|
250
|
-
* const train = East.function([], GP.Types.ModelBlobType, $ => {
|
|
251
|
-
* const X = $.let([[1.0], [2.0], [3.0], [4.0]]);
|
|
252
|
-
* const y = $.let([1.0, 4.0, 9.0, 16.0]);
|
|
253
|
-
* const config = $.let({
|
|
254
|
-
* kernel: variant('some', variant('rbf', {})),
|
|
255
|
-
* alpha: variant('some', 1e-10),
|
|
256
|
-
* n_restarts_optimizer: variant('some', 5n),
|
|
257
|
-
* normalize_y: variant('some', true),
|
|
258
|
-
* random_state: variant('some', 42n),
|
|
259
|
-
* });
|
|
260
|
-
* return $.return(GP.train(X, y, config));
|
|
261
|
-
* });
|
|
262
|
-
* ```
|
|
263
|
-
*/
|
|
264
|
-
export declare const GP: {
|
|
265
|
-
/** Train GP regressor */
|
|
266
|
-
readonly train: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<import("@elaraai/east").ArrayType<FloatType>>, import("@elaraai/east").ArrayType<FloatType>, StructType<{
|
|
267
|
-
/** Kernel type (default rbf) */
|
|
268
|
-
kernel: OptionType<VariantType<{
|
|
269
|
-
/** Radial Basis Function (squared exponential) */
|
|
270
|
-
rbf: NullType;
|
|
271
|
-
/** Matern with nu=1/2 (exponential) */
|
|
272
|
-
matern_1_2: NullType;
|
|
273
|
-
/** Matern with nu=3/2 */
|
|
274
|
-
matern_3_2: NullType;
|
|
275
|
-
/** Matern with nu=5/2 */
|
|
276
|
-
matern_5_2: NullType;
|
|
277
|
-
/** Rational Quadratic */
|
|
278
|
-
rational_quadratic: NullType;
|
|
279
|
-
/** Dot Product (linear) */
|
|
280
|
-
dot_product: NullType;
|
|
281
|
-
}>>;
|
|
282
|
-
/** Noise level added to diagonal (default 1e-10) */
|
|
283
|
-
alpha: OptionType<FloatType>;
|
|
284
|
-
/** Number of restarts for optimizer (default 0) */
|
|
285
|
-
n_restarts_optimizer: OptionType<IntegerType>;
|
|
286
|
-
/** Whether to normalize target values (default false) */
|
|
287
|
-
normalize_y: OptionType<BooleanType>;
|
|
288
|
-
/** Random seed for reproducibility */
|
|
289
|
-
random_state: OptionType<IntegerType>;
|
|
290
|
-
}>], VariantType<{
|
|
291
|
-
/** Gaussian Process Regressor */
|
|
292
|
-
gp_regressor: StructType<{
|
|
293
|
-
/** Cloudpickle serialized model */
|
|
294
|
-
data: BlobType;
|
|
295
|
-
/** Number of input features */
|
|
296
|
-
n_features: IntegerType;
|
|
297
|
-
/** Kernel type name for reference */
|
|
298
|
-
kernel_type: StringType;
|
|
299
|
-
}>;
|
|
300
|
-
}>>;
|
|
301
|
-
/** Make predictions (mean only) */
|
|
302
|
-
readonly predict: import("@elaraai/east").PlatformDefinition<[VariantType<{
|
|
303
|
-
/** Gaussian Process Regressor */
|
|
304
|
-
gp_regressor: StructType<{
|
|
305
|
-
/** Cloudpickle serialized model */
|
|
306
|
-
data: BlobType;
|
|
307
|
-
/** Number of input features */
|
|
308
|
-
n_features: IntegerType;
|
|
309
|
-
/** Kernel type name for reference */
|
|
310
|
-
kernel_type: StringType;
|
|
311
|
-
}>;
|
|
312
|
-
}>, import("@elaraai/east").ArrayType<import("@elaraai/east").ArrayType<FloatType>>], import("@elaraai/east").ArrayType<FloatType>>;
|
|
313
|
-
/** Make predictions with uncertainty */
|
|
314
|
-
readonly predictStd: import("@elaraai/east").PlatformDefinition<[VariantType<{
|
|
315
|
-
/** Gaussian Process Regressor */
|
|
316
|
-
gp_regressor: StructType<{
|
|
317
|
-
/** Cloudpickle serialized model */
|
|
318
|
-
data: BlobType;
|
|
319
|
-
/** Number of input features */
|
|
320
|
-
n_features: IntegerType;
|
|
321
|
-
/** Kernel type name for reference */
|
|
322
|
-
kernel_type: StringType;
|
|
323
|
-
}>;
|
|
324
|
-
}>, import("@elaraai/east").ArrayType<import("@elaraai/east").ArrayType<FloatType>>], StructType<{
|
|
325
|
-
/** Predicted mean values */
|
|
326
|
-
mean: import("@elaraai/east").ArrayType<FloatType>;
|
|
327
|
-
/** Predicted standard deviation (uncertainty) */
|
|
328
|
-
std: import("@elaraai/east").ArrayType<FloatType>;
|
|
329
|
-
}>>;
|
|
330
|
-
/** Type definitions */
|
|
331
|
-
readonly Types: {
|
|
332
|
-
/** Vector type (array of floats) */
|
|
333
|
-
readonly VectorType: import("@elaraai/east").ArrayType<FloatType>;
|
|
334
|
-
/** Matrix type (2D array of floats) */
|
|
335
|
-
readonly MatrixType: import("@elaraai/east").ArrayType<import("@elaraai/east").ArrayType<FloatType>>;
|
|
336
|
-
/** Kernel type */
|
|
337
|
-
readonly GPKernelType: VariantType<{
|
|
338
|
-
/** Radial Basis Function (squared exponential) */
|
|
339
|
-
rbf: NullType;
|
|
340
|
-
/** Matern with nu=1/2 (exponential) */
|
|
341
|
-
matern_1_2: NullType;
|
|
342
|
-
/** Matern with nu=3/2 */
|
|
343
|
-
matern_3_2: NullType;
|
|
344
|
-
/** Matern with nu=5/2 */
|
|
345
|
-
matern_5_2: NullType;
|
|
346
|
-
/** Rational Quadratic */
|
|
347
|
-
rational_quadratic: NullType;
|
|
348
|
-
/** Dot Product (linear) */
|
|
349
|
-
dot_product: NullType;
|
|
350
|
-
}>;
|
|
351
|
-
/** Configuration type */
|
|
352
|
-
readonly GPConfigType: StructType<{
|
|
353
|
-
/** Kernel type (default rbf) */
|
|
354
|
-
kernel: OptionType<VariantType<{
|
|
355
|
-
/** Radial Basis Function (squared exponential) */
|
|
356
|
-
rbf: NullType;
|
|
357
|
-
/** Matern with nu=1/2 (exponential) */
|
|
358
|
-
matern_1_2: NullType;
|
|
359
|
-
/** Matern with nu=3/2 */
|
|
360
|
-
matern_3_2: NullType;
|
|
361
|
-
/** Matern with nu=5/2 */
|
|
362
|
-
matern_5_2: NullType;
|
|
363
|
-
/** Rational Quadratic */
|
|
364
|
-
rational_quadratic: NullType;
|
|
365
|
-
/** Dot Product (linear) */
|
|
366
|
-
dot_product: NullType;
|
|
367
|
-
}>>;
|
|
368
|
-
/** Noise level added to diagonal (default 1e-10) */
|
|
369
|
-
alpha: OptionType<FloatType>;
|
|
370
|
-
/** Number of restarts for optimizer (default 0) */
|
|
371
|
-
n_restarts_optimizer: OptionType<IntegerType>;
|
|
372
|
-
/** Whether to normalize target values (default false) */
|
|
373
|
-
normalize_y: OptionType<BooleanType>;
|
|
374
|
-
/** Random seed for reproducibility */
|
|
375
|
-
random_state: OptionType<IntegerType>;
|
|
376
|
-
}>;
|
|
377
|
-
/** Prediction result type with uncertainty */
|
|
378
|
-
readonly GPPredictResultType: StructType<{
|
|
379
|
-
/** Predicted mean values */
|
|
380
|
-
mean: import("@elaraai/east").ArrayType<FloatType>;
|
|
381
|
-
/** Predicted standard deviation (uncertainty) */
|
|
382
|
-
std: import("@elaraai/east").ArrayType<FloatType>;
|
|
383
|
-
}>;
|
|
384
|
-
/** Model blob type for GP models */
|
|
385
|
-
readonly ModelBlobType: VariantType<{
|
|
386
|
-
/** Gaussian Process Regressor */
|
|
387
|
-
gp_regressor: StructType<{
|
|
388
|
-
/** Cloudpickle serialized model */
|
|
389
|
-
data: BlobType;
|
|
390
|
-
/** Number of input features */
|
|
391
|
-
n_features: IntegerType;
|
|
392
|
-
/** Kernel type name for reference */
|
|
393
|
-
kernel_type: StringType;
|
|
394
|
-
}>;
|
|
395
|
-
}>;
|
|
396
|
-
};
|
|
397
|
-
};
|
|
398
|
-
//# sourceMappingURL=gp.d.ts.map
|
package/dist/gp/gp.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gp.d.ts","sourceRoot":"","sources":["../../src/gp/gp.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AAEH,OAAO,EAEH,UAAU,EACV,WAAW,EACX,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uB;;QA7CvB,oCAAoC;;QAEpC,uCAAuC;;QAEvC,kBAAkB;;YA/HlB,kDAAkD;;YAElD,uCAAuC;;YAEvC,yBAAyB;;YAEzB,yBAAyB;;YAEzB,yBAAyB;;YAEzB,2BAA2B;;;QAuH3B,yBAAyB;;YA3GzB,gCAAgC;;gBAtBhC,kDAAkD;;gBAElD,uCAAuC;;gBAEvC,yBAAyB;;gBAEzB,yBAAyB;;gBAEzB,yBAAyB;;gBAEzB,2BAA2B;;;YAc3B,oDAAoD;;YAEpD,mDAAmD;;YAEnD,yDAAyD;;YAEzD,sCAAsC;;;QAqGtC,8CAA8C;;YAzF9C,4BAA4B;;YAE5B,iDAAiD;;;QAyFjD,oCAAoC;;YA7EpC,iCAAiC;;gBAE7B,mCAAmC;;gBAEnC,+BAA+B;;gBAE/B,qCAAqC;;;;;CA4GnC,CAAC"}
|
package/dist/gp/gp.js
DELETED
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
-
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Gaussian Process platform functions for East.
|
|
7
|
-
*
|
|
8
|
-
* Provides Gaussian Process regression using scikit-learn.
|
|
9
|
-
* Uses cloudpickle for model serialization.
|
|
10
|
-
*
|
|
11
|
-
* @packageDocumentation
|
|
12
|
-
*/
|
|
13
|
-
import { East, StructType, VariantType, OptionType, IntegerType, FloatType, BooleanType, BlobType, StringType, NullType, } from "@elaraai/east";
|
|
14
|
-
import { VectorType, MatrixType } from "../types.js";
|
|
15
|
-
// Re-export shared types for convenience
|
|
16
|
-
export { VectorType, MatrixType } from "../types.js";
|
|
17
|
-
// ============================================================================
|
|
18
|
-
// Enum Types
|
|
19
|
-
// ============================================================================
|
|
20
|
-
/**
|
|
21
|
-
* Kernel type for Gaussian Process.
|
|
22
|
-
*/
|
|
23
|
-
export const GPKernelType = VariantType({
|
|
24
|
-
/** Radial Basis Function (squared exponential) */
|
|
25
|
-
rbf: NullType,
|
|
26
|
-
/** Matern with nu=1/2 (exponential) */
|
|
27
|
-
matern_1_2: NullType,
|
|
28
|
-
/** Matern with nu=3/2 */
|
|
29
|
-
matern_3_2: NullType,
|
|
30
|
-
/** Matern with nu=5/2 */
|
|
31
|
-
matern_5_2: NullType,
|
|
32
|
-
/** Rational Quadratic */
|
|
33
|
-
rational_quadratic: NullType,
|
|
34
|
-
/** Dot Product (linear) */
|
|
35
|
-
dot_product: NullType,
|
|
36
|
-
});
|
|
37
|
-
// ============================================================================
|
|
38
|
-
// Config Types
|
|
39
|
-
// ============================================================================
|
|
40
|
-
/**
|
|
41
|
-
* Configuration for Gaussian Process Regressor.
|
|
42
|
-
*/
|
|
43
|
-
export const GPConfigType = StructType({
|
|
44
|
-
/** Kernel type (default rbf) */
|
|
45
|
-
kernel: OptionType(GPKernelType),
|
|
46
|
-
/** Noise level added to diagonal (default 1e-10) */
|
|
47
|
-
alpha: OptionType(FloatType),
|
|
48
|
-
/** Number of restarts for optimizer (default 0) */
|
|
49
|
-
n_restarts_optimizer: OptionType(IntegerType),
|
|
50
|
-
/** Whether to normalize target values (default false) */
|
|
51
|
-
normalize_y: OptionType(BooleanType),
|
|
52
|
-
/** Random seed for reproducibility */
|
|
53
|
-
random_state: OptionType(IntegerType),
|
|
54
|
-
});
|
|
55
|
-
// ============================================================================
|
|
56
|
-
// Result Types
|
|
57
|
-
// ============================================================================
|
|
58
|
-
/**
|
|
59
|
-
* Result type for GP prediction with uncertainty.
|
|
60
|
-
*/
|
|
61
|
-
export const GPPredictResultType = StructType({
|
|
62
|
-
/** Predicted mean values */
|
|
63
|
-
mean: VectorType,
|
|
64
|
-
/** Predicted standard deviation (uncertainty) */
|
|
65
|
-
std: VectorType,
|
|
66
|
-
});
|
|
67
|
-
// ============================================================================
|
|
68
|
-
// Model Blob Types
|
|
69
|
-
// ============================================================================
|
|
70
|
-
/**
|
|
71
|
-
* Model blob type for serialized GP models.
|
|
72
|
-
*/
|
|
73
|
-
export const GPModelBlobType = VariantType({
|
|
74
|
-
/** Gaussian Process Regressor */
|
|
75
|
-
gp_regressor: StructType({
|
|
76
|
-
/** Cloudpickle serialized model */
|
|
77
|
-
data: BlobType,
|
|
78
|
-
/** Number of input features */
|
|
79
|
-
n_features: IntegerType,
|
|
80
|
-
/** Kernel type name for reference */
|
|
81
|
-
kernel_type: StringType,
|
|
82
|
-
}),
|
|
83
|
-
});
|
|
84
|
-
// ============================================================================
|
|
85
|
-
// Platform Functions
|
|
86
|
-
// ============================================================================
|
|
87
|
-
/**
|
|
88
|
-
* Train a Gaussian Process Regressor.
|
|
89
|
-
*
|
|
90
|
-
* @param X - Feature matrix
|
|
91
|
-
* @param y - Target vector
|
|
92
|
-
* @param config - GP configuration
|
|
93
|
-
* @returns Trained GP model blob
|
|
94
|
-
*/
|
|
95
|
-
export const gp_train = East.platform("gp_train", [MatrixType, VectorType, GPConfigType], GPModelBlobType);
|
|
96
|
-
/**
|
|
97
|
-
* Make predictions with a trained Gaussian Process.
|
|
98
|
-
*
|
|
99
|
-
* Returns point predictions (mean only).
|
|
100
|
-
*
|
|
101
|
-
* @param model - Trained GP model blob
|
|
102
|
-
* @param X - Feature matrix
|
|
103
|
-
* @returns Predicted values
|
|
104
|
-
*/
|
|
105
|
-
export const gp_predict = East.platform("gp_predict", [GPModelBlobType, MatrixType], VectorType);
|
|
106
|
-
/**
|
|
107
|
-
* Make predictions with uncertainty estimates.
|
|
108
|
-
*
|
|
109
|
-
* Returns both mean and standard deviation.
|
|
110
|
-
*
|
|
111
|
-
* @param model - Trained GP model blob
|
|
112
|
-
* @param X - Feature matrix
|
|
113
|
-
* @returns Prediction result with mean and std
|
|
114
|
-
*/
|
|
115
|
-
export const gp_predict_std = East.platform("gp_predict_std", [GPModelBlobType, MatrixType], GPPredictResultType);
|
|
116
|
-
// ============================================================================
|
|
117
|
-
// Grouped Export
|
|
118
|
-
// ============================================================================
|
|
119
|
-
/**
|
|
120
|
-
* Type definitions for GP functions.
|
|
121
|
-
*/
|
|
122
|
-
export const GPTypes = {
|
|
123
|
-
/** Vector type (array of floats) */
|
|
124
|
-
VectorType,
|
|
125
|
-
/** Matrix type (2D array of floats) */
|
|
126
|
-
MatrixType,
|
|
127
|
-
/** Kernel type */
|
|
128
|
-
GPKernelType,
|
|
129
|
-
/** Configuration type */
|
|
130
|
-
GPConfigType,
|
|
131
|
-
/** Prediction result type with uncertainty */
|
|
132
|
-
GPPredictResultType,
|
|
133
|
-
/** Model blob type for GP models */
|
|
134
|
-
ModelBlobType: GPModelBlobType,
|
|
135
|
-
};
|
|
136
|
-
/**
|
|
137
|
-
* Gaussian Process regression.
|
|
138
|
-
*
|
|
139
|
-
* Provides probabilistic regression with uncertainty quantification.
|
|
140
|
-
*
|
|
141
|
-
* @example
|
|
142
|
-
* ```ts
|
|
143
|
-
* import { East, variant } from "@elaraai/east";
|
|
144
|
-
* import { GP } from "@elaraai/east-py-datascience";
|
|
145
|
-
*
|
|
146
|
-
* const train = East.function([], GP.Types.ModelBlobType, $ => {
|
|
147
|
-
* const X = $.let([[1.0], [2.0], [3.0], [4.0]]);
|
|
148
|
-
* const y = $.let([1.0, 4.0, 9.0, 16.0]);
|
|
149
|
-
* const config = $.let({
|
|
150
|
-
* kernel: variant('some', variant('rbf', {})),
|
|
151
|
-
* alpha: variant('some', 1e-10),
|
|
152
|
-
* n_restarts_optimizer: variant('some', 5n),
|
|
153
|
-
* normalize_y: variant('some', true),
|
|
154
|
-
* random_state: variant('some', 42n),
|
|
155
|
-
* });
|
|
156
|
-
* return $.return(GP.train(X, y, config));
|
|
157
|
-
* });
|
|
158
|
-
* ```
|
|
159
|
-
*/
|
|
160
|
-
export const GP = {
|
|
161
|
-
/** Train GP regressor */
|
|
162
|
-
train: gp_train,
|
|
163
|
-
/** Make predictions (mean only) */
|
|
164
|
-
predict: gp_predict,
|
|
165
|
-
/** Make predictions with uncertainty */
|
|
166
|
-
predictStd: gp_predict_std,
|
|
167
|
-
/** Type definitions */
|
|
168
|
-
Types: GPTypes,
|
|
169
|
-
};
|
|
170
|
-
//# sourceMappingURL=gp.js.map
|
package/dist/gp/gp.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gp.js","sourceRoot":"","sources":["../../src/gp/gp.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AAEH,OAAO,EACH,IAAI,EACJ,UAAU,EACV,WAAW,EACX,UAAU,EACV,WAAW,EACX,SAAS,EACT,WAAW,EACX,QAAQ,EACR,UAAU,EACV,QAAQ,GACX,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAErD,yCAAyC;AACzC,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAErD,+EAA+E;AAC/E,aAAa;AACb,+EAA+E;AAE/E;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,WAAW,CAAC;IACpC,kDAAkD;IAClD,GAAG,EAAE,QAAQ;IACb,uCAAuC;IACvC,UAAU,EAAE,QAAQ;IACpB,yBAAyB;IACzB,UAAU,EAAE,QAAQ;IACpB,yBAAyB;IACzB,UAAU,EAAE,QAAQ;IACpB,yBAAyB;IACzB,kBAAkB,EAAE,QAAQ;IAC5B,2BAA2B;IAC3B,WAAW,EAAE,QAAQ;CACxB,CAAC,CAAC;AAEH,+EAA+E;AAC/E,eAAe;AACf,+EAA+E;AAE/E;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,UAAU,CAAC;IACnC,gCAAgC;IAChC,MAAM,EAAE,UAAU,CAAC,YAAY,CAAC;IAChC,oDAAoD;IACpD,KAAK,EAAE,UAAU,CAAC,SAAS,CAAC;IAC5B,mDAAmD;IACnD,oBAAoB,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7C,yDAAyD;IACzD,WAAW,EAAE,UAA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ACvC,UAAU;IACV,kBAAkB;IAClB,YAAY;IACZ,yBAAyB;IACzB,YAAY;IACZ,8CAA8C;IAC9C,mBAAmB;IACnB,oCAAoC;IACpC,aAAa,EAAE,eAAe;CACxB,CAAC;AAEX;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAC,MAAM,EAAE,GAAG;IACd,yBAAyB;IACzB,KAAK,EAAE,QAAQ;IACf,mCAAmC;IACnC,OAAO,EAAE,UAAU;IACnB,wCAAwC;IACxC,UAAU,EAAE,cAAc;IAC1B,uBAAuB;IACvB,KAAK,EAAE,OAAO;CACR,CAAC"}
|
package/dist/index.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
-
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* East Data Science - ML and optimization platform functions for East.
|
|
7
|
-
*
|
|
8
|
-
* This package provides data science capabilities for East programs:
|
|
9
|
-
* - MADS: Derivative-free blackbox optimization (PyNomadBBO)
|
|
10
|
-
* - Optuna: Bayesian optimization with TPE sampler
|
|
11
|
-
* - SimAnneal: Discrete optimization with Simulated Annealing
|
|
12
|
-
*
|
|
13
|
-
* @packageDocumentation
|
|
14
|
-
*/
|
|
15
|
-
export { MADS, mads_optimize, MADSTypes, VectorType, ScalarObjectiveType, MADSBoundsType, MADSConstraintType, MADSDirectionType, MADSConfigType, MADSResultType, } from "./mads/mads.js";
|
|
16
|
-
export { Optuna, optuna_optimize, OptunaTypes, ParamValueType, ParamSpaceKindType, ParamSpaceType, NamedParamType, OptimizationDirectionType, PrunerType, OptunaStudyConfigType, TrialResultType, StudyResultType, ObjectiveFunctionType, } from "./optuna/optuna.js";
|
|
17
|
-
export { SimAnneal, simanneal_optimize, simanneal_optimize_permutation, simanneal_optimize_subset, SimAnnealTypes, DiscreteStateType, EnergyFunctionType, MoveFunctionType, PermutationEnergyType, SubsetEnergyType, AnnealConfigType, AnnealResultType, } from "./simanneal/simanneal.js";
|
|
18
|
-
export { Sklearn, sklearn_train_test_split, sklearn_train_val_test_split, sklearn_standard_scaler_fit, sklearn_standard_scaler_transform, sklearn_min_max_scaler_fit, sklearn_min_max_scaler_transform, sklearn_compute_metrics, sklearn_compute_metrics_multi, sklearn_compute_classification_metrics, sklearn_compute_classification_metrics_multi, sklearn_regressor_chain_train, sklearn_regressor_chain_predict, SklearnTypes, SplitConfigType, SplitResultType, ThreeWaySplitConfigType, ThreeWaySplitResultType, SklearnModelBlobType, RegressorChainBaseConfigType, RegressorChainConfigType, RegressionMetricType, MetricResultType, MetricsResultType, MetricAggregationType, MultiMetricsConfigType, MultiMetricResultType, MultiMetricsResultType, ClassificationMetricType, ClassificationAverageType, ClassificationMetricsConfigType, ClassificationMetricResultType, ClassificationMetricResultsType, MultiClassificationConfigType, MultiClassificationMetricResultType, MultiClassificationMetricResultsType, } from "./sklearn/sklearn.js";
|
|
19
|
-
export { Scipy, scipy_curve_fit, scipy_stats_describe, scipy_stats_pearsonr, scipy_stats_spearmanr, scipy_interpolate_1d_fit, scipy_interpolate_1d_predict, scipy_optimize_minimize, scipy_optimize_minimize_quadratic, ScipyTypes, OptimizeMethodType, InterpolationKindType, OptimizeConfigType, InterpolateConfigType, ParamBoundsType, CustomCurveFunctionType, CurveFunctionType, CurveFitConfigType, QuadraticConfigType, StatsDescribeResultType, CorrelationResultType, CurveFitResultType, OptimizeResultType, ScipyModelBlobType, } from "./scipy/scipy.js";
|
|
20
|
-
export { XGBoost, xgboost_train_regressor, xgboost_train_classifier, xgboost_predict, xgboost_predict_class, xgboost_predict_proba, XGBoostTypes, XGBoostConfigType, XGBoostModelBlobType, } from "./xgboost/xgboost.js";
|
|
21
|
-
export { LightGBM, lightgbm_train_regressor, lightgbm_train_classifier, lightgbm_predict, lightgbm_predict_class, lightgbm_predict_proba, LightGBMTypes, LightGBMConfigType, LightGBMModelBlobType, } from "./lightgbm/lightgbm.js";
|
|
22
|
-
export { NGBoost, ngboost_train_regressor, ngboost_predict, ngboost_predict_dist, NGBoostTypes, NGBoostDistributionType, NGBoostConfigType, NGBoostPredictConfigType, NGBoostPredictResultType, NGBoostModelBlobType, } from "./ngboost/ngboost.js";
|
|
23
|
-
export { Shap, shap_tree_explainer_create, shap_kernel_explainer_create, shap_compute_values, shap_feature_importance, ShapTypes, ShapResultType, FeatureImportanceType, ShapModelBlobType, AnyModelBlobType, StringVectorType, } from "./shap/shap.js";
|
|
24
|
-
export { Torch, torch_mlp_train, torch_mlp_predict, TorchTypes, TorchActivationType, TorchLossType, TorchOptimizerType, TorchMLPConfigType, TorchTrainConfigType, TorchTrainResultType, TorchTrainOutputType, TorchModelBlobType, } from "./torch/torch.js";
|
|
25
|
-
export { GP, gp_train, gp_predict, gp_predict_std, GPTypes, GPKernelType, GPConfigType, GPPredictResultType, GPModelBlobType, } from "./gp/gp.js";
|
|
26
|
-
export { VectorType as SharedVectorType, MatrixType as SharedMatrixType, ScalarObjectiveType as SharedScalarObjectiveType, VectorObjectiveType, LabelVectorType, } from "./types.js";
|
|
27
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;;;GASG;AAGH,OAAO,EACH,IAAI,EACJ,aAAa,EACb,SAAS,EACT,UAAU,EACV,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,cAAc,GACjB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACH,MAAM,EACN,eAAe,EACf,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,yBAAyB,EACzB,UAAU,EACV,qBAAqB,EACrB,eAAe,EACf,eAAe,EACf,qBAAqB,GACxB,MAAM,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B,qBAAqB,EACrB,YAAY,EACZ,iBAAiB,EACjB,oBAAoB,GACvB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACH,QAAQ,EACR,wBAAwB,EACxB,yBAAyB,EACzB,gBAAgB,EAChB,sBAAsB,EACtB,sBAAsB,EACtB,aAAa,EACb,kBAAkB,EAClB,qBAAqB,GACxB,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EACH,OAAO,EACP,uBAAuB,EACvB,eAAe,EACf,oBAAoB,EACpB,YAAY,EACZ,uBAAuB,EACvB,iBAAiB,EACjB,wBAAwB,EACxB,wBAAwB,EACxB,oBAAoB,GACvB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACH,IAAI,EACJ,0BAA0B,EAC1B,4BAA4B,EAC5B,mBAAmB,EACnB,uBAAuB,EACvB,SAAS,EACT,cAAc,EACd,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,GACnB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACH,KAAK,EACL,eAAe,EACf,iBAAiB,EACjB,UAAU,EACV,mBAAmB,EACnB,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,GACrB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACH,EAAE,EACF,QAAQ,EACR,UAAU,EACV,cAAc,EACd,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,eAAe,GAClB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACH,UAAU,IAAI,gBAAgB,EAC9B,UAAU,IAAI,gBAAgB,EAC9B,mBAAmB,IAAI,yBAAyB,EAChD,mBAAmB,EACnB,eAAe,GAClB,MAAM,YAAY,CAAC"}
|
package/dist/index.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2025 Elara AI Pty Ltd
|
|
3
|
-
* Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* East Data Science - ML and optimization platform functions for East.
|
|
7
|
-
*
|
|
8
|
-
* This package provides data science capabilities for East programs:
|
|
9
|
-
* - MADS: Derivative-free blackbox optimization (PyNomadBBO)
|
|
10
|
-
* - Optuna: Bayesian optimization with TPE sampler
|
|
11
|
-
* - SimAnneal: Discrete optimization with Simulated Annealing
|
|
12
|
-
*
|
|
13
|
-
* @packageDocumentation
|
|
14
|
-
*/
|
|
15
|
-
// MADS - Derivative-free optimization
|
|
16
|
-
export { MADS, mads_optimize, MADSTypes, VectorType, ScalarObjectiveType, MADSBoundsType, MADSConstraintType, MADSDirectionType, MADSConfigType, MADSResultType, } from "./mads/mads.js";
|
|
17
|
-
// Optuna - Bayesian optimization
|
|
18
|
-
export { Optuna, optuna_optimize, OptunaTypes, ParamValueType, ParamSpaceKindType, ParamSpaceType, NamedParamType, OptimizationDirectionType, PrunerType, OptunaStudyConfigType, TrialResultType, StudyResultType, ObjectiveFunctionType, } from "./optuna/optuna.js";
|
|
19
|
-
// SimAnneal - Discrete optimization
|
|
20
|
-
export { SimAnneal, simanneal_optimize, simanneal_optimize_permutation, simanneal_optimize_subset, SimAnnealTypes, DiscreteStateType, EnergyFunctionType, MoveFunctionType, PermutationEnergyType, SubsetEnergyType, AnnealConfigType, AnnealResultType, } from "./simanneal/simanneal.js";
|
|
21
|
-
// Sklearn - ML utilities
|
|
22
|
-
export { Sklearn, sklearn_train_test_split, sklearn_train_val_test_split, sklearn_standard_scaler_fit, sklearn_standard_scaler_transform, sklearn_min_max_scaler_fit, sklearn_min_max_scaler_transform, sklearn_compute_metrics, sklearn_compute_metrics_multi, sklearn_compute_classification_metrics, sklearn_compute_classification_metrics_multi, sklearn_regressor_chain_train, sklearn_regressor_chain_predict, SklearnTypes, SplitConfigType, SplitResultType, ThreeWaySplitConfigType, ThreeWaySplitResultType, SklearnModelBlobType, RegressorChainBaseConfigType, RegressorChainConfigType,
|
|
23
|
-
// Flexible metrics types
|
|
24
|
-
RegressionMetricType, MetricResultType, MetricsResultType, MetricAggregationType, MultiMetricsConfigType, MultiMetricResultType, MultiMetricsResultType, ClassificationMetricType, ClassificationAverageType, ClassificationMetricsConfigType, ClassificationMetricResultType, ClassificationMetricResultsType, MultiClassificationConfigType, MultiClassificationMetricResultType, MultiClassificationMetricResultsType, } from "./sklearn/sklearn.js";
|
|
25
|
-
// Scipy - Scientific computing
|
|
26
|
-
export { Scipy, scipy_curve_fit, scipy_stats_describe, scipy_stats_pearsonr, scipy_stats_spearmanr, scipy_interpolate_1d_fit, scipy_interpolate_1d_predict, scipy_optimize_minimize, scipy_optimize_minimize_quadratic, ScipyTypes, OptimizeMethodType, InterpolationKindType, OptimizeConfigType, InterpolateConfigType, ParamBoundsType, CustomCurveFunctionType, CurveFunctionType, CurveFitConfigType, QuadraticConfigType, StatsDescribeResultType, CorrelationResultType, CurveFitResultType, OptimizeResultType, ScipyModelBlobType, } from "./scipy/scipy.js";
|
|
27
|
-
// XGBoost - Gradient boosting
|
|
28
|
-
export { XGBoost, xgboost_train_regressor, xgboost_train_classifier, xgboost_predict, xgboost_predict_class, xgboost_predict_proba, XGBoostTypes, XGBoostConfigType, XGBoostModelBlobType, } from "./xgboost/xgboost.js";
|
|
29
|
-
// LightGBM - Fast gradient boosting
|
|
30
|
-
export { LightGBM, lightgbm_train_regressor, lightgbm_train_classifier, lightgbm_predict, lightgbm_predict_class, lightgbm_predict_proba, LightGBMTypes, LightGBMConfigType, LightGBMModelBlobType, } from "./lightgbm/lightgbm.js";
|
|
31
|
-
// NGBoost - Probabilistic gradient boosting
|
|
32
|
-
export { NGBoost, ngboost_train_regressor, ngboost_predict, ngboost_predict_dist, NGBoostTypes, NGBoostDistributionType, NGBoostConfigType, NGBoostPredictConfigType, NGBoostPredictResultType, NGBoostModelBlobType, } from "./ngboost/ngboost.js";
|
|
33
|
-
// SHAP - Model explainability
|
|
34
|
-
export { Shap, shap_tree_explainer_create, shap_kernel_explainer_create, shap_compute_values, shap_feature_importance, ShapTypes, ShapResultType, FeatureImportanceType, ShapModelBlobType, AnyModelBlobType, StringVectorType, } from "./shap/shap.js";
|
|
35
|
-
// Torch - PyTorch neural networks
|
|
36
|
-
export { Torch, torch_mlp_train, torch_mlp_predict, TorchTypes, TorchActivationType, TorchLossType, TorchOptimizerType, TorchMLPConfigType, TorchTrainConfigType, TorchTrainResultType, TorchTrainOutputType, TorchModelBlobType, } from "./torch/torch.js";
|
|
37
|
-
// GP - Gaussian Process regression
|
|
38
|
-
export { GP, gp_train, gp_predict, gp_predict_std, GPTypes, GPKernelType, GPConfigType, GPPredictResultType, GPModelBlobType, } from "./gp/gp.js";
|
|
39
|
-
// Shared types
|
|
40
|
-
export { VectorType as SharedVectorType, MatrixType as SharedMatrixType, ScalarObjectiveType as SharedScalarObjectiveType, VectorObjectiveType, LabelVectorType, } from "./types.js";
|
|
41
|
-
//# sourceMappingURL=index.js.map
|