Lightweight Neural Network++ documentation

Visit the lwnnplus home page, download the technical report in english or italian.

Main Page | Class Hierarchy | Class List | File List | Class Members

iomanagelwnnfann.h

00001 #ifndef IOMANAGE_LWNNFANN_H
00002 #define IOMANAGE_LWNNFANN_H
00003 /*
00004  * Lightweight Neural Net ++ - iomanagelwnnfann class
00005  * http://lwneuralnetplus.sourceforge.net/
00006  * 
00007  * This class is used to read target files in lwnn and fann format
00008  *
00009  * By Lorenzo Masetti <lorenzo.masetti@libero.it> and Luca Cinti <lucacinti@supereva.it>
00010  *
00011  * This library is free software; you can redistribute it and/or
00012  * modify it under the terms of the GNU Lesser General Public
00013  * License as published by the Free Software Foundation; either
00014  * version 2.1 of the License, or (at your option) any later version.
00015  * 
00016  */
00017 #include "iomanage.h"
00018 #include <stdio.h>
00019 #include <string>
00020 #include <stdexcept>
00021 #include <fstream>
00022 
00023 using namespace std;
00024 
00052 class iomanagelwnnfann : public iomanage
00053 {
00054 public:
00058   iomanagelwnnfann();
00059 
00073   virtual void info_from_file (const string & filename, int *npatterns,
00074                               int *ninput, int *noutput);
00075 
00089   static void info_from_file_lwnn (const string & filename, int *npatterns,
00090                                    int *ninput, int *noutput);
00091 
00105   static void info_from_file_fann (const string & filename, int *npatterns,
00106                                    int *ninput, int *noutput);
00107 
00127   virtual void load_patterns (const string & filename,
00128                                        float **inputs, float **targets,
00129                                        int ninput, int noutput, int npatterns);
00130 
00131 
00146   static void load_patterns_lwnn (const string & filename,
00147                                             float **inputs, float **targets,
00148                                             int ninput, int noutput, int npatterns);
00149 
00150 
00169   static void load_patterns_fann (const string & filename,
00170                                             float **inputs, float **targets,
00171                                             int ninput, int noutput, int npatterns);
00172 
00173 };
00174 
00175 
00176 #endif
00177 
00178 
00179 
00180 
00181 
00182 
00183 
00184 
00185 
00186 
00187 
00188 
00189 
00190 

Generated on Tue Oct 12 00:32:11 2004 for Lightweight Neural Network ++ by  doxygen 1.3.9