iktos / generation-under-synthetic-constraint

MIT License
17 stars 5 forks source link

Package description

This package is a fork of the code of BenevolantAI https://github.com/BenevolentAI/guacamol_baselines. It enables running generations with several models, for the tasks from the guacamol benchmark , and for another task named "pi3kmtor" described in the paper.

Additionaly, the package enables to run generations with synthetic score as a new constraint. The synthetic accessibility score can be one of the following :

Requirements

These should contain your credentials to use the Spaya API.

Run generations

The goal directed generations have 2 essentials arguments :

Example

Run 10 steps of generation around pi3kmtor dataset, optimizing 4 constraints and using the SA score constraint:

poetry run python -m guacamol_baselines.smiles_lstm_hc.goal_directed_generation --suite pi3kmtor --n_epochs 10 --synth_score SAscore

Get the results