[mlpack-git] [mlpack] Create a function to visualize the features learned by sparse autoencoder (#465)

stereomatchingkiss notifications at github.com
Wed Nov 4 03:41:43 EST 2015


    size_t rows, cols; // These get set to the size of the images.
    arma::mat maximalInputs, parameters, output;
    MaximalInputs(parameters, maximalInputs);
    ColumnsToBlocks(maximalInputs, outputs, rows, cols, true /* do scaling */, 0, 255);
    data::Save("file.pgm", output);

If you want to specify rows and cols, then we would need some sort of interpolation algorithms(ex : bilinearInterpolation)

---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/465#issuecomment-153637486
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20151104/e8fbe741/attachment.html>


More information about the mlpack-git mailing list