Examples of INetworkBuilder


Examples of zdenekdrahos.AI.NeuralNetwork.Builder.INetworkBuilder

            {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

Examples of zdenekdrahos.AI.NeuralNetwork.Builder.INetworkBuilder

        }

        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

Examples of zdenekdrahos.AI.NeuralNetwork.Builder.INetworkBuilder

    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
Copyright © 2018 www.massapi.com. 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.