def __init__(self, layersizes, lrate=0.01, momentum=0.9,
                 act_fn=sigmoid, deriv_act_fn=deriv_sigmoid, # act_fn=tanh, deriv_act_fn=deriv_tanh,
                 err_fn=mean_squared_error,
                 plot=True):
        assert 3 >= len(layersizes) # incl input & output
        self.layersizes = layersizes
        self.w, self.d_w = self.init_weights(scale=1), self.init_weights(0)
        self.b, self.d_b = self.init_biases(), self.init_biases()
        self.n_l = len(self.layersizes)
        self.momentum = momentum
        self.lrate = lrate
        self.act_fn = act_fn
        self.deriv_act_fn = deriv_act_fn
        self.err_fn = err_fn

        self.plot = plot
        self.fignum_errors = 1
        self.fignum_layers = 2
        self.fignum_weights_01 = 3
        self.fignum_dweights_01 = 4
        self.fignum_weights_12 = 5
        self.fignum_dweights_12 = 6
        self.fignum_biases = 7
        self.fignum_dbiases = 8
dataset/ETHPy150Open deprofundis/deprofundis/backprop.py/BackpropNetwork.__init__/swapped operands of `>=`