Modified version of MultilayerPerceptron to make it usable within randomized optimization