This repository contains the scripts, configuration files, and software components used for training generative models and performing reinforcement learning. It includes pre-RL and post-RL generative models, as well as the Chemprop model for excited-state property prediction.
configs/: Configuration files for various stages of the project.data/: Data files used in the project.model/: Model checkpoints and related files.script/: Scripts for various tasks.
-
Setup the Environment: Use the
environment.ymlfile to set up the required conda environment.conda env create -f environment.yml conda activate sf_generative
If you have the model trained with REINVENT v.3, use
convert_r3_model.pyto make it compatible with REINVENT v.4.To make singlet fission score component visible to REINVENT v.4,
bash export PYTHONPATH="${PYTHONPATH}:[]/SF_generative/script" -
Run REINVENT task: Use TOML files in
configs/directory to optimize the generative model inmodel/for singlet fission chromophoresreinvent rl.toml -l rl.log
-
Post-optimization analysis: Use python scipts in
scipts/directory to visualize the optimization history, analzye the optimized generative model, and sample for singlet fission candidatespython rl_analysis.log python model_analysis.log
If you use this repository in your research, please cite the following publication:
Worakul T, Laplaza R, Blaskovits JT, Corminboeuf C. Generative Design of Singlet Fission Materials by Revisiting the Use of a Fragment-oriented Database. ChemRxiv. 2025; doi:10.26434/chemrxiv-2025-chmsm