Package tv.floe.metronome.deeplearning.rbm.visualization

Examples of tv.floe.metronome.deeplearning.rbm.visualization.DrawMnistGreyscale


    Matrix reconstructed2 = MatrixUtils.viewRowAsMatrix(reconstruct, j);
   
    //Matrix draw2 = MatrixUtils.binomial(reconstructed2,1,new MersenneTwister(123)).mul(255);
    Matrix draw2 = MatrixUtils.genBinomialDistribution(reconstructed2,1,new MersenneTwister(123)).times(255);
*/
    DrawMnistGreyscale d = new DrawMnistGreyscale(draw1);
    d.title = "REAL";
    d.draw();
    d.frame.setLocation(100, 200);
   
    DrawMnistGreyscale d2 = new DrawMnistGreyscale( draw2, 100, 100 );
    d2.title = "TEST";
    d2.draw();
    d2.frame.setLocation(300, 200);

    Thread.sleep(2000);
    d.frame.dispose();
    d2.frame.dispose();
View Full Code Here


  private void renderExampleToDisk( Matrix draw1, Matrix reconstructed2, Matrix draw2, String number, String CE, boolean renderRealImage ) throws InterruptedException {

    String strCE = String.valueOf(CE).substring(0, 5);
   
    DrawMnistGreyscale d = new DrawMnistGreyscale(draw1);
//    d.title = "REAL";
    if (renderRealImage) {
      d.saveToDisk("/tmp/Metronome/RBM/" + UUIDForRun + "/" + number + "/" + number + "_real.png");
    }
   
    DrawMnistGreyscale d2 = new DrawMnistGreyscale( draw2, 100, 100 );
//    d2.title = "TEST";
    d2.saveToDisk("/tmp/Metronome/RBM/" + UUIDForRun + "/" + number + "/" + strCE + "_ce_" + number + "_test.png");

    //RBMRenderer rbm_hbias_test = new RBMRenderer();
    //rbm_hbias_test.renderHiddenBiases(100, 100, draw2, "/tmp/Metronome/RBM/" + UUIDForRun + "/" + number + "/RBM_RENDER_TEST_" + strCE + "_ce_" + number + "_test.png");
   
   
View Full Code Here

TOP

Related Classes of tv.floe.metronome.deeplearning.rbm.visualization.DrawMnistGreyscale

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.