@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.
- package/README.md +58 -1
- package/dist/src/alns/alns.d.ts +528 -0
- package/dist/src/alns/alns.d.ts.map +1 -0
- package/dist/src/alns/alns.js +238 -0
- package/dist/src/alns/alns.js.map +1 -0
- package/dist/src/google_or/google_or.d.ts +2422 -0
- package/dist/src/google_or/google_or.d.ts.map +1 -0
- package/dist/src/google_or/google_or.js +542 -0
- package/dist/src/google_or/google_or.js.map +1 -0
- package/dist/{gp → src/gp}/gp.d.ts +185 -136
- package/dist/src/gp/gp.d.ts.map +1 -0
- package/dist/{gp → src/gp}/gp.js +64 -12
- package/dist/src/gp/gp.js.map +1 -0
- package/dist/src/index.d.ts +34 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +57 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/lightgbm/lightgbm.d.ts +575 -0
- package/dist/src/lightgbm/lightgbm.d.ts.map +1 -0
- package/dist/{lightgbm → src/lightgbm}/lightgbm.js +104 -18
- package/dist/src/lightgbm/lightgbm.js.map +1 -0
- package/dist/src/lightning/lightning.d.ts +1594 -0
- package/dist/src/lightning/lightning.d.ts.map +1 -0
- package/dist/src/lightning/lightning.js +468 -0
- package/dist/src/lightning/lightning.js.map +1 -0
- package/dist/{mads → src/mads}/mads.d.ts +109 -112
- package/dist/src/mads/mads.d.ts.map +1 -0
- package/dist/{mads → src/mads}/mads.js +6 -8
- package/dist/src/mads/mads.js.map +1 -0
- package/dist/src/mapie/mapie.d.ts +3680 -0
- package/dist/src/mapie/mapie.d.ts.map +1 -0
- package/dist/src/mapie/mapie.js +616 -0
- package/dist/src/mapie/mapie.js.map +1 -0
- package/dist/{ngboost → src/ngboost}/ngboost.d.ts +192 -142
- package/dist/src/ngboost/ngboost.d.ts.map +1 -0
- package/dist/{ngboost → src/ngboost}/ngboost.js +67 -14
- package/dist/src/ngboost/ngboost.js.map +1 -0
- package/dist/src/optimization/optimization.d.ts +420 -0
- package/dist/src/optimization/optimization.d.ts.map +1 -0
- package/dist/src/optimization/optimization.js +257 -0
- package/dist/src/optimization/optimization.js.map +1 -0
- package/dist/{optuna → src/optuna}/optuna.d.ts +374 -314
- package/dist/src/optuna/optuna.d.ts.map +1 -0
- package/dist/{optuna → src/optuna}/optuna.js +2 -0
- package/dist/src/optuna/optuna.js.map +1 -0
- package/dist/src/pymc/pymc.d.ts +2932 -0
- package/dist/src/pymc/pymc.d.ts.map +1 -0
- package/dist/src/pymc/pymc.js +688 -0
- package/dist/src/pymc/pymc.js.map +1 -0
- package/dist/src/scipy/scipy.d.ts +2205 -0
- package/dist/src/scipy/scipy.d.ts.map +1 -0
- package/dist/src/scipy/scipy.js +884 -0
- package/dist/src/scipy/scipy.js.map +1 -0
- package/dist/src/shap/shap.d.ts +2988 -0
- package/dist/src/shap/shap.d.ts.map +1 -0
- package/dist/src/shap/shap.js +500 -0
- package/dist/src/shap/shap.js.map +1 -0
- package/dist/{simanneal → src/simanneal}/simanneal.d.ts +257 -160
- package/dist/src/simanneal/simanneal.d.ts.map +1 -0
- package/dist/{simanneal → src/simanneal}/simanneal.js +105 -8
- package/dist/src/simanneal/simanneal.js.map +1 -0
- package/dist/src/simulation/simulation.d.ts +431 -0
- package/dist/src/simulation/simulation.d.ts.map +1 -0
- package/dist/src/simulation/simulation.js +306 -0
- package/dist/src/simulation/simulation.js.map +1 -0
- package/dist/src/sklearn/sklearn.d.ts +6362 -0
- package/dist/src/sklearn/sklearn.d.ts.map +1 -0
- package/dist/src/sklearn/sklearn.js +1508 -0
- package/dist/src/sklearn/sklearn.js.map +1 -0
- package/dist/src/torch/torch.d.ts +1205 -0
- package/dist/src/torch/torch.d.ts.map +1 -0
- package/dist/{torch → src/torch}/torch.js +109 -18
- package/dist/src/torch/torch.js.map +1 -0
- package/dist/src/types.d.ts +43 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +44 -0
- package/dist/src/types.js.map +1 -0
- package/dist/src/xgboost/xgboost.d.ts +1424 -0
- package/dist/src/xgboost/xgboost.d.ts.map +1 -0
- package/dist/src/xgboost/xgboost.js +432 -0
- package/dist/src/xgboost/xgboost.js.map +1 -0
- package/package.json +12 -12
- package/dist/gp/gp.d.ts.map +0 -1
- 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.map +0 -1
- package/dist/mads/mads.d.ts.map +0 -1
- package/dist/mads/mads.js.map +0 -1
- package/dist/ngboost/ngboost.d.ts.map +0 -1
- package/dist/ngboost/ngboost.js.map +0 -1
- package/dist/optuna/optuna.d.ts.map +0 -1
- 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.map +0 -1
- 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.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/scipy/scipy.d.ts
DELETED
|
@@ -1,1260 +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
|
-
* SciPy platform functions for East.
|
|
7
|
-
*
|
|
8
|
-
* Provides scientific computing utilities: statistics, optimization,
|
|
9
|
-
* interpolation, and curve fitting.
|
|
10
|
-
*
|
|
11
|
-
* @packageDocumentation
|
|
12
|
-
*/
|
|
13
|
-
import { StructType, VariantType, OptionType, IntegerType, BooleanType, FloatType, StringType, BlobType, NullType, FunctionType } from "@elaraai/east";
|
|
14
|
-
export { VectorType, MatrixType, ScalarObjectiveType } from "../types.js";
|
|
15
|
-
/**
|
|
16
|
-
* Optimization method for scipy.optimize.minimize.
|
|
17
|
-
*/
|
|
18
|
-
export declare const OptimizeMethodType: VariantType<{
|
|
19
|
-
/** BFGS algorithm */
|
|
20
|
-
bfgs: NullType;
|
|
21
|
-
/** L-BFGS-B algorithm (default) */
|
|
22
|
-
l_bfgs_b: NullType;
|
|
23
|
-
/** Nelder-Mead simplex */
|
|
24
|
-
nelder_mead: NullType;
|
|
25
|
-
/** Powell's method */
|
|
26
|
-
powell: NullType;
|
|
27
|
-
/** Conjugate gradient */
|
|
28
|
-
cg: NullType;
|
|
29
|
-
}>;
|
|
30
|
-
/**
|
|
31
|
-
* Interpolation method for scipy.interpolate.interp1d.
|
|
32
|
-
*/
|
|
33
|
-
export declare const InterpolationKindType: VariantType<{
|
|
34
|
-
/** Linear interpolation (default) */
|
|
35
|
-
linear: NullType;
|
|
36
|
-
/** Cubic interpolation */
|
|
37
|
-
cubic: NullType;
|
|
38
|
-
/** Quadratic interpolation */
|
|
39
|
-
quadratic: NullType;
|
|
40
|
-
}>;
|
|
41
|
-
/**
|
|
42
|
-
* Configuration for scipy.optimize.minimize.
|
|
43
|
-
*/
|
|
44
|
-
export declare const OptimizeConfigType: StructType<{
|
|
45
|
-
/** Optimization method */
|
|
46
|
-
method: OptionType<VariantType<{
|
|
47
|
-
/** BFGS algorithm */
|
|
48
|
-
bfgs: NullType;
|
|
49
|
-
/** L-BFGS-B algorithm (default) */
|
|
50
|
-
l_bfgs_b: NullType;
|
|
51
|
-
/** Nelder-Mead simplex */
|
|
52
|
-
nelder_mead: NullType;
|
|
53
|
-
/** Powell's method */
|
|
54
|
-
powell: NullType;
|
|
55
|
-
/** Conjugate gradient */
|
|
56
|
-
cg: NullType;
|
|
57
|
-
}>>;
|
|
58
|
-
/** Maximum number of iterations */
|
|
59
|
-
max_iter: OptionType<IntegerType>;
|
|
60
|
-
/** Tolerance for convergence */
|
|
61
|
-
tol: OptionType<FloatType>;
|
|
62
|
-
}>;
|
|
63
|
-
/**
|
|
64
|
-
* Configuration for scipy.interpolate.interp1d.
|
|
65
|
-
*/
|
|
66
|
-
export declare const InterpolateConfigType: StructType<{
|
|
67
|
-
/** Interpolation method */
|
|
68
|
-
kind: OptionType<VariantType<{
|
|
69
|
-
/** Linear interpolation (default) */
|
|
70
|
-
linear: NullType;
|
|
71
|
-
/** Cubic interpolation */
|
|
72
|
-
cubic: NullType;
|
|
73
|
-
/** Quadratic interpolation */
|
|
74
|
-
quadratic: NullType;
|
|
75
|
-
}>>;
|
|
76
|
-
}>;
|
|
77
|
-
/**
|
|
78
|
-
* Parameter bounds for curve fitting.
|
|
79
|
-
*/
|
|
80
|
-
export declare const ParamBoundsType: StructType<{
|
|
81
|
-
/** Lower bounds for each parameter */
|
|
82
|
-
lower: import("@elaraai/east").ArrayType<FloatType>;
|
|
83
|
-
/** Upper bounds for each parameter */
|
|
84
|
-
upper: import("@elaraai/east").ArrayType<FloatType>;
|
|
85
|
-
}>;
|
|
86
|
-
/**
|
|
87
|
-
* Custom curve function type: (x: Float, params: Vector) -> Float
|
|
88
|
-
*/
|
|
89
|
-
export declare const CustomCurveFunctionType: FunctionType<[FloatType, import("@elaraai/east").ArrayType<FloatType>], FloatType>;
|
|
90
|
-
/**
|
|
91
|
-
* Curve function type for scipy_curve_fit.
|
|
92
|
-
*
|
|
93
|
-
* Includes built-in standard mathematical functions and a custom option
|
|
94
|
-
* for user-defined functions.
|
|
95
|
-
*/
|
|
96
|
-
export declare const CurveFunctionType: VariantType<{
|
|
97
|
-
/** y = a * exp(-b * x), 2 params: [a, b] */
|
|
98
|
-
exponential_decay: NullType;
|
|
99
|
-
/** y = a + b * exp(-c * x), 3 params: [a, b, c] */
|
|
100
|
-
exponential_with_offset: NullType;
|
|
101
|
-
/** y = a * exp(b * x), 2 params: [a, b] */
|
|
102
|
-
exponential_growth: NullType;
|
|
103
|
-
/** y = L / (1 + exp(-k * (x - x0))), 3 params: [L, k, x0] */
|
|
104
|
-
logistic: NullType;
|
|
105
|
-
/** y = a * exp(-b * exp(-c * x)), 3 params: [a, b, c] */
|
|
106
|
-
gompertz: NullType;
|
|
107
|
-
/** y = a * x^b, 2 params: [a, b] */
|
|
108
|
-
power_law: NullType;
|
|
109
|
-
/** y = a + b * x, 2 params: [a, b] */
|
|
110
|
-
linear: NullType;
|
|
111
|
-
/** y = a + b*x + c*x^2, 3 params: [a, b, c] */
|
|
112
|
-
quadratic: NullType;
|
|
113
|
-
/** y = a + b*x + c*x^2 + d*x^3, 4 params: [a, b, c, d] */
|
|
114
|
-
cubic: NullType;
|
|
115
|
-
/** Custom function provided by user */
|
|
116
|
-
custom: StructType<{
|
|
117
|
-
/** The curve function */
|
|
118
|
-
fn: FunctionType<[FloatType, import("@elaraai/east").ArrayType<FloatType>], FloatType>;
|
|
119
|
-
/** Number of parameters to optimize */
|
|
120
|
-
n_params: IntegerType;
|
|
121
|
-
/** Optional parameter bounds */
|
|
122
|
-
param_bounds: OptionType<StructType<{
|
|
123
|
-
/** Lower bounds for each parameter */
|
|
124
|
-
lower: import("@elaraai/east").ArrayType<FloatType>;
|
|
125
|
-
/** Upper bounds for each parameter */
|
|
126
|
-
upper: import("@elaraai/east").ArrayType<FloatType>;
|
|
127
|
-
}>>;
|
|
128
|
-
}>;
|
|
129
|
-
}>;
|
|
130
|
-
/**
|
|
131
|
-
* Configuration for curve fitting.
|
|
132
|
-
*/
|
|
133
|
-
export declare const CurveFitConfigType: StructType<{
|
|
134
|
-
/** Maximum number of function evaluations */
|
|
135
|
-
max_iter: OptionType<IntegerType>;
|
|
136
|
-
/** Initial guess for parameters */
|
|
137
|
-
initial_guess: OptionType<import("@elaraai/east").ArrayType<FloatType>>;
|
|
138
|
-
}>;
|
|
139
|
-
/**
|
|
140
|
-
* Configuration for quadratic optimization: f(x) = 0.5 * x'Ax + b'x + c
|
|
141
|
-
*/
|
|
142
|
-
export declare const QuadraticConfigType: StructType<{
|
|
143
|
-
/** Quadratic term (symmetric positive definite) */
|
|
144
|
-
A: import("@elaraai/east").ArrayType<import("@elaraai/east").ArrayType<FloatType>>;
|
|
145
|
-
/** Linear term */
|
|
146
|
-
b: import("@elaraai/east").ArrayType<FloatType>;
|
|
147
|
-
/** Constant term */
|
|
148
|
-
c: FloatType;
|
|
149
|
-
}>;
|
|
150
|
-
/**
|
|
151
|
-
* Descriptive statistics result.
|
|
152
|
-
*/
|
|
153
|
-
export declare const StatsDescribeResultType: StructType<{
|
|
154
|
-
/** Number of observations */
|
|
155
|
-
count: IntegerType;
|
|
156
|
-
/** Mean value */
|
|
157
|
-
mean: FloatType;
|
|
158
|
-
/** Variance */
|
|
159
|
-
variance: FloatType;
|
|
160
|
-
/** Skewness */
|
|
161
|
-
skewness: FloatType;
|
|
162
|
-
/** Kurtosis */
|
|
163
|
-
kurtosis: FloatType;
|
|
164
|
-
/** Minimum value */
|
|
165
|
-
min: FloatType;
|
|
166
|
-
/** Maximum value */
|
|
167
|
-
max: FloatType;
|
|
168
|
-
}>;
|
|
169
|
-
/**
|
|
170
|
-
* Robust statistics result (median-based, outlier-resistant).
|
|
171
|
-
*/
|
|
172
|
-
export declare const RobustStatsResultType: StructType<{
|
|
173
|
-
/** Median value */
|
|
174
|
-
median: FloatType;
|
|
175
|
-
/** Interquartile range (Q3 - Q1) */
|
|
176
|
-
iqr: FloatType;
|
|
177
|
-
/** Median absolute deviation */
|
|
178
|
-
mad: FloatType;
|
|
179
|
-
/** 25th percentile */
|
|
180
|
-
q1: FloatType;
|
|
181
|
-
/** 75th percentile */
|
|
182
|
-
q3: FloatType;
|
|
183
|
-
}>;
|
|
184
|
-
/**
|
|
185
|
-
* Correlation result (Pearson or Spearman).
|
|
186
|
-
*/
|
|
187
|
-
export declare const CorrelationResultType: StructType<{
|
|
188
|
-
/** Correlation coefficient */
|
|
189
|
-
correlation: FloatType;
|
|
190
|
-
/** P-value for hypothesis test */
|
|
191
|
-
pvalue: FloatType;
|
|
192
|
-
}>;
|
|
193
|
-
/**
|
|
194
|
-
* Curve fitting result.
|
|
195
|
-
*/
|
|
196
|
-
export declare const CurveFitResultType: StructType<{
|
|
197
|
-
/** Fitted parameters */
|
|
198
|
-
params: import("@elaraai/east").ArrayType<FloatType>;
|
|
199
|
-
/** Whether fit converged */
|
|
200
|
-
success: BooleanType;
|
|
201
|
-
/** Coefficient of determination (R²) */
|
|
202
|
-
r_squared: FloatType;
|
|
203
|
-
}>;
|
|
204
|
-
/**
|
|
205
|
-
* Optimization result.
|
|
206
|
-
*/
|
|
207
|
-
export declare const OptimizeResultType: StructType<{
|
|
208
|
-
/** Optimal parameters */
|
|
209
|
-
x: import("@elaraai/east").ArrayType<FloatType>;
|
|
210
|
-
/** Function value at optimum */
|
|
211
|
-
fun: FloatType;
|
|
212
|
-
/** Whether optimization succeeded */
|
|
213
|
-
success: BooleanType;
|
|
214
|
-
/** Number of iterations */
|
|
215
|
-
nit: IntegerType;
|
|
216
|
-
}>;
|
|
217
|
-
/**
|
|
218
|
-
* Model blob type for scipy interpolators.
|
|
219
|
-
*/
|
|
220
|
-
export declare const ScipyModelBlobType: VariantType<{
|
|
221
|
-
/** 1D interpolator (cloudpickle serialized) */
|
|
222
|
-
scipy_interp_1d: StructType<{
|
|
223
|
-
/** Serialized interpolator */
|
|
224
|
-
data: BlobType;
|
|
225
|
-
/** Interpolation method used */
|
|
226
|
-
kind: VariantType<{
|
|
227
|
-
/** Linear interpolation (default) */
|
|
228
|
-
linear: NullType;
|
|
229
|
-
/** Cubic interpolation */
|
|
230
|
-
cubic: NullType;
|
|
231
|
-
/** Quadratic interpolation */
|
|
232
|
-
quadratic: NullType;
|
|
233
|
-
}>;
|
|
234
|
-
}>;
|
|
235
|
-
}>;
|
|
236
|
-
/**
|
|
237
|
-
* Bounds for dual annealing optimization (required).
|
|
238
|
-
*/
|
|
239
|
-
export declare const DualAnnealBoundsType: StructType<{
|
|
240
|
-
/** Lower bounds for each variable */
|
|
241
|
-
lower: import("@elaraai/east").ArrayType<FloatType>;
|
|
242
|
-
/** Upper bounds for each variable */
|
|
243
|
-
upper: import("@elaraai/east").ArrayType<FloatType>;
|
|
244
|
-
}>;
|
|
245
|
-
/**
|
|
246
|
-
* Configuration for scipy.optimize.dual_annealing.
|
|
247
|
-
*
|
|
248
|
-
* Combines generalized simulated annealing with local search.
|
|
249
|
-
* Much faster than pure Python simanneal for continuous optimization.
|
|
250
|
-
*/
|
|
251
|
-
export declare const DualAnnealConfigType: StructType<{
|
|
252
|
-
/** Maximum function evaluations (default: 1000) */
|
|
253
|
-
maxfun: OptionType<IntegerType>;
|
|
254
|
-
/** Maximum iterations (default: 1000) */
|
|
255
|
-
maxiter: OptionType<IntegerType>;
|
|
256
|
-
/** Initial temperature (default: 5230) */
|
|
257
|
-
initial_temp: OptionType<FloatType>;
|
|
258
|
-
/** Temperature restart threshold (default: 2e-5) */
|
|
259
|
-
restart_temp_ratio: OptionType<FloatType>;
|
|
260
|
-
/** Visiting distribution parameter (default: 2.62) */
|
|
261
|
-
visit: OptionType<FloatType>;
|
|
262
|
-
/** Acceptance distribution parameter (default: -5.0) */
|
|
263
|
-
accept: OptionType<FloatType>;
|
|
264
|
-
/** Random seed for reproducibility */
|
|
265
|
-
seed: OptionType<IntegerType>;
|
|
266
|
-
/** Disable local search for speed (default: false) */
|
|
267
|
-
no_local_search: OptionType<BooleanType>;
|
|
268
|
-
}>;
|
|
269
|
-
/**
|
|
270
|
-
* Result from dual annealing optimization.
|
|
271
|
-
*/
|
|
272
|
-
export declare const DualAnnealResultType: StructType<{
|
|
273
|
-
/** Best solution found */
|
|
274
|
-
x: import("@elaraai/east").ArrayType<FloatType>;
|
|
275
|
-
/** Best objective value */
|
|
276
|
-
fun: FloatType;
|
|
277
|
-
/** Number of function evaluations */
|
|
278
|
-
nfev: IntegerType;
|
|
279
|
-
/** Number of iterations */
|
|
280
|
-
nit: IntegerType;
|
|
281
|
-
/** Whether optimization succeeded */
|
|
282
|
-
success: BooleanType;
|
|
283
|
-
/** Status message */
|
|
284
|
-
message: StringType;
|
|
285
|
-
}>;
|
|
286
|
-
/**
|
|
287
|
-
* Fit a parametric curve to data using nonlinear least squares.
|
|
288
|
-
*/
|
|
289
|
-
export declare const scipy_curve_fit: import("@elaraai/east").PlatformDefinition<[VariantType<{
|
|
290
|
-
/** y = a * exp(-b * x), 2 params: [a, b] */
|
|
291
|
-
exponential_decay: NullType;
|
|
292
|
-
/** y = a + b * exp(-c * x), 3 params: [a, b, c] */
|
|
293
|
-
exponential_with_offset: NullType;
|
|
294
|
-
/** y = a * exp(b * x), 2 params: [a, b] */
|
|
295
|
-
exponential_growth: NullType;
|
|
296
|
-
/** y = L / (1 + exp(-k * (x - x0))), 3 params: [L, k, x0] */
|
|
297
|
-
logistic: NullType;
|
|
298
|
-
/** y = a * exp(-b * exp(-c * x)), 3 params: [a, b, c] */
|
|
299
|
-
gompertz: NullType;
|
|
300
|
-
/** y = a * x^b, 2 params: [a, b] */
|
|
301
|
-
power_law: NullType;
|
|
302
|
-
/** y = a + b * x, 2 params: [a, b] */
|
|
303
|
-
linear: NullType;
|
|
304
|
-
/** y = a + b*x + c*x^2, 3 params: [a, b, c] */
|
|
305
|
-
quadratic: NullType;
|
|
306
|
-
/** y = a + b*x + c*x^2 + d*x^3, 4 params: [a, b, c, d] */
|
|
307
|
-
cubic: NullType;
|
|
308
|
-
/** Custom function provided by user */
|
|
309
|
-
custom: StructType<{
|
|
310
|
-
/** The curve function */
|
|
311
|
-
fn: FunctionType<[FloatType, import("@elaraai/east").ArrayType<FloatType>], FloatType>;
|
|
312
|
-
/** Number of parameters to optimize */
|
|
313
|
-
n_params: IntegerType;
|
|
314
|
-
/** Optional parameter bounds */
|
|
315
|
-
param_bounds: OptionType<StructType<{
|
|
316
|
-
/** Lower bounds for each parameter */
|
|
317
|
-
lower: import("@elaraai/east").ArrayType<FloatType>;
|
|
318
|
-
/** Upper bounds for each parameter */
|
|
319
|
-
upper: import("@elaraai/east").ArrayType<FloatType>;
|
|
320
|
-
}>>;
|
|
321
|
-
}>;
|
|
322
|
-
}>, import("@elaraai/east").ArrayType<FloatType>, import("@elaraai/east").ArrayType<FloatType>, StructType<{
|
|
323
|
-
/** Maximum number of function evaluations */
|
|
324
|
-
max_iter: OptionType<IntegerType>;
|
|
325
|
-
/** Initial guess for parameters */
|
|
326
|
-
initial_guess: OptionType<import("@elaraai/east").ArrayType<FloatType>>;
|
|
327
|
-
}>], StructType<{
|
|
328
|
-
/** Fitted parameters */
|
|
329
|
-
params: import("@elaraai/east").ArrayType<FloatType>;
|
|
330
|
-
/** Whether fit converged */
|
|
331
|
-
success: BooleanType;
|
|
332
|
-
/** Coefficient of determination (R²) */
|
|
333
|
-
r_squared: FloatType;
|
|
334
|
-
}>>;
|
|
335
|
-
/**
|
|
336
|
-
* Compute descriptive statistics for data.
|
|
337
|
-
*/
|
|
338
|
-
export declare const scipy_stats_describe: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>], StructType<{
|
|
339
|
-
/** Number of observations */
|
|
340
|
-
count: IntegerType;
|
|
341
|
-
/** Mean value */
|
|
342
|
-
mean: FloatType;
|
|
343
|
-
/** Variance */
|
|
344
|
-
variance: FloatType;
|
|
345
|
-
/** Skewness */
|
|
346
|
-
skewness: FloatType;
|
|
347
|
-
/** Kurtosis */
|
|
348
|
-
kurtosis: FloatType;
|
|
349
|
-
/** Minimum value */
|
|
350
|
-
min: FloatType;
|
|
351
|
-
/** Maximum value */
|
|
352
|
-
max: FloatType;
|
|
353
|
-
}>>;
|
|
354
|
-
/**
|
|
355
|
-
* Compute Pearson correlation coefficient.
|
|
356
|
-
*/
|
|
357
|
-
export declare const scipy_stats_pearsonr: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>, import("@elaraai/east").ArrayType<FloatType>], StructType<{
|
|
358
|
-
/** Correlation coefficient */
|
|
359
|
-
correlation: FloatType;
|
|
360
|
-
/** P-value for hypothesis test */
|
|
361
|
-
pvalue: FloatType;
|
|
362
|
-
}>>;
|
|
363
|
-
/**
|
|
364
|
-
* Compute Spearman rank correlation.
|
|
365
|
-
*/
|
|
366
|
-
export declare const scipy_stats_spearmanr: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>, import("@elaraai/east").ArrayType<FloatType>], StructType<{
|
|
367
|
-
/** Correlation coefficient */
|
|
368
|
-
correlation: FloatType;
|
|
369
|
-
/** P-value for hypothesis test */
|
|
370
|
-
pvalue: FloatType;
|
|
371
|
-
}>>;
|
|
372
|
-
/**
|
|
373
|
-
* Compute percentiles of data.
|
|
374
|
-
* @param data - Input data vector
|
|
375
|
-
* @param percentiles - Percentile values to compute (0-100)
|
|
376
|
-
* @returns Values at the specified percentiles
|
|
377
|
-
*/
|
|
378
|
-
export declare const scipy_stats_percentile: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>, import("@elaraai/east").ArrayType<FloatType>], import("@elaraai/east").ArrayType<FloatType>>;
|
|
379
|
-
/**
|
|
380
|
-
* Compute interquartile range (Q3 - Q1).
|
|
381
|
-
*/
|
|
382
|
-
export declare const scipy_stats_iqr: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>], FloatType>;
|
|
383
|
-
/**
|
|
384
|
-
* Compute median value.
|
|
385
|
-
*/
|
|
386
|
-
export declare const scipy_stats_median: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>], FloatType>;
|
|
387
|
-
/**
|
|
388
|
-
* Compute median absolute deviation (robust std estimate).
|
|
389
|
-
*/
|
|
390
|
-
export declare const scipy_stats_mad: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>], FloatType>;
|
|
391
|
-
/**
|
|
392
|
-
* Compute robust statistics in one call (median, iqr, mad, q1, q3).
|
|
393
|
-
*/
|
|
394
|
-
export declare const scipy_stats_robust: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>], StructType<{
|
|
395
|
-
/** Median value */
|
|
396
|
-
median: FloatType;
|
|
397
|
-
/** Interquartile range (Q3 - Q1) */
|
|
398
|
-
iqr: FloatType;
|
|
399
|
-
/** Median absolute deviation */
|
|
400
|
-
mad: FloatType;
|
|
401
|
-
/** 25th percentile */
|
|
402
|
-
q1: FloatType;
|
|
403
|
-
/** 75th percentile */
|
|
404
|
-
q3: FloatType;
|
|
405
|
-
}>>;
|
|
406
|
-
/**
|
|
407
|
-
* Fit 1D interpolator to data.
|
|
408
|
-
*/
|
|
409
|
-
export declare const scipy_interpolate_1d_fit: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>, import("@elaraai/east").ArrayType<FloatType>, StructType<{
|
|
410
|
-
/** Interpolation method */
|
|
411
|
-
kind: OptionType<VariantType<{
|
|
412
|
-
/** Linear interpolation (default) */
|
|
413
|
-
linear: NullType;
|
|
414
|
-
/** Cubic interpolation */
|
|
415
|
-
cubic: NullType;
|
|
416
|
-
/** Quadratic interpolation */
|
|
417
|
-
quadratic: NullType;
|
|
418
|
-
}>>;
|
|
419
|
-
}>], VariantType<{
|
|
420
|
-
/** 1D interpolator (cloudpickle serialized) */
|
|
421
|
-
scipy_interp_1d: StructType<{
|
|
422
|
-
/** Serialized interpolator */
|
|
423
|
-
data: BlobType;
|
|
424
|
-
/** Interpolation method used */
|
|
425
|
-
kind: VariantType<{
|
|
426
|
-
/** Linear interpolation (default) */
|
|
427
|
-
linear: NullType;
|
|
428
|
-
/** Cubic interpolation */
|
|
429
|
-
cubic: NullType;
|
|
430
|
-
/** Quadratic interpolation */
|
|
431
|
-
quadratic: NullType;
|
|
432
|
-
}>;
|
|
433
|
-
}>;
|
|
434
|
-
}>>;
|
|
435
|
-
/**
|
|
436
|
-
* Evaluate 1D interpolator at given points.
|
|
437
|
-
*/
|
|
438
|
-
export declare const scipy_interpolate_1d_predict: import("@elaraai/east").PlatformDefinition<[VariantType<{
|
|
439
|
-
/** 1D interpolator (cloudpickle serialized) */
|
|
440
|
-
scipy_interp_1d: StructType<{
|
|
441
|
-
/** Serialized interpolator */
|
|
442
|
-
data: BlobType;
|
|
443
|
-
/** Interpolation method used */
|
|
444
|
-
kind: VariantType<{
|
|
445
|
-
/** Linear interpolation (default) */
|
|
446
|
-
linear: NullType;
|
|
447
|
-
/** Cubic interpolation */
|
|
448
|
-
cubic: NullType;
|
|
449
|
-
/** Quadratic interpolation */
|
|
450
|
-
quadratic: NullType;
|
|
451
|
-
}>;
|
|
452
|
-
}>;
|
|
453
|
-
}>, import("@elaraai/east").ArrayType<FloatType>], import("@elaraai/east").ArrayType<FloatType>>;
|
|
454
|
-
/**
|
|
455
|
-
* Minimize a scalar function using scipy.optimize.minimize.
|
|
456
|
-
*/
|
|
457
|
-
export declare const scipy_optimize_minimize: import("@elaraai/east").PlatformDefinition<[FunctionType<[import("@elaraai/east").ArrayType<FloatType>], FloatType>, import("@elaraai/east").ArrayType<FloatType>, StructType<{
|
|
458
|
-
/** Optimization method */
|
|
459
|
-
method: OptionType<VariantType<{
|
|
460
|
-
/** BFGS algorithm */
|
|
461
|
-
bfgs: NullType;
|
|
462
|
-
/** L-BFGS-B algorithm (default) */
|
|
463
|
-
l_bfgs_b: NullType;
|
|
464
|
-
/** Nelder-Mead simplex */
|
|
465
|
-
nelder_mead: NullType;
|
|
466
|
-
/** Powell's method */
|
|
467
|
-
powell: NullType;
|
|
468
|
-
/** Conjugate gradient */
|
|
469
|
-
cg: NullType;
|
|
470
|
-
}>>;
|
|
471
|
-
/** Maximum number of iterations */
|
|
472
|
-
max_iter: OptionType<IntegerType>;
|
|
473
|
-
/** Tolerance for convergence */
|
|
474
|
-
tol: OptionType<FloatType>;
|
|
475
|
-
}>], StructType<{
|
|
476
|
-
/** Optimal parameters */
|
|
477
|
-
x: import("@elaraai/east").ArrayType<FloatType>;
|
|
478
|
-
/** Function value at optimum */
|
|
479
|
-
fun: FloatType;
|
|
480
|
-
/** Whether optimization succeeded */
|
|
481
|
-
success: BooleanType;
|
|
482
|
-
/** Number of iterations */
|
|
483
|
-
nit: IntegerType;
|
|
484
|
-
}>>;
|
|
485
|
-
/**
|
|
486
|
-
* Minimize a quadratic function with analytical gradient.
|
|
487
|
-
*/
|
|
488
|
-
export declare const scipy_optimize_minimize_quadratic: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>, StructType<{
|
|
489
|
-
/** Quadratic term (symmetric positive definite) */
|
|
490
|
-
A: import("@elaraai/east").ArrayType<import("@elaraai/east").ArrayType<FloatType>>;
|
|
491
|
-
/** Linear term */
|
|
492
|
-
b: import("@elaraai/east").ArrayType<FloatType>;
|
|
493
|
-
/** Constant term */
|
|
494
|
-
c: FloatType;
|
|
495
|
-
}>, StructType<{
|
|
496
|
-
/** Optimization method */
|
|
497
|
-
method: OptionType<VariantType<{
|
|
498
|
-
/** BFGS algorithm */
|
|
499
|
-
bfgs: NullType;
|
|
500
|
-
/** L-BFGS-B algorithm (default) */
|
|
501
|
-
l_bfgs_b: NullType;
|
|
502
|
-
/** Nelder-Mead simplex */
|
|
503
|
-
nelder_mead: NullType;
|
|
504
|
-
/** Powell's method */
|
|
505
|
-
powell: NullType;
|
|
506
|
-
/** Conjugate gradient */
|
|
507
|
-
cg: NullType;
|
|
508
|
-
}>>;
|
|
509
|
-
/** Maximum number of iterations */
|
|
510
|
-
max_iter: OptionType<IntegerType>;
|
|
511
|
-
/** Tolerance for convergence */
|
|
512
|
-
tol: OptionType<FloatType>;
|
|
513
|
-
}>], StructType<{
|
|
514
|
-
/** Optimal parameters */
|
|
515
|
-
x: import("@elaraai/east").ArrayType<FloatType>;
|
|
516
|
-
/** Function value at optimum */
|
|
517
|
-
fun: FloatType;
|
|
518
|
-
/** Whether optimization succeeded */
|
|
519
|
-
success: BooleanType;
|
|
520
|
-
/** Number of iterations */
|
|
521
|
-
nit: IntegerType;
|
|
522
|
-
}>>;
|
|
523
|
-
/**
|
|
524
|
-
* Global optimization using dual annealing.
|
|
525
|
-
*
|
|
526
|
-
* Combines generalized simulated annealing with local search.
|
|
527
|
-
* Much faster than simanneal for continuous optimization problems.
|
|
528
|
-
* Effective for non-convex problems with many local minima.
|
|
529
|
-
*
|
|
530
|
-
* @param objective_fn - Function to minimize: Vector -> Float
|
|
531
|
-
* @param x0 - Optional initial guess (if none, starts from bounds center)
|
|
532
|
-
* @param bounds - Required bounds for all variables
|
|
533
|
-
* @param config - Algorithm configuration
|
|
534
|
-
* @returns Optimization result with best solution
|
|
535
|
-
*/
|
|
536
|
-
export declare const scipy_optimize_dual_annealing: import("@elaraai/east").PlatformDefinition<[FunctionType<[import("@elaraai/east").ArrayType<FloatType>], FloatType>, OptionType<import("@elaraai/east").ArrayType<FloatType>>, StructType<{
|
|
537
|
-
/** Lower bounds for each variable */
|
|
538
|
-
lower: import("@elaraai/east").ArrayType<FloatType>;
|
|
539
|
-
/** Upper bounds for each variable */
|
|
540
|
-
upper: import("@elaraai/east").ArrayType<FloatType>;
|
|
541
|
-
}>, StructType<{
|
|
542
|
-
/** Maximum function evaluations (default: 1000) */
|
|
543
|
-
maxfun: OptionType<IntegerType>;
|
|
544
|
-
/** Maximum iterations (default: 1000) */
|
|
545
|
-
maxiter: OptionType<IntegerType>;
|
|
546
|
-
/** Initial temperature (default: 5230) */
|
|
547
|
-
initial_temp: OptionType<FloatType>;
|
|
548
|
-
/** Temperature restart threshold (default: 2e-5) */
|
|
549
|
-
restart_temp_ratio: OptionType<FloatType>;
|
|
550
|
-
/** Visiting distribution parameter (default: 2.62) */
|
|
551
|
-
visit: OptionType<FloatType>;
|
|
552
|
-
/** Acceptance distribution parameter (default: -5.0) */
|
|
553
|
-
accept: OptionType<FloatType>;
|
|
554
|
-
/** Random seed for reproducibility */
|
|
555
|
-
seed: OptionType<IntegerType>;
|
|
556
|
-
/** Disable local search for speed (default: false) */
|
|
557
|
-
no_local_search: OptionType<BooleanType>;
|
|
558
|
-
}>], StructType<{
|
|
559
|
-
/** Best solution found */
|
|
560
|
-
x: import("@elaraai/east").ArrayType<FloatType>;
|
|
561
|
-
/** Best objective value */
|
|
562
|
-
fun: FloatType;
|
|
563
|
-
/** Number of function evaluations */
|
|
564
|
-
nfev: IntegerType;
|
|
565
|
-
/** Number of iterations */
|
|
566
|
-
nit: IntegerType;
|
|
567
|
-
/** Whether optimization succeeded */
|
|
568
|
-
success: BooleanType;
|
|
569
|
-
/** Status message */
|
|
570
|
-
message: StringType;
|
|
571
|
-
}>>;
|
|
572
|
-
/**
|
|
573
|
-
* Type definitions for scipy functions.
|
|
574
|
-
*/
|
|
575
|
-
export declare const ScipyTypes: {
|
|
576
|
-
readonly VectorType: import("@elaraai/east").ArrayType<FloatType>;
|
|
577
|
-
readonly MatrixType: import("@elaraai/east").ArrayType<import("@elaraai/east").ArrayType<FloatType>>;
|
|
578
|
-
readonly ScalarObjectiveType: FunctionType<[import("@elaraai/east").ArrayType<FloatType>], FloatType>;
|
|
579
|
-
readonly OptimizeMethodType: VariantType<{
|
|
580
|
-
/** BFGS algorithm */
|
|
581
|
-
bfgs: NullType;
|
|
582
|
-
/** L-BFGS-B algorithm (default) */
|
|
583
|
-
l_bfgs_b: NullType;
|
|
584
|
-
/** Nelder-Mead simplex */
|
|
585
|
-
nelder_mead: NullType;
|
|
586
|
-
/** Powell's method */
|
|
587
|
-
powell: NullType;
|
|
588
|
-
/** Conjugate gradient */
|
|
589
|
-
cg: NullType;
|
|
590
|
-
}>;
|
|
591
|
-
readonly InterpolationKindType: VariantType<{
|
|
592
|
-
/** Linear interpolation (default) */
|
|
593
|
-
linear: NullType;
|
|
594
|
-
/** Cubic interpolation */
|
|
595
|
-
cubic: NullType;
|
|
596
|
-
/** Quadratic interpolation */
|
|
597
|
-
quadratic: NullType;
|
|
598
|
-
}>;
|
|
599
|
-
readonly OptimizeConfigType: StructType<{
|
|
600
|
-
/** Optimization method */
|
|
601
|
-
method: OptionType<VariantType<{
|
|
602
|
-
/** BFGS algorithm */
|
|
603
|
-
bfgs: NullType;
|
|
604
|
-
/** L-BFGS-B algorithm (default) */
|
|
605
|
-
l_bfgs_b: NullType;
|
|
606
|
-
/** Nelder-Mead simplex */
|
|
607
|
-
nelder_mead: NullType;
|
|
608
|
-
/** Powell's method */
|
|
609
|
-
powell: NullType;
|
|
610
|
-
/** Conjugate gradient */
|
|
611
|
-
cg: NullType;
|
|
612
|
-
}>>;
|
|
613
|
-
/** Maximum number of iterations */
|
|
614
|
-
max_iter: OptionType<IntegerType>;
|
|
615
|
-
/** Tolerance for convergence */
|
|
616
|
-
tol: OptionType<FloatType>;
|
|
617
|
-
}>;
|
|
618
|
-
readonly InterpolateConfigType: StructType<{
|
|
619
|
-
/** Interpolation method */
|
|
620
|
-
kind: OptionType<VariantType<{
|
|
621
|
-
/** Linear interpolation (default) */
|
|
622
|
-
linear: NullType;
|
|
623
|
-
/** Cubic interpolation */
|
|
624
|
-
cubic: NullType;
|
|
625
|
-
/** Quadratic interpolation */
|
|
626
|
-
quadratic: NullType;
|
|
627
|
-
}>>;
|
|
628
|
-
}>;
|
|
629
|
-
readonly ParamBoundsType: StructType<{
|
|
630
|
-
/** Lower bounds for each parameter */
|
|
631
|
-
lower: import("@elaraai/east").ArrayType<FloatType>;
|
|
632
|
-
/** Upper bounds for each parameter */
|
|
633
|
-
upper: import("@elaraai/east").ArrayType<FloatType>;
|
|
634
|
-
}>;
|
|
635
|
-
readonly CustomCurveFunctionType: FunctionType<[FloatType, import("@elaraai/east").ArrayType<FloatType>], FloatType>;
|
|
636
|
-
readonly CurveFunctionType: VariantType<{
|
|
637
|
-
/** y = a * exp(-b * x), 2 params: [a, b] */
|
|
638
|
-
exponential_decay: NullType;
|
|
639
|
-
/** y = a + b * exp(-c * x), 3 params: [a, b, c] */
|
|
640
|
-
exponential_with_offset: NullType;
|
|
641
|
-
/** y = a * exp(b * x), 2 params: [a, b] */
|
|
642
|
-
exponential_growth: NullType;
|
|
643
|
-
/** y = L / (1 + exp(-k * (x - x0))), 3 params: [L, k, x0] */
|
|
644
|
-
logistic: NullType;
|
|
645
|
-
/** y = a * exp(-b * exp(-c * x)), 3 params: [a, b, c] */
|
|
646
|
-
gompertz: NullType;
|
|
647
|
-
/** y = a * x^b, 2 params: [a, b] */
|
|
648
|
-
power_law: NullType;
|
|
649
|
-
/** y = a + b * x, 2 params: [a, b] */
|
|
650
|
-
linear: NullType;
|
|
651
|
-
/** y = a + b*x + c*x^2, 3 params: [a, b, c] */
|
|
652
|
-
quadratic: NullType;
|
|
653
|
-
/** y = a + b*x + c*x^2 + d*x^3, 4 params: [a, b, c, d] */
|
|
654
|
-
cubic: NullType;
|
|
655
|
-
/** Custom function provided by user */
|
|
656
|
-
custom: StructType<{
|
|
657
|
-
/** The curve function */
|
|
658
|
-
fn: FunctionType<[FloatType, import("@elaraai/east").ArrayType<FloatType>], FloatType>;
|
|
659
|
-
/** Number of parameters to optimize */
|
|
660
|
-
n_params: IntegerType;
|
|
661
|
-
/** Optional parameter bounds */
|
|
662
|
-
param_bounds: OptionType<StructType<{
|
|
663
|
-
/** Lower bounds for each parameter */
|
|
664
|
-
lower: import("@elaraai/east").ArrayType<FloatType>;
|
|
665
|
-
/** Upper bounds for each parameter */
|
|
666
|
-
upper: import("@elaraai/east").ArrayType<FloatType>;
|
|
667
|
-
}>>;
|
|
668
|
-
}>;
|
|
669
|
-
}>;
|
|
670
|
-
readonly CurveFitConfigType: StructType<{
|
|
671
|
-
/** Maximum number of function evaluations */
|
|
672
|
-
max_iter: OptionType<IntegerType>;
|
|
673
|
-
/** Initial guess for parameters */
|
|
674
|
-
initial_guess: OptionType<import("@elaraai/east").ArrayType<FloatType>>;
|
|
675
|
-
}>;
|
|
676
|
-
readonly QuadraticConfigType: StructType<{
|
|
677
|
-
/** Quadratic term (symmetric positive definite) */
|
|
678
|
-
A: import("@elaraai/east").ArrayType<import("@elaraai/east").ArrayType<FloatType>>;
|
|
679
|
-
/** Linear term */
|
|
680
|
-
b: import("@elaraai/east").ArrayType<FloatType>;
|
|
681
|
-
/** Constant term */
|
|
682
|
-
c: FloatType;
|
|
683
|
-
}>;
|
|
684
|
-
readonly StatsDescribeResultType: StructType<{
|
|
685
|
-
/** Number of observations */
|
|
686
|
-
count: IntegerType;
|
|
687
|
-
/** Mean value */
|
|
688
|
-
mean: FloatType;
|
|
689
|
-
/** Variance */
|
|
690
|
-
variance: FloatType;
|
|
691
|
-
/** Skewness */
|
|
692
|
-
skewness: FloatType;
|
|
693
|
-
/** Kurtosis */
|
|
694
|
-
kurtosis: FloatType;
|
|
695
|
-
/** Minimum value */
|
|
696
|
-
min: FloatType;
|
|
697
|
-
/** Maximum value */
|
|
698
|
-
max: FloatType;
|
|
699
|
-
}>;
|
|
700
|
-
readonly RobustStatsResultType: StructType<{
|
|
701
|
-
/** Median value */
|
|
702
|
-
median: FloatType;
|
|
703
|
-
/** Interquartile range (Q3 - Q1) */
|
|
704
|
-
iqr: FloatType;
|
|
705
|
-
/** Median absolute deviation */
|
|
706
|
-
mad: FloatType;
|
|
707
|
-
/** 25th percentile */
|
|
708
|
-
q1: FloatType;
|
|
709
|
-
/** 75th percentile */
|
|
710
|
-
q3: FloatType;
|
|
711
|
-
}>;
|
|
712
|
-
readonly CorrelationResultType: StructType<{
|
|
713
|
-
/** Correlation coefficient */
|
|
714
|
-
correlation: FloatType;
|
|
715
|
-
/** P-value for hypothesis test */
|
|
716
|
-
pvalue: FloatType;
|
|
717
|
-
}>;
|
|
718
|
-
readonly CurveFitResultType: StructType<{
|
|
719
|
-
/** Fitted parameters */
|
|
720
|
-
params: import("@elaraai/east").ArrayType<FloatType>;
|
|
721
|
-
/** Whether fit converged */
|
|
722
|
-
success: BooleanType;
|
|
723
|
-
/** Coefficient of determination (R²) */
|
|
724
|
-
r_squared: FloatType;
|
|
725
|
-
}>;
|
|
726
|
-
readonly OptimizeResultType: StructType<{
|
|
727
|
-
/** Optimal parameters */
|
|
728
|
-
x: import("@elaraai/east").ArrayType<FloatType>;
|
|
729
|
-
/** Function value at optimum */
|
|
730
|
-
fun: FloatType;
|
|
731
|
-
/** Whether optimization succeeded */
|
|
732
|
-
success: BooleanType;
|
|
733
|
-
/** Number of iterations */
|
|
734
|
-
nit: IntegerType;
|
|
735
|
-
}>;
|
|
736
|
-
readonly ModelBlobType: VariantType<{
|
|
737
|
-
/** 1D interpolator (cloudpickle serialized) */
|
|
738
|
-
scipy_interp_1d: StructType<{
|
|
739
|
-
/** Serialized interpolator */
|
|
740
|
-
data: BlobType;
|
|
741
|
-
/** Interpolation method used */
|
|
742
|
-
kind: VariantType<{
|
|
743
|
-
/** Linear interpolation (default) */
|
|
744
|
-
linear: NullType;
|
|
745
|
-
/** Cubic interpolation */
|
|
746
|
-
cubic: NullType;
|
|
747
|
-
/** Quadratic interpolation */
|
|
748
|
-
quadratic: NullType;
|
|
749
|
-
}>;
|
|
750
|
-
}>;
|
|
751
|
-
}>;
|
|
752
|
-
readonly DualAnnealBoundsType: StructType<{
|
|
753
|
-
/** Lower bounds for each variable */
|
|
754
|
-
lower: import("@elaraai/east").ArrayType<FloatType>;
|
|
755
|
-
/** Upper bounds for each variable */
|
|
756
|
-
upper: import("@elaraai/east").ArrayType<FloatType>;
|
|
757
|
-
}>;
|
|
758
|
-
readonly DualAnnealConfigType: StructType<{
|
|
759
|
-
/** Maximum function evaluations (default: 1000) */
|
|
760
|
-
maxfun: OptionType<IntegerType>;
|
|
761
|
-
/** Maximum iterations (default: 1000) */
|
|
762
|
-
maxiter: OptionType<IntegerType>;
|
|
763
|
-
/** Initial temperature (default: 5230) */
|
|
764
|
-
initial_temp: OptionType<FloatType>;
|
|
765
|
-
/** Temperature restart threshold (default: 2e-5) */
|
|
766
|
-
restart_temp_ratio: OptionType<FloatType>;
|
|
767
|
-
/** Visiting distribution parameter (default: 2.62) */
|
|
768
|
-
visit: OptionType<FloatType>;
|
|
769
|
-
/** Acceptance distribution parameter (default: -5.0) */
|
|
770
|
-
accept: OptionType<FloatType>;
|
|
771
|
-
/** Random seed for reproducibility */
|
|
772
|
-
seed: OptionType<IntegerType>;
|
|
773
|
-
/** Disable local search for speed (default: false) */
|
|
774
|
-
no_local_search: OptionType<BooleanType>;
|
|
775
|
-
}>;
|
|
776
|
-
readonly DualAnnealResultType: StructType<{
|
|
777
|
-
/** Best solution found */
|
|
778
|
-
x: import("@elaraai/east").ArrayType<FloatType>;
|
|
779
|
-
/** Best objective value */
|
|
780
|
-
fun: FloatType;
|
|
781
|
-
/** Number of function evaluations */
|
|
782
|
-
nfev: IntegerType;
|
|
783
|
-
/** Number of iterations */
|
|
784
|
-
nit: IntegerType;
|
|
785
|
-
/** Whether optimization succeeded */
|
|
786
|
-
success: BooleanType;
|
|
787
|
-
/** Status message */
|
|
788
|
-
message: StringType;
|
|
789
|
-
}>;
|
|
790
|
-
};
|
|
791
|
-
/**
|
|
792
|
-
* SciPy scientific computing utilities.
|
|
793
|
-
*
|
|
794
|
-
* Provides statistics, optimization, interpolation, and curve fitting.
|
|
795
|
-
*/
|
|
796
|
-
export declare const Scipy: {
|
|
797
|
-
/** Fit parametric curve to data */
|
|
798
|
-
readonly curveFit: import("@elaraai/east").PlatformDefinition<[VariantType<{
|
|
799
|
-
/** y = a * exp(-b * x), 2 params: [a, b] */
|
|
800
|
-
exponential_decay: NullType;
|
|
801
|
-
/** y = a + b * exp(-c * x), 3 params: [a, b, c] */
|
|
802
|
-
exponential_with_offset: NullType;
|
|
803
|
-
/** y = a * exp(b * x), 2 params: [a, b] */
|
|
804
|
-
exponential_growth: NullType;
|
|
805
|
-
/** y = L / (1 + exp(-k * (x - x0))), 3 params: [L, k, x0] */
|
|
806
|
-
logistic: NullType;
|
|
807
|
-
/** y = a * exp(-b * exp(-c * x)), 3 params: [a, b, c] */
|
|
808
|
-
gompertz: NullType;
|
|
809
|
-
/** y = a * x^b, 2 params: [a, b] */
|
|
810
|
-
power_law: NullType;
|
|
811
|
-
/** y = a + b * x, 2 params: [a, b] */
|
|
812
|
-
linear: NullType;
|
|
813
|
-
/** y = a + b*x + c*x^2, 3 params: [a, b, c] */
|
|
814
|
-
quadratic: NullType;
|
|
815
|
-
/** y = a + b*x + c*x^2 + d*x^3, 4 params: [a, b, c, d] */
|
|
816
|
-
cubic: NullType;
|
|
817
|
-
/** Custom function provided by user */
|
|
818
|
-
custom: StructType<{
|
|
819
|
-
/** The curve function */
|
|
820
|
-
fn: FunctionType<[FloatType, import("@elaraai/east").ArrayType<FloatType>], FloatType>;
|
|
821
|
-
/** Number of parameters to optimize */
|
|
822
|
-
n_params: IntegerType;
|
|
823
|
-
/** Optional parameter bounds */
|
|
824
|
-
param_bounds: OptionType<StructType<{
|
|
825
|
-
/** Lower bounds for each parameter */
|
|
826
|
-
lower: import("@elaraai/east").ArrayType<FloatType>;
|
|
827
|
-
/** Upper bounds for each parameter */
|
|
828
|
-
upper: import("@elaraai/east").ArrayType<FloatType>;
|
|
829
|
-
}>>;
|
|
830
|
-
}>;
|
|
831
|
-
}>, import("@elaraai/east").ArrayType<FloatType>, import("@elaraai/east").ArrayType<FloatType>, StructType<{
|
|
832
|
-
/** Maximum number of function evaluations */
|
|
833
|
-
max_iter: OptionType<IntegerType>;
|
|
834
|
-
/** Initial guess for parameters */
|
|
835
|
-
initial_guess: OptionType<import("@elaraai/east").ArrayType<FloatType>>;
|
|
836
|
-
}>], StructType<{
|
|
837
|
-
/** Fitted parameters */
|
|
838
|
-
params: import("@elaraai/east").ArrayType<FloatType>;
|
|
839
|
-
/** Whether fit converged */
|
|
840
|
-
success: BooleanType;
|
|
841
|
-
/** Coefficient of determination (R²) */
|
|
842
|
-
r_squared: FloatType;
|
|
843
|
-
}>>;
|
|
844
|
-
/** Compute descriptive statistics */
|
|
845
|
-
readonly statsDescribe: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>], StructType<{
|
|
846
|
-
/** Number of observations */
|
|
847
|
-
count: IntegerType;
|
|
848
|
-
/** Mean value */
|
|
849
|
-
mean: FloatType;
|
|
850
|
-
/** Variance */
|
|
851
|
-
variance: FloatType;
|
|
852
|
-
/** Skewness */
|
|
853
|
-
skewness: FloatType;
|
|
854
|
-
/** Kurtosis */
|
|
855
|
-
kurtosis: FloatType;
|
|
856
|
-
/** Minimum value */
|
|
857
|
-
min: FloatType;
|
|
858
|
-
/** Maximum value */
|
|
859
|
-
max: FloatType;
|
|
860
|
-
}>>;
|
|
861
|
-
/** Compute Pearson correlation */
|
|
862
|
-
readonly statsPearsonr: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>, import("@elaraai/east").ArrayType<FloatType>], StructType<{
|
|
863
|
-
/** Correlation coefficient */
|
|
864
|
-
correlation: FloatType;
|
|
865
|
-
/** P-value for hypothesis test */
|
|
866
|
-
pvalue: FloatType;
|
|
867
|
-
}>>;
|
|
868
|
-
/** Compute Spearman correlation */
|
|
869
|
-
readonly statsSpearmanr: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>, import("@elaraai/east").ArrayType<FloatType>], StructType<{
|
|
870
|
-
/** Correlation coefficient */
|
|
871
|
-
correlation: FloatType;
|
|
872
|
-
/** P-value for hypothesis test */
|
|
873
|
-
pvalue: FloatType;
|
|
874
|
-
}>>;
|
|
875
|
-
/** Compute percentiles */
|
|
876
|
-
readonly statsPercentile: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>, import("@elaraai/east").ArrayType<FloatType>], import("@elaraai/east").ArrayType<FloatType>>;
|
|
877
|
-
/** Compute interquartile range */
|
|
878
|
-
readonly statsIqr: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>], FloatType>;
|
|
879
|
-
/** Compute median */
|
|
880
|
-
readonly statsMedian: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>], FloatType>;
|
|
881
|
-
/** Compute median absolute deviation */
|
|
882
|
-
readonly statsMad: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>], FloatType>;
|
|
883
|
-
/** Compute robust statistics (median, iqr, mad, q1, q3) */
|
|
884
|
-
readonly statsRobust: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>], StructType<{
|
|
885
|
-
/** Median value */
|
|
886
|
-
median: FloatType;
|
|
887
|
-
/** Interquartile range (Q3 - Q1) */
|
|
888
|
-
iqr: FloatType;
|
|
889
|
-
/** Median absolute deviation */
|
|
890
|
-
mad: FloatType;
|
|
891
|
-
/** 25th percentile */
|
|
892
|
-
q1: FloatType;
|
|
893
|
-
/** 75th percentile */
|
|
894
|
-
q3: FloatType;
|
|
895
|
-
}>>;
|
|
896
|
-
/** Fit 1D interpolator */
|
|
897
|
-
readonly interpolate1dFit: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>, import("@elaraai/east").ArrayType<FloatType>, StructType<{
|
|
898
|
-
/** Interpolation method */
|
|
899
|
-
kind: OptionType<VariantType<{
|
|
900
|
-
/** Linear interpolation (default) */
|
|
901
|
-
linear: NullType;
|
|
902
|
-
/** Cubic interpolation */
|
|
903
|
-
cubic: NullType;
|
|
904
|
-
/** Quadratic interpolation */
|
|
905
|
-
quadratic: NullType;
|
|
906
|
-
}>>;
|
|
907
|
-
}>], VariantType<{
|
|
908
|
-
/** 1D interpolator (cloudpickle serialized) */
|
|
909
|
-
scipy_interp_1d: StructType<{
|
|
910
|
-
/** Serialized interpolator */
|
|
911
|
-
data: BlobType;
|
|
912
|
-
/** Interpolation method used */
|
|
913
|
-
kind: VariantType<{
|
|
914
|
-
/** Linear interpolation (default) */
|
|
915
|
-
linear: NullType;
|
|
916
|
-
/** Cubic interpolation */
|
|
917
|
-
cubic: NullType;
|
|
918
|
-
/** Quadratic interpolation */
|
|
919
|
-
quadratic: NullType;
|
|
920
|
-
}>;
|
|
921
|
-
}>;
|
|
922
|
-
}>>;
|
|
923
|
-
/** Evaluate 1D interpolator */
|
|
924
|
-
readonly interpolate1dPredict: import("@elaraai/east").PlatformDefinition<[VariantType<{
|
|
925
|
-
/** 1D interpolator (cloudpickle serialized) */
|
|
926
|
-
scipy_interp_1d: StructType<{
|
|
927
|
-
/** Serialized interpolator */
|
|
928
|
-
data: BlobType;
|
|
929
|
-
/** Interpolation method used */
|
|
930
|
-
kind: VariantType<{
|
|
931
|
-
/** Linear interpolation (default) */
|
|
932
|
-
linear: NullType;
|
|
933
|
-
/** Cubic interpolation */
|
|
934
|
-
cubic: NullType;
|
|
935
|
-
/** Quadratic interpolation */
|
|
936
|
-
quadratic: NullType;
|
|
937
|
-
}>;
|
|
938
|
-
}>;
|
|
939
|
-
}>, import("@elaraai/east").ArrayType<FloatType>], import("@elaraai/east").ArrayType<FloatType>>;
|
|
940
|
-
/** Minimize scalar function */
|
|
941
|
-
readonly optimizeMinimize: import("@elaraai/east").PlatformDefinition<[FunctionType<[import("@elaraai/east").ArrayType<FloatType>], FloatType>, import("@elaraai/east").ArrayType<FloatType>, StructType<{
|
|
942
|
-
/** Optimization method */
|
|
943
|
-
method: OptionType<VariantType<{
|
|
944
|
-
/** BFGS algorithm */
|
|
945
|
-
bfgs: NullType;
|
|
946
|
-
/** L-BFGS-B algorithm (default) */
|
|
947
|
-
l_bfgs_b: NullType;
|
|
948
|
-
/** Nelder-Mead simplex */
|
|
949
|
-
nelder_mead: NullType;
|
|
950
|
-
/** Powell's method */
|
|
951
|
-
powell: NullType;
|
|
952
|
-
/** Conjugate gradient */
|
|
953
|
-
cg: NullType;
|
|
954
|
-
}>>;
|
|
955
|
-
/** Maximum number of iterations */
|
|
956
|
-
max_iter: OptionType<IntegerType>;
|
|
957
|
-
/** Tolerance for convergence */
|
|
958
|
-
tol: OptionType<FloatType>;
|
|
959
|
-
}>], StructType<{
|
|
960
|
-
/** Optimal parameters */
|
|
961
|
-
x: import("@elaraai/east").ArrayType<FloatType>;
|
|
962
|
-
/** Function value at optimum */
|
|
963
|
-
fun: FloatType;
|
|
964
|
-
/** Whether optimization succeeded */
|
|
965
|
-
success: BooleanType;
|
|
966
|
-
/** Number of iterations */
|
|
967
|
-
nit: IntegerType;
|
|
968
|
-
}>>;
|
|
969
|
-
/** Minimize quadratic function */
|
|
970
|
-
readonly optimizeMinimizeQuadratic: import("@elaraai/east").PlatformDefinition<[import("@elaraai/east").ArrayType<FloatType>, StructType<{
|
|
971
|
-
/** Quadratic term (symmetric positive definite) */
|
|
972
|
-
A: import("@elaraai/east").ArrayType<import("@elaraai/east").ArrayType<FloatType>>;
|
|
973
|
-
/** Linear term */
|
|
974
|
-
b: import("@elaraai/east").ArrayType<FloatType>;
|
|
975
|
-
/** Constant term */
|
|
976
|
-
c: FloatType;
|
|
977
|
-
}>, StructType<{
|
|
978
|
-
/** Optimization method */
|
|
979
|
-
method: OptionType<VariantType<{
|
|
980
|
-
/** BFGS algorithm */
|
|
981
|
-
bfgs: NullType;
|
|
982
|
-
/** L-BFGS-B algorithm (default) */
|
|
983
|
-
l_bfgs_b: NullType;
|
|
984
|
-
/** Nelder-Mead simplex */
|
|
985
|
-
nelder_mead: NullType;
|
|
986
|
-
/** Powell's method */
|
|
987
|
-
powell: NullType;
|
|
988
|
-
/** Conjugate gradient */
|
|
989
|
-
cg: NullType;
|
|
990
|
-
}>>;
|
|
991
|
-
/** Maximum number of iterations */
|
|
992
|
-
max_iter: OptionType<IntegerType>;
|
|
993
|
-
/** Tolerance for convergence */
|
|
994
|
-
tol: OptionType<FloatType>;
|
|
995
|
-
}>], StructType<{
|
|
996
|
-
/** Optimal parameters */
|
|
997
|
-
x: import("@elaraai/east").ArrayType<FloatType>;
|
|
998
|
-
/** Function value at optimum */
|
|
999
|
-
fun: FloatType;
|
|
1000
|
-
/** Whether optimization succeeded */
|
|
1001
|
-
success: BooleanType;
|
|
1002
|
-
/** Number of iterations */
|
|
1003
|
-
nit: IntegerType;
|
|
1004
|
-
}>>;
|
|
1005
|
-
/** Global optimization using dual annealing */
|
|
1006
|
-
readonly optimizeDualAnnealing: import("@elaraai/east").PlatformDefinition<[FunctionType<[import("@elaraai/east").ArrayType<FloatType>], FloatType>, OptionType<import("@elaraai/east").ArrayType<FloatType>>, StructType<{
|
|
1007
|
-
/** Lower bounds for each variable */
|
|
1008
|
-
lower: import("@elaraai/east").ArrayType<FloatType>;
|
|
1009
|
-
/** Upper bounds for each variable */
|
|
1010
|
-
upper: import("@elaraai/east").ArrayType<FloatType>;
|
|
1011
|
-
}>, StructType<{
|
|
1012
|
-
/** Maximum function evaluations (default: 1000) */
|
|
1013
|
-
maxfun: OptionType<IntegerType>;
|
|
1014
|
-
/** Maximum iterations (default: 1000) */
|
|
1015
|
-
maxiter: OptionType<IntegerType>;
|
|
1016
|
-
/** Initial temperature (default: 5230) */
|
|
1017
|
-
initial_temp: OptionType<FloatType>;
|
|
1018
|
-
/** Temperature restart threshold (default: 2e-5) */
|
|
1019
|
-
restart_temp_ratio: OptionType<FloatType>;
|
|
1020
|
-
/** Visiting distribution parameter (default: 2.62) */
|
|
1021
|
-
visit: OptionType<FloatType>;
|
|
1022
|
-
/** Acceptance distribution parameter (default: -5.0) */
|
|
1023
|
-
accept: OptionType<FloatType>;
|
|
1024
|
-
/** Random seed for reproducibility */
|
|
1025
|
-
seed: OptionType<IntegerType>;
|
|
1026
|
-
/** Disable local search for speed (default: false) */
|
|
1027
|
-
no_local_search: OptionType<BooleanType>;
|
|
1028
|
-
}>], StructType<{
|
|
1029
|
-
/** Best solution found */
|
|
1030
|
-
x: import("@elaraai/east").ArrayType<FloatType>;
|
|
1031
|
-
/** Best objective value */
|
|
1032
|
-
fun: FloatType;
|
|
1033
|
-
/** Number of function evaluations */
|
|
1034
|
-
nfev: IntegerType;
|
|
1035
|
-
/** Number of iterations */
|
|
1036
|
-
nit: IntegerType;
|
|
1037
|
-
/** Whether optimization succeeded */
|
|
1038
|
-
success: BooleanType;
|
|
1039
|
-
/** Status message */
|
|
1040
|
-
message: StringType;
|
|
1041
|
-
}>>;
|
|
1042
|
-
/** Type definitions */
|
|
1043
|
-
readonly Types: {
|
|
1044
|
-
readonly VectorType: import("@elaraai/east").ArrayType<FloatType>;
|
|
1045
|
-
readonly MatrixType: import("@elaraai/east").ArrayType<import("@elaraai/east").ArrayType<FloatType>>;
|
|
1046
|
-
readonly ScalarObjectiveType: FunctionType<[import("@elaraai/east").ArrayType<FloatType>], FloatType>;
|
|
1047
|
-
readonly OptimizeMethodType: VariantType<{
|
|
1048
|
-
/** BFGS algorithm */
|
|
1049
|
-
bfgs: NullType;
|
|
1050
|
-
/** L-BFGS-B algorithm (default) */
|
|
1051
|
-
l_bfgs_b: NullType;
|
|
1052
|
-
/** Nelder-Mead simplex */
|
|
1053
|
-
nelder_mead: NullType;
|
|
1054
|
-
/** Powell's method */
|
|
1055
|
-
powell: NullType;
|
|
1056
|
-
/** Conjugate gradient */
|
|
1057
|
-
cg: NullType;
|
|
1058
|
-
}>;
|
|
1059
|
-
readonly InterpolationKindType: VariantType<{
|
|
1060
|
-
/** Linear interpolation (default) */
|
|
1061
|
-
linear: NullType;
|
|
1062
|
-
/** Cubic interpolation */
|
|
1063
|
-
cubic: NullType;
|
|
1064
|
-
/** Quadratic interpolation */
|
|
1065
|
-
quadratic: NullType;
|
|
1066
|
-
}>;
|
|
1067
|
-
readonly OptimizeConfigType: StructType<{
|
|
1068
|
-
/** Optimization method */
|
|
1069
|
-
method: OptionType<VariantType<{
|
|
1070
|
-
/** BFGS algorithm */
|
|
1071
|
-
bfgs: NullType;
|
|
1072
|
-
/** L-BFGS-B algorithm (default) */
|
|
1073
|
-
l_bfgs_b: NullType;
|
|
1074
|
-
/** Nelder-Mead simplex */
|
|
1075
|
-
nelder_mead: NullType;
|
|
1076
|
-
/** Powell's method */
|
|
1077
|
-
powell: NullType;
|
|
1078
|
-
/** Conjugate gradient */
|
|
1079
|
-
cg: NullType;
|
|
1080
|
-
}>>;
|
|
1081
|
-
/** Maximum number of iterations */
|
|
1082
|
-
max_iter: OptionType<IntegerType>;
|
|
1083
|
-
/** Tolerance for convergence */
|
|
1084
|
-
tol: OptionType<FloatType>;
|
|
1085
|
-
}>;
|
|
1086
|
-
readonly InterpolateConfigType: StructType<{
|
|
1087
|
-
/** Interpolation method */
|
|
1088
|
-
kind: OptionType<VariantType<{
|
|
1089
|
-
/** Linear interpolation (default) */
|
|
1090
|
-
linear: NullType;
|
|
1091
|
-
/** Cubic interpolation */
|
|
1092
|
-
cubic: NullType;
|
|
1093
|
-
/** Quadratic interpolation */
|
|
1094
|
-
quadratic: NullType;
|
|
1095
|
-
}>>;
|
|
1096
|
-
}>;
|
|
1097
|
-
readonly ParamBoundsType: StructType<{
|
|
1098
|
-
/** Lower bounds for each parameter */
|
|
1099
|
-
lower: import("@elaraai/east").ArrayType<FloatType>;
|
|
1100
|
-
/** Upper bounds for each parameter */
|
|
1101
|
-
upper: import("@elaraai/east").ArrayType<FloatType>;
|
|
1102
|
-
}>;
|
|
1103
|
-
readonly CustomCurveFunctionType: FunctionType<[FloatType, import("@elaraai/east").ArrayType<FloatType>], FloatType>;
|
|
1104
|
-
readonly CurveFunctionType: VariantType<{
|
|
1105
|
-
/** y = a * exp(-b * x), 2 params: [a, b] */
|
|
1106
|
-
exponential_decay: NullType;
|
|
1107
|
-
/** y = a + b * exp(-c * x), 3 params: [a, b, c] */
|
|
1108
|
-
exponential_with_offset: NullType;
|
|
1109
|
-
/** y = a * exp(b * x), 2 params: [a, b] */
|
|
1110
|
-
exponential_growth: NullType;
|
|
1111
|
-
/** y = L / (1 + exp(-k * (x - x0))), 3 params: [L, k, x0] */
|
|
1112
|
-
logistic: NullType;
|
|
1113
|
-
/** y = a * exp(-b * exp(-c * x)), 3 params: [a, b, c] */
|
|
1114
|
-
gompertz: NullType;
|
|
1115
|
-
/** y = a * x^b, 2 params: [a, b] */
|
|
1116
|
-
power_law: NullType;
|
|
1117
|
-
/** y = a + b * x, 2 params: [a, b] */
|
|
1118
|
-
linear: NullType;
|
|
1119
|
-
/** y = a + b*x + c*x^2, 3 params: [a, b, c] */
|
|
1120
|
-
quadratic: NullType;
|
|
1121
|
-
/** y = a + b*x + c*x^2 + d*x^3, 4 params: [a, b, c, d] */
|
|
1122
|
-
cubic: NullType;
|
|
1123
|
-
/** Custom function provided by user */
|
|
1124
|
-
custom: StructType<{
|
|
1125
|
-
/** The curve function */
|
|
1126
|
-
fn: FunctionType<[FloatType, import("@elaraai/east").ArrayType<FloatType>], FloatType>;
|
|
1127
|
-
/** Number of parameters to optimize */
|
|
1128
|
-
n_params: IntegerType;
|
|
1129
|
-
/** Optional parameter bounds */
|
|
1130
|
-
param_bounds: OptionType<StructType<{
|
|
1131
|
-
/** Lower bounds for each parameter */
|
|
1132
|
-
lower: import("@elaraai/east").ArrayType<FloatType>;
|
|
1133
|
-
/** Upper bounds for each parameter */
|
|
1134
|
-
upper: import("@elaraai/east").ArrayType<FloatType>;
|
|
1135
|
-
}>>;
|
|
1136
|
-
}>;
|
|
1137
|
-
}>;
|
|
1138
|
-
readonly CurveFitConfigType: StructType<{
|
|
1139
|
-
/** Maximum number of function evaluations */
|
|
1140
|
-
max_iter: OptionType<IntegerType>;
|
|
1141
|
-
/** Initial guess for parameters */
|
|
1142
|
-
initial_guess: OptionType<import("@elaraai/east").ArrayType<FloatType>>;
|
|
1143
|
-
}>;
|
|
1144
|
-
readonly QuadraticConfigType: StructType<{
|
|
1145
|
-
/** Quadratic term (symmetric positive definite) */
|
|
1146
|
-
A: import("@elaraai/east").ArrayType<import("@elaraai/east").ArrayType<FloatType>>;
|
|
1147
|
-
/** Linear term */
|
|
1148
|
-
b: import("@elaraai/east").ArrayType<FloatType>;
|
|
1149
|
-
/** Constant term */
|
|
1150
|
-
c: FloatType;
|
|
1151
|
-
}>;
|
|
1152
|
-
readonly StatsDescribeResultType: StructType<{
|
|
1153
|
-
/** Number of observations */
|
|
1154
|
-
count: IntegerType;
|
|
1155
|
-
/** Mean value */
|
|
1156
|
-
mean: FloatType;
|
|
1157
|
-
/** Variance */
|
|
1158
|
-
variance: FloatType;
|
|
1159
|
-
/** Skewness */
|
|
1160
|
-
skewness: FloatType;
|
|
1161
|
-
/** Kurtosis */
|
|
1162
|
-
kurtosis: FloatType;
|
|
1163
|
-
/** Minimum value */
|
|
1164
|
-
min: FloatType;
|
|
1165
|
-
/** Maximum value */
|
|
1166
|
-
max: FloatType;
|
|
1167
|
-
}>;
|
|
1168
|
-
readonly RobustStatsResultType: StructType<{
|
|
1169
|
-
/** Median value */
|
|
1170
|
-
median: FloatType;
|
|
1171
|
-
/** Interquartile range (Q3 - Q1) */
|
|
1172
|
-
iqr: FloatType;
|
|
1173
|
-
/** Median absolute deviation */
|
|
1174
|
-
mad: FloatType;
|
|
1175
|
-
/** 25th percentile */
|
|
1176
|
-
q1: FloatType;
|
|
1177
|
-
/** 75th percentile */
|
|
1178
|
-
q3: FloatType;
|
|
1179
|
-
}>;
|
|
1180
|
-
readonly CorrelationResultType: StructType<{
|
|
1181
|
-
/** Correlation coefficient */
|
|
1182
|
-
correlation: FloatType;
|
|
1183
|
-
/** P-value for hypothesis test */
|
|
1184
|
-
pvalue: FloatType;
|
|
1185
|
-
}>;
|
|
1186
|
-
readonly CurveFitResultType: StructType<{
|
|
1187
|
-
/** Fitted parameters */
|
|
1188
|
-
params: import("@elaraai/east").ArrayType<FloatType>;
|
|
1189
|
-
/** Whether fit converged */
|
|
1190
|
-
success: BooleanType;
|
|
1191
|
-
/** Coefficient of determination (R²) */
|
|
1192
|
-
r_squared: FloatType;
|
|
1193
|
-
}>;
|
|
1194
|
-
readonly OptimizeResultType: StructType<{
|
|
1195
|
-
/** Optimal parameters */
|
|
1196
|
-
x: import("@elaraai/east").ArrayType<FloatType>;
|
|
1197
|
-
/** Function value at optimum */
|
|
1198
|
-
fun: FloatType;
|
|
1199
|
-
/** Whether optimization succeeded */
|
|
1200
|
-
success: BooleanType;
|
|
1201
|
-
/** Number of iterations */
|
|
1202
|
-
nit: IntegerType;
|
|
1203
|
-
}>;
|
|
1204
|
-
readonly ModelBlobType: VariantType<{
|
|
1205
|
-
/** 1D interpolator (cloudpickle serialized) */
|
|
1206
|
-
scipy_interp_1d: StructType<{
|
|
1207
|
-
/** Serialized interpolator */
|
|
1208
|
-
data: BlobType;
|
|
1209
|
-
/** Interpolation method used */
|
|
1210
|
-
kind: VariantType<{
|
|
1211
|
-
/** Linear interpolation (default) */
|
|
1212
|
-
linear: NullType;
|
|
1213
|
-
/** Cubic interpolation */
|
|
1214
|
-
cubic: NullType;
|
|
1215
|
-
/** Quadratic interpolation */
|
|
1216
|
-
quadratic: NullType;
|
|
1217
|
-
}>;
|
|
1218
|
-
}>;
|
|
1219
|
-
}>;
|
|
1220
|
-
readonly DualAnnealBoundsType: StructType<{
|
|
1221
|
-
/** Lower bounds for each variable */
|
|
1222
|
-
lower: import("@elaraai/east").ArrayType<FloatType>;
|
|
1223
|
-
/** Upper bounds for each variable */
|
|
1224
|
-
upper: import("@elaraai/east").ArrayType<FloatType>;
|
|
1225
|
-
}>;
|
|
1226
|
-
readonly DualAnnealConfigType: StructType<{
|
|
1227
|
-
/** Maximum function evaluations (default: 1000) */
|
|
1228
|
-
maxfun: OptionType<IntegerType>;
|
|
1229
|
-
/** Maximum iterations (default: 1000) */
|
|
1230
|
-
maxiter: OptionType<IntegerType>;
|
|
1231
|
-
/** Initial temperature (default: 5230) */
|
|
1232
|
-
initial_temp: OptionType<FloatType>;
|
|
1233
|
-
/** Temperature restart threshold (default: 2e-5) */
|
|
1234
|
-
restart_temp_ratio: OptionType<FloatType>;
|
|
1235
|
-
/** Visiting distribution parameter (default: 2.62) */
|
|
1236
|
-
visit: OptionType<FloatType>;
|
|
1237
|
-
/** Acceptance distribution parameter (default: -5.0) */
|
|
1238
|
-
accept: OptionType<FloatType>;
|
|
1239
|
-
/** Random seed for reproducibility */
|
|
1240
|
-
seed: OptionType<IntegerType>;
|
|
1241
|
-
/** Disable local search for speed (default: false) */
|
|
1242
|
-
no_local_search: OptionType<BooleanType>;
|
|
1243
|
-
}>;
|
|
1244
|
-
readonly DualAnnealResultType: StructType<{
|
|
1245
|
-
/** Best solution found */
|
|
1246
|
-
x: import("@elaraai/east").ArrayType<FloatType>;
|
|
1247
|
-
/** Best objective value */
|
|
1248
|
-
fun: FloatType;
|
|
1249
|
-
/** Number of function evaluations */
|
|
1250
|
-
nfev: IntegerType;
|
|
1251
|
-
/** Number of iterations */
|
|
1252
|
-
nit: IntegerType;
|
|
1253
|
-
/** Whether optimization succeeded */
|
|
1254
|
-
success: BooleanType;
|
|
1255
|
-
/** Status message */
|
|
1256
|
-
message: StringType;
|
|
1257
|
-
}>;
|
|
1258
|
-
};
|
|
1259
|
-
};
|
|
1260
|
-
//# sourceMappingURL=scipy.d.ts.map
|