我可以在 tensorflowjs 中使用强化学习吗?

Can I use reinforcement learning in tensorflowjs?

我目前正在做一个项目,需要 tensorflowjs 创建一个从强化学习算法中学习的神经网络。这可能吗?

是的!

网上有很多这样的例子。 我建议您看一下 https://github.com/BeTomorrow/ReImproveJS 一个使用 tfjs 制作的强化学习框架。

可以在此处找到使用 ReImproveJS 的示例:https://gist.github.com/RGBKnights/756b5f51465cc22d0ca39205979ad2a1

这里还有另一个应用 tfjs 的例子:https://www.metacar-project.com/

DQN 在 tfjs 中应用于 snake 的另一个示例,以及如何 运行 代码的说明:https://github.com/tensorflow/tfjs-examples/tree/master/snake-dqn