wengong-jin / hgraph2graph

Hierarchical Generation of Molecular Graphs using Structural Motifs
MIT License
375 stars 109 forks source link

ZeroDivisionError when size smaller than 1000 using single mode #48

Open phys-chem opened 1 year ago

phys-chem commented 1 year ago

in preprocess.py line 107: num_splits = len(all_data) // 1000 for other modes, it is written as: num_splits = max(len(all_data) // 1000, 1)