1
2
3
4
5
6
7
8
9 """Exception classes which might get thrown"""
10
11 __docformat__ = 'restructuredtext'
12
14 """Thrown if the internal state of the class is not yet defined.
15
16 Classifiers and Algorithms classes might have properties, which
17 are not defined prior to training or invocation has happened.
18 """
19
21 Exception.__init__(self)
22 self.__msg = msg
23
25 return "Exception: " + self.__msg
26
28 """Thrown if there is an internal problem with a Dataset.
29
30 ValueError exception is too generic to be used for any needed case,
31 thus this one is created
32 """
33
35 Exception.__init__(self)
36 self.__msg = msg
37
39 return "Dataset handling exception: " + self.__msg
40
41
43 """Thrown if some algorithm does not converge to a solution.
44 """
47