Examples of reconstruct()


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

            DownpourSGDTrain.train(da, rdds, 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

Examples of org.gd.spark.opendl.downpourSGD.TiedWeightLayer.RBM.reconstruct()

            DownpourSGDTrain.train(rbm, trainList, config);
           
            double[] reconstruct_x = new double[x_feature];
            double totalError = 0;
            for(SampleVector test : testList) {
              rbm.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

Examples of org.gd.spark.opendl.downpourSGD.TiedWeightLayer.RBM.reconstruct()

            DownpourSGDTrain.train(rbm, rdds, config);
           
            double[] reconstruct_x = new double[x_feature];
            double totalError = 0;
            for(SampleVector test : testList) {
              rbm.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

Examples of org.xbib.elasticsearch.skywalker.reconstruct.DocumentReconstructor.reconstruct()

        InternalIndexShard indexShard = (InternalIndexShard) indexService.shardSafe(request.shardId());
        Engine.Searcher searcher = indexShard.engine().acquireSearcher("transport_reconstruct");
        IndexReader reader = searcher.reader();
        DocumentReconstructor dr = new DocumentReconstructor(reader);
        try {
            return new ShardReconstructIndexResponse(true, dr.reconstruct(request.shardId()));
        } catch (IOException e) {
            throw new ElasticsearchException("failed to reconstruct index", e);
        }
    }
View Full Code Here

Examples of ru.ifmo.diplom.kirilchuk.jawelet.core.dwt.transforms.DWTransform1D.reconstruct()

        DecompositionResult result = instance.decompose(data, 1);
        assertArrayEquals(approximationExpect, result.getApproximation(), DOBLE_COMPARISON_DELTA);
        assertArrayEquals(detailExpect, result.getDetailsList().get(0), DOBLE_COMPARISON_DELTA);

        double[] reconstructed = instance.reconstruct(result);
        assertArrayEquals(data, reconstructed, DOBLE_COMPARISON_DELTA);
    }

    @Test
    public void testReconstructionFrom2LevelDecomposition() {
View Full Code Here

Examples of ru.ifmo.diplom.kirilchuk.jawelet.core.dwt.transforms.DWTransform1D.reconstruct()

        DWTransform1D instance = new HaarWaveletTransform();

        DecompositionResult result = instance.decompose(data, 2);

        double[] reconstructed = instance.reconstruct(result);
        assertArrayEquals(data, reconstructed, DOBLE_COMPARISON_DELTA);
    }

   
    @Test
View Full Code Here

Examples of ru.ifmo.diplom.kirilchuk.jawelet.core.dwt.transforms.DWTransform1D.reconstruct()

        DWTransform1D instance = new HaarWaveletTransform();

        DecompositionResult result = instance.decompose(data, 3);

        double[] reconstructed = instance.reconstruct(result);
        assertArrayEquals(data, reconstructed, DOBLE_COMPARISON_DELTA);
    }

    @Test
    public void testRandomFullDecomposeReconstructionWithHaar() {
View Full Code Here

Examples of ru.ifmo.diplom.kirilchuk.jawelet.core.dwt.transforms.DWTransform1D.reconstruct()

        DecompositionResult result = instance.decompose(data);
        assertEquals(power, result.getLevel());
        assertEquals(1, result.getApproximation().length);

        double[] reconstructed = instance.reconstruct(result);

        assertArrayEquals(data, reconstructed, 1);
    }

    @Ignore //need to be rewrited to inplace decomposition
View Full Code Here

Examples of ru.ifmo.diplom.kirilchuk.jawelet.core.dwt.transforms.DWTransform1D.reconstruct()

        double[] data = {1,2,3,4};

        DWTransform1D instance = new LeGallWaveletTransform();
        DecompositionResult result = instance.decompose(data, 1);

        double[] reconstructed = instance.reconstruct(result);
        assertArrayEquals(data, reconstructed, DOBLE_COMPARISON_DELTA);
    }

    @Ignore //need to be rewrited to inplace decomposition
    @Test
View Full Code Here

Examples of ru.ifmo.diplom.kirilchuk.jawelet.core.dwt.transforms.DWTransform1D.reconstruct()

        DecompositionResult result = instance.decompose(data, power - 1);
        assertEquals(power - 1, result.getLevel());
        assertEquals(2, result.getApproximation().length);

        double[] reconstructed = instance.reconstruct(result);

        assertArrayEquals(data, reconstructed, 1);
    }
}
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.