Package org.gd.spark.opendl.downpourSGD.Backpropagation

Examples of org.gd.spark.opendl.downpourSGD.Backpropagation.AutoEncoder.reconstruct()


            DownpourSGDTrain.train(da, trainList, config);
           
            double[] reconstruct_x = new double[x_feature];
            double totalError = 0;
            for(SampleVector test : testList) {
              da.reconstruct(test.getX(), reconstruct_x);
              totalError += ClassVerify.squaredError(test.getX(), reconstruct_x);
            }
            logger.info("Mean square error is " + totalError / testList.size());
    } catch(Throwable e) {
      logger.error("", e);
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.