()
| 379 | |
| 380 | |
| 381 | def test_annotated_params_space(): |
| 382 | def objective(x: hp.uniform("x", -10, 10), y: hp.uniform("y", -10, 10)): |
| 383 | return (x * y) ** 2 |
| 384 | |
| 385 | trials = Trials() |
| 386 | fmin(objective, space="annotated", algo=tpe.suggest, max_evals=10, trials=trials) |
| 387 | |
| 388 | assert len(trials) == 10 |
| 389 | |
| 390 | |
| 391 | def test_invalid_annotated_params_space(): |