original_docstring:  Visualize loss for the generator, discriminator 
docstring: Visualize loss for the generator, discriminator
docstring_tokens: Visualize loss for the generator discriminator
code: def viz_loss(self):
          """ Visualize loss for the generator, discriminator """
          # Set style, figure size
          plt.style.use('ggplot')
          plt.rcParams["figure.figsize"] = (8,6)
  
          # Plot Discriminator loss in red
          plt.plot(np.linspace(1, self.num_epochs, len(self.Dlosses)),
                   self.Dlosses,
                   'r')
  
          # Plot Generator loss in green
          plt.plot(np.linspace(1, self.num_epochs, len(self.Dlosses)),
                   self.Glosses,
                   'g')
  
          # Add legend, title
          plt.legend(['Discriminator', 'Generator'])
          plt.title(self.name)
          plt.show()
code_tokens: def viz_loss ( self ) : plt . style . use ( 'ggplot' ) plt . rcParams [ "figure.figsize" ] = ( 8 , 6 ) plt . plot ( np . linspace ( 1 , self . num_epochs , len ( self . Dlosses ) ) , self . Dlosses , 'r' ) plt . plot ( np . linspace ( 1 , self . num_epochs , len ( self . Dlosses ) ) , self . Glosses , 'g' ) plt . legend ( [ 'Discriminator' , 'Generator' ] ) plt . title ( self . name ) plt . show ( )
short_docstring: Visualize loss for the generator, discriminator
short_docstring_tokens: Visualize loss for the generator discriminator
comment: """ Visualize loss for the generator, discriminator """$SEP$# Set style, figure size$SEP$# Plot Discriminator loss in red$SEP$# Plot Generator loss in green$SEP$# Add legend, title