Code Monkey home page Code Monkey logo

Comments (5)

FaSalih avatar FaSalih commented on July 26, 2024 1

You're a life saver! I was about to lose weeks off my life trying to upgrade all of this to a newer TensorFlow version.

from chemical_vae.

ghsanti avatar ghsanti commented on July 26, 2024 1

tl;dr: Try installing python 3.12 instead (using conda or mamba).

You don't need poetry necessarily the key is to have the deps from pyproject.toml this means you can also install it with pip. I use poetry to keep track of that process.

Edit: notebooks do run with some mods, but need a much larger noise value to get any new molecule; I'm unsure why yet, and whether it's a bug in my code or not.

from chemical_vae.

ghsanti avatar ghsanti commented on July 26, 2024

Great, it's a complex env so if something fails let me know. Also, I removed TerminalGRU for the moment @FaSalih. In practical terms it means that you may get less accuracy, but probably a lot of algorithmic improvements from the newer packages' versions.

from chemical_vae.

FaSalih avatar FaSalih commented on July 26, 2024

@ghsanti I am having a little trouble with the required python version. I'm get the following error when I try to run either of the poetry commands

(cvae) [fsalih@crcfe02 cvae]$ poetry install --without dev --sync # unless you want dev deps.

Current Python version (3.11.9) is not allowed by the project (~3.12.4).
Please change python executable via the "env use" command.
(cvae) [fsalih@crcfe02 cvae]$ poetry install --only-main

Current Python version (3.11.9) is not allowed by the project (~3.12.4).
Please change python executable via the "env use" command.

In the environment creation command you specify a python version below 3.12, but the pyproject.toml file specifies python = "~3.12.4" under [tool.poetry.dependencies].

What's the right python version? And do I need these poetry commands?

from chemical_vae.

ghsanti avatar ghsanti commented on July 26, 2024

@FaSalih I did the first test on the notebook (I just uploaded the trained model, so you should not need to train it to test.)

Feel free to open any question in the repo, I won't spam here anymore :-)

This is what I get (there are still things im unsure, but result makes sense imho.)

image

And the distances from 'O=C1Cc2[nH]ccc2N1':

               smiles   distance  count  frequency  \
0   O=C1Cc2[nH]ccc2N1   0.000004    359   0.637655   
1   O=C1Cc2[nH]ccc2C1   1.400370      4   0.007105   
2   O=C1Nc2[nH]ccc2N1   1.667291      1   0.001776   
3   O=C1Cc2[nH]ccc2O1   2.085738     53   0.094139   
4   O=C1Cc2[nH]ncc2N1   2.117460      2   0.003552   
5    O=C1Cc2[nH]ccc21   3.644159    128   0.227353   
6    O=c1Cc2[nH]ccc21   3.971362      2   0.003552   
7    O=C1Oc2[nH]ccc21   4.014803      1   0.001776   
8    O=C1Cc2[nH]cnc21   4.133598      2   0.003552   
9    O=C1Cc2[nH]ncc21   4.218965      1   0.001776   
10  O=C1C=2[nH]ccc2C1   4.328512      1   0.001776   
11   O=C1Ccc[nH]cccn1   4.531935      1   0.001776   
12  O=c1oc2[nH]ccc2O1   5.580686      1   0.001776   
13   O=C1CcC[nH]cccc1   5.901025      1   0.001776   
14  O=C1CC2[nH]cc2CC1   6.280135      1   0.001776   
15    O=C1Ocn[nH]cc1O   7.617425      1   0.001776   
16   O=CNCC1[n-]cccc1   8.793110      1   0.001776   
17    O=C1Cc2nonccc21   9.234937      1   0.001776   
18   O=C1CC=Cn2nccc21  10.604646      1   0.001776   
19   O=C1cc[nH]c(O)c1  11.585962      1   0.001776

from chemical_vae.

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.