Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Day6 Evolution: agent_results から noises に np.array 格納できない #77

Open
6 tasks
gouldberg opened this issue Jan 1, 2023 · 0 comments
Open
6 tasks

Comments

@gouldberg
Copy link

指摘事項

Day6 Evolution: agent_results から noises に np.array に格納できない

指摘箇所

  • Day1: 強化学習の位置づけを知る
  • Day2: 強化学習の解法(1): 環境から計画を立てる
  • Day3: 強化学習の解法(2): 経験から計画を立てる
  • Day4: 強化学習に対するニューラルネットワークの適用
  • Day5: 強化学習の弱点
  • [* ] Day6: 強化学習の弱点を克服するための手法
  • Day7: 強化学習の活用領域

ページ番号: p.226

実行環境

  • OS: Ubuntu LTS 20.4
  • Python version: 3.8.4
  • pip freezeの実行
    結果 (下に添付)
    requirement.txt

エラー内容

(例外のメッセージ、ログ、画面ショットなどを添付)

def update(self, agent_results):
の noises = np.array(r[1] for r in agent_results]) で 以下の ValueError

ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 2 dimensions. The detected shape was (20, 4) + inhomogeneous part.

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

No branches or pull requests

1 participant