nodes¶
Class(es) for building/connecting graphs.
- class graphnet.models.graphs.nodes.nodes.NodeDefinition(*args, **kwargs)[source]¶
Bases:
Model
Base class for graph building.
Construct Detector.
- Parameters:
args (Any) –
kwargs (Any) –
- Return type:
object
- forward(x)[source]¶
Construct nodes from raw node features.
- Parameters:
x (
tensor
) – standardized node features with shape ´[num_pulses, d]´,features. (where ´d´ is the number of node) –
- Returns:
a graph without edges
- Return type:
graph
- property nb_outputs: int¶
Return number of output features.
This the default, but may be overridden by specific inheriting classes.
- class graphnet.models.graphs.nodes.nodes.NodesAsPulses(*args, **kwargs)[source]¶
Bases:
NodeDefinition
Represent each measured pulse of Cherenkov Radiation as a node.
Construct Detector.
- Parameters:
args (Any) –
kwargs (Any) –
- Return type:
object