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

hyperactive.integrations.sklearn.checks   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A Checks.verify_fit() 0 7 1
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