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] /= 500.0  # dom_x
        data.x[:, 1] /= 500.0  # dom_y
        data.x[:, 2] /= 500.0  # dom_z
        data.x[:, 3] /= 2e04  # dom_time
        data.x[:, 3] -= 1.0
        data.x[:, 4] = torch.log10(data.x[:, 4]) / 2.0  # charge
        # data.x[:,5] /= 1.  # rde
        data.x[:, 6] /= 0.05  # pmt_area
        data.x[:, 7] -= 50.0  # string
        data.x[:, 7] /= 50.0
        data.x[:, 8] /= 20.0  # pmt_number
        data.x[:, 9] -= 60.0  # dom_number
        data.x[:, 9] /= 60.0
        # data.x[:,10] /= 1.  # pmt_dir_x
        # data.x[:,11] /= 1.  # pmt_dir_y
        # data.x[:,12] /= 1.  # pmt_dir_z
        data.x[:, 13] /= 130.0  # dom_type

        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] /= 500.0  
        data.x[:, 1] /= 500.0  
        data.x[:, 2] /= 500.0  
        data.x[:, 3] /= 2e04  
        data.x[:, 3] -= 1.0
        data.x[:, 4] = torch.log10(data.x[:, 4]) / 2.0  
        data.x[:, 6] /= 0.05  
        data.x[:, 7] -= 50.0  
        data.x[:, 7] /= 50.0
        data.x[:, 8] /= 20.0  
        data.x[:, 9] -= 60.0  
        data.x[:, 9] /= 60.0
        data.x[:, 13] /= 130.0  
        return data
def _forward ( self , data : Data ) -> Data : self . _validate_features ( data ) data . x [ : , 0 ] /= 500.0 data . x [ : , 1 ] /= 500.0 data . x [ : , 2 ] /= 500.0 data . x [ : , 3 ] /= 2e04 data . x [ : , 3 ] -= 1.0 data . x [ : , 4 ] = torch . log10 ( data . x [ : , 4 ] ) / 2.0 data . x [ : , 6 ] /= 0.05 data . x [ : , 7 ] -= 50.0 data . x [ : , 7 ] /= 50.0 data . x [ : , 8 ] /= 20.0 data . x [ : , 9 ] -= 60.0 data . x [ : , 9 ] /= 60.0 data . x [ : , 13 ] /= 130.0 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 # data.x[:,5] /= 1.  # rde # pmt_area # string # pmt_number # dom_number # data.x[:,10] /= 1.  # pmt_dir_x # data.x[:,11] /= 1.  # pmt_dir_y # data.x[:,12] /= 1.  # pmt_dir_z # dom_type
Connected and preprocessed graph data.
Connected and preprocessed graph data .
Data
self
data
Data
Input graph data.
Input graph data .