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

Individual.__init__()   A

Complexity

Conditions 1

Size

Total Lines 3
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nop 3
dl 0
loc 3
rs 10
c 0
b 0
f 0
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