Giter Club home page Giter Club logo

smiles-x's People

Contributors

egracheva avatar glambard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

smiles-x's Issues

Model is bigger than in the example

Dear Guillaume,

Thank you very much for sharing this. I try to run the notebook and I have some issues with the size of the problem. It is much bigger than yours and I use the same parameters. do you have an idea of what happened ?

My executed notebook
https://github.com/pnavaro/SMILES-X/blob/master/SMILESX_Prediction_github.ipynb

***Bayesian Optimization of the SMILESX's architecture.***

Random initialization:

Model: [[512.  512.   32.  128.    3.9]]

Best regards
Pierre

ImportError: cannot import name 'CuDNNLSTM' from 'keras.layers'

I tried using SMILES-X with a recent environment, and the example notebook is failing with the following error:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-4-84592a845c88> in <module>
      1 import pandas as pd
      2 
----> 3 from SMILESX import main, inference
      4 get_ipython().run_line_magic('matplotlib', 'inline')

~/git/SMILES-X/SMILESX/main.py in <module>
     24 from sklearn.metrics import r2_score
     25 
---> 26 from SMILESX import utils, token, augm, model
     27 
     28 np.set_printoptions(precision=3)

~/git/SMILES-X/SMILESX/model.py in <module>
      4 from keras.layers import Embedding
      5 from keras.layers.wrappers import Bidirectional
----> 6 from keras.layers import CuDNNLSTM, TimeDistributed
      7 
      8 from keras.engine.topology import Layer

ImportError: cannot import name 'CuDNNLSTM' from 'keras.layers' (/home/elkhatim/miniconda3/envs/py38/lib/python3.8/site-packages/keras/layers/__init__.py)

This is due to the latest version of Keras deprecating CuDNNLSTM. As I am under a conda environment with Python3.8, I tried installing the version 2.3.0 of Keras but not possible:

conda install -c conda-forge keras==2.3
UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - keras==2.3.0 -> python[version='>=2.7,<2.8.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0']

Your python: python=3.8

It seems the only way to use SMILES-X would be to install an environment with Python3.6 and use the Keras version posted above, which becomes very inconvenient on my setup to access my jupyterlab instance.

Inconsistent metrics reported during and after training

Validation metrics look much better while training. From the SMILESX_Prediction_github.ipynb notebook:

273/273 [==============================] - 2s 8ms/step - loss: 0.0013 - mean_absolute_error: 0.0277 - mean_squared_error: 0.0013 - val_loss: 0.0101 - val_mean_absolute_error: 0.0625 - val_mean_squared_error: 0.0101
Best val_loss @ Epoch #37

***Predictions from the best model.***

For the training set:
MAE: 0.4164 RMSE: 0.5672 R^2: 0.9799

For the validation set:
MAE: 0.5921 RMSE: 0.8804 R^2: 0.9324

For the test set:
MAE: 0.4668 RMSE: 0.7007 R^2: 0.9350

Final predictions gives MAE: 0.5921 whereas the prediction during training gives val_mean_absolute_error: 0.0625. I would put more trust in the "Predictions from the best model" because its averaging the result of augmented smiles. Is this the correct interpretation?

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.