AI4Finance-Foundation / ElegantRL

Massively Parallel Deep Reinforcement Learning. 🔥
https://ai4finance.org
Other
3.68k stars 844 forks source link

Suggestions for elegant_helloworld are welcome here. 给helloworld代码提建议 #135

Open Yonv1943 opened 2 years ago

Yonv1943 commented 2 years ago

If you have any suggestion about ElegantRL Helloworld, you can discuss them here, and we will keep an eye on this issue. ElegantRL's code, especially the Helloworld, really needs a lot of feedback to be better.

如果大家对ElegantRL 的 Helloworld 有什么意见,可以在此处讨论,我们会持续关注这个问题。 ElegantRL 的代码,尤其是 Helloworld 真的需要很多人的反馈,才能改好。


We hope that the ElegantRL Helloworld would help people who want to learn about reinforcement learning to quickly run a few introductory examples. Based on previous feedback, we've come up with a few requirements for the Helloworld code, with reasons in parentheses, to discuss with you.

我们想要改写 ElegantRL 的 Helloworld 代码,希望它能帮助想要了解 强化学习的人快速运行几个入门例子。 根据大家的反馈,我们提出了对 Helloworld 代码的几点要求,并在括号内给出原因,同大家讨论:


If you are just starting learining about reinforcement learning, or coding, then your suggestions will be even more valuable to us (the helloworld code is positioned to help most people). Feel free to leave your suggestions here.

如果你对强化学习不够了解,或是对代码编写不够了解,那么你的建议对我们来说会更加宝贵(helloworld代码的定位就是要帮助大多数人)。欢迎在这里留下你的建议。

Yonv1943 commented 2 years ago

The following show our discussion, including What are changed? and Why change them?: 下面简单地展示一下我们的讨论,包括改了什么,以及为何要改:

net.py

Yonv1943 commented 2 years ago

agent.py


env.py


run.py

jaried commented 2 years ago

这个文件缺失: https://github.com/AI4Finance-Foundation/ElegantRL/blob/master/elegantrl_helloworld/demo.py

jaried commented 2 years ago

运行tutorial_helloworld_DQN.py时,出现如下的信息:

| Steps 1.03e+03 ExpR 1.00 | ObjC 0.03 ObjA 1.51 | Steps 1.46e+04 ExpR 1.00 | ObjC 0.25 ObjA 10.95

DQN有AC网络吗?

jaried commented 2 years ago

这里提到hello world有sac的demo,但是代码里面并没有sac。 https://elegantrl.readthedocs.io/en/latest/helloworld/intro.html#net-agent-env-run-file-structure

moon195 commented 2 years ago

I suggest that the tutorial documentation can be written by referring to pycaret, very fast, simple and effective, and hopefully with a few more complete examples, very useful for beginners

emmanuelsalawu commented 1 year ago

There is an Error 404 for
!wget https://github.com/AI4Finance-Foundation/ElegantRL/raw/master/elegantrl_helloworld -P /content/

--2022-12-11 16:38:21-- https://github.com/AI4Finance-Foundation/ElegantRL/raw/master/elegantrl_helloworld Resolving github.com (github.com)... 140.82.114.3 Connecting to github.com (github.com)|140.82.114.3|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2022-12-11 16:38:21 ERROR 404: Not Found.

Has it been removed/replaced? This makes some of the examples, such as tutorial_helloworld_DQN_DDPG_PPO.ipynb, unrunnable.