Ejemplo n.º 1
0
  @BeforeTest
  public void setup() {
    network = new BasicNetwork();
    network.addLayer(new BasicLayer(DTrainTest.INPUT_COUNT));
    network.addLayer(new BasicLayer(DTrainTest.HIDDEN_COUNT));
    network.addLayer(new BasicLayer(DTrainTest.OUTPUT_COUNT));
    network.getStructure().finalizeStructure();
    network.reset();

    weights = network.getFlat().getWeights();

    training = RandomTrainingFactory.generate(1000, 10000, INPUT_COUNT, OUTPUT_COUNT, -1, 1);
  }
Ejemplo n.º 2
0
 public static NeuralDataSet generateTraining() {
   final NeuralDataSet training =
       RandomTrainingFactory.generate(1000, 50000, INPUT_COUNT, OUTPUT_COUNT, -1, 1);
   return training;
 }