chemprop.featurizers.molgraph.molecule#
Classes#
A |
|
A |
Module Contents#
- class chemprop.featurizers.molgraph.molecule.SimpleMoleculeMolGraphFeaturizer[source]#
Bases:
chemprop.featurizers.molgraph.mixins._MolGraphFeaturizerMixin,chemprop.featurizers.base.GraphFeaturizer[rdkit.Chem.Mol]A
SimpleMoleculeMolGraphFeaturizeris the default implementation of aMoleculeMolGraphFeaturizer- Parameters:
atom_featurizer (AtomFeaturizer, default=MultiHotAtomFeaturizer()) – the featurizer with which to calculate feature representations of the atoms in a given molecule
bond_featurizer (BondFeaturizer, default=MultiHotBondFeaturizer()) – the featurizer with which to calculate feature representations of the bonds in a given molecule
extra_atom_fdim (int, default=0) – the dimension of the additional features that will be concatenated onto the calculated features of each atom
extra_bond_fdim (int, default=0) – the dimension of the additional features that will be concatenated onto the calculated features of each bond
- extra_atom_fdim: int = 0#
- extra_bond_fdim: int = 0#
- class chemprop.featurizers.molgraph.molecule.BatchCuikMolGraph[source]#
- V: torch.Tensor#
the atom feature matrix
- E: torch.Tensor#
the bond feature matrix
- edge_index: torch.Tensor#
an tensor of shape
2 x Econtaining the edges of the graph in COO format
- rev_edge_index: torch.Tensor#
A tensor of shape
Ethat maps from an edge index to the index of the source of the reverse edge in theedge_indexattribute.
- batch: torch.Tensor#
the index of the parent
MolGraphin the batched graph
- class chemprop.featurizers.molgraph.molecule.CuikmolmakerMolGraphFeaturizer[source]#
Bases:
chemprop.featurizers.base.Featurizer[list[str],BatchCuikMolGraph]A
CuikmolmakerMolGraphFeaturizerfeaturizes a list of molecules at once instead of one molecule at a time for efficiency.- Parameters:
atom_featurizer_mode (str, default="V2") – The mode of the atom featurizer (V1, V2, ORGANIC, RIGR) to use.
extra_atom_fdim (int, default=0) – the dimension of the additional features that will be concatenated onto the calculated features of each atom
extra_bond_fdim (int, default=0) – the dimension of the additional features that will be concatenated onto the calculated features of each bond
add_h (bool, default=False) – whether to add hydrogens to the Chem.Mol objects created from the input SMILES strings
- atom_featurizer_mode: Literal['V1', 'V2', 'ORGANIC', 'RIGR'] = 'V2'#
- extra_atom_fdim: int = 0#
- extra_bond_fdim: int = 0#
- add_h: bool = False#
- atom_fdim: int#
- bond_fdim: int#