networks module
Full Documentation for hippynn.graphs.nodes.networks
module.
Click here for a summary page.
Nodes for networks.
- class DefaultNetworkExpansion[source]
Bases:
ExpandParents
- expansion0(species, *other_parents, species_set, purpose, **kwargs)[source]
Finds or sets up a default one-hot encoder if species are passed as first argument.
- Returns:
(encoder,padding_indexer,*other_parents)
Used for creation from parents with signature (SpeciesNode, PositionsNode, CellNode)
Used for creation from parents with signature (SpeciesNode, PositionsNode)
- class Hipnn(name, parents, periodic=False, module='auto', module_kwargs=None)[source]
Bases:
DefaultNetworkExpansion
,AutoKw
,Network
,SingleNode
,_FeatureNodesMixin
Node for HIP-NN neural networks
Note
This node has parent expansion, following these procedures.
If matching (SpeciesNode, PositionsNode, CellNode), then apply expansion0
If matching (SpeciesNode, PositionsNode), then apply expansion0
If matching (Encoder, AtomIndexer, PositionsNode, CellNode), then apply expansion1
If matching (Encoder, AtomIndexer, PositionsNode), then apply expansion1
If matching (AtomIndexer, PairIndexer), then apply expansion1
If matching (_BaseNode, PairIndexer), then apply expansion2
Asserts that the number of parents is 4
Gets main_output of nodes: casts MultiNodes to their main output
Transforms the parents to have index states (<IdxType.Atoms>, None, None, None)
- class HipnnQuad(name, parents, periodic=False, module='auto', module_kwargs=None)[source]
Bases:
HipnnVec
Node for HIP-NN-TS neural networks, l=2
Note
This node has parent expansion, following these procedures.
If matching (SpeciesNode, PositionsNode, CellNode), then apply expansion0
If matching (SpeciesNode, PositionsNode), then apply expansion0
If matching (Encoder, AtomIndexer, PositionsNode, CellNode), then apply expansion1
If matching (Encoder, AtomIndexer, PositionsNode), then apply expansion1
If matching (AtomIndexer, PairIndexer), then apply expansion1
If matching (_BaseNode, PairIndexer), then apply expansion2
Asserts that the number of parents is 5
Gets main_output of nodes: casts MultiNodes to their main output
Transforms the parents to have index states (<IdxType.Atoms>, None, None, None, None)
- class HipnnVec(name, parents, periodic=False, module='auto', module_kwargs=None)[source]
Bases:
DefaultNetworkExpansion
,AutoKw
,Network
,SingleNode
,_FeatureNodesMixin
Node for HIP-NN-TS neural networks, l=1
Note
This node has parent expansion, following these procedures.
If matching (SpeciesNode, PositionsNode, CellNode), then apply expansion0
If matching (SpeciesNode, PositionsNode), then apply expansion0
If matching (Encoder, AtomIndexer, PositionsNode, CellNode), then apply expansion1
If matching (Encoder, AtomIndexer, PositionsNode), then apply expansion1
If matching (AtomIndexer, PairIndexer), then apply expansion1
If matching (_BaseNode, PairIndexer), then apply expansion2
Asserts that the number of parents is 5
Gets main_output of nodes: casts MultiNodes to their main output
Transforms the parents to have index states (<IdxType.Atoms>, None, None, None, None)