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
27
29 """Thrown if there is an internal problem with a Dataset.
30
31 ValueError exception is too generic to be used for any needed case,
32 thus this one is created
33 """
34
36 Exception.__init__(self)
37 self.__msg = msg
38
40 return "Dataset handling exception: " + self.__msg
41
42
44 """Thrown if some algorithm does not converge to a solution.
45 """
48
49
51 """Generic exception to be raised when setting improper values
52 as hyperparameters."""
55