Giter Club home page Giter Club logo

Comments (5)

mattragoza avatar mattragoza commented on May 29, 2024

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.

from ligan.

Layne-Huang avatar Layne-Huang commented on May 29, 2024

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.

from ligan.

Matheo-Chang avatar Matheo-Chang commented on May 29, 2024

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
main(sys.argv[1:])
File "generate.py", line 41, in main
debug=args.debug,
File "/da1/home/changhaoyu/liGAN/liGAN/generating.py", line 98, in init
**output_kws,
File "/da1/home/changhaoyu/liGAN/liGAN/generating.py", line 671, in init
self.metrics = pd.DataFrame(columns=columns).set_index(columns)
File "/home/changhaoyu/anaconda3/envs/py37/lib/python3.7/site-packages/pandas/core/frame.py", line 392, in init
mgr = init_dict(data, index, columns, dtype=dtype)
File "/home/changhaoyu/anaconda3/envs/py37/lib/python3.7/site-packages/pandas/core/internals/construction.py", line 196, in init_dict
nan_dtype)
File "/home/changhaoyu/anaconda3/envs/py37/lib/python3.7/site-packages/pandas/core/dtypes/cast.py", line 1175, in construct_1d_arraylike_from_scalar
dtype = dtype.dtype
AttributeError: type object 'object' has no attribute 'dtype'
How can I solve it?

from ligan.

mattragoza avatar mattragoza commented on May 29, 2024

@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

from ligan.

mattragoza avatar mattragoza commented on May 29, 2024

@Matheo-Chang I moved this to a separate issue #48.

from ligan.

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.