00001 /****************************************************************************************************************/ 00002 /* */ 00003 /* OpenNN: Open Neural Networks Library */ 00004 /* www.opennn.cimne.com */ 00005 /* */ 00006 /* T I M E S E R I E S P R E D I C T I O N T E S T I N G C L A S S H E A D E R */ 00007 /* */ 00008 /* Roberto Lopez */ 00009 /* International Center for Numerical Methods in Engineering (CIMNE) */ 00010 /* Technical University of Catalonia (UPC) */ 00011 /* Barcelona, Spain */ 00012 /* E-mail: rlopez@cimne.upc.edu */ 00013 /* */ 00014 /****************************************************************************************************************/ 00015 00016 #ifndef __TIMESERIESPREDICTIONTESTING_H__ 00017 #define __TIMESERIESPREDICTIONTESTING_H__ 00018 00019 // OpenNN includes 00020 00021 #include "../utilities/vector.h" 00022 #include "../utilities/matrix.h" 00023 #include "../data_set/data_set.h" 00024 #include "../neural_network/neural_network.h" 00025 00026 namespace OpenNN 00027 { 00028 00032 00033 class TimeSeriesPredictionTesting 00034 { 00035 00036 public: 00037 00038 // DEFAULT CONSTRUCTOR 00039 00040 explicit TimeSeriesPredictionTesting(void); 00041 00042 // NEURAL NETWORK CONSTRUCTOR 00043 00044 explicit TimeSeriesPredictionTesting(NeuralNetwork*); 00045 00046 // DATA SET CONSTRUCTOR 00047 00048 explicit TimeSeriesPredictionTesting(DataSet*); 00049 00050 // GENERAL CONSTRUCTOR 00051 00052 explicit TimeSeriesPredictionTesting(NeuralNetwork*, DataSet*); 00053 00054 // XML CONSTRUCTOR 00055 00056 explicit TimeSeriesPredictionTesting(TiXmlElement*); 00057 00058 // DESTRUCTOR 00059 00060 virtual ~TimeSeriesPredictionTesting(void); 00061 00062 // METHODS 00063 00064 // Get methods 00065 00066 NeuralNetwork* get_neural_network_pointer(void) const; 00067 DataSet* get_data_set_pointer(void) const; 00068 00069 const bool& get_display(void) const; 00070 00071 // Set methods 00072 00073 void set_neural_network_pointer(NeuralNetwork*); 00074 void set_data_set_pointer(DataSet*); 00075 00076 void set_display(const bool&); 00077 00078 void set_default(void); 00079 00080 // Serialization methods 00081 00082 std::string to_string(void) const; 00083 00084 virtual TiXmlElement* to_XML(void) const; 00085 virtual void from_XML(TiXmlElement*); 00086 00087 00088 private: 00089 00091 00092 NeuralNetwork* neural_network_pointer; 00093 00095 00096 DataSet* data_set_pointer; 00097 00099 00100 bool display; 00101 00102 }; 00103 00104 } 00105 00106 #endif 00107 00108 // OpenNN: Open Neural Networks Library. 00109 // Copyright (C) 2005-2012 Roberto Lopez 00110 // 00111 // This library is free software; you can redistribute it and/or 00112 // modify it under the terms of the GNU Lesser General Public 00113 // License as published by the Free Software Foundation; either 00114 // version 2.1 of the License, or any later version. 00115 // 00116 // This library is distributed in the hope that it will be useful, 00117 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00118 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00119 // Lesser General Public License for more details. 00120 00121 // You should have received a copy of the GNU Lesser General Public 00122 // License along with this library; if not, write to the Free Software 00123 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA