-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
GaussianProcessClassifier.ts
643 lines (524 loc) · 23.1 KB
/
GaussianProcessClassifier.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
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
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
/* eslint-disable */
/* NOTE: This file is auto-generated. Do not edit it directly. */
import crypto from 'node:crypto'
import { PythonBridge, NDArray, ArrayLike, SparseMatrix } from '@/sklearn/types'
/**
Gaussian process classification (GPC) based on Laplace approximation.
The implementation is based on Algorithm 3.1, 3.2, and 5.1 from [\[RW2006\]](#r2da648a61a73-rw2006).
Internally, the Laplace approximation is used for approximating the non-Gaussian posterior by a Gaussian.
Currently, the implementation is restricted to using the logistic link function. For multi-class classification, several binary one-versus rest classifiers are fitted. Note that this class thus does not implement a true multi-class Laplace approximation.
Read more in the [User Guide](../gaussian_process.html#gaussian-process).
[Python Reference](https://scikit-learn.org/stable/modules/generated/sklearn.gaussian_process.GaussianProcessClassifier.html)
*/
export class GaussianProcessClassifier {
id: string
opts: any
_py: PythonBridge
_isInitialized: boolean = false
_isDisposed: boolean = false
constructor(opts?: {
/**
The kernel specifying the covariance function of the GP. If `undefined` is passed, the kernel “1.0 \* RBF(1.0)” is used as default. Note that the kernel’s hyperparameters are optimized during fitting. Also kernel cannot be a `CompoundKernel`.
*/
kernel?: any
/**
Can either be one of the internally supported optimizers for optimizing the kernel’s parameters, specified by a string, or an externally defined optimizer passed as a callable. If a callable is passed, it must have the signature:
@defaultValue `'fmin_l_bfgs_b'`
*/
optimizer?: 'fmin_l_bfgs_b'
/**
The number of restarts of the optimizer for finding the kernel’s parameters which maximize the log-marginal likelihood. The first run of the optimizer is performed from the kernel’s initial parameters, the remaining ones (if any) from thetas sampled log-uniform randomly from the space of allowed theta-values. If greater than 0, all bounds must be finite. Note that n\_restarts\_optimizer=0 implies that one run is performed.
@defaultValue `0`
*/
n_restarts_optimizer?: number
/**
The maximum number of iterations in Newton’s method for approximating the posterior during predict. Smaller values will reduce computation time at the cost of worse results.
@defaultValue `100`
*/
max_iter_predict?: number
/**
If warm-starts are enabled, the solution of the last Newton iteration on the Laplace approximation of the posterior mode is used as initialization for the next call of \_posterior\_mode(). This can speed up convergence when \_posterior\_mode is called several times on similar problems as in hyperparameter optimization. See [the Glossary](../../glossary.html#term-warm_start).
@defaultValue `false`
*/
warm_start?: boolean
/**
If `true`, a persistent copy of the training data is stored in the object. Otherwise, just a reference to the training data is stored, which might cause predictions to change if the data is modified externally.
@defaultValue `true`
*/
copy_X_train?: boolean
/**
Determines random number generation used to initialize the centers. Pass an int for reproducible results across multiple function calls. See [Glossary](../../glossary.html#term-random_state).
*/
random_state?: number
/**
Specifies how multi-class classification problems are handled. Supported are ‘one\_vs\_rest’ and ‘one\_vs\_one’. In ‘one\_vs\_rest’, one binary Gaussian process classifier is fitted for each class, which is trained to separate this class from the rest. In ‘one\_vs\_one’, one binary Gaussian process classifier is fitted for each pair of classes, which is trained to separate these two classes. The predictions of these binary predictors are combined into multi-class predictions. Note that ‘one\_vs\_one’ does not support predicting probability estimates.
@defaultValue `'one_vs_rest'`
*/
multi_class?: 'one_vs_rest' | 'one_vs_one'
/**
The number of jobs to use for the computation: the specified multiclass problems are computed in parallel. `undefined` means 1 unless in a [`joblib.parallel\_backend`](https://joblib.readthedocs.io/en/latest/generated/joblib.parallel_backend.html#joblib.parallel_backend "(in joblib v1.4.dev0)") context. `\-1` means using all processors. See [Glossary](../../glossary.html#term-n_jobs) for more details.
*/
n_jobs?: number
}) {
this.id = `GaussianProcessClassifier${crypto.randomUUID().split('-')[0]}`
this.opts = opts || {}
}
get py(): PythonBridge {
return this._py
}
set py(pythonBridge: PythonBridge) {
this._py = pythonBridge
}
/**
Initializes the underlying Python resources.
This instance is not usable until the `Promise` returned by `init()` resolves.
*/
async init(py: PythonBridge): Promise<void> {
if (this._isDisposed) {
throw new Error(
'This GaussianProcessClassifier instance has already been disposed'
)
}
if (this._isInitialized) {
return
}
if (!py) {
throw new Error(
'GaussianProcessClassifier.init requires a PythonBridge instance'
)
}
this._py = py
await this._py.ex`
import numpy as np
from sklearn.gaussian_process import GaussianProcessClassifier
try: bridgeGaussianProcessClassifier
except NameError: bridgeGaussianProcessClassifier = {}
`
// set up constructor params
await this._py.ex`ctor_GaussianProcessClassifier = {'kernel': ${
this.opts['kernel'] ?? undefined
}, 'optimizer': ${
this.opts['optimizer'] ?? undefined
}, 'n_restarts_optimizer': ${
this.opts['n_restarts_optimizer'] ?? undefined
}, 'max_iter_predict': ${
this.opts['max_iter_predict'] ?? undefined
}, 'warm_start': ${this.opts['warm_start'] ?? undefined}, 'copy_X_train': ${
this.opts['copy_X_train'] ?? undefined
}, 'random_state': ${
this.opts['random_state'] ?? undefined
}, 'multi_class': ${this.opts['multi_class'] ?? undefined}, 'n_jobs': ${
this.opts['n_jobs'] ?? undefined
}}
ctor_GaussianProcessClassifier = {k: v for k, v in ctor_GaussianProcessClassifier.items() if v is not None}`
await this._py
.ex`bridgeGaussianProcessClassifier[${this.id}] = GaussianProcessClassifier(**ctor_GaussianProcessClassifier)`
this._isInitialized = true
}
/**
Disposes of the underlying Python resources.
Once `dispose()` is called, the instance is no longer usable.
*/
async dispose() {
if (this._isDisposed) {
return
}
if (!this._isInitialized) {
return
}
await this._py.ex`del bridgeGaussianProcessClassifier[${this.id}]`
this._isDisposed = true
}
/**
Fit Gaussian process classification model.
*/
async fit(opts: {
/**
Feature vectors or other representations of training data.
*/
X?: ArrayLike[]
/**
Target values, must be binary.
*/
y?: ArrayLike
}): Promise<any> {
if (this._isDisposed) {
throw new Error(
'This GaussianProcessClassifier instance has already been disposed'
)
}
if (!this._isInitialized) {
throw new Error('GaussianProcessClassifier must call init() before fit()')
}
// set up method params
await this._py.ex`pms_GaussianProcessClassifier_fit = {'X': np.array(${
opts['X'] ?? undefined
}) if ${opts['X'] !== undefined} else None, 'y': np.array(${
opts['y'] ?? undefined
}) if ${opts['y'] !== undefined} else None}
pms_GaussianProcessClassifier_fit = {k: v for k, v in pms_GaussianProcessClassifier_fit.items() if v is not None}`
// invoke method
await this._py
.ex`res_GaussianProcessClassifier_fit = bridgeGaussianProcessClassifier[${this.id}].fit(**pms_GaussianProcessClassifier_fit)`
// convert the result from python to node.js
return this
._py`res_GaussianProcessClassifier_fit.tolist() if hasattr(res_GaussianProcessClassifier_fit, 'tolist') else res_GaussianProcessClassifier_fit`
}
/**
Get metadata routing of this object.
Please check [User Guide](../../metadata_routing.html#metadata-routing) on how the routing mechanism works.
*/
async get_metadata_routing(opts: {
/**
A [`MetadataRequest`](sklearn.utils.metadata_routing.MetadataRequest.html#sklearn.utils.metadata_routing.MetadataRequest "sklearn.utils.metadata_routing.MetadataRequest") encapsulating routing information.
*/
routing?: any
}): Promise<any> {
if (this._isDisposed) {
throw new Error(
'This GaussianProcessClassifier instance has already been disposed'
)
}
if (!this._isInitialized) {
throw new Error(
'GaussianProcessClassifier must call init() before get_metadata_routing()'
)
}
// set up method params
await this._py
.ex`pms_GaussianProcessClassifier_get_metadata_routing = {'routing': ${
opts['routing'] ?? undefined
}}
pms_GaussianProcessClassifier_get_metadata_routing = {k: v for k, v in pms_GaussianProcessClassifier_get_metadata_routing.items() if v is not None}`
// invoke method
await this._py
.ex`res_GaussianProcessClassifier_get_metadata_routing = bridgeGaussianProcessClassifier[${this.id}].get_metadata_routing(**pms_GaussianProcessClassifier_get_metadata_routing)`
// convert the result from python to node.js
return this
._py`res_GaussianProcessClassifier_get_metadata_routing.tolist() if hasattr(res_GaussianProcessClassifier_get_metadata_routing, 'tolist') else res_GaussianProcessClassifier_get_metadata_routing`
}
/**
Return log-marginal likelihood of theta for training data.
In the case of multi-class classification, the mean log-marginal likelihood of the one-versus-rest classifiers are returned.
*/
async log_marginal_likelihood(opts: {
/**
Kernel hyperparameters for which the log-marginal likelihood is evaluated. In the case of multi-class classification, theta may be the hyperparameters of the compound kernel or of an individual kernel. In the latter case, all individual kernel get assigned the same theta values. If `undefined`, the precomputed log\_marginal\_likelihood of `self.kernel\_.theta` is returned.
*/
theta?: ArrayLike
/**
If `true`, the gradient of the log-marginal likelihood with respect to the kernel hyperparameters at position theta is returned additionally. Note that gradient computation is not supported for non-binary classification. If `true`, theta must not be `undefined`.
@defaultValue `false`
*/
eval_gradient?: boolean
/**
If `true`, the kernel attribute is copied. If `false`, the kernel attribute is modified, but may result in a performance improvement.
@defaultValue `true`
*/
clone_kernel?: boolean
}): Promise<number> {
if (this._isDisposed) {
throw new Error(
'This GaussianProcessClassifier instance has already been disposed'
)
}
if (!this._isInitialized) {
throw new Error(
'GaussianProcessClassifier must call init() before log_marginal_likelihood()'
)
}
// set up method params
await this._py
.ex`pms_GaussianProcessClassifier_log_marginal_likelihood = {'theta': np.array(${
opts['theta'] ?? undefined
}) if ${opts['theta'] !== undefined} else None, 'eval_gradient': ${
opts['eval_gradient'] ?? undefined
}, 'clone_kernel': ${opts['clone_kernel'] ?? undefined}}
pms_GaussianProcessClassifier_log_marginal_likelihood = {k: v for k, v in pms_GaussianProcessClassifier_log_marginal_likelihood.items() if v is not None}`
// invoke method
await this._py
.ex`res_GaussianProcessClassifier_log_marginal_likelihood = bridgeGaussianProcessClassifier[${this.id}].log_marginal_likelihood(**pms_GaussianProcessClassifier_log_marginal_likelihood)`
// convert the result from python to node.js
return this
._py`res_GaussianProcessClassifier_log_marginal_likelihood.tolist() if hasattr(res_GaussianProcessClassifier_log_marginal_likelihood, 'tolist') else res_GaussianProcessClassifier_log_marginal_likelihood`
}
/**
Perform classification on an array of test vectors X.
*/
async predict(opts: {
/**
Query points where the GP is evaluated for classification.
*/
X?: ArrayLike[]
}): Promise<NDArray> {
if (this._isDisposed) {
throw new Error(
'This GaussianProcessClassifier instance has already been disposed'
)
}
if (!this._isInitialized) {
throw new Error(
'GaussianProcessClassifier must call init() before predict()'
)
}
// set up method params
await this._py.ex`pms_GaussianProcessClassifier_predict = {'X': np.array(${
opts['X'] ?? undefined
}) if ${opts['X'] !== undefined} else None}
pms_GaussianProcessClassifier_predict = {k: v for k, v in pms_GaussianProcessClassifier_predict.items() if v is not None}`
// invoke method
await this._py
.ex`res_GaussianProcessClassifier_predict = bridgeGaussianProcessClassifier[${this.id}].predict(**pms_GaussianProcessClassifier_predict)`
// convert the result from python to node.js
return this
._py`res_GaussianProcessClassifier_predict.tolist() if hasattr(res_GaussianProcessClassifier_predict, 'tolist') else res_GaussianProcessClassifier_predict`
}
/**
Return probability estimates for the test vector X.
*/
async predict_proba(opts: {
/**
Query points where the GP is evaluated for classification.
*/
X?: ArrayLike[]
}): Promise<ArrayLike[]> {
if (this._isDisposed) {
throw new Error(
'This GaussianProcessClassifier instance has already been disposed'
)
}
if (!this._isInitialized) {
throw new Error(
'GaussianProcessClassifier must call init() before predict_proba()'
)
}
// set up method params
await this._py
.ex`pms_GaussianProcessClassifier_predict_proba = {'X': np.array(${
opts['X'] ?? undefined
}) if ${opts['X'] !== undefined} else None}
pms_GaussianProcessClassifier_predict_proba = {k: v for k, v in pms_GaussianProcessClassifier_predict_proba.items() if v is not None}`
// invoke method
await this._py
.ex`res_GaussianProcessClassifier_predict_proba = bridgeGaussianProcessClassifier[${this.id}].predict_proba(**pms_GaussianProcessClassifier_predict_proba)`
// convert the result from python to node.js
return this
._py`res_GaussianProcessClassifier_predict_proba.tolist() if hasattr(res_GaussianProcessClassifier_predict_proba, 'tolist') else res_GaussianProcessClassifier_predict_proba`
}
/**
Return the mean accuracy on the given test data and labels.
In multi-label classification, this is the subset accuracy which is a harsh metric since you require for each sample that each label set be correctly predicted.
*/
async score(opts: {
/**
Test samples.
*/
X?: ArrayLike[]
/**
True labels for `X`.
*/
y?: ArrayLike
/**
Sample weights.
*/
sample_weight?: ArrayLike
}): Promise<number> {
if (this._isDisposed) {
throw new Error(
'This GaussianProcessClassifier instance has already been disposed'
)
}
if (!this._isInitialized) {
throw new Error(
'GaussianProcessClassifier must call init() before score()'
)
}
// set up method params
await this._py.ex`pms_GaussianProcessClassifier_score = {'X': np.array(${
opts['X'] ?? undefined
}) if ${opts['X'] !== undefined} else None, 'y': np.array(${
opts['y'] ?? undefined
}) if ${opts['y'] !== undefined} else None, 'sample_weight': np.array(${
opts['sample_weight'] ?? undefined
}) if ${opts['sample_weight'] !== undefined} else None}
pms_GaussianProcessClassifier_score = {k: v for k, v in pms_GaussianProcessClassifier_score.items() if v is not None}`
// invoke method
await this._py
.ex`res_GaussianProcessClassifier_score = bridgeGaussianProcessClassifier[${this.id}].score(**pms_GaussianProcessClassifier_score)`
// convert the result from python to node.js
return this
._py`res_GaussianProcessClassifier_score.tolist() if hasattr(res_GaussianProcessClassifier_score, 'tolist') else res_GaussianProcessClassifier_score`
}
/**
Request metadata passed to the `score` method.
Note that this method is only relevant if `enable\_metadata\_routing=True` (see [`sklearn.set\_config`](sklearn.set_config.html#sklearn.set_config "sklearn.set_config")). Please see [User Guide](../../metadata_routing.html#metadata-routing) on how the routing mechanism works.
The options for each parameter are:
*/
async set_score_request(opts: {
/**
Metadata routing for `sample\_weight` parameter in `score`.
*/
sample_weight?: string | boolean
}): Promise<any> {
if (this._isDisposed) {
throw new Error(
'This GaussianProcessClassifier instance has already been disposed'
)
}
if (!this._isInitialized) {
throw new Error(
'GaussianProcessClassifier must call init() before set_score_request()'
)
}
// set up method params
await this._py
.ex`pms_GaussianProcessClassifier_set_score_request = {'sample_weight': ${
opts['sample_weight'] ?? undefined
}}
pms_GaussianProcessClassifier_set_score_request = {k: v for k, v in pms_GaussianProcessClassifier_set_score_request.items() if v is not None}`
// invoke method
await this._py
.ex`res_GaussianProcessClassifier_set_score_request = bridgeGaussianProcessClassifier[${this.id}].set_score_request(**pms_GaussianProcessClassifier_set_score_request)`
// convert the result from python to node.js
return this
._py`res_GaussianProcessClassifier_set_score_request.tolist() if hasattr(res_GaussianProcessClassifier_set_score_request, 'tolist') else res_GaussianProcessClassifier_set_score_request`
}
/**
The estimator instance that defines the likelihood function using the observed data.
*/
get base_estimator_(): Promise<any> {
if (this._isDisposed) {
throw new Error(
'This GaussianProcessClassifier instance has already been disposed'
)
}
if (!this._isInitialized) {
throw new Error(
'GaussianProcessClassifier must call init() before accessing base_estimator_'
)
}
return (async () => {
// invoke accessor
await this._py
.ex`attr_GaussianProcessClassifier_base_estimator_ = bridgeGaussianProcessClassifier[${this.id}].base_estimator_`
// convert the result from python to node.js
return this
._py`attr_GaussianProcessClassifier_base_estimator_.tolist() if hasattr(attr_GaussianProcessClassifier_base_estimator_, 'tolist') else attr_GaussianProcessClassifier_base_estimator_`
})()
}
/**
The log-marginal-likelihood of `self.kernel\_.theta`
*/
get log_marginal_likelihood_value_(): Promise<number> {
if (this._isDisposed) {
throw new Error(
'This GaussianProcessClassifier instance has already been disposed'
)
}
if (!this._isInitialized) {
throw new Error(
'GaussianProcessClassifier must call init() before accessing log_marginal_likelihood_value_'
)
}
return (async () => {
// invoke accessor
await this._py
.ex`attr_GaussianProcessClassifier_log_marginal_likelihood_value_ = bridgeGaussianProcessClassifier[${this.id}].log_marginal_likelihood_value_`
// convert the result from python to node.js
return this
._py`attr_GaussianProcessClassifier_log_marginal_likelihood_value_.tolist() if hasattr(attr_GaussianProcessClassifier_log_marginal_likelihood_value_, 'tolist') else attr_GaussianProcessClassifier_log_marginal_likelihood_value_`
})()
}
/**
Unique class labels.
*/
get classes_(): Promise<ArrayLike> {
if (this._isDisposed) {
throw new Error(
'This GaussianProcessClassifier instance has already been disposed'
)
}
if (!this._isInitialized) {
throw new Error(
'GaussianProcessClassifier must call init() before accessing classes_'
)
}
return (async () => {
// invoke accessor
await this._py
.ex`attr_GaussianProcessClassifier_classes_ = bridgeGaussianProcessClassifier[${this.id}].classes_`
// convert the result from python to node.js
return this
._py`attr_GaussianProcessClassifier_classes_.tolist() if hasattr(attr_GaussianProcessClassifier_classes_, 'tolist') else attr_GaussianProcessClassifier_classes_`
})()
}
/**
The number of classes in the training data
*/
get n_classes_(): Promise<number> {
if (this._isDisposed) {
throw new Error(
'This GaussianProcessClassifier instance has already been disposed'
)
}
if (!this._isInitialized) {
throw new Error(
'GaussianProcessClassifier must call init() before accessing n_classes_'
)
}
return (async () => {
// invoke accessor
await this._py
.ex`attr_GaussianProcessClassifier_n_classes_ = bridgeGaussianProcessClassifier[${this.id}].n_classes_`
// convert the result from python to node.js
return this
._py`attr_GaussianProcessClassifier_n_classes_.tolist() if hasattr(attr_GaussianProcessClassifier_n_classes_, 'tolist') else attr_GaussianProcessClassifier_n_classes_`
})()
}
/**
Number of features seen during [fit](../../glossary.html#term-fit).
*/
get n_features_in_(): Promise<number> {
if (this._isDisposed) {
throw new Error(
'This GaussianProcessClassifier instance has already been disposed'
)
}
if (!this._isInitialized) {
throw new Error(
'GaussianProcessClassifier must call init() before accessing n_features_in_'
)
}
return (async () => {
// invoke accessor
await this._py
.ex`attr_GaussianProcessClassifier_n_features_in_ = bridgeGaussianProcessClassifier[${this.id}].n_features_in_`
// convert the result from python to node.js
return this
._py`attr_GaussianProcessClassifier_n_features_in_.tolist() if hasattr(attr_GaussianProcessClassifier_n_features_in_, 'tolist') else attr_GaussianProcessClassifier_n_features_in_`
})()
}
/**
Names of features seen during [fit](../../glossary.html#term-fit). Defined only when `X` has feature names that are all strings.
*/
get feature_names_in_(): Promise<NDArray> {
if (this._isDisposed) {
throw new Error(
'This GaussianProcessClassifier instance has already been disposed'
)
}
if (!this._isInitialized) {
throw new Error(
'GaussianProcessClassifier must call init() before accessing feature_names_in_'
)
}
return (async () => {
// invoke accessor
await this._py
.ex`attr_GaussianProcessClassifier_feature_names_in_ = bridgeGaussianProcessClassifier[${this.id}].feature_names_in_`
// convert the result from python to node.js
return this
._py`attr_GaussianProcessClassifier_feature_names_in_.tolist() if hasattr(attr_GaussianProcessClassifier_feature_names_in_, 'tolist') else attr_GaussianProcessClassifier_feature_names_in_`
})()
}
}