|
MachineIntelligenceCore:Algorithms
|
Importer responsible for importing/loading characters from IBM VGA font dataset. More...
#include <IBMFontMatrixImporter.hpp>


Public Member Functions | |
| IBMFontMatrixImporter (std::string node_name_="ibm_font_matrix_importer") | |
| virtual | ~IBMFontMatrixImporter () |
| bool | importData () |
| virtual void | initializePropertyDependentVariables () |
Public Member Functions inherited from mic::importers::Importer< mic::types::MatrixXf, char > | |
| Importer (std::string node_name_, size_t batch_size_=1) | |
| virtual | ~Importer () |
Public Member Functions inherited from mic::types::Batch< mic::types::MatrixXf, char > | |
| Batch (size_t batch_size_=1) | |
| Batch (const mic::types::Batch< mic::types::MatrixXf, char > &batch_) | |
| mic::types::Batch < mic::types::MatrixXf, char > & | operator= (const mic::types::Batch< mic::types::MatrixXf, char > &batch_) |
| virtual | ~Batch () |
| std::vector< std::shared_ptr < mic::types::MatrixXf > > & | data () |
| Returns sample data. More... | |
| std::shared_ptr < mic::types::MatrixXf > | data (size_t index_) |
| std::vector< std::shared_ptr < char > > & | labels () |
| Returns sample labels. More... | |
| std::shared_ptr< char > | labels (size_t index_) |
| std::vector< size_t > & | indices () |
| Returns sample numbers (sample "positions" in original dataset). More... | |
| std::vector< size_t > | indices (size_t index_) |
| size_t | size () |
| void | setBatchSize (size_t batch_size_) |
| size_t | getBatchSize () |
| mic::types::Batch < mic::types::MatrixXf, char > | getRandomBatch () |
| mic::types::Batch < mic::types::MatrixXf, char > | getNextBatch () |
| mic::types::Batch < mic::types::MatrixXf, char > | getBatch (std::vector< size_t > indices_) |
| mic::types::Batch < mic::types::MatrixXf, char > | getBatchDirect (std::vector< size_t > indices_) |
| bool | isLastBatch () |
| mic::types::Sample < mic::types::MatrixXf, char > | getRandomSample () |
| mic::types::Sample < mic::types::MatrixXf, char > | getNextSample () |
| mic::types::Sample < mic::types::MatrixXf, char > | getSample (size_t index_) |
| mic::types::Sample < mic::types::MatrixXf, char > | getSampleDirect (size_t index_) |
| void | setNextSampleIndex (size_t index_=0) |
| bool | isLastSample () |
| virtual void | add (mic::types::Sample< mic::types::MatrixXf, char > sample_) |
| virtual void | add (std::shared_ptr< mic::types::MatrixXf > data_, std::shared_ptr< char > label_, size_t index_) |
| virtual void | add (std::shared_ptr< mic::types::MatrixXf > data_, std::shared_ptr< char > label_) |
| void | countClasses () |
| size_t | classes () |
Private Attributes | |
| mic::configuration::Property < IBMfont_t > | font_type |
Additional Inherited Members | |
Protected Attributes inherited from mic::types::Batch< mic::types::MatrixXf, char > | |
| size_t | next_sample_index |
| size_t | batch_size |
| std::random_device | rd |
| std::mt19937_64 | rng_mt19937_64 |
| std::vector< std::shared_ptr < mic::types::MatrixXf > > | sample_data |
| Stores the data. More... | |
| std::vector< std::shared_ptr < char > > | sample_labels |
| Stores labels. More... | |
| std::vector< size_t > | sample_indices |
| Stores sample indices (sample "positions" in original dataset). More... | |
| size_t | number_of_classes |
Importer responsible for importing/loading characters from IBM VGA font dataset.
Definition at line 93 of file IBMFontMatrixImporter.hpp.
| mic::importers::IBMFontMatrixImporter::IBMFontMatrixImporter | ( | std::string | node_name_ = "ibm_font_matrix_importer" | ) |
Constructor. Sets MNIST image default properties. Registers properties.
| node_name_ | Name of the node in configuration file. |
Definition at line 30 of file IBMFontMatrixImporter.cpp.
References font_type.
|
inlinevirtual |
Virtual destructor. Empty.
Definition at line 104 of file IBMFontMatrixImporter.hpp.
|
virtual |
Method responsible for importing/loading the IBM VGA fonts.
Implements mic::importers::Importer< mic::types::MatrixXf, char >.
Definition at line 37 of file IBMFontMatrixImporter.cpp.
References mic::types::Batch< mic::types::MatrixXf, char >::countClasses(), mic::importers::font16x16_table, mic::importers::font8x8_table, mic::importers::font8x8_type, mic::importers::font_labels_table, font_type, mic::importers::mask16x16, mic::importers::mask8x8, mic::types::Batch< mic::types::MatrixXf, char >::sample_data, mic::types::Batch< mic::types::MatrixXf, char >::sample_indices, and mic::types::Batch< mic::types::MatrixXf, char >::sample_labels.

|
inlinevirtual |
Method responsible for initialization of all variables that are property-dependent - here not required, yet empty.
Definition at line 115 of file IBMFontMatrixImporter.hpp.
|
private |
Selected font type.
Definition at line 115 of file IBMFontMatrixImporter.hpp.
Referenced by IBMFontMatrixImporter(), and importData().