question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Review of Existing Code

See original GitHub issue

@araffin has done a great job creating this version of the library but has done it mostly solo, so much of the code has never been reviewed.

I suggest the other maintainers each take responsibility for reviewing a portion of the code. Rather than doing a traditional code review, since it’s already committed I suggest we just make a PR with any changes we think should take place, or raise an issue for non-trivial proposals.

I think the priority is code that is used in multiple algorithms and/or defines the public API and which is new. This includes:

  • common/base_class.py
  • common/distributions.py
  • common/policies.py
  • common/type_aliases.py

Next would be the individual algorithms:

  • A2C
  • PPO
  • SAC
  • TD3

Also new parts of the documentation could use re-reading/confirming:

  • Documentation

If this sounds like a good idea to others, then perhaps we can each claim a few entries on the above list and then start a PR for it? Also feel free to edit the post to break it up differently or to add files I’ve missed.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
araffincommented, May 13, 2020

@Miffyli nice =) (apparently, we can add Windows and mac os thanks to github ci (to be tested)) i think some os.path.join are missing, no?

i will ping @hill-a privately 😉 (he needs some motivation but he can do things and his input is usually valuable) maybe an additional “auto-review”: i did not use “_” prefix for all private attributes.

1reaction
araffincommented, Oct 25, 2020

As the TODO-list for v1.0 is almost complete, we should finish the code review. @hill-a do you have time to review the off-policy algorithms (SAC/TD3)? Otherwise, does anyone else can do it? (maybe @PartiallyTyped ?)

Regarding the documentation, i think it should be ok now? (see #166 )

Read more comments on GitHub >

github_iconTop Results From Across the Web

Recipe: code reviews for existing code with GitHub
We want to be able to review the existing code of any project, code that has already been committed (with or without a...
Read more >
Best Practices for Peer Code Review - SmartBear
1. Review fewer than 400 lines of code at a time · 2. Take your time. · 3. Do not review for more...
Read more >
Code Review Guidelines - GitLab Docs
This guide contains advice and best practices for performing code review, and having your code reviewed. All merge requests for GitLab CE and...
Read more >
A complete guide to code reviews | Swarmia
Learn why the most successful teams use code reviews, how to adopt them with your team, and what 16 best practices we recommend....
Read more >
Code review - Wikipedia
Code review is a software quality assurance activity in which one or several people check a program mainly by viewing and reading parts...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found