25 #ifndef MNISTPATCHSOFTMAXAPPLICATION_H_
26 #define MNISTPATCHSOFTMAXAPPLICATION_H_
29 #include <opengl/application/OpenGLContinuousLearningApplication.hpp>
31 #include <opengl/visualization/WindowMatrix2D.hpp>
32 #include <opengl/visualization/WindowProbability.hpp>
33 #include <opengl/visualization/WindowCollectorChart.hpp>
34 using namespace mic::opengl::visualization;
36 #include <importers/MNISTPatchImporter.hpp>
39 using namespace mic::mlnn;
41 #include <encoders/MatrixXfMatrixXfEncoder.hpp>
42 #include <encoders/UIntMatrixXfEncoder.hpp>
46 namespace applications {
69 virtual void initializePropertyDependentVariables();
76 virtual void initialize(
int argc,
char* argv[]);
81 virtual bool performLearningStep();
86 virtual void collectTestStatistics();
91 virtual void populateTestStatistics();
mic::utils::DataCollectorPtr< std::string, float > collector_ptr
Data collector.
mic::configuration::Property< std::string > autoencoder_filename
Property: name of the file to which the original auto-encoder will be loaded from.
Class implementing a simple MNIST patch softmax classification with multi-layer neural net - imported...
BackpropagationNeuralNetwork< float > neural_net
Multi-layer neural network.
mic::types::MatrixXfPtr input_image
Input image/matrix.
WindowProbability * w_prob
Window displaying the probabilities.
mic::configuration::Property< bool > softmax_load
Property: flag denoting whether the nn should be loaded from a file (at the initialization of the tas...
mic::configuration::Property< bool > softmax_save
Property: flag denoting whether the nn should be saved to a file (after every episode end)...
mic::types::MatrixXfPtr input_target
Probability.
mic::configuration::Property< std::string > softmax_filename
Property: name of the file with softmax nn.
WindowCollectorChart< float > * w_chart
Window for displaying chart with statistics.
WindowMatrix2D * w2d_input
Window for displaying the input image.
mic::importers::MNISTPatchImporter * training_dataset_importer
Importer responsible for loading training dataset.
mic::types::MatrixXfPtr decoded_prediction
Probability.
size_t patch_size
Size of the patch - copied from importers.
mic::configuration::Property< size_t > autoencoder_layers_to_be_removed
Property: number of layers to be removed (starting from the last one).
mic::encoders::UIntMatrixXfEncoder * label_encoder
Label 2 matrix encoder (1 hot).
mic::encoders::MatrixXfMatrixXfEncoder * mnist_encoder
MNIST matrix encoder.
mic::importers::MNISTPatchImporter * test_dataset_importer
Importer responsible for loading testing dataset.