diff --git a/manual/develop/en/_modules/physbo/search/discrete/policy.html b/manual/develop/en/_modules/physbo/search/discrete/policy.html index d9b0af3b..0c352a9a 100644 --- a/manual/develop/en/_modules/physbo/search/discrete/policy.html +++ b/manual/develop/en/_modules/physbo/search/discrete/policy.html @@ -805,7 +805,13 @@

Source code for physbo.search.discrete.policy

self.predictor = pickle.load(f) N = self.history.total_num_search - self.actions = self._delete_actions(self.history.chosen_actions[:N])
+ + visited = self.history.chosen_actions[:N] + local_index = np.searchsorted(self.actions, visited) + local_index = local_index[ + np.take(self.actions, local_index, mode="clip") == visited + ] + self.actions = self._delete_actions(local_index)
diff --git a/manual/develop/en/_modules/physbo/search/discrete_multi/policy.html b/manual/develop/en/_modules/physbo/search/discrete_multi/policy.html index ccbf29eb..c8583beb 100644 --- a/manual/develop/en/_modules/physbo/search/discrete_multi/policy.html +++ b/manual/develop/en/_modules/physbo/search/discrete_multi/policy.html @@ -598,7 +598,13 @@

Source code for physbo.search.discrete_multi.policy

self.load_predictor_list(file_predictor_list) N = self.history.total_num_search - self.actions = self._delete_actions(self.history.chosen_actions[:N])
+ + visited = self.history.chosen_actions[:N] + local_index = np.searchsorted(self.actions, visited) + local_index = local_index[ + np.take(self.actions, local_index, mode="clip") == visited + ] + self.actions = self._delete_actions(local_index)
diff --git a/manual/develop/ja/_modules/physbo/search/discrete/policy.html b/manual/develop/ja/_modules/physbo/search/discrete/policy.html index 92ba5bd0..a1f32339 100644 --- a/manual/develop/ja/_modules/physbo/search/discrete/policy.html +++ b/manual/develop/ja/_modules/physbo/search/discrete/policy.html @@ -806,7 +806,13 @@

physbo.search.discrete.policy のソースコード

self.predictor = pickle.load(f) N = self.history.total_num_search - self.actions = self._delete_actions(self.history.chosen_actions[:N])
+ + visited = self.history.chosen_actions[:N] + local_index = np.searchsorted(self.actions, visited) + local_index = local_index[ + np.take(self.actions, local_index, mode="clip") == visited + ] + self.actions = self._delete_actions(local_index)
diff --git a/manual/develop/ja/_modules/physbo/search/discrete_multi/policy.html b/manual/develop/ja/_modules/physbo/search/discrete_multi/policy.html index 504c1f2d..d975767c 100644 --- a/manual/develop/ja/_modules/physbo/search/discrete_multi/policy.html +++ b/manual/develop/ja/_modules/physbo/search/discrete_multi/policy.html @@ -599,7 +599,13 @@

physbo.search.discrete_multi.policy のソースコード

self.load_predictor_list(file_predictor_list) N = self.history.total_num_search - self.actions = self._delete_actions(self.history.chosen_actions[:N])
+ + visited = self.history.chosen_actions[:N] + local_index = np.searchsorted(self.actions, visited) + local_index = local_index[ + np.take(self.actions, local_index, mode="clip") == visited + ] + self.actions = self._delete_actions(local_index)