GithubHelp home page GithubHelp logo

Load JNK3 Oracle Error about tdc HOT 8 CLOSED

mims-harvard avatar mims-harvard commented on July 30, 2024
Load JNK3 Oracle Error

from tdc.

Comments (8)

yuanqidu avatar yuanqidu commented on July 30, 2024

sklearn.ensemble.forest was renamed to sklearn.ensemble._forest in scikit-learn/scikit-learn@437ca05 on Oct 16, 2019. It requires us to compile the old version from sources, e.g. 0.21.3. I suspect the problem was due to a name change in scikit-learn versions?

from tdc.

yuanqidu avatar yuanqidu commented on July 30, 2024

Another error I found was in the Deco Hop oracle (below). But the errors did not occur in a similar function Scaffold Hop. I suspect that it was caused by https://github.com/mims-harvard/TDC/blob/master/tdc/chem_utils.py#L1395-L1399 and https://github.com/mims-harvard/TDC/blob/master/tdc/chem_utils.py#L1367 (the if statement).

Traceback (most recent call last):
File "/home/yqdu/moflow-master/data/process_property.py", line 36, in
deco_hop.append(deco_oracle(smile))
File "/home/yqdu/anaconda3/envs/rdkit/lib/python3.9/site-packages/tdc/oracles.py", line 251, in call
return self.evaluator_func(*args, **kwargs)
File "/home/yqdu/anaconda3/envs/rdkit/lib/python3.9/site-packages/tdc/chem_utils.py", line 1382, in deco_hop
deco1_score = deco1_smarts_scoring(molecule)
NameError: name 'deco1_smarts_scoring' is not defined

from tdc.

kexinhuang12345 avatar kexinhuang12345 commented on July 30, 2024

Hi yuanqi, this is indeed due to a version issue with sklearn. We will change the requirements file in the next version. For the next error, @futianfan could you take a look?

from tdc.

futianfan avatar futianfan commented on July 30, 2024

sure

from tdc.

yuanqidu avatar yuanqidu commented on July 30, 2024

It looks like the old version is no longer supported by scikit-learn. Could you/May I help to update the function to support the latest scikit-learn version? But it seems like the errors happened during loading the model. Is it possible to re-dump the model with the latest scikit-learn and I believe it will be fixed.

from tdc.

futianfan avatar futianfan commented on July 30, 2024

i fixed them, thanks for pointing out!

from tdc.

yuanqidu avatar yuanqidu commented on July 30, 2024

Thanks!

from tdc.

futianfan avatar futianfan commented on July 30, 2024

will address the version issue later.

from tdc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.