Package org.encog.neural.data

Examples of org.encog.neural.data.NeuralData


    }

    private void testNeuralNetwork() {
        System.out.print("Neural network results:\n");
        for (NeuralDataPair pair : trainingData) {
            final NeuralData output = network.compute(pair.getInput());
            System.out.println(pair.getInput().getData(0) + ", "
                    + pair.getInput().getData(1) + ", "
                    + pair.getInput().getData(2) + ", "
                    + pair.getInput().getData(3) + ", "
                    + ", actual = " + output.getData(0) + ", "
                    + output.getData(1) + ", "
                    + output.getData(2) + ", "
                    + output.getData(3) + ", "
                    + output.getData(4) + ", "
                    + output.getData(5) + ", " + "\n");
        }
    }
View Full Code Here


        }
    }

    public double [] query(double [] data) {
        BasicNeuralData neuralData = new BasicNeuralData(data);
        final NeuralData output = network.compute(neuralData);
        return output.getData();
    }
View Full Code Here

  {
    Object obj = ScriptableObject.getProperty(this.getParentScope(),"console");
    JSEncogConsole console = (JSEncogConsole)Context.jsToJava(obj, JSEncogConsole.class);
   
    for (final NeuralDataPair pair : data.getData()) {
      final NeuralData output = network.compute(pair.getInput());
      console.println("Input="
          + EncogUtility.formatNeuralData(pair.getInput())
          + ", Actual=" + EncogUtility.formatNeuralData(output)
          + ", Ideal="
          + EncogUtility.formatNeuralData(pair.getIdeal()));
View Full Code Here

TOP

Related Classes of org.encog.neural.data.NeuralData

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.