Closed Layne-Huang closed 2 years ago
Thank you very much for your kind reply!
May I ask how to count the evaluation metrics like validity, novelty, and uniqueness?
Thank you again.
Excuse me, when I use the command python3 generate.py config/generate.config
. It appears a problem as follows:
Traceback (most recent call last):
File "generate.py", line 48, in
@Layne-Huang I just added a script scripts/valid_novel_unique.py
which can be used as follows:
(LiGAN) [mtragoza@dv002 LiGAN]$ python scripts/valid_novel_unique.py -h
usage: valid_novel_unique.py [-h] [--groupby GROUPBY] [-o OUT_FILE] data_root train_file metrics_file
positional arguments:
data_root
train_file
metrics_file
optional arguments:
-h, --help show this help message and exit
--groupby GROUPBY
-o OUT_FILE, --out_file OUT_FILE
(LiGAN) [mtragoza@dv002 LiGAN]$ python scripts/valid_novel_unique.py data/crossdock2020/ data/it2_tt_0_lowrmsd_valid_mols_test0_1000.types DEMO.gen_metrics
Loading train set molecules
Loading generated molecules
% valid % novel % unique
all
all 100.0 100.0 100.0
@Matheo-Chang I moved this to a separate issue #48.
You can use the command
python3 generate.py config/generate.config
to generate molecules for each of the selected test targets that were used for evaluations in our Chemical Science article.