Visit the lwnnplus home page, download the technical report in english or italian.
#include <iomanagelwnnfann.h>
Inheritance diagram for iomanagelwnnfann:
Public Member Functions | |
iomanagelwnnfann () | |
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 info from file. | |
Static Public Member Functions | |
void | info_from_file_lwnn (const string &filename, int *npatterns, int *ninput, int *noutput) |
Read info from file. | |
void | info_from_file_fann (const string &filename, int *npatterns, int *ninput, int *noutput) |
Read patterns from file. | |
void | load_patterns_lwnn (const string &filename, float **inputs, float **targets, int ninput, int noutput, int npatterns) |
Read info from file. | |
void | load_patterns_fann (const string &filename, float **inputs, float **targets, int ninput, int noutput, int npatterns) |
Read info from file. |
It is derived by iomanage and implemets reading in two textual formats.
FORMAT OF INPUT FILES
The class guesses the format of the file and reads properly a file without having to know its type.
|
Read info from file.
Works with both formats and guesses the right format by itself Implements iomanage. |
|
Read info from file.
Works only with lwnn format |
|
Read patterns from file.
Works only with fann format |
|
Read info 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. Works with both formats and guesses the right format by itself Implements iomanage. |
|
Read info from file.
Works only with lwnn format |
|
Read info from file.
If the number of inputs or outputs of the patterns in the file is not equal to ninput and noutput throws a runtime_error. Can throw a runtime_error exception if the format of the file isn't right. Works only with fann format |