hyperactive.integrations.sklearn.checks   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A Checks.verify_fit() 0 10 1
1
"""Validation checks for scikit-learn integration."""
2
3
4
class Checks:
5
    """Checks class."""
6
7
    _fit_successful = False
8
9
    def verify_fit(function):
10
        """Verify Fit function."""
11
12
        def wrapper(self, X, y):
13
            """Wrap function call."""
14
            out = function(self, X, y)
15
            self._fit_successful = True
16
            return out
17
18
        return wrapper
19