Visit the lwnnplus home page, download the technical report in english or italian.
#include <iomanagebinary.h>
Inheritance diagram for iomanagebinary:
Public Member Functions | |
iomanagebinary () | |
Constructor Does nothing, of course, because the class has no fields! | |
virtual void | info_from_file (const string &filename, int *npatterns, int *ninput, int *noutput) |
Read info from file. | |
virtual void | load_patterns (const string &filename, float **inputs, float **targets, int ninput, int noutput, int npatterns) |
Read patterns from file. | |
void | write_patterns (const string &filename, float **inputs, float **targets, int ninput, int noutput, int npatterns) |
Write patterns to a binary file file. | |
void | convert (const string &sourceformatfn, const string &binformatfn, iomanage *sourceFormatIomanager) |
Convert patterns from any format to binary format. |
This class extends iomanage and implements the reading from a binary file The method write_patterns make easy to write a binary pattern file and to convert any training set in this format
|
Read info from file.
Implements iomanage. |
|
Read patterns from file.
If the number of inputs or outputs of the patterns or the number of patterns in the file is not equal to ninput and noutput and npatterns throws a runtime_error. Can throw a runtime_error exception if the format of the file isn't right. Implements iomanage. |
|
Write patterns to a binary file file.
|
|
Convert patterns from any format to binary format.
|