Closed Drlittlelab closed 3 years ago
Hi! I found this is a typo in our tutorial. Could you try to modify node_feature
to "center_identification"
?
Hi! I found this is a typo in our tutorial. Could you try to modify
node_feature
to"center_identification"
?
I follow your suggestion, it still have an error as follows:
Loading D:/test/molecule-datasets/data_processed.csv: 100%|██████████| 50017/50017 [00:00<00:00, 90032.80it/s]
Constructing molecules from SMILES: 0%| | 0/50016 [00:00<?, ?it/s]
Traceback (most recent call last):
File "F:/workdir/pycharm/Retrosynthesis/main.py", line 5, in <module>
kekulize=True)
File "D:\soft\Anaconda3\envs\py37\lib\site-packages\decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "D:\soft\Anaconda3\envs\py37\lib\site-packages\torchdrug-0.1.0-py3.7.egg\torchdrug\core\core.py", line 282, in wrapper
return init(self, *args, **kwargs)
File "D:\soft\Anaconda3\envs\py37\lib\site-packages\torchdrug-0.1.0-py3.7.egg\torchdrug\datasets\uspto50k.py", line 63, in __init__
**kwargs)
File "D:\soft\Anaconda3\envs\py37\lib\site-packages\torchdrug-0.1.0-py3.7.egg\torchdrug\data\dataset.py", line 112, in load_csv
self.load_smiles(smiles, targets, verbose=verbose, **kwargs)
File "D:\soft\Anaconda3\envs\py37\lib\site-packages\torchdrug-0.1.0-py3.7.egg\torchdrug\data\dataset.py", line 232, in load_smiles
mol = data.Molecule.from_molecule(mol, **kwargs)
TypeError: from_molecule() got an unexpected keyword argument 'center_identification'
Sorry for the ambiguity. Could you set the argument as node_feature="center_identification"
?
Sorry for the ambiguity. Could you set the argument as
node_feature="center_identification"
?
Thanks, it is ok now.
Fixed in a12bbd3.
Dear everyone,
I have install torchdrug correctly, and then follow the tutorial https://torchdrug.ai/docs/tutorials/retrosynthesis.html When I run the code as below:
It happens error as follows:
what is the problem? could you help me to solve it? Thanks.