Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- c = {k: v for k, v in config.items() if k in LSTM.__init__.__code__.co_varnames}
- # add model params
- with open(config["model_params"], "r") as f:
- c.update(json.load(f))
- model = LSTM(**c)
Advertisement
Add Comment
Please, Sign In to add comment