Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch ValueError while importing optuna-fast-fanova #267

Merged
merged 1 commit into from
Sep 15, 2022

Conversation

c-bata
Copy link
Member

@c-bata c-bata commented Sep 15, 2022

Contributor License Agreement

This repository (optuna-dashboard) and Goptuna share common code.
This pull request may therefore be ported to Goptuna.
Make sure that you understand the consequences concerning licenses and check the box below if you accept the term before creating this pull request.

  • I agree this patch may be ported to Goptuna by other Goptuna contributors.

Reference Issues/PRs

None

What does this implement/fix? Explain your changes.

As reported optuna/optuna-fast-fanova#6, ValueError may be raised.

/usr/lib/python3.7/importlib/_bootstrap.py:219: RuntimeWarning: sklearn.tree._criterion.Criterion size changed, may indicate binary incompatibility. Expected 328 from C header, got 352 from PyObject
return f(*args, **kwds)
ValueError Traceback (most recent call last)
in ()
1 import optuna
----> 2 from optuna_fast_fanova import FanovaImportanceEvaluator
3
4
5 def objective(trial):

2 frames
/usr/local/lib/python3.7/dist-packages/optuna_fast_fanova/_fanova.pyx in init optuna_fast_fanova._fanova()

ValueError: sklearn.tree._criterion.ClassificationCriterion size changed, may indicate binary incompatibility. Expected 1168 from C header, got 368 from PyObject

@c-bata c-bata mentioned this pull request Sep 15, 2022
1 task
@c-bata c-bata merged commit b6b70d5 into optuna:main Sep 15, 2022
@c-bata c-bata deleted the catch-value-error branch September 15, 2022 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant