There is a small bug in ConfigSpace
where if __repr__
is invoked before the config has finished collecting knobs / spaces, subsequently collected items will not count towards the size of the whole config space which will result in an incomplete run of autotuning.
This is due to the caching compute of the config space here.
The most straightforward fix would be something like this:
if self._length is None or self._collect:
self._length = int(np.prod([len(x) for x in self.space_map.values()]))
return self._length