def reproducible_network_train(seed=0, epochs=500, **additional_params):
    np.random.seed(seed)
    network = algorithms.GradientDescent(
        connection=[
            layers.Tanh(2),
            layers.Tanh(5),
            layers.StepOutput(1, output_bounds=(-1, 1))
        ],
        **additional_params
    )
    network.train(xor_input_train, xor_target_train, epochs=epochs)
    return network
Make a reproducible train for Gradient Descent based neural
dataset/ETHPy150Open itdxer/neupy/tests/utils.py/reproducible_network_train