|
@@ 112-128 (lines=17) @@
|
| 109 |
|
opt.search(search_config, scheduler=1) |
| 110 |
|
|
| 111 |
|
|
| 112 |
|
def test_checks_init_config(): |
| 113 |
|
|
| 114 |
|
with pytest.raises(ValueError): |
| 115 |
|
opt = Hyperactive(X, y, verbosity=None) |
| 116 |
|
opt.search(search_config, init_config=1) |
| 117 |
|
|
| 118 |
|
init_config = {1} |
| 119 |
|
|
| 120 |
|
with pytest.raises(ValueError): |
| 121 |
|
opt = Hyperactive(X, y, verbosity=None) |
| 122 |
|
opt.search(search_config, init_config=init_config) |
| 123 |
|
|
| 124 |
|
init_config = {model: 1} |
| 125 |
|
|
| 126 |
|
with pytest.raises(ValueError): |
| 127 |
|
opt = Hyperactive(X, y, verbosity=None) |
| 128 |
|
opt.search(search_config, init_config=init_config) |
| 129 |
|
|
|
@@ 58-74 (lines=17) @@
|
| 55 |
|
opt = Hyperactive(X, y, verbosity=None) |
| 56 |
|
|
| 57 |
|
|
| 58 |
|
def test_checks_search_config(): |
| 59 |
|
|
| 60 |
|
with pytest.raises(ValueError): |
| 61 |
|
opt = Hyperactive(X, y, verbosity=None) |
| 62 |
|
opt.search(1) |
| 63 |
|
|
| 64 |
|
search_config = {1} |
| 65 |
|
|
| 66 |
|
with pytest.raises(ValueError): |
| 67 |
|
opt = Hyperactive(X, y, verbosity=None) |
| 68 |
|
opt.search(search_config) |
| 69 |
|
|
| 70 |
|
search_config = {model: 1} |
| 71 |
|
|
| 72 |
|
with pytest.raises(ValueError): |
| 73 |
|
opt = Hyperactive(X, y, verbosity=None) |
| 74 |
|
opt.search(search_config) |
| 75 |
|
|
| 76 |
|
|
| 77 |
|
def test_checks_n_iter(): |