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

ValueError with Oracles #205

Open
SethPate opened this issue Jul 11, 2023 · 3 comments
Open

ValueError with Oracles #205

SethPate opened this issue Jul 11, 2023 · 3 comments

Comments

@SethPate
Copy link

SethPate commented Jul 11, 2023

Describe the bug
Running the example code for the GSK3B oracle produces a ValueError.

To Reproduce
Using this code from: https://tdcommons.ai/functions/oracles/#glycogen-synthase-kinase-3-beta-gsk3β
from tdc import Oracle
oracle = Oracle(name = 'GSK3B')
oracle(['CC(C)(C)[C@H]1CCc2c(sc(NC(=O)COc3ccc(Cl)cc3)c2C(N)=O)C1', \ 'CCNC(=O)c1ccc(NC(=O)N2CC[C@H](C)[C@H](O)C2)c(C)c1', \ 'C[C@@H]1CCN(C(=O)CCCc2ccccc2)C[C@@H]1O'])

Expected behavior
The above code should produce [0.03, 0.0, 0.0], but instead I'm getting:
ValueError: node array from the pickle has an incompatible dtype:, etc.

Environment:

  • OS: mac
  • Python version: 3.11.3
  • TDC version: 0.4.0
  • Any other relevant information: sklearn version 1.3.0

Additional context
I think there is some incompatibility with a recent version of sklearn.tree.

@futianfan
Copy link
Collaborator

Hi, thanks for your interest, I used python 3.7 and sklearn 0.23.2, it works on both mac and linux. What is your version sklearn?

@SethPate
Copy link
Author

I'm using sklearn 1.3.0. I tried downgrading to sklearn 0.23.2 as you suggest, but had errors during pip install, maybe due to an incompatibility with my python version.

@kexinhuang12345
Copy link
Collaborator

Is the error resolved yet?

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

No branches or pull requests

3 participants