Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

初期データ有の多目的ランダム探索におけるエラー #64

Closed
t-suzuki-jp opened this issue Dec 11, 2024 · 1 comment
Closed

Comments

@t-suzuki-jp
Copy link

多目的のケースにおいて初期データを読み込ませた状態でランダム探索を行うとエラーが発生します。

(/physbo/search/discrete_multi/policy.py:154) action = self._get_random_action(N)
(/search/discrete/policy.py:611) action = self.actions[index]
TypeError: only integer scalar arrays can be converted to a scalar index

self.actionsがリスト型になっていることによるエラーだと思われます。
physbo/search/discrete_multi/policy.pyのL61の部分をnp.arrayで変換すれば修正可能だと思われますが、変換による影響は不明です。
(discrete/policy.pyの同じ処理の箇所は、np.arrayで変換処理がされていました)

@yomichi
Copy link
Contributor

yomichi commented Dec 23, 2024

ありがとうございます、修正しました。
v2.0.2 としてリリースしてあります。

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants