Skip to content

Instantly share code, notes, and snippets.

@fre-sch
Created June 10, 2017 20:25
Show Gist options
  • Save fre-sch/5282998a91ca353cdc0921b2db48bd95 to your computer and use it in GitHub Desktop.
Save fre-sch/5282998a91ca353cdc0921b2db48bd95 to your computer and use it in GitHub Desktop.
blab
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