Closed8
「ゼロから作る Deep Learning 4」 のハンズオン

環境作成

conda 環境
conda create -n DeepLearningBook4 python=3.10

ライブラリ群
pip install numpy
pip install matplotlib
pip install pytorch
pip install torch
pip install gym
pip install dezero

dezero、新しいnumpyに対応してないっぽいので、
以下から最新持ってきた。
以下に現conda環境のパッケージが置いてあったのでここに直接 dezero ディレクトリを置くと良いらしい。
C:\Users\Develop.conda\envs\DeepLearningBook4\lib\site-packages
dezero は uninstall しとく。
また、実行したら
以下エラーが出たので、
dezero\datasets.py:235: SyntaxWarning: "is" with a literal. Did you mean "=="? return fine_labels if label_type is 'fine' else coarse_labels variable(75.0)
当該箇所を以下のように修正したら実行できた。
return fine_labels if label_type == 'fine' else coarse_labels

Gymについて
windowsだとgym.make する時に
render="human"
にしないと、映像が出ないっぽい

1章 バンディット問題

読み終えたのでクローズ
このスクラップは2024/05/26にクローズされました