Package de.jungblut.math.squashing

Examples of de.jungblut.math.squashing.SquaredMeanErrorFunction


    // sample a parable of points and use one hidden layer
    MultilayerPerceptron mlp = MultilayerPerceptron.MultilayerPerceptronBuilder
        .create(
            new int[] { 2, 2, 1 },
            new ActivationFunction[] { LINEAR.get(), SIGMOID.get(),
                LINEAR.get() }, new SquaredMeanErrorFunction(), new Fmincg(),
            10000).verbose(false).build();

    // sample a parable of points
    Tuple<DoubleVector[], DoubleVector[]> sample = sampleParable();
View Full Code Here


    // 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();
View Full Code Here

TOP

Related Classes of de.jungblut.math.squashing.SquaredMeanErrorFunction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.