MachineIntelligenceCore:Algorithms
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
mic::importers::IBMFontMatrixImporter Class Reference

Importer responsible for importing/loading characters from IBM VGA font dataset. More...

#include <IBMFontMatrixImporter.hpp>

Inheritance diagram for mic::importers::IBMFontMatrixImporter:
Collaboration diagram for mic::importers::IBMFontMatrixImporter:

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
 

Detailed Description

Importer responsible for importing/loading characters from IBM VGA font dataset.

Author
tkornuta

Definition at line 93 of file IBMFontMatrixImporter.hpp.

Constructor & Destructor Documentation

mic::importers::IBMFontMatrixImporter::IBMFontMatrixImporter ( std::string  node_name_ = "ibm_font_matrix_importer")

Constructor. Sets MNIST image default properties. Registers properties.

Parameters
node_name_Name of the node in configuration file.

Definition at line 30 of file IBMFontMatrixImporter.cpp.

References font_type.

virtual mic::importers::IBMFontMatrixImporter::~IBMFontMatrixImporter ( )
inlinevirtual

Virtual destructor. Empty.

Definition at line 104 of file IBMFontMatrixImporter.hpp.

Member Function Documentation

virtual void mic::importers::IBMFontMatrixImporter::initializePropertyDependentVariables ( )
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.

Member Data Documentation

mic::configuration::Property<IBMfont_t> mic::importers::IBMFontMatrixImporter::font_type
private

Selected font type.

Definition at line 115 of file IBMFontMatrixImporter.hpp.

Referenced by IBMFontMatrixImporter(), and importData().


The documentation for this class was generated from the following files: