original_docstring: Loads a config file.  The config file is stored in self.config_file
docstring: Loads a config file.  The config file is stored in self.config_file
docstring_tokens: Loads a config file . The config file is stored in self . config_file
code: def load_config_file(self):
          """Loads a config file.  The config file is stored in self.config_file"""
          try:
              self.model_file = self.config_file.get('model_directory', self.model_file)
          except Exception as e:
              print('model directory is not in config', e)
  
          try:
              self.batch_size = self.config_file.getint('batch_size', self.batch_size)
          except Exception:
              print('batch size is not in config')
  
          try:
              self.mini_batch_size = self.config_file.getint('mini_batch_size', self.mini_batch_size)
          except Exception:
              print('mini batch size is not in config')
  
          try:
              self.is_evaluating = self.config_file.getboolean('is_evaluating', self.is_evaluating)
          except Exception as e:
              print('unable to load if it should be evaluating')
  
          try:
              self.is_normalizing = self.config_file.getboolean('is_normalizing', self.is_normalizing)
          except Exception as e:
              print('unable to load if it should be normalizing defaulting to true')
          try:
              self.should_regulate = self.config_file.getboolean('should_regulate', True)
          except Exception as e:
              print('unable to load if it should be regulating defaulting to true')
          try:
              self.reg_param = self.config_file.getfloat('regulate_param', self.reg_param)
          except Exception as e:
              print('unable to load if it should be regulating defaulting to true')
          print('done loading')
code_tokens: def load_config_file ( self ) : try : self . model_file = self . config_file . get ( 'model_directory' , self . model_file ) except Exception as e : print ( 'model directory is not in config' , e ) try : self . batch_size = self . config_file . getint ( 'batch_size' , self . batch_size ) except Exception : print ( 'batch size is not in config' ) try : self . mini_batch_size = self . config_file . getint ( 'mini_batch_size' , self . mini_batch_size ) except Exception : print ( 'mini batch size is not in config' ) try : self . is_evaluating = self . config_file . getboolean ( 'is_evaluating' , self . is_evaluating ) except Exception as e : print ( 'unable to load if it should be evaluating' ) try : self . is_normalizing = self . config_file . getboolean ( 'is_normalizing' , self . is_normalizing ) except Exception as e : print ( 'unable to load if it should be normalizing defaulting to true' ) try : self . should_regulate = self . config_file . getboolean ( 'should_regulate' , True ) except Exception as e : print ( 'unable to load if it should be regulating defaulting to true' ) try : self . reg_param = self . config_file . getfloat ( 'regulate_param' , self . reg_param ) except Exception as e : print ( 'unable to load if it should be regulating defaulting to true' ) print ( 'done loading' )
short_docstring: Loads a config file.
short_docstring_tokens: Loads a config file .
comment: """Loads a config file.  The config file is stored in self.config_file"""