Passed
Pull Request — master (#87)
by Simon
01:24
created

tests.integrations.sklearn.test_check_estimator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A test_check_estimator() 0 2 1
1
from sklearn import svm
2
3
from hyperactive.integrations import HyperactiveSearchCV
4
from hyperactive.optimizers import RandomSearchOptimizer
5
6
from sklearn.utils.estimator_checks import check_estimator
7
8
9
svc = svm.SVC()
10
parameters = {"kernel": ["linear", "rbf"], "C": [1, 10]}
11
opt = RandomSearchOptimizer()
12
13
14
def test_check_estimator():
15
    check_estimator(HyperactiveSearchCV(svc, opt, parameters))
16