Package zdenekdrahos.AI.NeuralNetwork

Examples of zdenekdrahos.AI.NeuralNetwork.NeuralNetwork


    @Override
    public INeuralNetwork build(int[] topology, Activations[] functions) {
        if (topology.length != functions.length) {
            throw new IllegalArgumentException("Layers & functions - different length");
        }
        INeuralNetwork network = new NeuralNetwork();
        ILayer layer;
        for (int i = 0; i < topology.length; i++) {
            layer = new Layer(topology[i], getActivation(functions[i]));
            network.addLayer(layer);
        }
        network.generateWeights();
        return network;
    }
View Full Code Here

TOP

Related Classes of zdenekdrahos.AI.NeuralNetwork.NeuralNetwork

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.