Passed
Pull Request — master (#110)
by
unknown
01:23
created

tests.test_base.test_callback_0()   A

Complexity

Conditions 1

Size

Total Lines 8
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 7
nop 0
dl 0
loc 8
rs 10
c 0
b 0
f 0
1
import copy
2
import pytest
3
import numpy as np
4
import pandas as pd
5
6
from hyperactive.optimizers import HillClimbingOptimizer
7
8
9
from .test_setup import SphereFunction, search_config
10
11
12
objective_function = SphereFunction()
13
14
15
def test_callback_0():
16
    hyper = HillClimbingOptimizer()
17
    hyper.add_search(
18
        objective_function,
19
        search_config,
20
        n_iter=100,
21
    )
22
    hyper.run()
23