Giter Site home page Giter Site logo

smiles-rnn's People

Contributors

baoilleach avatar morgancthomas avatar shermanlo77 avatar

Stargazers

 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  avatar

smiles-rnn's Issues

Patch to require i/o/s arguments

In the course of other work, I see that I made the following changes locally in train_prior.py. Would this be a good change to include?

-    required.add_argument('-i', '--train_smiles', type=str, help='Path to smiles file')
-    required.add_argument('-o', '--output_directory', type=str, help='Output directory to save model')
-    required.add_argument('-s', '--suffix', type=str, help='Suffix to name files')
+    required.add_argument('-i', '--train_smiles', type=str, help='Path to smiles file', required=True)
+    required.add_argument('-o', '--output_directory', type=str, help='Output directory to save model', required=True)
+    required.add_argument('-s', '--suffix', type=str, help='Suffix to name files', required=True)

Error while running reinforcement.py script

Hi,

Running the reinforcement_learning.py code, the following error occurred.

(molscore) medicina@medicina:SMILES-RNN$ python reinforcement_learning.py -p Prior_GuacaMol_reprod_lstm_Epoch-10.ckpt -m ret_sim_config.json --model RNN RV2
Found existing directory, appending current time to distinguish
Device set to cuda
0%| | 0/250 [00:00<?, ?it/s]
Traceback (most recent call last):
File "/media/medicina/SMILES-RNN/model/RL.py", line 84, in _score
scores = self.scoring_function(smiles)
File "/media/medicina/SMILES-RNN/molscore/manager.py", line 586, in call
self.run_scoring_functions(smiles=smiles_to_process, file_names=file_names)
File "/media/medicina/SMILES-RNN/molscore/manager.py", line 248, in run_scoring_functions
results = function(smiles=smiles, directory=self.save_dir, file_names=file_names)
File "/media/medicina/SMILES-RNN/molscore/scoring_functions/similarity.py", line 102, in call
with Pool(self.n_jobs) as pool:
File "/home/medicina/anaconda3/envs/molscore/lib/python3.6/multiprocessing/context.py", line 119, in Pool
context=self.get_context())
File "/home/medicina/anaconda3/envs/molscore/lib/python3.6/multiprocessing/pool.py", line 174, in init
self._repopulate_pool()
File "/home/medicina/anaconda3/envs/molscore/lib/python3.6/multiprocessing/pool.py", line 229, in _repopulate_pool
for i in range(self._processes - len(self._pool)):
TypeError: 'float' object cannot be interpreted as an integer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "reinforcement_learning.py", line 157, in
main(args)
File "reinforcement_learning.py", line 49, in main
record = RL.train(n_steps=args.n_steps, save_freq=args.save_freq)
File "/media/medicina/SMILES-RNN/model/RL.py", line 50, in train
self._train_step(step=step)
File "/media/medicina/SMILES-RNN/model/RL.py", line 187, in _train_step
scores = self._score(smiles, step)
File "/media/medicina/SMILES-RNN/model/RL.py", line 93, in _score
self.scoring_function.write_scores()
File "/media/medicina/SMILES-RNN/molscore/manager.py", line 415, in write_scores
temp = self.main_df.copy()
AttributeError: 'NoneType' object has no attribute 'copy'

What kind of error is this? Please help.

Thanks

Incompatible with Ampere Cards

Thanks for the code!

We would like to run this on an A100, however, on the Ampere cards, it requires CUDA SDK or toolkit to be v11.0<. However, this is pinned in environment.yml with cudatoolkit=10.2.89.

Is there a chance this could be updated for the latest cards?

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.