utils¶
graph¶
-
class
openchem.utils.graph.
Attribute
(attr_type, name, one_hot=True, values=None)[source]¶ Bases:
object
utils¶
-
openchem.utils.utils.
cross_validation_split
(data, targets, n_folds=5, split='random', stratified=True, folds=None)[source]¶
-
openchem.utils.utils.
make_positions
(tensor, padding_idx, left_pad)[source]¶ Replace non-padding symbols with their position numbers. Position numbers begin at padding_idx+1. Padding symbols are ignored, but it is necessary to specify whether padding is added on the left side (left_pad=True) or right side (left_pad=False).