Passed
Push — master ( b0b7f3...e3d174 )
by Simon
04:31
created

gradient_free_optimizers.optimizers.population._individual   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A Individual.__init__() 0 3 1
1
# Author: Simon Blanke
2
# Email: [email protected]
3
# License: MIT License
4
5
6
from ..local import HillClimbingOptimizer
7
8
9
class Individual(HillClimbingOptimizer):
10
    def __init__(self, search_space, rand_rest_p=0.03):
11
        super().__init__(search_space)
12
        self.rand_rest_p = rand_rest_p
13