class_docstr: Implements a recurrent DQN designed to produce melody sequences.
class_docstr_tok: ["Implements","a","recurrent","DQN","designed","to","produce","melody","sequences","."]
docstr: Saves the models stored rewards over time in a .npz file.
  
  Args:
    file_name: Name of the file that will be saved.
docstr_tok: ["Saves","the","models","stored","rewards","over","time","in","a",".npz","file",".","Args",":","file_name",":","Name","of","the","file","that","will","be","saved","."]
code: def save_stored_rewards(self, file_name):
      """Saves the models stored rewards over time in a .npz file.
  
      Args:
        file_name: Name of the file that will be saved.
      """
      training_epochs = (
          len(self.rewards_batched) * self.output_every_nth
      )
      filename = os.path.join(
          self.output_dir, file_name + "-" + str(training_epochs)
      )
      np.savez(
          filename,
          train_rewards=self.rewards_batched,
          train_music_theory_rewards=self.music_theory_rewards_batched,
          train_note_rnn_rewards=self.note_rnn_rewards_batched,
          eval_rewards=self.eval_avg_reward,
          eval_music_theory_rewards=self.eval_avg_music_theory_reward,
          eval_note_rnn_rewards=self.eval_avg_note_rnn_reward,
          target_val_list=self.target_val_list,
      )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import os
  import random
  import urllib
  from magenta.models.rl_tuner import note_rnn_loader
  from magenta.models.rl_tuner import rl_tuner_eval_metrics
  from magenta.models.rl_tuner import rl_tuner_ops
  import matplotlib.pyplot
  from note_seq import melodies_lib
  from note_seq import midi_io
  import numpy
  import scipy.special
  from six.moves import range
  from six.moves import reload_module
  from six.moves import urllib
  import tensorflow.compat.v1
label_desc: Use image node_id 41 for calling the RLTuner obj's underlying member method code with example usage: obj.save_stored_rewards(file_name) without return types