carpet/lista_base.py
def _init_network_parameters(self, initial_parameters=None):
        """ Initialize the parameters of the network. """
        if initial_parameters is None:
            initial_parameters = {}

        for layer_id in range(self.n_layers):
            group_name = f'layer-{layer_id}'
            if group_name in initial_parameters.keys():
                layer_params = initial_parameters[group_name]
            else:
                layer_params = self.get_initial_layer_parameters(layer_id)

            layer_params = self._register_parameters(layer_params,
                                                     group_name=group_name)

        # Finally get global parameters. This hook can be used to post-process
        # initial-parameters.
        self.get_global_parameters(initial_parameters)
 Initialize the parameters of the network. 
Initialize the parameters of the network.
Initialize the parameters of the network .
def _init_network_parameters(self, initial_parameters=None):
        if initial_parameters is None:
            initial_parameters = {}
        for layer_id in range(self.n_layers):
            group_name = f'layer-{layer_id}'
            if group_name in initial_parameters.keys():
                layer_params = initial_parameters[group_name]
            else:
                layer_params = self.get_initial_layer_parameters(layer_id)
            layer_params = self._register_parameters(layer_params,
                                                     group_name=group_name)
        self.get_global_parameters(initial_parameters)
def _init_network_parameters ( self , initial_parameters = None ) : if initial_parameters is None : initial_parameters = { } for layer_id in range ( self . n_layers ) : group_name = f'layer-{layer_id}' if group_name in initial_parameters . keys ( ) : layer_params = initial_parameters [ group_name ] else : layer_params = self . get_initial_layer_parameters ( layer_id ) layer_params = self . _register_parameters ( layer_params , group_name = group_name ) self . get_global_parameters ( initial_parameters )
Initialize the parameters of the network.
Initialize the parameters of the network .
""" Initialize the parameters of the network. """ # Finally get global parameters. This hook can be used to post-process # initial-parameters.
self
initial_parameters