1.1.1.3.1.1.1.5.7. PruneTreeOper

class molpher.swig_wrappers.core.PruneTreeOper(*args)[source]

Bases: molpher.swig_wrappers.core.TreeOperation

This tree operation prunes some unwanted molecules from the tree. Unwanted molecules are those that haven’t generated any morphs closer to the target in a given number of iterations (see ExplorationData.non_producing_survive) or those that produced way too many morphs without any of them being closer to the target (see ExplorationData.max_morphs_total).

__call__()[source]

Call self as a function.

Prune the attached ExplorationTree instance according to the rules given in ExplorationData.