Created
June 10, 2017 20:25
-
-
Save fre-sch/5282998a91ca353cdc0921b2db48bd95 to your computer and use it in GitHub Desktop.
blab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DQNAgent: | |
default_options = dict( | |
replay_memory_size=10000, | |
batch_size=12, | |
action_count=0, | |
frame_stack=None | |
) | |
def __init__(self, **kwargs): | |
opts = self.default_options.copy() | |
opts.update({k: v in kwargs.items() if k in opts}) | |
for k, v in self.options.items(): | |
setattr(self, k, v) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment