TarzaNN
TarzaNN neural network simulator
|
00001 /**************************************************************************** 00002 ** 00003 ** Copyright C 2002-2012 Laboratory for Active and Attentive Vision (LAAV), Department of Computer Science and Engineering, York University, Toronto, ON, Canada. 00004 ** All rights reserved. 00005 ** 00006 ** This file is part of the TarzaNN Neural Network Simulator. 00007 ** 00008 ** This file may be distributed and/or modified under the terms of the 00009 ** GNU General Public License version 2 as published by the Free Software 00010 ** Foundation and appearing in the file LICENSE.GPL included in the 00011 ** packaging of this file. 00012 ** 00013 ** See http://www.tarzann.org/gpl/ for GPL licensing information. 00014 ** 00015 ** Contact info@tarzann.org if any conditions of this licensing are 00016 ** not clear to you. 00017 ** 00018 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00019 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00020 ** 00021 ****************************************************************************/ 00022 00023 #ifndef DATASET_H_INCLUDED 00024 #define DATASET_H_INCLUDED 00025 #include "OutputImage.h" 00026 00028 class Dataset { 00029 protected: 00030 int count; 00031 00033 int maxTestSteps; 00035 int maxSteps; 00037 int currentStep; 00039 bool sameAsLast; 00041 int invarianceLevel; 00042 00043 public: 00045 Dataset(char* basefilename); 00046 virtual ~Dataset(); 00048 virtual OutputImage* getImage(int index, OutputImage** list, int LorR=0)=0; 00050 virtual Matrix* getDesiredOutcome(int index)=0; 00052 virtual int getRandomIndex(); 00053 00055 void setMaxTestSteps(int mTS){ 00056 maxTestSteps=mTS; 00057 } 00059 int getMaxTestSteps(){ 00060 return maxTestSteps; 00061 } 00063 void setMaxSteps(int mS){ 00064 maxSteps=mS; 00065 } 00067 void setInvarianceLevel(int levels){ 00068 invarianceLevel=levels; 00069 } 00070 int getInvarianceLevel(){ 00071 return invarianceLevel; 00072 } 00073 00075 int getMaxSteps(){ 00076 return maxSteps; 00077 } 00078 00079 bool isSameAsLast(){ 00080 return sameAsLast; 00081 } 00082 00083 }; 00084 #endif/*DATASET_H_INCLUDED*/