Passed
Push — master ( bd7b54...01f089 )
by Simon
01:40 queued 13s
created

Checks.verify_fit()   A

Complexity

Conditions 1

Size

Total Lines 7
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 6
nop 1
dl 0
loc 7
rs 10
c 0
b 0
f 0
1
class Checks:
2
    _fit_successful = False
3
4
    def verify_fit(function):
5
        def wrapper(self, X, y):
6
            out = function(self, X, y)
7
            self._fit_successful = True
8
            return out
9
10
        return wrapper
11