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
fix docs and add docstring check #210
Conversation
Codecov Report
@@ Coverage Diff @@
## master #210 +/- ##
==========================================
+ Coverage 94.05% 94.11% +0.05%
==========================================
Files 40 40
Lines 2457 2448 -9
==========================================
- Hits 2311 2304 -7
+ Misses 146 144 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done with review.
docs/tutorials/dqn.rst
Outdated
@@ -83,29 +87,32 @@ Tianshou supports any user-defined PyTorch networks and optimizers but with the | |||
net = Net(state_shape, action_shape) | |||
optim = torch.optim.Adam(net.parameters(), lr=1e-3) | |||
|
|||
You can also have a try with those pre-defined networks in :mod:`~tianshou.utils.net.common`, :mod:`~tianshou.utils.net.discrete`, and :mod:`~tianshou.utils.net.continuous`. The rules of self-defined networks are: | |||
You can have a try with those pre-defined networks in :mod:`~tianshou.utils.net.common`, :mod:`~tianshou.utils.net.discrete`, and :mod:`~tianshou.utils.net.continuous`. The rules of self-defined networks are: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"It is also possible to use pre-defined networks in ..."
Besides, I would rather present first the pre-defined networks available, rather than the custom one. I think it is more appropriate to come later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides, I would rather present first the pre-defined networks available, rather than the custom one. I think it is more appropriate to come later.
I don't agree since I want to give users the maximum freedom to define the network.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, but I think it is better to start with predefined network, to provide a extremely quick and concise way to run a learning algorithm to get the feeling of the dataflow of Tianshou, how easy it is to train a model, and how fast is Tianshou. Then you introduce a more advanced example now that the user is convince the lib fits its need. But that's just my opinion.
Nice work ! I really appreciate your effort to keep the doc up to date and to clearly explain how to use Tianshou and make the best out of it. It is not so common nowaday. |
- fix broken links and out-of-the-date content - add pydocstyle and doc8 check - remove collector.seed and collector.render
cherry-pick from #200.