def __init__(self,
                 map_dimensions,
                 data_dimensionality,
                 params,
                 argfunc,
                 valfunc,
                 initializer,
                 scaler):
        """Initialize your maps."""
        # A tuple of dimensions
        # Usually (width, height), but can accomodate N-dimensional maps.
        self.map_dimensions = map_dimensions
        self.num_neurons = np.int(np.prod(self.map_dimensions))
        # Initialize the distance grid: only needs to be done once.
        self.distance_grid = self._initialize_distance_grid()

        super().__init__(self.num_neurons,
                         data_dimensionality,
                         params,
                         'argmin',
                         'min',
                         initializer,
                         scaler)
def __init__ ( self , map_dimensions , data_dimensionality , params , argfunc , valfunc , initializer , scaler ) : self . map_dimensions = map_dimensions self . num_neurons = np . int ( np . prod ( self . map_dimensions ) ) self . distance_grid = self . _initialize_distance_grid ( ) super ( ) . __init__ ( self . num_neurons , data_dimensionality , params , 'argmin' , 'min' , initializer , scaler )
Initialize your maps.