Conditions | 1 |
Total Lines | 10 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import numpy as np |
||
19 | def calculate_properties(func): |
||
20 | def wrapper(self, *args, **kwargs): |
||
21 | func(self, *args, **kwargs) |
||
22 | |||
23 | self.n_dim = n_dim(self._search_space) |
||
24 | self.dim_names = dim_names(self._search_space) |
||
25 | self.position_space = position_space(self._search_space) |
||
26 | print(" ---> search-space updated!") |
||
27 | |||
28 | return wrapper |
||
29 |