SparseAETutorial.cpp File Reference
#include <shark/Data/Pgm.h>
#include <shark/Data/Csv.h>
#include <shark/Data/Statistics.h>
#include <shark/ObjectiveFunctions/SparseAutoencoderError.h>
#include <shark/Algorithms/GradientDescent/LBFGS.h>
#include <shark/ObjectiveFunctions/Loss/SquaredLoss.h>
#include <shark/ObjectiveFunctions/Regularizer.h>
#include <shark/Core/Timer.h>

Go to the source code of this file.

Functions

UnlabeledData< RealVector > getSamples ()
 
void initializeFFNet (Autoencoder< LogisticNeuron, LogisticNeuron > &model)
 
int main ()
 

Variables

const unsigned int numsamples = 10000
 
const std::size_t w = 512
 
const std::size_t h = 512
 
const std::size_t psize = 8
 
const unsigned int numhidden = 25
 
const double rho = 0.01
 
const double beta = 6.0
 
const double lambda = 0.0002
 
const unsigned int maxIter = 400
 

Function Documentation

◆ getSamples()

◆ initializeFFNet()

void initializeFFNet ( Autoencoder< LogisticNeuron, LogisticNeuron > &  model)

Definition at line 79 of file SparseAETutorial.cpp.

References shark::random::globalRng, and shark::random::uni().

Referenced by main().

◆ main()

Variable Documentation

◆ beta

◆ h

◆ lambda

◆ maxIter

const unsigned int maxIter = 400

Definition at line 28 of file SparseAETutorial.cpp.

Referenced by main().

◆ numhidden

const unsigned int numhidden = 25

Definition at line 22 of file SparseAETutorial.cpp.

Referenced by main().

◆ numsamples

const unsigned int numsamples = 10000

Definition at line 16 of file SparseAETutorial.cpp.

Referenced by getSamples().

◆ psize

const std::size_t psize = 8

Definition at line 19 of file SparseAETutorial.cpp.

Referenced by getSamples(), and main().

◆ rho

const double rho = 0.01

Definition at line 23 of file SparseAETutorial.cpp.

Referenced by main().

◆ w