Sourcery Starbot ⭐ refactored RusherRG/OpenAI-Gyms#1
Sourcery Starbot ⭐ refactored RusherRG/OpenAI-Gyms#1SourceryAI wants to merge 1 commit intoRusherRG:masterfrom
Conversation
| args = argparser.parse_args() | ||
|
|
||
| return args | ||
| return argparser.parse_args() |
There was a problem hiding this comment.
Function Agent.parser refactored with the following changes:
- Inline variable that is immediately returned (
inline-immediately-returned-variable)
| model = None | ||
| return model | ||
| return None |
There was a problem hiding this comment.
Function Agent.load_model refactored with the following changes:
- Inline variable that is immediately returned (
inline-immediately-returned-variable)
| args = argparser.parse_args() | ||
|
|
||
| return args | ||
| return argparser.parse_args() |
There was a problem hiding this comment.
Function Agent.parser refactored with the following changes:
- Inline variable that is immediately returned (
inline-immediately-returned-variable)
|
|
||
| def neural_network_model(): | ||
| model = tf.keras.Sequential([ | ||
| return tf.keras.Sequential([ |
There was a problem hiding this comment.
Function neural_network_model refactored with the following changes:
- Inline variable that is immediately returned (
inline-immediately-returned-variable)
| model = tf.keras.models.load_model(name) | ||
| return model | ||
| return tf.keras.models.load_model(name) |
There was a problem hiding this comment.
Function loadmodel refactored with the following changes:
- Inline variable that is immediately returned (
inline-immediately-returned-variable)
| for episode in range(5): | ||
| for _ in range(5): |
There was a problem hiding this comment.
Function some_random_games_first refactored with the following changes:
- Replace unused for index with underscore (
for-index-underscore)
| for i_episode in range(20): | ||
| for _ in range(20): |
There was a problem hiding this comment.
Function env_test refactored with the following changes:
- Replace unused for index with underscore (
for-index-underscore)
| args = argparser.parse_args() | ||
|
|
||
| return args | ||
| return argparser.parse_args() |
There was a problem hiding this comment.
Function QLearning.parser refactored with the following changes:
- Inline variable that is immediately returned (
inline-immediately-returned-variable)
Thanks for starring sourcery-ai/sourcery ✨ 🌟 ✨
Here's your pull request refactoring your most popular Python repo.
If you want Sourcery to refactor all your Python repos and incoming pull requests install our bot.
Review changes via command line
To manually merge these changes, make sure you're on the
masterbranch, then run: