提交 f35b0dc0 编写于 作者: C ceci3

fix controller

上级 5c922020
...@@ -98,7 +98,7 @@ class SAController(EvolutionaryController): ...@@ -98,7 +98,7 @@ class SAController(EvolutionaryController):
new_tokens = tokens[:] new_tokens = tokens[:]
index = int(len(self._range_table[0]) * np.random.random()) index = int(len(self._range_table[0]) * np.random.random())
new_tokens[index] = np.random.randint(self._range_table[0][index], new_tokens[index] = np.random.randint(self._range_table[0][index],
self._range_table[1][index] + 1) self._range_table[1][index])
_logger.debug("change index[{}] from {} to {}".format(index, tokens[ _logger.debug("change index[{}] from {} to {}".format(index, tokens[
index], new_tokens[index])) index], new_tokens[index]))
if self._constrain_func is None or self._max_try_times is None: if self._constrain_func is None or self._max_try_times is None:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册