Passed
Push — master ( b4d881...21cb52 )
by Simon
02:57
created

gradient_free_optimizers.optimizers.pop_opt._individual   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 8
dl 0
loc 16
rs 10
c 0
b 0
f 0

2 Methods

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