nielsnielsniels

Untitled

Jan 29th, 2025
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. c = {k: v for k, v in config.items() if k in LSTM.__init__.__code__.co_varnames}
  2. # add model params
  3. with open(config["model_params"], "r") as f:
  4. c.update(json.load(f))
  5.  
  6. model = LSTM(**c)
Advertisement
Add Comment
Please, Sign In to add comment