chemprop.data.molgraph#
Classes#
Module Contents#
- class chemprop.data.molgraph.MolGraph[source]#
Bases:
NamedTupleA
MolGraphrepresents the graph featurization of a molecule.- V: numpy.ndarray#
an array of shape
V x d_vcontaining the atom features of the molecule
- E: numpy.ndarray#
an array of shape
E x d_econtaining the bond features of the molecule
- edge_index: numpy.ndarray#
an array of shape
2 x Econtaining the edges of the graph in COO format
- rev_edge_index: numpy.ndarray#
A array of shape
Ethat maps from an edge index to the index of the source of the reverse edge inedge_indexattribute.