oreilly-japan / deep-learning-from-scratch-4 Goto Github PK
View Code? Open in Web Editor NEW『ゼロから作る Deep Learning ❹』(O'Reilly Japan, 2022)
License: MIT License
『ゼロから作る Deep Learning ❹』(O'Reilly Japan, 2022)
License: MIT License
pytorch版のdqn.pyの83行目で、ターゲットネットワークを計算グラフから切り離す意図のコードがあると思いますが、
ソースコード中の
next_q.detach()
は
next_q = next_q.detach()
の間違いではないでしょうか。
gymモジュールの挙動が書籍と異なります。
実行するコード
env = gym.make('CartPole-v0')
state = env.reset()
print(state)
出力結果:
(array([-0.0473311 , 0.02710982, -0.0452505 , -0.01258285], dtype=float32), {})
タプルなので、例えばp.268のget_action()関数の一行目などエラーになると思います。
バージョンの問題などでしょうか?
画像置き場
ch02とch03は空ディレクトリになっています。
空なので削除か、章のディレクトリを揃えるという観点でch10
を作成するべきではないでしょうか。
Please tell us when.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.