The PowerOfTwoParamenter search_space_size is returning wrong value.
The current implementation is
return int(math.log(super(PowerOfTwoParameter, self).search_space_size(), 2))
but I believe it should be
return int(math.log(self.max_value,2) - math.log(self.min_value, 2)) + 1
For instance, for a PowerOfTwoParameter(k, 2, 32) it returns 4 but should return 5.
The PowerOfTwoParamenter search_space_size is returning wrong value.
The current implementation is
return int(math.log(super(PowerOfTwoParameter, self).search_space_size(), 2))
but I believe it should bereturn int(math.log(self.max_value,2) - math.log(self.min_value, 2)) + 1
For instance, for a
PowerOfTwoParameter(k, 2, 32)
it returns 4 but should return 5.