Package zdenekdrahos.AI.NeuralNetwork.Builder

Examples of zdenekdrahos.AI.NeuralNetwork.Builder.NetworkBuilder


            {0.1, 0.01, 0.15, 0.21, -0.50}
        }
    };

    public static INeuralNetwork getNetwork() {
        INetworkBuilder builder = new NetworkBuilder();
        INeuralNetwork network = builder.build(topology, activations);
        network.setWeights(weights);
        return network;
    }
View Full Code Here


        }

        int[] topology = {1, 2, 1};
        Activations[] activations = {Activations.LIN, Activations.SIG, Activations.LIN};

        INetworkBuilder networkBuilder = new NetworkBuilder();
        INeuralNetwork network = networkBuilder.build(topology, activations);

        TrainingInput in = new TrainingInput();
        in.iterationsCount = 2000;
        in.learningRate = 0.1;
        in.momentum = 0;
View Full Code Here

    private INetworkBuilder networkBuilder;

    public BackPropagationController() {
        ITrainingBuilder trainBuilder = new TrainingBuilder();
        train = trainBuilder.build();
        networkBuilder = new NetworkBuilder();
    }
View Full Code Here

    static double[][] output = {
        {0}, {1}, {1}, {0},
    };
   
    public static void main(String[] args) {
        INetworkBuilder builder = new NetworkBuilder();
       
        int[] topology = {2, 3, 1};
        Activations[] activations = {Activations.LIN, Activations.TANH, Activations.LIN};       
        INeuralNetwork network = builder.build(topology, activations);
        Printing.printNetworkWeights(network);
       
        TrainingInput in = new TrainingInput();
        in.iterationsCount = 3000;
        in.learningRate = 0.8;
View Full Code Here

TOP

Related Classes of zdenekdrahos.AI.NeuralNetwork.Builder.NetworkBuilder

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.