(self, image_name=None, directory=None)
Plots the target values used to train the model over time.

    If image_name is None, should be used in jupyter notebook. If
    called outside of jupyter, execution of the program will halt and
    a pop-up with the graph will appear. Execution will not continue
    until the pop-up is closed.

    Args:
      image_name: Name to use when saving the plot to a file. If not
        provided, image will be shown immediately.
      directory: Path to directory where figure should be saved. If
        None, defaults to self.output_dir.
Plots the target values used to train the model over time.
Plots the target values used to train the model over time .
def plot_target_vals(self, image_name=None, directory=None):
    """Plots the target values used to train the model over time.

    If image_name is None, should be used in jupyter notebook. If
    called outside of jupyter, execution of the program will halt and
    a pop-up with the graph will appear. Execution will not continue
    until the pop-up is closed.

    Args:
      image_name: Name to use when saving the plot to a file. If not
        provided, image will be shown immediately.
      directory: Path to directory where figure should be saved. If
        None, defaults to self.output_dir.
    """
    if directory is None:
      directory = self.output_dir

    reward_batch = self.output_every_nth
    x = [reward_batch * i for i in np.arange(len(self.target_val_list))]

    plt.figure()
    plt.plot(x, self.target_val_list)
    plt.xlabel('Training epoch')
    plt.ylabel('Target value')
    if image_name is not None:
      plt.savefig(directory + '/' + image_name)
    else:
      plt.show()
def plot_target_vals ( self , image_name = None , directory = None ) : if directory is None : directory = self . output_dir reward_batch = self . output_every_nth x = [ reward_batch * i for i in np . arange ( len ( self . target_val_list ) ) ] plt . figure ( ) plt . plot ( x , self . target_val_list ) plt . xlabel ( 'Training epoch' ) plt . ylabel ( 'Target value' ) if image_name is not None : plt . savefig ( directory + '/' + image_name ) else : plt . show ( )