Skip to content

Python environment for ClassicalGSG #1

@fwaibl

Description

@fwaibl

Hi,

I would like to use ClassicalGSG to predict logP values of small molecules. However, I am unable to get any non-NaN results. I could imagine that this is because of version mismatches of some Python packages.

I currently have:

  • Python 3.8 (with 3.7 I got "ImportError: cannot import name 'cached_property' from 'functools'").
  • skorch 0.10.0
  • scikit-learn 0.24.2
  • torch 1.12.1

When I try to run ClassicalGSG on benzene, I get the following output:

$ python -m LogpPredictor benzene.mol2 benzene.str                                                                                                                                                                                                                                 
/localhome/fwaibl/.conda/envs/classicalgsg/lib/python3.8/site-packages/classicalgsg/molreps_models/gsg.py:64: RuntimeWarning: Precision loss occurred in moment calculation due to catastrophic cancellation. This occurs when the data are nearly identical. Results may be unreliable.                                                                                                                                                                                                                                                                              
  features.append(stats.skew(wavelet_signal, axis=1, bias=False))                                                                                                                                                                                                                  
/localhome/fwaibl/.conda/envs/classicalgsg/lib/python3.8/site-packages/classicalgsg/molreps_models/gsg.py:65: RuntimeWarning: Precision loss occurred in moment calculation due to catastrophic cancellation. This occurs when the data are nearly identical. Results may be unreliable.                                                                                                                                                                                                                                                                              
  features.append(stats.kurtosis(wavelet_signal, axis=1, bias=False))                                                                                                                                                                                                              
/localhome/fwaibl/.conda/envs/classicalgsg/lib/python3.8/site-packages/classicalgsg/molreps_models/gsg.py:84: RuntimeWarning: Precision loss occurred in moment calculation due to catastrophic cancellation. This occurs when the data are nearly identical. Results may be unreliable.                                                                                                                                                                                                                                                                              
  features.append(stats.skew(coefficents, axis=1, bias=False))                                                                                                                                                                                                                     
/localhome/fwaibl/.conda/envs/classicalgsg/lib/python3.8/site-packages/classicalgsg/molreps_models/gsg.py:85: RuntimeWarning: Precision loss occurred in moment calculation due to catastrophic cancellation. This occurs when the data are nearly identical. Results may be unreliable.                                                                                                                                                                                                                                                                              
  features.append(stats.kurtosis(coefficents, axis=1, bias=False))                                                                                                                                                                                                                 
/localhome/fwaibl/.conda/envs/classicalgsg/lib/python3.8/site-packages/sklearn/base.py:310: UserWarning: Trying to unpickle estimator StandardScaler from version 0.23.2 when using version 0.24.2. This might lead to breaking code or invalid results. Use at your own risk.     
  warnings.warn(                                                                                                                                                                                                                                                                   
Predicted logP value is: nan

The same also happens with the MMFF94 version, and also with less symmetric molecules (e.g., pyridine)
Do you know which versions of pytorch etc. I should have installed to use ClassicalGSG?

Best regards,
Franz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions