src/perceptron/NeuralNetwork/NeuralNetwork.py
def activation_funcs(self, value: tuple):
        """Sets activation functions to layers."""
        for i in self.layers[:-1]:
            i.activate = value[0]
        if len(value) > 1:
            self.layers[-1].activate = value[1]
Sets activation functions to layers.
Sets activation functions to layers.
Sets activation functions to layers .
def activation_funcs(self, value: tuple):
        for i in self.layers[:-1]:
            i.activate = value[0]
        if len(value) > 1:
            self.layers[-1].activate = value[1]
def activation_funcs ( self , value : tuple ) : for i in self . layers [ : - 1 ] : i . activate = value [ 0 ] if len ( value ) > 1 : self . layers [ - 1 ] . activate = value [ 1 ]
Sets activation functions to layers.
Sets activation functions to layers .
"""Sets activation functions to layers."""
self
value
tuple