Closed ackbar03 closed 2 weeks ago
Hi there,
Thanks for your interest in this project. May I know your current version of python, sklearn and py-xgboost? I have tested and got the code runs fine with the specified dependencies' versions in readme file. I did try running the code with python 3.9.20 and sklearn (1.2.0/1.5.1) and some problems will emerge.
Unfortunately I've left the company (where I published this work) so now I do not have access to the training code. Otherwise I would be able to re-export the pre-trained model. But at least reverting to python 3.7.7 and sklearn 0.24 will help.
I tested newest version of rdkit (2024.09.1), it worked as well.
Let me know how it goes and I can close the problem if you made it working.
Best, Fanjin
Hi,
Indeed, it seems to be a versioning issue. Reverting to python 3.7.7 and sklearn 0.24 solved the problem.
Thanks so much for your prompt reply!
Hi,
I am trying to run the code but I keep getting this error:
The error comes from trying to use the loaded model to perform operations:
pred_Env = model['GI_encoder'].transform(np.array(df_pred['Env']).reshape(-1, 1))
In the model_predict function:
Do you have any advice on how to solve this?