Package org.encog.neural.rbf.training

Examples of org.encog.neural.rbf.training.SVDTraining


  public void testPersistNetworkRBF()
  {
    MLDataSet trainingSet = XOR.createXORDataSet();
    RBFNetwork network = new RBFNetwork(2,4,1, RBFEnum.Gaussian);

    SVDTraining training = new SVDTraining(network,trainingSet);
    training.iteration();
    XOR.verifyXOR(network, 0.1);
   
    EncogDirectoryPersistence.saveObject(EG_FILENAME, network);
    RBFNetwork network2 = (RBFNetwork)EncogDirectoryPersistence.loadObject(EG_FILENAME);
View Full Code Here


        //Smooth training data provides true values for the provided input dimensions.
        create2DSmoothTainingDataGit();

        //Create the training set and train.
        MLDataSet trainingSet = new BasicMLDataSet(INPUT, IDEAL);
        MLTrain train = new SVDTraining(network, trainingSet);

        //SVD is a single step solve
        int epoch = 1;
        do
        {
            train.iteration();
            System.out.println("Epoch #" + epoch + " Error:" + train.getError());
            epoch++;
        } while ((epoch < 1) && (train.getError() > 0.001));

        // test the neural network
        System.out.println("Neural Network Results:");

        //Create a testing array which may be to a higher resoltion than the original training data
View Full Code Here

      throw new EncogError(
          "RBF-SVD training cannot be used on a method of type: "
              + method.getClass().getName());
    }

    return new SVDTraining((RBFNetwork) method, training);
  }
View Full Code Here

      throw new EncogError(
          "RBF-SVD training cannot be used on a method of type: "
              + method.getClass().getName());
    }

    return new SVDTraining((RBFNetwork) method, training);
  }
View Full Code Here

  public void testPersistNetworkRBF()
  {
    MLDataSet trainingSet = XOR.createXORDataSet();
    RBFNetwork network = new RBFNetwork(2,4,1, RBFEnum.Gaussian);

    SVDTraining training = new SVDTraining(network,trainingSet);
    training.iteration();
    XOR.verifyXOR(network, 0.1);
   
    EncogDirectoryPersistence.saveObject(EG_FILENAME, network);
    RBFNetwork network2 = (RBFNetwork)EncogDirectoryPersistence.loadObject(EG_FILENAME);
View Full Code Here

TOP

Related Classes of org.encog.neural.rbf.training.SVDTraining

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.