Passed
Push — master ( e7a955...cd6747 )
by Simon
04:58
created

gradient_free_optimizers.optimizers.smb_opt.exp_imp_based_opt.ExpectedImprovementBasedOptimization.iterate()   A

Complexity

Conditions 1

Size

Total Lines 4
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
# Author: Simon Blanke
2
# Email: [email protected]
3
# License: MIT License
4
5
6
class ExpectedImprovementBasedOptimization(SMBO):
0 ignored issues
show
Comprehensibility Best Practice introduced by
The variable SMBO does not seem to be defined.
Loading history...
7
    def __init__(
8
        self,
9
        *args,
10
        xi=0.01,
11
        warm_start_smbo=None,
12
        sampling={"random": 1000000},
13
        warnings=100000000,
14
        **kwargs
15
    ):
16
        super().__init__(*args, **kwargs)
17
        self.new_positions = []
18
        self.xi = xi
19
        self.warm_start_smbo = warm_start_smbo
20
        self.sampling = sampling
21
        self.warnings = warnings
22