src/perceptron/Neuron/Neuron.py
def initialize_weights(self, init_func: Optional[Callable] = None):
        """
        Initializes weights of layer depending on current activation function.
        You can pass particular initialization function.
        """
        init_func = init_func or initializations[self.activate.__name__]
        self.weights = init_func(*self.weights.shape)

        Initializes weights of layer depending on current activation function.
        You can pass particular initialization function.
        
Initializes weights of layer depending on current activation function.
You can pass particular initialization function.
Initializes weights of layer depending on current activation function . You can pass particular initialization function .
def initialize_weights(self, init_func: Optional[Callable] = None):
        init_func = init_func or initializations[self.activate.__name__]
        self.weights = init_func(*self.weights.shape)
def initialize_weights ( self , init_func : Optional [ Callable ] = None ) : init_func = init_func or initializations [ self . activate . __name__ ] self . weights = init_func ( * self . weights . shape )
Initializes weights of layer depending on current activation function.
Initializes weights of layer depending on current activation function .
"""
        Initializes weights of layer depending on current activation function.
        You can pass particular initialization function.
        """
self
init_func
Optional[Callable]