You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use RandomizedSearchCV with GP with a vector of alpha's.
It seems that with the cross validation the alpha are not being split into train/test sets because I get the following error:
ValueError: alpha must be a scalar or an array with same number of entries as y. (100 != 80)
Is there any workaround, or am I missing something?
Yeah, I checked the code, parameters, alpha here, of the estimator are not splited into k-folder form. It is easy to cope this case, but what I wander is there a general way to cope with all estimator with arguments need to be splited?
That's because while doing a CV search, the data is split into train/test, but your alpha is still of length 100.
You can instead pass a single scalar since you're adding a constant there anyway. Once SLEP006 #24027 is merged we could think of a better API for constructor args which are sample aligned (they're metadata in a way).
Describe the bug
Hi,
I'm trying to use RandomizedSearchCV with GP with a vector of alpha's.
It seems that with the cross validation the alpha are not being split into train/test sets because I get the following error:
ValueError: alpha must be a scalar or an array with same number of entries as y. (100 != 80)
Is there any workaround, or am I missing something?
Thanks!
Steps/Code to Reproduce
Expected Results
No error is thrown and estimation is based on the values and target uncertainty
Actual Results
Versions
The text was updated successfully, but these errors were encountered: