Multi Layer Perceptron MLP written from scratch Inputs to the class mlp layers : number of nodes in each layers, lr : learning rate for individual layers, tr_func : transfer function for individual layers (0 - tanh, 1 - sigmoid, 2 - linear)