// test the linear regression case
// use a gradient descent with very small learning rate
MultilayerPerceptron mlp = MultilayerPerceptron.MultilayerPerceptronBuilder
.create(new int[] { 2, 1 },
new ActivationFunction[] { LINEAR.get(), LINEAR.get() },
new SquaredMeanErrorFunction(), new GradientDescent(1e-8, 6e-5),
10000).verbose(false).build();
// sample a line of points
Tuple<DoubleVector[], DoubleVector[]> sample = sampleLinear();