src/graphnet/models/detector/icecube.py
def _forward(self, data: Data) -> Data:
        """Ingests data, builds graph (connectivity/adjacency), and preprocesses features.

        Args:
            data (Data): Input graph data.

        Returns:
            Data: Connected and preprocessed graph data.
        """

        # Check(s)
        self._validate_features(data)

        # Preprocessing
        data.x[:, 0] /= 100.0  # dom_x
        data.x[:, 1] /= 100.0  # dom_y
        data.x[:, 2] += 350.0  # dom_z
        data.x[:, 2] /= 100.0
        data.x[:, 3] /= 1.05e04  # dom_time
        data.x[:, 3] -= 1.0
        data.x[:, 3] *= 20.0
        data.x[:, 4] /= 1.0  # charge
        data.x[:, 5] -= 1.25  # rde
        data.x[:, 5] /= 0.25
        data.x[:, 6] /= 0.05  # pmt_area

        return data
Ingests data, builds graph (connectivity/adjacency), and preprocesses features.

        Args:
            data (Data): Input graph data.

        Returns:
            Data: Connected and preprocessed graph data.
        
Ingests data, builds graph (connectivity/adjacency), and preprocesses features.
Ingests data builds graph ( connectivity / adjacency ) and preprocesses features .
def _forward(self, data: Data) -> Data:
        self._validate_features(data)
        data.x[:, 0] /= 100.0  
        data.x[:, 1] /= 100.0  
        data.x[:, 2] += 350.0  
        data.x[:, 2] /= 100.0
        data.x[:, 3] /= 1.05e04  
        data.x[:, 3] -= 1.0
        data.x[:, 3] *= 20.0
        data.x[:, 4] /= 1.0  
        data.x[:, 5] -= 1.25  
        data.x[:, 5] /= 0.25
        data.x[:, 6] /= 0.05  
        return data
def _forward ( self , data : Data ) -> Data : self . _validate_features ( data ) data . x [ : , 0 ] /= 100.0 data . x [ : , 1 ] /= 100.0 data . x [ : , 2 ] += 350.0 data . x [ : , 2 ] /= 100.0 data . x [ : , 3 ] /= 1.05e04 data . x [ : , 3 ] -= 1.0 data . x [ : , 3 ] *= 20.0 data . x [ : , 4 ] /= 1.0 data . x [ : , 5 ] -= 1.25 data . x [ : , 5 ] /= 0.25 data . x [ : , 6 ] /= 0.05 return data
Ingests data, builds graph (connectivity/adjacency), and preprocesses features.
Ingests data builds graph ( connectivity / adjacency ) and preprocesses features .
"""Ingests data, builds graph (connectivity/adjacency), and preprocesses features.

        Args:
            data (Data): Input graph data.

        Returns:
            Data: Connected and preprocessed graph data.
        """ # Check(s) # Preprocessing # dom_x # dom_y # dom_z # dom_time # charge # rde # pmt_area
Connected and preprocessed graph data.
Connected and preprocessed graph data .
Data
self
data
Data
Input graph data.
Input graph data .