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

tests.test_base   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A test_callback_0() 0 8 1
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