original_docstring: 
          This is used to initialize the model variables
          This will also try to load an existing model if it exists
          
docstring: This is used to initialize the model variables
  This will also try to load an existing model if it exists
docstring_tokens: This is used to initialize the model variables This will also try to load an existing model if it exists
code: def initialize_model(self):
          """
          This is used to initialize the model variables
          This will also try to load an existing model if it exists
          """
          self._initialize_variables()
  
          #file does not exist too lazy to add check
          if self.model_file is None:
              model_file = self.get_model_path(self.get_default_file_name())
              self.model_file = model_file
          else:
              model_file = self.model_file
          print('looking for ' + model_file + '.keys')
          if os.path.isfile(model_file + '.keys'):
              print('loading existing model')
              try:
                  file = os.path.abspath(model_file)
                  self.load_model(os.path.dirname(file), os.path.basename(file))
              except Exception as e:
                  self._initialize_variables()
                  print("Unexpected error loading model:", e)
                  print('unable to load model')
          else:
              print('unable to find model to load')
  
          if self.summary_writer is not None:
              self.summary_writer.add_graph(self.sess.graph)
              self.summarize = tf.summary.merge_all()
          self.is_initialized = True
code_tokens: def initialize_model ( self ) : self . _initialize_variables ( ) if self . model_file is None : model_file = self . get_model_path ( self . get_default_file_name ( ) ) self . model_file = model_file else : model_file = self . model_file print ( 'looking for ' + model_file + '.keys' ) if os . path . isfile ( model_file + '.keys' ) : print ( 'loading existing model' ) try : file = os . path . abspath ( model_file ) self . load_model ( os . path . dirname ( file ) , os . path . basename ( file ) ) except Exception as e : self . _initialize_variables ( ) print ( "Unexpected error loading model:" , e ) print ( 'unable to load model' ) else : print ( 'unable to find model to load' ) if self . summary_writer is not None : self . summary_writer . add_graph ( self . sess . graph ) self . summarize = tf . summary . merge_all ( ) self . is_initialized = True
short_docstring: This is used to initialize the model variables
  This will also try to load an existing model if it exists
short_docstring_tokens: This is used to initialize the model variables This will also try to load an existing model if it exists
comment: """
          This is used to initialize the model variables
          This will also try to load an existing model if it exists
          """$SEP$#file does not exist too lazy to add check
  