blob: bcb7be5356ceab5398a934a21a6f636a25bbf198 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/////////////////////////////////////////////////////////////////////////////
//
// NNDefines.h
//
// global stuff for all the nets
//
// header file
//
// Copyright (c) 2005 Georg Holzmann <grh@gmx.at>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
/////////////////////////////////////////////////////////////////////////////
#ifndef _INCLUDE_NNDEFINES_NET__
#define _INCLUDE_NNDEFINES_NET__
#include <string>
using std::string;
namespace TheBrain
{
//------------------------------------------------------
/* the exception class for all the neural network stuff
*/
class NNExcept
{
protected:
string message_;
public:
NNExcept(string message="")
{ message_ = message; }
virtual ~NNExcept() { }
virtual string what()
{ return message_; }
};
} // end of namespace NNet
#endif //_INCLUDE_NNDEFINES_NET__
|