Passed
Push — master ( 79bd2c...57729f )
by Simon
01:39
created

gradient_free_optimizers._objective_functions._base_function   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 6
dl 0
loc 7
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A BaseFunction.objective_function() 0 2 1
A BaseFunction.search_space() 0 2 1
1
class BaseFunction:
2
    def objective_function(self, para):
3
        raise NotImplementedError
4
5
    def search_space(self):
6
        raise NotImplementedError
7