@elaraai/east-py-datascience 0.0.2-beta.6 → 0.0.2-beta.61
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/dist/alns/alns.d.ts +528 -0
- package/dist/alns/alns.d.ts.map +1 -0
- package/dist/alns/alns.js +238 -0
- package/dist/alns/alns.js.map +1 -0
- package/dist/gp/gp.d.ts +120 -120
- package/dist/gp/gp.d.ts.map +1 -1
- package/dist/gp/gp.js +7 -7
- package/dist/gp/gp.js.map +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/lightgbm/lightgbm.d.ts +168 -168
- package/dist/lightning/lightning.d.ts +1501 -0
- package/dist/lightning/lightning.d.ts.map +1 -0
- package/dist/lightning/lightning.js +376 -0
- package/dist/lightning/lightning.js.map +1 -0
- package/dist/mads/mads.d.ts +103 -103
- package/dist/mads/mads.d.ts.map +1 -1
- package/dist/mads/mads.js +5 -5
- package/dist/mads/mads.js.map +1 -1
- package/dist/mapie/mapie.d.ts +2058 -0
- package/dist/mapie/mapie.d.ts.map +1 -0
- package/dist/mapie/mapie.js +411 -0
- package/dist/mapie/mapie.js.map +1 -0
- package/dist/ngboost/ngboost.d.ts +126 -126
- package/dist/ngboost/ngboost.d.ts.map +1 -1
- package/dist/ngboost/ngboost.js +3 -3
- package/dist/ngboost/ngboost.js.map +1 -1
- package/dist/optuna/optuna.d.ts +314 -314
- package/dist/scipy/scipy.d.ts +535 -429
- package/dist/scipy/scipy.d.ts.map +1 -1
- package/dist/scipy/scipy.js +56 -3
- package/dist/scipy/scipy.js.map +1 -1
- package/dist/shap/shap.d.ts +1152 -358
- package/dist/shap/shap.d.ts.map +1 -1
- package/dist/shap/shap.js +189 -16
- package/dist/shap/shap.js.map +1 -1
- package/dist/simanneal/simanneal.d.ts +148 -148
- package/dist/sklearn/sklearn.d.ts +3104 -1316
- package/dist/sklearn/sklearn.d.ts.map +1 -1
- package/dist/sklearn/sklearn.js +325 -64
- package/dist/sklearn/sklearn.js.map +1 -1
- package/dist/torch/torch.d.ts +503 -350
- package/dist/torch/torch.d.ts.map +1 -1
- package/dist/torch/torch.js +39 -17
- package/dist/torch/torch.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/xgboost/xgboost.d.ts +803 -178
- package/dist/xgboost/xgboost.d.ts.map +1 -1
- package/dist/xgboost/xgboost.js +102 -1
- package/dist/xgboost/xgboost.js.map +1 -1
- package/package.json +4 -4
package/dist/shap/shap.d.ts
CHANGED
|
@@ -10,119 +10,403 @@
|
|
|
10
10
|
*
|
|
11
11
|
* @packageDocumentation
|
|
12
12
|
*/
|
|
13
|
-
import { StructType, VariantType, OptionType, IntegerType, FloatType, StringType, ArrayType, BlobType } from "@elaraai/east";
|
|
13
|
+
import { StructType, VariantType, OptionType, IntegerType, FloatType, StringType, ArrayType, BlobType, NullType } from "@elaraai/east";
|
|
14
14
|
export { VectorType, MatrixType } from "../types.js";
|
|
15
15
|
/** String vector type for feature names */
|
|
16
16
|
export declare const StringVectorType: ArrayType<StringType>;
|
|
17
|
+
/**
|
|
18
|
+
* SHAP values type - variant for 2D (regression/binary) or 3D (multi-class).
|
|
19
|
+
*/
|
|
20
|
+
export declare const ShapValuesType: VariantType<{
|
|
21
|
+
/** 2D matrix for regression or binary classification (n_samples x n_features) */
|
|
22
|
+
readonly matrix_2d: ArrayType<ArrayType<FloatType>>;
|
|
23
|
+
/** 3D tensor for multi-class classification (n_samples x n_features x n_classes) */
|
|
24
|
+
readonly tensor_3d: ArrayType<ArrayType<ArrayType<FloatType>>>;
|
|
25
|
+
}>;
|
|
26
|
+
/**
|
|
27
|
+
* Base value type - variant for single (regression/binary) or per-class (multi-class).
|
|
28
|
+
*/
|
|
29
|
+
export declare const ShapBaseValueType: VariantType<{
|
|
30
|
+
/** Single base value for regression or binary classification */
|
|
31
|
+
readonly single: FloatType;
|
|
32
|
+
/** Per-class base values for multi-class classification */
|
|
33
|
+
readonly per_class: ArrayType<FloatType>;
|
|
34
|
+
}>;
|
|
17
35
|
/**
|
|
18
36
|
* Result type for SHAP value computation.
|
|
19
37
|
*/
|
|
20
38
|
export declare const ShapResultType: StructType<{
|
|
21
|
-
/** SHAP values matrix
|
|
22
|
-
shap_values:
|
|
23
|
-
|
|
24
|
-
|
|
39
|
+
/** SHAP values - 2D matrix or 3D tensor depending on model type */
|
|
40
|
+
readonly shap_values: VariantType<{
|
|
41
|
+
/** 2D matrix for regression or binary classification (n_samples x n_features) */
|
|
42
|
+
readonly matrix_2d: ArrayType<ArrayType<FloatType>>;
|
|
43
|
+
/** 3D tensor for multi-class classification (n_samples x n_features x n_classes) */
|
|
44
|
+
readonly tensor_3d: ArrayType<ArrayType<ArrayType<FloatType>>>;
|
|
45
|
+
}>;
|
|
46
|
+
/** Base value(s) - single float or per-class array */
|
|
47
|
+
readonly base_value: VariantType<{
|
|
48
|
+
/** Single base value for regression or binary classification */
|
|
49
|
+
readonly single: FloatType;
|
|
50
|
+
/** Per-class base values for multi-class classification */
|
|
51
|
+
readonly per_class: ArrayType<FloatType>;
|
|
52
|
+
}>;
|
|
25
53
|
/** Feature names */
|
|
26
|
-
feature_names: ArrayType<StringType>;
|
|
54
|
+
readonly feature_names: ArrayType<StringType>;
|
|
27
55
|
}>;
|
|
28
56
|
/**
|
|
29
57
|
* Result type for feature importance.
|
|
30
58
|
*/
|
|
31
59
|
export declare const FeatureImportanceType: StructType<{
|
|
32
60
|
/** Feature names */
|
|
33
|
-
feature_names: ArrayType<StringType>;
|
|
61
|
+
readonly feature_names: ArrayType<StringType>;
|
|
34
62
|
/** Mean absolute SHAP value for each feature */
|
|
35
|
-
importances: ArrayType<FloatType>;
|
|
63
|
+
readonly importances: ArrayType<FloatType>;
|
|
36
64
|
/** Standard deviation of absolute SHAP values */
|
|
37
|
-
std: OptionType<ArrayType<FloatType>>;
|
|
65
|
+
readonly std: OptionType<ArrayType<FloatType>>;
|
|
38
66
|
}>;
|
|
39
67
|
/**
|
|
40
68
|
* Model blob type for serialized SHAP explainers.
|
|
41
69
|
*/
|
|
42
70
|
export declare const ShapModelBlobType: VariantType<{
|
|
43
71
|
/** SHAP TreeExplainer for tree-based models */
|
|
44
|
-
shap_tree_explainer: StructType<{
|
|
72
|
+
readonly shap_tree_explainer: StructType<{
|
|
45
73
|
/** Cloudpickle serialized explainer */
|
|
46
|
-
data: BlobType;
|
|
74
|
+
readonly data: BlobType;
|
|
47
75
|
/** Number of input features */
|
|
48
|
-
n_features: IntegerType;
|
|
76
|
+
readonly n_features: IntegerType;
|
|
49
77
|
}>;
|
|
50
78
|
/** SHAP KernelExplainer for any model */
|
|
51
|
-
shap_kernel_explainer: StructType<{
|
|
79
|
+
readonly shap_kernel_explainer: StructType<{
|
|
52
80
|
/** Cloudpickle serialized explainer */
|
|
53
|
-
data: BlobType;
|
|
81
|
+
readonly data: BlobType;
|
|
54
82
|
/** Number of input features */
|
|
55
|
-
n_features: IntegerType;
|
|
83
|
+
readonly n_features: IntegerType;
|
|
56
84
|
}>;
|
|
57
85
|
}>;
|
|
58
86
|
/**
|
|
59
|
-
* Tree-based model blob type - accepts XGBoost and
|
|
87
|
+
* Tree-based model blob type - accepts XGBoost models and MAPIE wrappers with XGBoost.
|
|
88
|
+
* Note: LightGBM is not supported for TreeExplainer due to SHAP compatibility issues.
|
|
89
|
+
* Use KernelExplainer for LightGBM models.
|
|
60
90
|
*/
|
|
61
91
|
export declare const TreeModelBlobType: VariantType<{
|
|
62
92
|
/** XGBoost regressor */
|
|
63
|
-
xgboost_regressor: StructType<{
|
|
64
|
-
data: BlobType;
|
|
65
|
-
n_features: IntegerType;
|
|
93
|
+
readonly xgboost_regressor: StructType<{
|
|
94
|
+
readonly data: BlobType;
|
|
95
|
+
readonly n_features: IntegerType;
|
|
96
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
66
97
|
}>;
|
|
67
98
|
/** XGBoost classifier */
|
|
68
|
-
xgboost_classifier: StructType<{
|
|
69
|
-
data: BlobType;
|
|
70
|
-
n_features: IntegerType;
|
|
71
|
-
n_classes: IntegerType;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
99
|
+
readonly xgboost_classifier: StructType<{
|
|
100
|
+
readonly data: BlobType;
|
|
101
|
+
readonly n_features: IntegerType;
|
|
102
|
+
readonly n_classes: IntegerType;
|
|
103
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
104
|
+
}>;
|
|
105
|
+
/** XGBoost quantile regressor (uses median quantile for explanations) */
|
|
106
|
+
readonly xgboost_quantile: StructType<{
|
|
107
|
+
readonly data: BlobType;
|
|
108
|
+
readonly quantiles: ArrayType<FloatType>;
|
|
109
|
+
readonly n_features: IntegerType;
|
|
110
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
111
|
+
}>;
|
|
112
|
+
/** MAPIE split conformal regressor with XGBoost base */
|
|
113
|
+
readonly mapie_split: StructType<{
|
|
114
|
+
readonly data: VariantType<{
|
|
115
|
+
readonly xgboost: BlobType;
|
|
116
|
+
readonly lightgbm: BlobType;
|
|
117
|
+
readonly histogram: BlobType;
|
|
118
|
+
}>;
|
|
119
|
+
readonly n_features: IntegerType;
|
|
120
|
+
readonly confidence_level: FloatType;
|
|
121
|
+
}>;
|
|
122
|
+
/** MAPIE cross conformal regressor with XGBoost base */
|
|
123
|
+
readonly mapie_cross: StructType<{
|
|
124
|
+
readonly data: VariantType<{
|
|
125
|
+
readonly xgboost: BlobType;
|
|
126
|
+
readonly lightgbm: BlobType;
|
|
127
|
+
readonly histogram: BlobType;
|
|
128
|
+
}>;
|
|
129
|
+
readonly n_features: IntegerType;
|
|
130
|
+
readonly confidence_level: FloatType;
|
|
131
|
+
}>;
|
|
132
|
+
/** MAPIE CQR conformal regressor with XGBoost base */
|
|
133
|
+
readonly mapie_cqr: StructType<{
|
|
134
|
+
readonly data: VariantType<{
|
|
135
|
+
readonly xgboost: BlobType;
|
|
136
|
+
readonly lightgbm: BlobType;
|
|
137
|
+
readonly histogram: BlobType;
|
|
138
|
+
}>;
|
|
139
|
+
readonly n_features: IntegerType;
|
|
140
|
+
readonly confidence_level: FloatType;
|
|
141
|
+
}>;
|
|
142
|
+
/** MAPIE conformal classifier with XGBoost base */
|
|
143
|
+
readonly mapie_classifier: StructType<{
|
|
144
|
+
readonly data: VariantType<{
|
|
145
|
+
readonly xgboost: BlobType;
|
|
146
|
+
readonly lightgbm: BlobType;
|
|
147
|
+
readonly histogram: BlobType;
|
|
148
|
+
}>;
|
|
149
|
+
readonly n_features: IntegerType;
|
|
150
|
+
readonly n_classes: IntegerType;
|
|
151
|
+
readonly classes: ArrayType<IntegerType>;
|
|
152
|
+
readonly confidence_level: FloatType;
|
|
83
153
|
}>;
|
|
84
154
|
}>;
|
|
85
155
|
/**
|
|
86
156
|
* Any model blob type - accepts any model for kernel explainer.
|
|
87
|
-
* Includes all tree-based models plus NGBoost, GP, and
|
|
157
|
+
* Includes all tree-based models plus NGBoost, GP, Torch, and sklearn models.
|
|
88
158
|
*/
|
|
89
159
|
export declare const AnyModelBlobType: VariantType<{
|
|
90
|
-
xgboost_regressor: StructType<{
|
|
91
|
-
data: BlobType;
|
|
92
|
-
n_features: IntegerType;
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}>;
|
|
116
|
-
|
|
117
|
-
data: BlobType;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
160
|
+
readonly xgboost_regressor: StructType<{
|
|
161
|
+
readonly data: BlobType;
|
|
162
|
+
readonly n_features: IntegerType;
|
|
163
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
164
|
+
}>;
|
|
165
|
+
readonly xgboost_classifier: StructType<{
|
|
166
|
+
readonly data: BlobType;
|
|
167
|
+
readonly n_features: IntegerType;
|
|
168
|
+
readonly n_classes: IntegerType;
|
|
169
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
170
|
+
}>;
|
|
171
|
+
readonly xgboost_quantile: StructType<{
|
|
172
|
+
readonly data: BlobType;
|
|
173
|
+
readonly quantiles: ArrayType<FloatType>;
|
|
174
|
+
readonly n_features: IntegerType;
|
|
175
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
176
|
+
}>;
|
|
177
|
+
readonly lightgbm_regressor: StructType<{
|
|
178
|
+
readonly data: BlobType;
|
|
179
|
+
readonly n_features: IntegerType;
|
|
180
|
+
}>;
|
|
181
|
+
readonly lightgbm_classifier: StructType<{
|
|
182
|
+
readonly data: BlobType;
|
|
183
|
+
readonly n_features: IntegerType;
|
|
184
|
+
readonly n_classes: IntegerType;
|
|
185
|
+
}>;
|
|
186
|
+
readonly ngboost_regressor: StructType<{
|
|
187
|
+
readonly data: BlobType;
|
|
188
|
+
readonly distribution: VariantType<{
|
|
189
|
+
readonly normal: NullType;
|
|
190
|
+
readonly lognormal: NullType;
|
|
191
|
+
}>;
|
|
192
|
+
readonly n_features: IntegerType;
|
|
193
|
+
}>;
|
|
194
|
+
readonly gp_regressor: StructType<{
|
|
195
|
+
readonly data: BlobType;
|
|
196
|
+
readonly n_features: IntegerType;
|
|
197
|
+
readonly kernel_type: StringType;
|
|
198
|
+
}>;
|
|
199
|
+
readonly torch_mlp: StructType<{
|
|
200
|
+
readonly data: BlobType;
|
|
201
|
+
readonly n_features: IntegerType;
|
|
202
|
+
readonly hidden_layers: ArrayType<IntegerType>;
|
|
203
|
+
readonly output_dim: IntegerType;
|
|
204
|
+
}>;
|
|
205
|
+
readonly standard_scaler: StructType<{
|
|
206
|
+
readonly onnx: BlobType;
|
|
207
|
+
readonly n_features: IntegerType;
|
|
208
|
+
}>;
|
|
209
|
+
readonly min_max_scaler: StructType<{
|
|
210
|
+
readonly onnx: BlobType;
|
|
211
|
+
readonly n_features: IntegerType;
|
|
212
|
+
}>;
|
|
213
|
+
readonly regressor_chain: StructType<{
|
|
214
|
+
readonly data: BlobType;
|
|
215
|
+
readonly n_features: IntegerType;
|
|
216
|
+
readonly n_targets: IntegerType;
|
|
217
|
+
readonly base_estimator_type: StringType;
|
|
218
|
+
}>;
|
|
219
|
+
readonly mapie_split: StructType<{
|
|
220
|
+
readonly data: VariantType<{
|
|
221
|
+
readonly xgboost: BlobType;
|
|
222
|
+
readonly lightgbm: BlobType;
|
|
223
|
+
readonly histogram: BlobType;
|
|
224
|
+
}>;
|
|
225
|
+
readonly n_features: IntegerType;
|
|
226
|
+
readonly confidence_level: FloatType;
|
|
227
|
+
}>;
|
|
228
|
+
readonly mapie_cross: StructType<{
|
|
229
|
+
readonly data: VariantType<{
|
|
230
|
+
readonly xgboost: BlobType;
|
|
231
|
+
readonly lightgbm: BlobType;
|
|
232
|
+
readonly histogram: BlobType;
|
|
233
|
+
}>;
|
|
234
|
+
readonly n_features: IntegerType;
|
|
235
|
+
readonly confidence_level: FloatType;
|
|
236
|
+
}>;
|
|
237
|
+
readonly mapie_cqr: StructType<{
|
|
238
|
+
readonly data: VariantType<{
|
|
239
|
+
readonly xgboost: BlobType;
|
|
240
|
+
readonly lightgbm: BlobType;
|
|
241
|
+
readonly histogram: BlobType;
|
|
242
|
+
}>;
|
|
243
|
+
readonly n_features: IntegerType;
|
|
244
|
+
readonly confidence_level: FloatType;
|
|
245
|
+
}>;
|
|
246
|
+
readonly mapie_classifier: StructType<{
|
|
247
|
+
readonly data: VariantType<{
|
|
248
|
+
readonly xgboost: BlobType;
|
|
249
|
+
readonly lightgbm: BlobType;
|
|
250
|
+
readonly histogram: BlobType;
|
|
251
|
+
}>;
|
|
252
|
+
readonly n_features: IntegerType;
|
|
253
|
+
readonly n_classes: IntegerType;
|
|
254
|
+
readonly classes: ArrayType<IntegerType>;
|
|
255
|
+
readonly confidence_level: FloatType;
|
|
256
|
+
}>;
|
|
257
|
+
readonly mapie_interval_width: StructType<{
|
|
258
|
+
readonly data: BlobType;
|
|
259
|
+
readonly n_features: IntegerType;
|
|
260
|
+
}>;
|
|
261
|
+
readonly mapie_set_size: StructType<{
|
|
262
|
+
readonly data: BlobType;
|
|
263
|
+
readonly n_features: IntegerType;
|
|
264
|
+
}>;
|
|
265
|
+
}>;
|
|
266
|
+
/**
|
|
267
|
+
* Tagged model data - variant tag indicates base model type, value is the blob.
|
|
268
|
+
* Re-exported from mapie.ts for convenience.
|
|
269
|
+
*/
|
|
270
|
+
export declare const MAPIEBaseModelDataType: VariantType<{
|
|
271
|
+
readonly xgboost: BlobType;
|
|
272
|
+
readonly lightgbm: BlobType;
|
|
273
|
+
readonly histogram: BlobType;
|
|
274
|
+
}>;
|
|
275
|
+
/**
|
|
276
|
+
* MAPIE regressor model blob type for SHAP.
|
|
277
|
+
* Accepts split, cross, or CQR conformal regressors.
|
|
278
|
+
* Must match MAPIERegressorBlobType from mapie.ts.
|
|
279
|
+
*/
|
|
280
|
+
export declare const MAPIERegressorBlobType: VariantType<{
|
|
281
|
+
readonly mapie_split: StructType<{
|
|
282
|
+
readonly data: VariantType<{
|
|
283
|
+
readonly xgboost: BlobType;
|
|
284
|
+
readonly lightgbm: BlobType;
|
|
285
|
+
readonly histogram: BlobType;
|
|
286
|
+
}>;
|
|
287
|
+
readonly n_features: IntegerType;
|
|
288
|
+
readonly confidence_level: FloatType;
|
|
289
|
+
}>;
|
|
290
|
+
readonly mapie_cross: StructType<{
|
|
291
|
+
readonly data: VariantType<{
|
|
292
|
+
readonly xgboost: BlobType;
|
|
293
|
+
readonly lightgbm: BlobType;
|
|
294
|
+
readonly histogram: BlobType;
|
|
295
|
+
}>;
|
|
296
|
+
readonly n_features: IntegerType;
|
|
297
|
+
readonly confidence_level: FloatType;
|
|
298
|
+
}>;
|
|
299
|
+
readonly mapie_cqr: StructType<{
|
|
300
|
+
readonly data: VariantType<{
|
|
301
|
+
readonly xgboost: BlobType;
|
|
302
|
+
readonly lightgbm: BlobType;
|
|
303
|
+
readonly histogram: BlobType;
|
|
304
|
+
}>;
|
|
305
|
+
readonly n_features: IntegerType;
|
|
306
|
+
readonly confidence_level: FloatType;
|
|
307
|
+
}>;
|
|
308
|
+
}>;
|
|
309
|
+
/**
|
|
310
|
+
* MAPIE classifier model blob type for SHAP.
|
|
311
|
+
* Must match MAPIEClassifierBlobType from mapie.ts.
|
|
312
|
+
*/
|
|
313
|
+
export declare const MAPIEClassifierBlobType: StructType<{
|
|
314
|
+
readonly data: VariantType<{
|
|
315
|
+
readonly xgboost: BlobType;
|
|
316
|
+
readonly lightgbm: BlobType;
|
|
317
|
+
readonly histogram: BlobType;
|
|
318
|
+
}>;
|
|
319
|
+
readonly n_features: IntegerType;
|
|
320
|
+
readonly n_classes: IntegerType;
|
|
321
|
+
readonly classes: ArrayType<IntegerType>;
|
|
322
|
+
readonly confidence_level: FloatType;
|
|
323
|
+
}>;
|
|
324
|
+
/**
|
|
325
|
+
* SHAP result for MAPIE regressors.
|
|
326
|
+
* Contains explanations for both point prediction and uncertainty (interval width).
|
|
327
|
+
*/
|
|
328
|
+
export declare const MapieRegressorShapResultType: StructType<{
|
|
329
|
+
/** SHAP values for point prediction (what drives the predicted value) */
|
|
330
|
+
readonly point_prediction: StructType<{
|
|
331
|
+
/** SHAP values - 2D matrix or 3D tensor depending on model type */
|
|
332
|
+
readonly shap_values: VariantType<{
|
|
333
|
+
/** 2D matrix for regression or binary classification (n_samples x n_features) */
|
|
334
|
+
readonly matrix_2d: ArrayType<ArrayType<FloatType>>;
|
|
335
|
+
/** 3D tensor for multi-class classification (n_samples x n_features x n_classes) */
|
|
336
|
+
readonly tensor_3d: ArrayType<ArrayType<ArrayType<FloatType>>>;
|
|
337
|
+
}>;
|
|
338
|
+
/** Base value(s) - single float or per-class array */
|
|
339
|
+
readonly base_value: VariantType<{
|
|
340
|
+
/** Single base value for regression or binary classification */
|
|
341
|
+
readonly single: FloatType;
|
|
342
|
+
/** Per-class base values for multi-class classification */
|
|
343
|
+
readonly per_class: ArrayType<FloatType>;
|
|
344
|
+
}>;
|
|
345
|
+
/** Feature names */
|
|
346
|
+
readonly feature_names: ArrayType<StringType>;
|
|
347
|
+
}>;
|
|
348
|
+
/** SHAP values for interval width (what drives uncertainty) */
|
|
349
|
+
readonly interval_width: StructType<{
|
|
350
|
+
/** SHAP values - 2D matrix or 3D tensor depending on model type */
|
|
351
|
+
readonly shap_values: VariantType<{
|
|
352
|
+
/** 2D matrix for regression or binary classification (n_samples x n_features) */
|
|
353
|
+
readonly matrix_2d: ArrayType<ArrayType<FloatType>>;
|
|
354
|
+
/** 3D tensor for multi-class classification (n_samples x n_features x n_classes) */
|
|
355
|
+
readonly tensor_3d: ArrayType<ArrayType<ArrayType<FloatType>>>;
|
|
356
|
+
}>;
|
|
357
|
+
/** Base value(s) - single float or per-class array */
|
|
358
|
+
readonly base_value: VariantType<{
|
|
359
|
+
/** Single base value for regression or binary classification */
|
|
360
|
+
readonly single: FloatType;
|
|
361
|
+
/** Per-class base values for multi-class classification */
|
|
362
|
+
readonly per_class: ArrayType<FloatType>;
|
|
363
|
+
}>;
|
|
364
|
+
/** Feature names */
|
|
365
|
+
readonly feature_names: ArrayType<StringType>;
|
|
366
|
+
}>;
|
|
367
|
+
}>;
|
|
368
|
+
/**
|
|
369
|
+
* SHAP result for MAPIE classifiers.
|
|
370
|
+
* Contains explanations for both class probabilities and prediction set size.
|
|
371
|
+
*/
|
|
372
|
+
export declare const MapieClassifierShapResultType: StructType<{
|
|
373
|
+
/** SHAP values for class probabilities (what drives each class probability) */
|
|
374
|
+
readonly class_probabilities: StructType<{
|
|
375
|
+
/** SHAP values - 2D matrix or 3D tensor depending on model type */
|
|
376
|
+
readonly shap_values: VariantType<{
|
|
377
|
+
/** 2D matrix for regression or binary classification (n_samples x n_features) */
|
|
378
|
+
readonly matrix_2d: ArrayType<ArrayType<FloatType>>;
|
|
379
|
+
/** 3D tensor for multi-class classification (n_samples x n_features x n_classes) */
|
|
380
|
+
readonly tensor_3d: ArrayType<ArrayType<ArrayType<FloatType>>>;
|
|
381
|
+
}>;
|
|
382
|
+
/** Base value(s) - single float or per-class array */
|
|
383
|
+
readonly base_value: VariantType<{
|
|
384
|
+
/** Single base value for regression or binary classification */
|
|
385
|
+
readonly single: FloatType;
|
|
386
|
+
/** Per-class base values for multi-class classification */
|
|
387
|
+
readonly per_class: ArrayType<FloatType>;
|
|
388
|
+
}>;
|
|
389
|
+
/** Feature names */
|
|
390
|
+
readonly feature_names: ArrayType<StringType>;
|
|
391
|
+
}>;
|
|
392
|
+
/** SHAP values for prediction set size (what drives uncertainty) */
|
|
393
|
+
readonly prediction_set_size: StructType<{
|
|
394
|
+
/** SHAP values - 2D matrix or 3D tensor depending on model type */
|
|
395
|
+
readonly shap_values: VariantType<{
|
|
396
|
+
/** 2D matrix for regression or binary classification (n_samples x n_features) */
|
|
397
|
+
readonly matrix_2d: ArrayType<ArrayType<FloatType>>;
|
|
398
|
+
/** 3D tensor for multi-class classification (n_samples x n_features x n_classes) */
|
|
399
|
+
readonly tensor_3d: ArrayType<ArrayType<ArrayType<FloatType>>>;
|
|
400
|
+
}>;
|
|
401
|
+
/** Base value(s) - single float or per-class array */
|
|
402
|
+
readonly base_value: VariantType<{
|
|
403
|
+
/** Single base value for regression or binary classification */
|
|
404
|
+
readonly single: FloatType;
|
|
405
|
+
/** Per-class base values for multi-class classification */
|
|
406
|
+
readonly per_class: ArrayType<FloatType>;
|
|
407
|
+
}>;
|
|
408
|
+
/** Feature names */
|
|
409
|
+
readonly feature_names: ArrayType<StringType>;
|
|
126
410
|
}>;
|
|
127
411
|
}>;
|
|
128
412
|
/**
|
|
@@ -135,41 +419,81 @@ export declare const AnyModelBlobType: VariantType<{
|
|
|
135
419
|
*/
|
|
136
420
|
export declare const shap_tree_explainer_create: import("@elaraai/east").PlatformDefinition<[VariantType<{
|
|
137
421
|
/** XGBoost regressor */
|
|
138
|
-
xgboost_regressor: StructType<{
|
|
139
|
-
data: BlobType;
|
|
140
|
-
n_features: IntegerType;
|
|
422
|
+
readonly xgboost_regressor: StructType<{
|
|
423
|
+
readonly data: BlobType;
|
|
424
|
+
readonly n_features: IntegerType;
|
|
425
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
141
426
|
}>;
|
|
142
427
|
/** XGBoost classifier */
|
|
143
|
-
xgboost_classifier: StructType<{
|
|
144
|
-
data: BlobType;
|
|
145
|
-
n_features: IntegerType;
|
|
146
|
-
n_classes: IntegerType;
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
428
|
+
readonly xgboost_classifier: StructType<{
|
|
429
|
+
readonly data: BlobType;
|
|
430
|
+
readonly n_features: IntegerType;
|
|
431
|
+
readonly n_classes: IntegerType;
|
|
432
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
433
|
+
}>;
|
|
434
|
+
/** XGBoost quantile regressor (uses median quantile for explanations) */
|
|
435
|
+
readonly xgboost_quantile: StructType<{
|
|
436
|
+
readonly data: BlobType;
|
|
437
|
+
readonly quantiles: ArrayType<FloatType>;
|
|
438
|
+
readonly n_features: IntegerType;
|
|
439
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
440
|
+
}>;
|
|
441
|
+
/** MAPIE split conformal regressor with XGBoost base */
|
|
442
|
+
readonly mapie_split: StructType<{
|
|
443
|
+
readonly data: VariantType<{
|
|
444
|
+
readonly xgboost: BlobType;
|
|
445
|
+
readonly lightgbm: BlobType;
|
|
446
|
+
readonly histogram: BlobType;
|
|
447
|
+
}>;
|
|
448
|
+
readonly n_features: IntegerType;
|
|
449
|
+
readonly confidence_level: FloatType;
|
|
450
|
+
}>;
|
|
451
|
+
/** MAPIE cross conformal regressor with XGBoost base */
|
|
452
|
+
readonly mapie_cross: StructType<{
|
|
453
|
+
readonly data: VariantType<{
|
|
454
|
+
readonly xgboost: BlobType;
|
|
455
|
+
readonly lightgbm: BlobType;
|
|
456
|
+
readonly histogram: BlobType;
|
|
457
|
+
}>;
|
|
458
|
+
readonly n_features: IntegerType;
|
|
459
|
+
readonly confidence_level: FloatType;
|
|
460
|
+
}>;
|
|
461
|
+
/** MAPIE CQR conformal regressor with XGBoost base */
|
|
462
|
+
readonly mapie_cqr: StructType<{
|
|
463
|
+
readonly data: VariantType<{
|
|
464
|
+
readonly xgboost: BlobType;
|
|
465
|
+
readonly lightgbm: BlobType;
|
|
466
|
+
readonly histogram: BlobType;
|
|
467
|
+
}>;
|
|
468
|
+
readonly n_features: IntegerType;
|
|
469
|
+
readonly confidence_level: FloatType;
|
|
470
|
+
}>;
|
|
471
|
+
/** MAPIE conformal classifier with XGBoost base */
|
|
472
|
+
readonly mapie_classifier: StructType<{
|
|
473
|
+
readonly data: VariantType<{
|
|
474
|
+
readonly xgboost: BlobType;
|
|
475
|
+
readonly lightgbm: BlobType;
|
|
476
|
+
readonly histogram: BlobType;
|
|
477
|
+
}>;
|
|
478
|
+
readonly n_features: IntegerType;
|
|
479
|
+
readonly n_classes: IntegerType;
|
|
480
|
+
readonly classes: ArrayType<IntegerType>;
|
|
481
|
+
readonly confidence_level: FloatType;
|
|
158
482
|
}>;
|
|
159
483
|
}>], VariantType<{
|
|
160
484
|
/** SHAP TreeExplainer for tree-based models */
|
|
161
|
-
shap_tree_explainer: StructType<{
|
|
485
|
+
readonly shap_tree_explainer: StructType<{
|
|
162
486
|
/** Cloudpickle serialized explainer */
|
|
163
|
-
data: BlobType;
|
|
487
|
+
readonly data: BlobType;
|
|
164
488
|
/** Number of input features */
|
|
165
|
-
n_features: IntegerType;
|
|
489
|
+
readonly n_features: IntegerType;
|
|
166
490
|
}>;
|
|
167
491
|
/** SHAP KernelExplainer for any model */
|
|
168
|
-
shap_kernel_explainer: StructType<{
|
|
492
|
+
readonly shap_kernel_explainer: StructType<{
|
|
169
493
|
/** Cloudpickle serialized explainer */
|
|
170
|
-
data: BlobType;
|
|
494
|
+
readonly data: BlobType;
|
|
171
495
|
/** Number of input features */
|
|
172
|
-
n_features: IntegerType;
|
|
496
|
+
readonly n_features: IntegerType;
|
|
173
497
|
}>;
|
|
174
498
|
}>>;
|
|
175
499
|
/**
|
|
@@ -183,57 +507,125 @@ export declare const shap_tree_explainer_create: import("@elaraai/east").Platfor
|
|
|
183
507
|
* @returns SHAP KernelExplainer blob
|
|
184
508
|
*/
|
|
185
509
|
export declare const shap_kernel_explainer_create: import("@elaraai/east").PlatformDefinition<[VariantType<{
|
|
186
|
-
xgboost_regressor: StructType<{
|
|
187
|
-
data: BlobType;
|
|
188
|
-
n_features: IntegerType;
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}>;
|
|
212
|
-
|
|
213
|
-
data: BlobType;
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
510
|
+
readonly xgboost_regressor: StructType<{
|
|
511
|
+
readonly data: BlobType;
|
|
512
|
+
readonly n_features: IntegerType;
|
|
513
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
514
|
+
}>;
|
|
515
|
+
readonly xgboost_classifier: StructType<{
|
|
516
|
+
readonly data: BlobType;
|
|
517
|
+
readonly n_features: IntegerType;
|
|
518
|
+
readonly n_classes: IntegerType;
|
|
519
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
520
|
+
}>;
|
|
521
|
+
readonly xgboost_quantile: StructType<{
|
|
522
|
+
readonly data: BlobType;
|
|
523
|
+
readonly quantiles: ArrayType<FloatType>;
|
|
524
|
+
readonly n_features: IntegerType;
|
|
525
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
526
|
+
}>;
|
|
527
|
+
readonly lightgbm_regressor: StructType<{
|
|
528
|
+
readonly data: BlobType;
|
|
529
|
+
readonly n_features: IntegerType;
|
|
530
|
+
}>;
|
|
531
|
+
readonly lightgbm_classifier: StructType<{
|
|
532
|
+
readonly data: BlobType;
|
|
533
|
+
readonly n_features: IntegerType;
|
|
534
|
+
readonly n_classes: IntegerType;
|
|
535
|
+
}>;
|
|
536
|
+
readonly ngboost_regressor: StructType<{
|
|
537
|
+
readonly data: BlobType;
|
|
538
|
+
readonly distribution: VariantType<{
|
|
539
|
+
readonly normal: NullType;
|
|
540
|
+
readonly lognormal: NullType;
|
|
541
|
+
}>;
|
|
542
|
+
readonly n_features: IntegerType;
|
|
543
|
+
}>;
|
|
544
|
+
readonly gp_regressor: StructType<{
|
|
545
|
+
readonly data: BlobType;
|
|
546
|
+
readonly n_features: IntegerType;
|
|
547
|
+
readonly kernel_type: StringType;
|
|
548
|
+
}>;
|
|
549
|
+
readonly torch_mlp: StructType<{
|
|
550
|
+
readonly data: BlobType;
|
|
551
|
+
readonly n_features: IntegerType;
|
|
552
|
+
readonly hidden_layers: ArrayType<IntegerType>;
|
|
553
|
+
readonly output_dim: IntegerType;
|
|
554
|
+
}>;
|
|
555
|
+
readonly standard_scaler: StructType<{
|
|
556
|
+
readonly onnx: BlobType;
|
|
557
|
+
readonly n_features: IntegerType;
|
|
558
|
+
}>;
|
|
559
|
+
readonly min_max_scaler: StructType<{
|
|
560
|
+
readonly onnx: BlobType;
|
|
561
|
+
readonly n_features: IntegerType;
|
|
562
|
+
}>;
|
|
563
|
+
readonly regressor_chain: StructType<{
|
|
564
|
+
readonly data: BlobType;
|
|
565
|
+
readonly n_features: IntegerType;
|
|
566
|
+
readonly n_targets: IntegerType;
|
|
567
|
+
readonly base_estimator_type: StringType;
|
|
568
|
+
}>;
|
|
569
|
+
readonly mapie_split: StructType<{
|
|
570
|
+
readonly data: VariantType<{
|
|
571
|
+
readonly xgboost: BlobType;
|
|
572
|
+
readonly lightgbm: BlobType;
|
|
573
|
+
readonly histogram: BlobType;
|
|
574
|
+
}>;
|
|
575
|
+
readonly n_features: IntegerType;
|
|
576
|
+
readonly confidence_level: FloatType;
|
|
577
|
+
}>;
|
|
578
|
+
readonly mapie_cross: StructType<{
|
|
579
|
+
readonly data: VariantType<{
|
|
580
|
+
readonly xgboost: BlobType;
|
|
581
|
+
readonly lightgbm: BlobType;
|
|
582
|
+
readonly histogram: BlobType;
|
|
583
|
+
}>;
|
|
584
|
+
readonly n_features: IntegerType;
|
|
585
|
+
readonly confidence_level: FloatType;
|
|
586
|
+
}>;
|
|
587
|
+
readonly mapie_cqr: StructType<{
|
|
588
|
+
readonly data: VariantType<{
|
|
589
|
+
readonly xgboost: BlobType;
|
|
590
|
+
readonly lightgbm: BlobType;
|
|
591
|
+
readonly histogram: BlobType;
|
|
592
|
+
}>;
|
|
593
|
+
readonly n_features: IntegerType;
|
|
594
|
+
readonly confidence_level: FloatType;
|
|
595
|
+
}>;
|
|
596
|
+
readonly mapie_classifier: StructType<{
|
|
597
|
+
readonly data: VariantType<{
|
|
598
|
+
readonly xgboost: BlobType;
|
|
599
|
+
readonly lightgbm: BlobType;
|
|
600
|
+
readonly histogram: BlobType;
|
|
601
|
+
}>;
|
|
602
|
+
readonly n_features: IntegerType;
|
|
603
|
+
readonly n_classes: IntegerType;
|
|
604
|
+
readonly classes: ArrayType<IntegerType>;
|
|
605
|
+
readonly confidence_level: FloatType;
|
|
606
|
+
}>;
|
|
607
|
+
readonly mapie_interval_width: StructType<{
|
|
608
|
+
readonly data: BlobType;
|
|
609
|
+
readonly n_features: IntegerType;
|
|
610
|
+
}>;
|
|
611
|
+
readonly mapie_set_size: StructType<{
|
|
612
|
+
readonly data: BlobType;
|
|
613
|
+
readonly n_features: IntegerType;
|
|
222
614
|
}>;
|
|
223
615
|
}>, ArrayType<ArrayType<FloatType>>], VariantType<{
|
|
224
616
|
/** SHAP TreeExplainer for tree-based models */
|
|
225
|
-
shap_tree_explainer: StructType<{
|
|
617
|
+
readonly shap_tree_explainer: StructType<{
|
|
226
618
|
/** Cloudpickle serialized explainer */
|
|
227
|
-
data: BlobType;
|
|
619
|
+
readonly data: BlobType;
|
|
228
620
|
/** Number of input features */
|
|
229
|
-
n_features: IntegerType;
|
|
621
|
+
readonly n_features: IntegerType;
|
|
230
622
|
}>;
|
|
231
623
|
/** SHAP KernelExplainer for any model */
|
|
232
|
-
shap_kernel_explainer: StructType<{
|
|
624
|
+
readonly shap_kernel_explainer: StructType<{
|
|
233
625
|
/** Cloudpickle serialized explainer */
|
|
234
|
-
data: BlobType;
|
|
626
|
+
readonly data: BlobType;
|
|
235
627
|
/** Number of input features */
|
|
236
|
-
n_features: IntegerType;
|
|
628
|
+
readonly n_features: IntegerType;
|
|
237
629
|
}>;
|
|
238
630
|
}>>;
|
|
239
631
|
/**
|
|
@@ -246,41 +638,56 @@ export declare const shap_kernel_explainer_create: import("@elaraai/east").Platf
|
|
|
246
638
|
*/
|
|
247
639
|
export declare const shap_compute_values: import("@elaraai/east").PlatformDefinition<[VariantType<{
|
|
248
640
|
/** SHAP TreeExplainer for tree-based models */
|
|
249
|
-
shap_tree_explainer: StructType<{
|
|
641
|
+
readonly shap_tree_explainer: StructType<{
|
|
250
642
|
/** Cloudpickle serialized explainer */
|
|
251
|
-
data: BlobType;
|
|
643
|
+
readonly data: BlobType;
|
|
252
644
|
/** Number of input features */
|
|
253
|
-
n_features: IntegerType;
|
|
645
|
+
readonly n_features: IntegerType;
|
|
254
646
|
}>;
|
|
255
647
|
/** SHAP KernelExplainer for any model */
|
|
256
|
-
shap_kernel_explainer: StructType<{
|
|
648
|
+
readonly shap_kernel_explainer: StructType<{
|
|
257
649
|
/** Cloudpickle serialized explainer */
|
|
258
|
-
data: BlobType;
|
|
650
|
+
readonly data: BlobType;
|
|
259
651
|
/** Number of input features */
|
|
260
|
-
n_features: IntegerType;
|
|
652
|
+
readonly n_features: IntegerType;
|
|
261
653
|
}>;
|
|
262
654
|
}>, ArrayType<ArrayType<FloatType>>, ArrayType<StringType>], StructType<{
|
|
263
|
-
/** SHAP values matrix
|
|
264
|
-
shap_values:
|
|
265
|
-
|
|
266
|
-
|
|
655
|
+
/** SHAP values - 2D matrix or 3D tensor depending on model type */
|
|
656
|
+
readonly shap_values: VariantType<{
|
|
657
|
+
/** 2D matrix for regression or binary classification (n_samples x n_features) */
|
|
658
|
+
readonly matrix_2d: ArrayType<ArrayType<FloatType>>;
|
|
659
|
+
/** 3D tensor for multi-class classification (n_samples x n_features x n_classes) */
|
|
660
|
+
readonly tensor_3d: ArrayType<ArrayType<ArrayType<FloatType>>>;
|
|
661
|
+
}>;
|
|
662
|
+
/** Base value(s) - single float or per-class array */
|
|
663
|
+
readonly base_value: VariantType<{
|
|
664
|
+
/** Single base value for regression or binary classification */
|
|
665
|
+
readonly single: FloatType;
|
|
666
|
+
/** Per-class base values for multi-class classification */
|
|
667
|
+
readonly per_class: ArrayType<FloatType>;
|
|
668
|
+
}>;
|
|
267
669
|
/** Feature names */
|
|
268
|
-
feature_names: ArrayType<StringType>;
|
|
670
|
+
readonly feature_names: ArrayType<StringType>;
|
|
269
671
|
}>>;
|
|
270
672
|
/**
|
|
271
673
|
* Compute global feature importance from SHAP values.
|
|
272
674
|
*
|
|
273
|
-
* @param shap_values - SHAP values matrix
|
|
675
|
+
* @param shap_values - SHAP values (2D matrix or 3D tensor)
|
|
274
676
|
* @param feature_names - Names of features
|
|
275
677
|
* @returns Feature importance with mean |SHAP| values
|
|
276
678
|
*/
|
|
277
|
-
export declare const shap_feature_importance: import("@elaraai/east").PlatformDefinition<[
|
|
679
|
+
export declare const shap_feature_importance: import("@elaraai/east").PlatformDefinition<[VariantType<{
|
|
680
|
+
/** 2D matrix for regression or binary classification (n_samples x n_features) */
|
|
681
|
+
readonly matrix_2d: ArrayType<ArrayType<FloatType>>;
|
|
682
|
+
/** 3D tensor for multi-class classification (n_samples x n_features x n_classes) */
|
|
683
|
+
readonly tensor_3d: ArrayType<ArrayType<ArrayType<FloatType>>>;
|
|
684
|
+
}>, ArrayType<StringType>], StructType<{
|
|
278
685
|
/** Feature names */
|
|
279
|
-
feature_names: ArrayType<StringType>;
|
|
686
|
+
readonly feature_names: ArrayType<StringType>;
|
|
280
687
|
/** Mean absolute SHAP value for each feature */
|
|
281
|
-
importances: ArrayType<FloatType>;
|
|
688
|
+
readonly importances: ArrayType<FloatType>;
|
|
282
689
|
/** Standard deviation of absolute SHAP values */
|
|
283
|
-
std: OptionType<ArrayType<FloatType>>;
|
|
690
|
+
readonly std: OptionType<ArrayType<FloatType>>;
|
|
284
691
|
}>>;
|
|
285
692
|
/**
|
|
286
693
|
* Type definitions for SHAP functions.
|
|
@@ -292,104 +699,236 @@ export declare const ShapTypes: {
|
|
|
292
699
|
readonly MatrixType: ArrayType<ArrayType<FloatType>>;
|
|
293
700
|
/** String vector type */
|
|
294
701
|
readonly StringVectorType: ArrayType<StringType>;
|
|
702
|
+
/** SHAP values variant type (2D or 3D) */
|
|
703
|
+
readonly ShapValuesType: VariantType<{
|
|
704
|
+
/** 2D matrix for regression or binary classification (n_samples x n_features) */
|
|
705
|
+
readonly matrix_2d: ArrayType<ArrayType<FloatType>>;
|
|
706
|
+
/** 3D tensor for multi-class classification (n_samples x n_features x n_classes) */
|
|
707
|
+
readonly tensor_3d: ArrayType<ArrayType<ArrayType<FloatType>>>;
|
|
708
|
+
}>;
|
|
709
|
+
/** SHAP base value variant type (single or per-class) */
|
|
710
|
+
readonly ShapBaseValueType: VariantType<{
|
|
711
|
+
/** Single base value for regression or binary classification */
|
|
712
|
+
readonly single: FloatType;
|
|
713
|
+
/** Per-class base values for multi-class classification */
|
|
714
|
+
readonly per_class: ArrayType<FloatType>;
|
|
715
|
+
}>;
|
|
295
716
|
/** SHAP result type */
|
|
296
717
|
readonly ShapResultType: StructType<{
|
|
297
|
-
/** SHAP values matrix
|
|
298
|
-
shap_values:
|
|
299
|
-
|
|
300
|
-
|
|
718
|
+
/** SHAP values - 2D matrix or 3D tensor depending on model type */
|
|
719
|
+
readonly shap_values: VariantType<{
|
|
720
|
+
/** 2D matrix for regression or binary classification (n_samples x n_features) */
|
|
721
|
+
readonly matrix_2d: ArrayType<ArrayType<FloatType>>;
|
|
722
|
+
/** 3D tensor for multi-class classification (n_samples x n_features x n_classes) */
|
|
723
|
+
readonly tensor_3d: ArrayType<ArrayType<ArrayType<FloatType>>>;
|
|
724
|
+
}>;
|
|
725
|
+
/** Base value(s) - single float or per-class array */
|
|
726
|
+
readonly base_value: VariantType<{
|
|
727
|
+
/** Single base value for regression or binary classification */
|
|
728
|
+
readonly single: FloatType;
|
|
729
|
+
/** Per-class base values for multi-class classification */
|
|
730
|
+
readonly per_class: ArrayType<FloatType>;
|
|
731
|
+
}>;
|
|
301
732
|
/** Feature names */
|
|
302
|
-
feature_names: ArrayType<StringType>;
|
|
733
|
+
readonly feature_names: ArrayType<StringType>;
|
|
303
734
|
}>;
|
|
304
735
|
/** Feature importance type */
|
|
305
736
|
readonly FeatureImportanceType: StructType<{
|
|
306
737
|
/** Feature names */
|
|
307
|
-
feature_names: ArrayType<StringType>;
|
|
738
|
+
readonly feature_names: ArrayType<StringType>;
|
|
308
739
|
/** Mean absolute SHAP value for each feature */
|
|
309
|
-
importances: ArrayType<FloatType>;
|
|
740
|
+
readonly importances: ArrayType<FloatType>;
|
|
310
741
|
/** Standard deviation of absolute SHAP values */
|
|
311
|
-
std: OptionType<ArrayType<FloatType>>;
|
|
742
|
+
readonly std: OptionType<ArrayType<FloatType>>;
|
|
312
743
|
}>;
|
|
313
744
|
/** SHAP explainer model blob type */
|
|
314
745
|
readonly ShapModelBlobType: VariantType<{
|
|
315
746
|
/** SHAP TreeExplainer for tree-based models */
|
|
316
|
-
shap_tree_explainer: StructType<{
|
|
747
|
+
readonly shap_tree_explainer: StructType<{
|
|
317
748
|
/** Cloudpickle serialized explainer */
|
|
318
|
-
data: BlobType;
|
|
749
|
+
readonly data: BlobType;
|
|
319
750
|
/** Number of input features */
|
|
320
|
-
n_features: IntegerType;
|
|
751
|
+
readonly n_features: IntegerType;
|
|
321
752
|
}>;
|
|
322
753
|
/** SHAP KernelExplainer for any model */
|
|
323
|
-
shap_kernel_explainer: StructType<{
|
|
754
|
+
readonly shap_kernel_explainer: StructType<{
|
|
324
755
|
/** Cloudpickle serialized explainer */
|
|
325
|
-
data: BlobType;
|
|
756
|
+
readonly data: BlobType;
|
|
326
757
|
/** Number of input features */
|
|
327
|
-
n_features: IntegerType;
|
|
758
|
+
readonly n_features: IntegerType;
|
|
328
759
|
}>;
|
|
329
760
|
}>;
|
|
330
761
|
/** Tree model blob type for input */
|
|
331
762
|
readonly TreeModelBlobType: VariantType<{
|
|
332
763
|
/** XGBoost regressor */
|
|
333
|
-
xgboost_regressor: StructType<{
|
|
334
|
-
data: BlobType;
|
|
335
|
-
n_features: IntegerType;
|
|
764
|
+
readonly xgboost_regressor: StructType<{
|
|
765
|
+
readonly data: BlobType;
|
|
766
|
+
readonly n_features: IntegerType;
|
|
767
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
336
768
|
}>;
|
|
337
769
|
/** XGBoost classifier */
|
|
338
|
-
xgboost_classifier: StructType<{
|
|
339
|
-
data: BlobType;
|
|
340
|
-
n_features: IntegerType;
|
|
341
|
-
n_classes: IntegerType;
|
|
770
|
+
readonly xgboost_classifier: StructType<{
|
|
771
|
+
readonly data: BlobType;
|
|
772
|
+
readonly n_features: IntegerType;
|
|
773
|
+
readonly n_classes: IntegerType;
|
|
774
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
775
|
+
}>;
|
|
776
|
+
/** XGBoost quantile regressor (uses median quantile for explanations) */
|
|
777
|
+
readonly xgboost_quantile: StructType<{
|
|
778
|
+
readonly data: BlobType;
|
|
779
|
+
readonly quantiles: ArrayType<FloatType>;
|
|
780
|
+
readonly n_features: IntegerType;
|
|
781
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
782
|
+
}>;
|
|
783
|
+
/** MAPIE split conformal regressor with XGBoost base */
|
|
784
|
+
readonly mapie_split: StructType<{
|
|
785
|
+
readonly data: VariantType<{
|
|
786
|
+
readonly xgboost: BlobType;
|
|
787
|
+
readonly lightgbm: BlobType;
|
|
788
|
+
readonly histogram: BlobType;
|
|
789
|
+
}>;
|
|
790
|
+
readonly n_features: IntegerType;
|
|
791
|
+
readonly confidence_level: FloatType;
|
|
792
|
+
}>;
|
|
793
|
+
/** MAPIE cross conformal regressor with XGBoost base */
|
|
794
|
+
readonly mapie_cross: StructType<{
|
|
795
|
+
readonly data: VariantType<{
|
|
796
|
+
readonly xgboost: BlobType;
|
|
797
|
+
readonly lightgbm: BlobType;
|
|
798
|
+
readonly histogram: BlobType;
|
|
799
|
+
}>;
|
|
800
|
+
readonly n_features: IntegerType;
|
|
801
|
+
readonly confidence_level: FloatType;
|
|
342
802
|
}>;
|
|
343
|
-
/**
|
|
344
|
-
|
|
345
|
-
data:
|
|
346
|
-
|
|
803
|
+
/** MAPIE CQR conformal regressor with XGBoost base */
|
|
804
|
+
readonly mapie_cqr: StructType<{
|
|
805
|
+
readonly data: VariantType<{
|
|
806
|
+
readonly xgboost: BlobType;
|
|
807
|
+
readonly lightgbm: BlobType;
|
|
808
|
+
readonly histogram: BlobType;
|
|
809
|
+
}>;
|
|
810
|
+
readonly n_features: IntegerType;
|
|
811
|
+
readonly confidence_level: FloatType;
|
|
347
812
|
}>;
|
|
348
|
-
/**
|
|
349
|
-
|
|
350
|
-
data:
|
|
351
|
-
|
|
352
|
-
|
|
813
|
+
/** MAPIE conformal classifier with XGBoost base */
|
|
814
|
+
readonly mapie_classifier: StructType<{
|
|
815
|
+
readonly data: VariantType<{
|
|
816
|
+
readonly xgboost: BlobType;
|
|
817
|
+
readonly lightgbm: BlobType;
|
|
818
|
+
readonly histogram: BlobType;
|
|
819
|
+
}>;
|
|
820
|
+
readonly n_features: IntegerType;
|
|
821
|
+
readonly n_classes: IntegerType;
|
|
822
|
+
readonly classes: ArrayType<IntegerType>;
|
|
823
|
+
readonly confidence_level: FloatType;
|
|
353
824
|
}>;
|
|
354
825
|
}>;
|
|
355
826
|
/** Any model blob type for kernel explainer */
|
|
356
827
|
readonly AnyModelBlobType: VariantType<{
|
|
357
|
-
xgboost_regressor: StructType<{
|
|
358
|
-
data: BlobType;
|
|
359
|
-
n_features: IntegerType;
|
|
828
|
+
readonly xgboost_regressor: StructType<{
|
|
829
|
+
readonly data: BlobType;
|
|
830
|
+
readonly n_features: IntegerType;
|
|
831
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
832
|
+
}>;
|
|
833
|
+
readonly xgboost_classifier: StructType<{
|
|
834
|
+
readonly data: BlobType;
|
|
835
|
+
readonly n_features: IntegerType;
|
|
836
|
+
readonly n_classes: IntegerType;
|
|
837
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
360
838
|
}>;
|
|
361
|
-
|
|
362
|
-
data: BlobType;
|
|
363
|
-
|
|
364
|
-
|
|
839
|
+
readonly xgboost_quantile: StructType<{
|
|
840
|
+
readonly data: BlobType;
|
|
841
|
+
readonly quantiles: ArrayType<FloatType>;
|
|
842
|
+
readonly n_features: IntegerType;
|
|
843
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
365
844
|
}>;
|
|
366
|
-
lightgbm_regressor: StructType<{
|
|
367
|
-
data: BlobType;
|
|
368
|
-
n_features: IntegerType;
|
|
845
|
+
readonly lightgbm_regressor: StructType<{
|
|
846
|
+
readonly data: BlobType;
|
|
847
|
+
readonly n_features: IntegerType;
|
|
369
848
|
}>;
|
|
370
|
-
lightgbm_classifier: StructType<{
|
|
371
|
-
data: BlobType;
|
|
372
|
-
n_features: IntegerType;
|
|
373
|
-
n_classes: IntegerType;
|
|
849
|
+
readonly lightgbm_classifier: StructType<{
|
|
850
|
+
readonly data: BlobType;
|
|
851
|
+
readonly n_features: IntegerType;
|
|
852
|
+
readonly n_classes: IntegerType;
|
|
374
853
|
}>;
|
|
375
|
-
ngboost_regressor: StructType<{
|
|
376
|
-
data: BlobType;
|
|
377
|
-
distribution: VariantType<{
|
|
378
|
-
normal:
|
|
379
|
-
lognormal:
|
|
854
|
+
readonly ngboost_regressor: StructType<{
|
|
855
|
+
readonly data: BlobType;
|
|
856
|
+
readonly distribution: VariantType<{
|
|
857
|
+
readonly normal: NullType;
|
|
858
|
+
readonly lognormal: NullType;
|
|
380
859
|
}>;
|
|
381
|
-
n_features: IntegerType;
|
|
860
|
+
readonly n_features: IntegerType;
|
|
861
|
+
}>;
|
|
862
|
+
readonly gp_regressor: StructType<{
|
|
863
|
+
readonly data: BlobType;
|
|
864
|
+
readonly n_features: IntegerType;
|
|
865
|
+
readonly kernel_type: StringType;
|
|
866
|
+
}>;
|
|
867
|
+
readonly torch_mlp: StructType<{
|
|
868
|
+
readonly data: BlobType;
|
|
869
|
+
readonly n_features: IntegerType;
|
|
870
|
+
readonly hidden_layers: ArrayType<IntegerType>;
|
|
871
|
+
readonly output_dim: IntegerType;
|
|
872
|
+
}>;
|
|
873
|
+
readonly standard_scaler: StructType<{
|
|
874
|
+
readonly onnx: BlobType;
|
|
875
|
+
readonly n_features: IntegerType;
|
|
382
876
|
}>;
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
n_features: IntegerType;
|
|
386
|
-
kernel_type: StringType;
|
|
877
|
+
readonly min_max_scaler: StructType<{
|
|
878
|
+
readonly onnx: BlobType;
|
|
879
|
+
readonly n_features: IntegerType;
|
|
387
880
|
}>;
|
|
388
|
-
|
|
389
|
-
data: BlobType;
|
|
390
|
-
n_features: IntegerType;
|
|
391
|
-
|
|
392
|
-
|
|
881
|
+
readonly regressor_chain: StructType<{
|
|
882
|
+
readonly data: BlobType;
|
|
883
|
+
readonly n_features: IntegerType;
|
|
884
|
+
readonly n_targets: IntegerType;
|
|
885
|
+
readonly base_estimator_type: StringType;
|
|
886
|
+
}>;
|
|
887
|
+
readonly mapie_split: StructType<{
|
|
888
|
+
readonly data: VariantType<{
|
|
889
|
+
readonly xgboost: BlobType;
|
|
890
|
+
readonly lightgbm: BlobType;
|
|
891
|
+
readonly histogram: BlobType;
|
|
892
|
+
}>;
|
|
893
|
+
readonly n_features: IntegerType;
|
|
894
|
+
readonly confidence_level: FloatType;
|
|
895
|
+
}>;
|
|
896
|
+
readonly mapie_cross: StructType<{
|
|
897
|
+
readonly data: VariantType<{
|
|
898
|
+
readonly xgboost: BlobType;
|
|
899
|
+
readonly lightgbm: BlobType;
|
|
900
|
+
readonly histogram: BlobType;
|
|
901
|
+
}>;
|
|
902
|
+
readonly n_features: IntegerType;
|
|
903
|
+
readonly confidence_level: FloatType;
|
|
904
|
+
}>;
|
|
905
|
+
readonly mapie_cqr: StructType<{
|
|
906
|
+
readonly data: VariantType<{
|
|
907
|
+
readonly xgboost: BlobType;
|
|
908
|
+
readonly lightgbm: BlobType;
|
|
909
|
+
readonly histogram: BlobType;
|
|
910
|
+
}>;
|
|
911
|
+
readonly n_features: IntegerType;
|
|
912
|
+
readonly confidence_level: FloatType;
|
|
913
|
+
}>;
|
|
914
|
+
readonly mapie_classifier: StructType<{
|
|
915
|
+
readonly data: VariantType<{
|
|
916
|
+
readonly xgboost: BlobType;
|
|
917
|
+
readonly lightgbm: BlobType;
|
|
918
|
+
readonly histogram: BlobType;
|
|
919
|
+
}>;
|
|
920
|
+
readonly n_features: IntegerType;
|
|
921
|
+
readonly n_classes: IntegerType;
|
|
922
|
+
readonly classes: ArrayType<IntegerType>;
|
|
923
|
+
readonly confidence_level: FloatType;
|
|
924
|
+
}>;
|
|
925
|
+
readonly mapie_interval_width: StructType<{
|
|
926
|
+
readonly data: BlobType;
|
|
927
|
+
readonly n_features: IntegerType;
|
|
928
|
+
}>;
|
|
929
|
+
readonly mapie_set_size: StructType<{
|
|
930
|
+
readonly data: BlobType;
|
|
931
|
+
readonly n_features: IntegerType;
|
|
393
932
|
}>;
|
|
394
933
|
}>;
|
|
395
934
|
};
|
|
@@ -419,130 +958,253 @@ export declare const Shap: {
|
|
|
419
958
|
/** Create TreeExplainer for tree-based models */
|
|
420
959
|
readonly treeExplainerCreate: import("@elaraai/east").PlatformDefinition<[VariantType<{
|
|
421
960
|
/** XGBoost regressor */
|
|
422
|
-
xgboost_regressor: StructType<{
|
|
423
|
-
data: BlobType;
|
|
424
|
-
n_features: IntegerType;
|
|
961
|
+
readonly xgboost_regressor: StructType<{
|
|
962
|
+
readonly data: BlobType;
|
|
963
|
+
readonly n_features: IntegerType;
|
|
964
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
425
965
|
}>;
|
|
426
966
|
/** XGBoost classifier */
|
|
427
|
-
xgboost_classifier: StructType<{
|
|
428
|
-
data: BlobType;
|
|
429
|
-
n_features: IntegerType;
|
|
430
|
-
n_classes: IntegerType;
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
967
|
+
readonly xgboost_classifier: StructType<{
|
|
968
|
+
readonly data: BlobType;
|
|
969
|
+
readonly n_features: IntegerType;
|
|
970
|
+
readonly n_classes: IntegerType;
|
|
971
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
972
|
+
}>;
|
|
973
|
+
/** XGBoost quantile regressor (uses median quantile for explanations) */
|
|
974
|
+
readonly xgboost_quantile: StructType<{
|
|
975
|
+
readonly data: BlobType;
|
|
976
|
+
readonly quantiles: ArrayType<FloatType>;
|
|
977
|
+
readonly n_features: IntegerType;
|
|
978
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
979
|
+
}>;
|
|
980
|
+
/** MAPIE split conformal regressor with XGBoost base */
|
|
981
|
+
readonly mapie_split: StructType<{
|
|
982
|
+
readonly data: VariantType<{
|
|
983
|
+
readonly xgboost: BlobType;
|
|
984
|
+
readonly lightgbm: BlobType;
|
|
985
|
+
readonly histogram: BlobType;
|
|
986
|
+
}>;
|
|
987
|
+
readonly n_features: IntegerType;
|
|
988
|
+
readonly confidence_level: FloatType;
|
|
989
|
+
}>;
|
|
990
|
+
/** MAPIE cross conformal regressor with XGBoost base */
|
|
991
|
+
readonly mapie_cross: StructType<{
|
|
992
|
+
readonly data: VariantType<{
|
|
993
|
+
readonly xgboost: BlobType;
|
|
994
|
+
readonly lightgbm: BlobType;
|
|
995
|
+
readonly histogram: BlobType;
|
|
996
|
+
}>;
|
|
997
|
+
readonly n_features: IntegerType;
|
|
998
|
+
readonly confidence_level: FloatType;
|
|
999
|
+
}>;
|
|
1000
|
+
/** MAPIE CQR conformal regressor with XGBoost base */
|
|
1001
|
+
readonly mapie_cqr: StructType<{
|
|
1002
|
+
readonly data: VariantType<{
|
|
1003
|
+
readonly xgboost: BlobType;
|
|
1004
|
+
readonly lightgbm: BlobType;
|
|
1005
|
+
readonly histogram: BlobType;
|
|
1006
|
+
}>;
|
|
1007
|
+
readonly n_features: IntegerType;
|
|
1008
|
+
readonly confidence_level: FloatType;
|
|
1009
|
+
}>;
|
|
1010
|
+
/** MAPIE conformal classifier with XGBoost base */
|
|
1011
|
+
readonly mapie_classifier: StructType<{
|
|
1012
|
+
readonly data: VariantType<{
|
|
1013
|
+
readonly xgboost: BlobType;
|
|
1014
|
+
readonly lightgbm: BlobType;
|
|
1015
|
+
readonly histogram: BlobType;
|
|
1016
|
+
}>;
|
|
1017
|
+
readonly n_features: IntegerType;
|
|
1018
|
+
readonly n_classes: IntegerType;
|
|
1019
|
+
readonly classes: ArrayType<IntegerType>;
|
|
1020
|
+
readonly confidence_level: FloatType;
|
|
442
1021
|
}>;
|
|
443
1022
|
}>], VariantType<{
|
|
444
1023
|
/** SHAP TreeExplainer for tree-based models */
|
|
445
|
-
shap_tree_explainer: StructType<{
|
|
1024
|
+
readonly shap_tree_explainer: StructType<{
|
|
446
1025
|
/** Cloudpickle serialized explainer */
|
|
447
|
-
data: BlobType;
|
|
1026
|
+
readonly data: BlobType;
|
|
448
1027
|
/** Number of input features */
|
|
449
|
-
n_features: IntegerType;
|
|
1028
|
+
readonly n_features: IntegerType;
|
|
450
1029
|
}>;
|
|
451
1030
|
/** SHAP KernelExplainer for any model */
|
|
452
|
-
shap_kernel_explainer: StructType<{
|
|
1031
|
+
readonly shap_kernel_explainer: StructType<{
|
|
453
1032
|
/** Cloudpickle serialized explainer */
|
|
454
|
-
data: BlobType;
|
|
1033
|
+
readonly data: BlobType;
|
|
455
1034
|
/** Number of input features */
|
|
456
|
-
n_features: IntegerType;
|
|
1035
|
+
readonly n_features: IntegerType;
|
|
457
1036
|
}>;
|
|
458
1037
|
}>>;
|
|
459
1038
|
/** Create KernelExplainer for any model */
|
|
460
1039
|
readonly kernelExplainerCreate: import("@elaraai/east").PlatformDefinition<[VariantType<{
|
|
461
|
-
xgboost_regressor: StructType<{
|
|
462
|
-
data: BlobType;
|
|
463
|
-
n_features: IntegerType;
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
}>;
|
|
487
|
-
|
|
488
|
-
data: BlobType;
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
1040
|
+
readonly xgboost_regressor: StructType<{
|
|
1041
|
+
readonly data: BlobType;
|
|
1042
|
+
readonly n_features: IntegerType;
|
|
1043
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
1044
|
+
}>;
|
|
1045
|
+
readonly xgboost_classifier: StructType<{
|
|
1046
|
+
readonly data: BlobType;
|
|
1047
|
+
readonly n_features: IntegerType;
|
|
1048
|
+
readonly n_classes: IntegerType;
|
|
1049
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
1050
|
+
}>;
|
|
1051
|
+
readonly xgboost_quantile: StructType<{
|
|
1052
|
+
readonly data: BlobType;
|
|
1053
|
+
readonly quantiles: ArrayType<FloatType>;
|
|
1054
|
+
readonly n_features: IntegerType;
|
|
1055
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
1056
|
+
}>;
|
|
1057
|
+
readonly lightgbm_regressor: StructType<{
|
|
1058
|
+
readonly data: BlobType;
|
|
1059
|
+
readonly n_features: IntegerType;
|
|
1060
|
+
}>;
|
|
1061
|
+
readonly lightgbm_classifier: StructType<{
|
|
1062
|
+
readonly data: BlobType;
|
|
1063
|
+
readonly n_features: IntegerType;
|
|
1064
|
+
readonly n_classes: IntegerType;
|
|
1065
|
+
}>;
|
|
1066
|
+
readonly ngboost_regressor: StructType<{
|
|
1067
|
+
readonly data: BlobType;
|
|
1068
|
+
readonly distribution: VariantType<{
|
|
1069
|
+
readonly normal: NullType;
|
|
1070
|
+
readonly lognormal: NullType;
|
|
1071
|
+
}>;
|
|
1072
|
+
readonly n_features: IntegerType;
|
|
1073
|
+
}>;
|
|
1074
|
+
readonly gp_regressor: StructType<{
|
|
1075
|
+
readonly data: BlobType;
|
|
1076
|
+
readonly n_features: IntegerType;
|
|
1077
|
+
readonly kernel_type: StringType;
|
|
1078
|
+
}>;
|
|
1079
|
+
readonly torch_mlp: StructType<{
|
|
1080
|
+
readonly data: BlobType;
|
|
1081
|
+
readonly n_features: IntegerType;
|
|
1082
|
+
readonly hidden_layers: ArrayType<IntegerType>;
|
|
1083
|
+
readonly output_dim: IntegerType;
|
|
1084
|
+
}>;
|
|
1085
|
+
readonly standard_scaler: StructType<{
|
|
1086
|
+
readonly onnx: BlobType;
|
|
1087
|
+
readonly n_features: IntegerType;
|
|
1088
|
+
}>;
|
|
1089
|
+
readonly min_max_scaler: StructType<{
|
|
1090
|
+
readonly onnx: BlobType;
|
|
1091
|
+
readonly n_features: IntegerType;
|
|
1092
|
+
}>;
|
|
1093
|
+
readonly regressor_chain: StructType<{
|
|
1094
|
+
readonly data: BlobType;
|
|
1095
|
+
readonly n_features: IntegerType;
|
|
1096
|
+
readonly n_targets: IntegerType;
|
|
1097
|
+
readonly base_estimator_type: StringType;
|
|
1098
|
+
}>;
|
|
1099
|
+
readonly mapie_split: StructType<{
|
|
1100
|
+
readonly data: VariantType<{
|
|
1101
|
+
readonly xgboost: BlobType;
|
|
1102
|
+
readonly lightgbm: BlobType;
|
|
1103
|
+
readonly histogram: BlobType;
|
|
1104
|
+
}>;
|
|
1105
|
+
readonly n_features: IntegerType;
|
|
1106
|
+
readonly confidence_level: FloatType;
|
|
1107
|
+
}>;
|
|
1108
|
+
readonly mapie_cross: StructType<{
|
|
1109
|
+
readonly data: VariantType<{
|
|
1110
|
+
readonly xgboost: BlobType;
|
|
1111
|
+
readonly lightgbm: BlobType;
|
|
1112
|
+
readonly histogram: BlobType;
|
|
1113
|
+
}>;
|
|
1114
|
+
readonly n_features: IntegerType;
|
|
1115
|
+
readonly confidence_level: FloatType;
|
|
1116
|
+
}>;
|
|
1117
|
+
readonly mapie_cqr: StructType<{
|
|
1118
|
+
readonly data: VariantType<{
|
|
1119
|
+
readonly xgboost: BlobType;
|
|
1120
|
+
readonly lightgbm: BlobType;
|
|
1121
|
+
readonly histogram: BlobType;
|
|
1122
|
+
}>;
|
|
1123
|
+
readonly n_features: IntegerType;
|
|
1124
|
+
readonly confidence_level: FloatType;
|
|
1125
|
+
}>;
|
|
1126
|
+
readonly mapie_classifier: StructType<{
|
|
1127
|
+
readonly data: VariantType<{
|
|
1128
|
+
readonly xgboost: BlobType;
|
|
1129
|
+
readonly lightgbm: BlobType;
|
|
1130
|
+
readonly histogram: BlobType;
|
|
1131
|
+
}>;
|
|
1132
|
+
readonly n_features: IntegerType;
|
|
1133
|
+
readonly n_classes: IntegerType;
|
|
1134
|
+
readonly classes: ArrayType<IntegerType>;
|
|
1135
|
+
readonly confidence_level: FloatType;
|
|
1136
|
+
}>;
|
|
1137
|
+
readonly mapie_interval_width: StructType<{
|
|
1138
|
+
readonly data: BlobType;
|
|
1139
|
+
readonly n_features: IntegerType;
|
|
1140
|
+
}>;
|
|
1141
|
+
readonly mapie_set_size: StructType<{
|
|
1142
|
+
readonly data: BlobType;
|
|
1143
|
+
readonly n_features: IntegerType;
|
|
497
1144
|
}>;
|
|
498
1145
|
}>, ArrayType<ArrayType<FloatType>>], VariantType<{
|
|
499
1146
|
/** SHAP TreeExplainer for tree-based models */
|
|
500
|
-
shap_tree_explainer: StructType<{
|
|
1147
|
+
readonly shap_tree_explainer: StructType<{
|
|
501
1148
|
/** Cloudpickle serialized explainer */
|
|
502
|
-
data: BlobType;
|
|
1149
|
+
readonly data: BlobType;
|
|
503
1150
|
/** Number of input features */
|
|
504
|
-
n_features: IntegerType;
|
|
1151
|
+
readonly n_features: IntegerType;
|
|
505
1152
|
}>;
|
|
506
1153
|
/** SHAP KernelExplainer for any model */
|
|
507
|
-
shap_kernel_explainer: StructType<{
|
|
1154
|
+
readonly shap_kernel_explainer: StructType<{
|
|
508
1155
|
/** Cloudpickle serialized explainer */
|
|
509
|
-
data: BlobType;
|
|
1156
|
+
readonly data: BlobType;
|
|
510
1157
|
/** Number of input features */
|
|
511
|
-
n_features: IntegerType;
|
|
1158
|
+
readonly n_features: IntegerType;
|
|
512
1159
|
}>;
|
|
513
1160
|
}>>;
|
|
514
1161
|
/** Compute SHAP values */
|
|
515
1162
|
readonly computeValues: import("@elaraai/east").PlatformDefinition<[VariantType<{
|
|
516
1163
|
/** SHAP TreeExplainer for tree-based models */
|
|
517
|
-
shap_tree_explainer: StructType<{
|
|
1164
|
+
readonly shap_tree_explainer: StructType<{
|
|
518
1165
|
/** Cloudpickle serialized explainer */
|
|
519
|
-
data: BlobType;
|
|
1166
|
+
readonly data: BlobType;
|
|
520
1167
|
/** Number of input features */
|
|
521
|
-
n_features: IntegerType;
|
|
1168
|
+
readonly n_features: IntegerType;
|
|
522
1169
|
}>;
|
|
523
1170
|
/** SHAP KernelExplainer for any model */
|
|
524
|
-
shap_kernel_explainer: StructType<{
|
|
1171
|
+
readonly shap_kernel_explainer: StructType<{
|
|
525
1172
|
/** Cloudpickle serialized explainer */
|
|
526
|
-
data: BlobType;
|
|
1173
|
+
readonly data: BlobType;
|
|
527
1174
|
/** Number of input features */
|
|
528
|
-
n_features: IntegerType;
|
|
1175
|
+
readonly n_features: IntegerType;
|
|
529
1176
|
}>;
|
|
530
1177
|
}>, ArrayType<ArrayType<FloatType>>, ArrayType<StringType>], StructType<{
|
|
531
|
-
/** SHAP values matrix
|
|
532
|
-
shap_values:
|
|
533
|
-
|
|
534
|
-
|
|
1178
|
+
/** SHAP values - 2D matrix or 3D tensor depending on model type */
|
|
1179
|
+
readonly shap_values: VariantType<{
|
|
1180
|
+
/** 2D matrix for regression or binary classification (n_samples x n_features) */
|
|
1181
|
+
readonly matrix_2d: ArrayType<ArrayType<FloatType>>;
|
|
1182
|
+
/** 3D tensor for multi-class classification (n_samples x n_features x n_classes) */
|
|
1183
|
+
readonly tensor_3d: ArrayType<ArrayType<ArrayType<FloatType>>>;
|
|
1184
|
+
}>;
|
|
1185
|
+
/** Base value(s) - single float or per-class array */
|
|
1186
|
+
readonly base_value: VariantType<{
|
|
1187
|
+
/** Single base value for regression or binary classification */
|
|
1188
|
+
readonly single: FloatType;
|
|
1189
|
+
/** Per-class base values for multi-class classification */
|
|
1190
|
+
readonly per_class: ArrayType<FloatType>;
|
|
1191
|
+
}>;
|
|
535
1192
|
/** Feature names */
|
|
536
|
-
feature_names: ArrayType<StringType>;
|
|
1193
|
+
readonly feature_names: ArrayType<StringType>;
|
|
537
1194
|
}>>;
|
|
538
1195
|
/** Compute feature importance from SHAP values */
|
|
539
|
-
readonly featureImportance: import("@elaraai/east").PlatformDefinition<[
|
|
1196
|
+
readonly featureImportance: import("@elaraai/east").PlatformDefinition<[VariantType<{
|
|
1197
|
+
/** 2D matrix for regression or binary classification (n_samples x n_features) */
|
|
1198
|
+
readonly matrix_2d: ArrayType<ArrayType<FloatType>>;
|
|
1199
|
+
/** 3D tensor for multi-class classification (n_samples x n_features x n_classes) */
|
|
1200
|
+
readonly tensor_3d: ArrayType<ArrayType<ArrayType<FloatType>>>;
|
|
1201
|
+
}>, ArrayType<StringType>], StructType<{
|
|
540
1202
|
/** Feature names */
|
|
541
|
-
feature_names: ArrayType<StringType>;
|
|
1203
|
+
readonly feature_names: ArrayType<StringType>;
|
|
542
1204
|
/** Mean absolute SHAP value for each feature */
|
|
543
|
-
importances: ArrayType<FloatType>;
|
|
1205
|
+
readonly importances: ArrayType<FloatType>;
|
|
544
1206
|
/** Standard deviation of absolute SHAP values */
|
|
545
|
-
std: OptionType<ArrayType<FloatType>>;
|
|
1207
|
+
readonly std: OptionType<ArrayType<FloatType>>;
|
|
546
1208
|
}>>;
|
|
547
1209
|
/** Type definitions */
|
|
548
1210
|
readonly Types: {
|
|
@@ -552,104 +1214,236 @@ export declare const Shap: {
|
|
|
552
1214
|
readonly MatrixType: ArrayType<ArrayType<FloatType>>;
|
|
553
1215
|
/** String vector type */
|
|
554
1216
|
readonly StringVectorType: ArrayType<StringType>;
|
|
1217
|
+
/** SHAP values variant type (2D or 3D) */
|
|
1218
|
+
readonly ShapValuesType: VariantType<{
|
|
1219
|
+
/** 2D matrix for regression or binary classification (n_samples x n_features) */
|
|
1220
|
+
readonly matrix_2d: ArrayType<ArrayType<FloatType>>;
|
|
1221
|
+
/** 3D tensor for multi-class classification (n_samples x n_features x n_classes) */
|
|
1222
|
+
readonly tensor_3d: ArrayType<ArrayType<ArrayType<FloatType>>>;
|
|
1223
|
+
}>;
|
|
1224
|
+
/** SHAP base value variant type (single or per-class) */
|
|
1225
|
+
readonly ShapBaseValueType: VariantType<{
|
|
1226
|
+
/** Single base value for regression or binary classification */
|
|
1227
|
+
readonly single: FloatType;
|
|
1228
|
+
/** Per-class base values for multi-class classification */
|
|
1229
|
+
readonly per_class: ArrayType<FloatType>;
|
|
1230
|
+
}>;
|
|
555
1231
|
/** SHAP result type */
|
|
556
1232
|
readonly ShapResultType: StructType<{
|
|
557
|
-
/** SHAP values matrix
|
|
558
|
-
shap_values:
|
|
559
|
-
|
|
560
|
-
|
|
1233
|
+
/** SHAP values - 2D matrix or 3D tensor depending on model type */
|
|
1234
|
+
readonly shap_values: VariantType<{
|
|
1235
|
+
/** 2D matrix for regression or binary classification (n_samples x n_features) */
|
|
1236
|
+
readonly matrix_2d: ArrayType<ArrayType<FloatType>>;
|
|
1237
|
+
/** 3D tensor for multi-class classification (n_samples x n_features x n_classes) */
|
|
1238
|
+
readonly tensor_3d: ArrayType<ArrayType<ArrayType<FloatType>>>;
|
|
1239
|
+
}>;
|
|
1240
|
+
/** Base value(s) - single float or per-class array */
|
|
1241
|
+
readonly base_value: VariantType<{
|
|
1242
|
+
/** Single base value for regression or binary classification */
|
|
1243
|
+
readonly single: FloatType;
|
|
1244
|
+
/** Per-class base values for multi-class classification */
|
|
1245
|
+
readonly per_class: ArrayType<FloatType>;
|
|
1246
|
+
}>;
|
|
561
1247
|
/** Feature names */
|
|
562
|
-
feature_names: ArrayType<StringType>;
|
|
1248
|
+
readonly feature_names: ArrayType<StringType>;
|
|
563
1249
|
}>;
|
|
564
1250
|
/** Feature importance type */
|
|
565
1251
|
readonly FeatureImportanceType: StructType<{
|
|
566
1252
|
/** Feature names */
|
|
567
|
-
feature_names: ArrayType<StringType>;
|
|
1253
|
+
readonly feature_names: ArrayType<StringType>;
|
|
568
1254
|
/** Mean absolute SHAP value for each feature */
|
|
569
|
-
importances: ArrayType<FloatType>;
|
|
1255
|
+
readonly importances: ArrayType<FloatType>;
|
|
570
1256
|
/** Standard deviation of absolute SHAP values */
|
|
571
|
-
std: OptionType<ArrayType<FloatType>>;
|
|
1257
|
+
readonly std: OptionType<ArrayType<FloatType>>;
|
|
572
1258
|
}>;
|
|
573
1259
|
/** SHAP explainer model blob type */
|
|
574
1260
|
readonly ShapModelBlobType: VariantType<{
|
|
575
1261
|
/** SHAP TreeExplainer for tree-based models */
|
|
576
|
-
shap_tree_explainer: StructType<{
|
|
1262
|
+
readonly shap_tree_explainer: StructType<{
|
|
577
1263
|
/** Cloudpickle serialized explainer */
|
|
578
|
-
data: BlobType;
|
|
1264
|
+
readonly data: BlobType;
|
|
579
1265
|
/** Number of input features */
|
|
580
|
-
n_features: IntegerType;
|
|
1266
|
+
readonly n_features: IntegerType;
|
|
581
1267
|
}>;
|
|
582
1268
|
/** SHAP KernelExplainer for any model */
|
|
583
|
-
shap_kernel_explainer: StructType<{
|
|
1269
|
+
readonly shap_kernel_explainer: StructType<{
|
|
584
1270
|
/** Cloudpickle serialized explainer */
|
|
585
|
-
data: BlobType;
|
|
1271
|
+
readonly data: BlobType;
|
|
586
1272
|
/** Number of input features */
|
|
587
|
-
n_features: IntegerType;
|
|
1273
|
+
readonly n_features: IntegerType;
|
|
588
1274
|
}>;
|
|
589
1275
|
}>;
|
|
590
1276
|
/** Tree model blob type for input */
|
|
591
1277
|
readonly TreeModelBlobType: VariantType<{
|
|
592
1278
|
/** XGBoost regressor */
|
|
593
|
-
xgboost_regressor: StructType<{
|
|
594
|
-
data: BlobType;
|
|
595
|
-
n_features: IntegerType;
|
|
1279
|
+
readonly xgboost_regressor: StructType<{
|
|
1280
|
+
readonly data: BlobType;
|
|
1281
|
+
readonly n_features: IntegerType;
|
|
1282
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
596
1283
|
}>;
|
|
597
1284
|
/** XGBoost classifier */
|
|
598
|
-
xgboost_classifier: StructType<{
|
|
599
|
-
data: BlobType;
|
|
600
|
-
n_features: IntegerType;
|
|
601
|
-
n_classes: IntegerType;
|
|
1285
|
+
readonly xgboost_classifier: StructType<{
|
|
1286
|
+
readonly data: BlobType;
|
|
1287
|
+
readonly n_features: IntegerType;
|
|
1288
|
+
readonly n_classes: IntegerType;
|
|
1289
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
602
1290
|
}>;
|
|
603
|
-
/**
|
|
604
|
-
|
|
605
|
-
data: BlobType;
|
|
606
|
-
|
|
1291
|
+
/** XGBoost quantile regressor (uses median quantile for explanations) */
|
|
1292
|
+
readonly xgboost_quantile: StructType<{
|
|
1293
|
+
readonly data: BlobType;
|
|
1294
|
+
readonly quantiles: ArrayType<FloatType>;
|
|
1295
|
+
readonly n_features: IntegerType;
|
|
1296
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
607
1297
|
}>;
|
|
608
|
-
/**
|
|
609
|
-
|
|
610
|
-
data:
|
|
611
|
-
|
|
612
|
-
|
|
1298
|
+
/** MAPIE split conformal regressor with XGBoost base */
|
|
1299
|
+
readonly mapie_split: StructType<{
|
|
1300
|
+
readonly data: VariantType<{
|
|
1301
|
+
readonly xgboost: BlobType;
|
|
1302
|
+
readonly lightgbm: BlobType;
|
|
1303
|
+
readonly histogram: BlobType;
|
|
1304
|
+
}>;
|
|
1305
|
+
readonly n_features: IntegerType;
|
|
1306
|
+
readonly confidence_level: FloatType;
|
|
1307
|
+
}>;
|
|
1308
|
+
/** MAPIE cross conformal regressor with XGBoost base */
|
|
1309
|
+
readonly mapie_cross: StructType<{
|
|
1310
|
+
readonly data: VariantType<{
|
|
1311
|
+
readonly xgboost: BlobType;
|
|
1312
|
+
readonly lightgbm: BlobType;
|
|
1313
|
+
readonly histogram: BlobType;
|
|
1314
|
+
}>;
|
|
1315
|
+
readonly n_features: IntegerType;
|
|
1316
|
+
readonly confidence_level: FloatType;
|
|
1317
|
+
}>;
|
|
1318
|
+
/** MAPIE CQR conformal regressor with XGBoost base */
|
|
1319
|
+
readonly mapie_cqr: StructType<{
|
|
1320
|
+
readonly data: VariantType<{
|
|
1321
|
+
readonly xgboost: BlobType;
|
|
1322
|
+
readonly lightgbm: BlobType;
|
|
1323
|
+
readonly histogram: BlobType;
|
|
1324
|
+
}>;
|
|
1325
|
+
readonly n_features: IntegerType;
|
|
1326
|
+
readonly confidence_level: FloatType;
|
|
1327
|
+
}>;
|
|
1328
|
+
/** MAPIE conformal classifier with XGBoost base */
|
|
1329
|
+
readonly mapie_classifier: StructType<{
|
|
1330
|
+
readonly data: VariantType<{
|
|
1331
|
+
readonly xgboost: BlobType;
|
|
1332
|
+
readonly lightgbm: BlobType;
|
|
1333
|
+
readonly histogram: BlobType;
|
|
1334
|
+
}>;
|
|
1335
|
+
readonly n_features: IntegerType;
|
|
1336
|
+
readonly n_classes: IntegerType;
|
|
1337
|
+
readonly classes: ArrayType<IntegerType>;
|
|
1338
|
+
readonly confidence_level: FloatType;
|
|
613
1339
|
}>;
|
|
614
1340
|
}>;
|
|
615
1341
|
/** Any model blob type for kernel explainer */
|
|
616
1342
|
readonly AnyModelBlobType: VariantType<{
|
|
617
|
-
xgboost_regressor: StructType<{
|
|
618
|
-
data: BlobType;
|
|
619
|
-
n_features: IntegerType;
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
1343
|
+
readonly xgboost_regressor: StructType<{
|
|
1344
|
+
readonly data: BlobType;
|
|
1345
|
+
readonly n_features: IntegerType;
|
|
1346
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
1347
|
+
}>;
|
|
1348
|
+
readonly xgboost_classifier: StructType<{
|
|
1349
|
+
readonly data: BlobType;
|
|
1350
|
+
readonly n_features: IntegerType;
|
|
1351
|
+
readonly n_classes: IntegerType;
|
|
1352
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
1353
|
+
}>;
|
|
1354
|
+
readonly xgboost_quantile: StructType<{
|
|
1355
|
+
readonly data: BlobType;
|
|
1356
|
+
readonly quantiles: ArrayType<FloatType>;
|
|
1357
|
+
readonly n_features: IntegerType;
|
|
1358
|
+
readonly categorical_features: OptionType<ArrayType<IntegerType>>;
|
|
1359
|
+
}>;
|
|
1360
|
+
readonly lightgbm_regressor: StructType<{
|
|
1361
|
+
readonly data: BlobType;
|
|
1362
|
+
readonly n_features: IntegerType;
|
|
1363
|
+
}>;
|
|
1364
|
+
readonly lightgbm_classifier: StructType<{
|
|
1365
|
+
readonly data: BlobType;
|
|
1366
|
+
readonly n_features: IntegerType;
|
|
1367
|
+
readonly n_classes: IntegerType;
|
|
1368
|
+
}>;
|
|
1369
|
+
readonly ngboost_regressor: StructType<{
|
|
1370
|
+
readonly data: BlobType;
|
|
1371
|
+
readonly distribution: VariantType<{
|
|
1372
|
+
readonly normal: NullType;
|
|
1373
|
+
readonly lognormal: NullType;
|
|
1374
|
+
}>;
|
|
1375
|
+
readonly n_features: IntegerType;
|
|
1376
|
+
}>;
|
|
1377
|
+
readonly gp_regressor: StructType<{
|
|
1378
|
+
readonly data: BlobType;
|
|
1379
|
+
readonly n_features: IntegerType;
|
|
1380
|
+
readonly kernel_type: StringType;
|
|
1381
|
+
}>;
|
|
1382
|
+
readonly torch_mlp: StructType<{
|
|
1383
|
+
readonly data: BlobType;
|
|
1384
|
+
readonly n_features: IntegerType;
|
|
1385
|
+
readonly hidden_layers: ArrayType<IntegerType>;
|
|
1386
|
+
readonly output_dim: IntegerType;
|
|
1387
|
+
}>;
|
|
1388
|
+
readonly standard_scaler: StructType<{
|
|
1389
|
+
readonly onnx: BlobType;
|
|
1390
|
+
readonly n_features: IntegerType;
|
|
1391
|
+
}>;
|
|
1392
|
+
readonly min_max_scaler: StructType<{
|
|
1393
|
+
readonly onnx: BlobType;
|
|
1394
|
+
readonly n_features: IntegerType;
|
|
1395
|
+
}>;
|
|
1396
|
+
readonly regressor_chain: StructType<{
|
|
1397
|
+
readonly data: BlobType;
|
|
1398
|
+
readonly n_features: IntegerType;
|
|
1399
|
+
readonly n_targets: IntegerType;
|
|
1400
|
+
readonly base_estimator_type: StringType;
|
|
1401
|
+
}>;
|
|
1402
|
+
readonly mapie_split: StructType<{
|
|
1403
|
+
readonly data: VariantType<{
|
|
1404
|
+
readonly xgboost: BlobType;
|
|
1405
|
+
readonly lightgbm: BlobType;
|
|
1406
|
+
readonly histogram: BlobType;
|
|
1407
|
+
}>;
|
|
1408
|
+
readonly n_features: IntegerType;
|
|
1409
|
+
readonly confidence_level: FloatType;
|
|
1410
|
+
}>;
|
|
1411
|
+
readonly mapie_cross: StructType<{
|
|
1412
|
+
readonly data: VariantType<{
|
|
1413
|
+
readonly xgboost: BlobType;
|
|
1414
|
+
readonly lightgbm: BlobType;
|
|
1415
|
+
readonly histogram: BlobType;
|
|
640
1416
|
}>;
|
|
641
|
-
n_features: IntegerType;
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
n_features: IntegerType;
|
|
651
|
-
|
|
652
|
-
|
|
1417
|
+
readonly n_features: IntegerType;
|
|
1418
|
+
readonly confidence_level: FloatType;
|
|
1419
|
+
}>;
|
|
1420
|
+
readonly mapie_cqr: StructType<{
|
|
1421
|
+
readonly data: VariantType<{
|
|
1422
|
+
readonly xgboost: BlobType;
|
|
1423
|
+
readonly lightgbm: BlobType;
|
|
1424
|
+
readonly histogram: BlobType;
|
|
1425
|
+
}>;
|
|
1426
|
+
readonly n_features: IntegerType;
|
|
1427
|
+
readonly confidence_level: FloatType;
|
|
1428
|
+
}>;
|
|
1429
|
+
readonly mapie_classifier: StructType<{
|
|
1430
|
+
readonly data: VariantType<{
|
|
1431
|
+
readonly xgboost: BlobType;
|
|
1432
|
+
readonly lightgbm: BlobType;
|
|
1433
|
+
readonly histogram: BlobType;
|
|
1434
|
+
}>;
|
|
1435
|
+
readonly n_features: IntegerType;
|
|
1436
|
+
readonly n_classes: IntegerType;
|
|
1437
|
+
readonly classes: ArrayType<IntegerType>;
|
|
1438
|
+
readonly confidence_level: FloatType;
|
|
1439
|
+
}>;
|
|
1440
|
+
readonly mapie_interval_width: StructType<{
|
|
1441
|
+
readonly data: BlobType;
|
|
1442
|
+
readonly n_features: IntegerType;
|
|
1443
|
+
}>;
|
|
1444
|
+
readonly mapie_set_size: StructType<{
|
|
1445
|
+
readonly data: BlobType;
|
|
1446
|
+
readonly n_features: IntegerType;
|
|
653
1447
|
}>;
|
|
654
1448
|
}>;
|
|
655
1449
|
};
|