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

test_check_estimator()   A

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 0
dl 0
loc 2
rs 10
c 0
b 0
f 0
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