Closed daanielng closed 11 months ago
Thanks a lot for reporting this!
I fixed this with this commit. I will upload a new version to PyPI in the coming days.
It's on PyPI now. The new version 1.2.2 fixes the problem.
Thanks a lot, appreciate it :)
Hi, I am currently using GPBoostClassifier inside sklearn's Pipeline.
I noticed in the documentation that GPBoostClassifier's
predict
method still has a default value of-1
fornum_neighbors_pred
parameter instead ofNone
even though it is discontinued. This raises an error when callingmodel.predict(X)
.Error is avoided only when
GPBoostClassifier.predict(X, num_neighbors_pred = None)
is explicitly specified.Is it possible to rewrite the default value of
num_neighbors_pred
toNone
to avoid this error?GPBoost Version
GPBoost Documentation (latest version)
Error Message Received