parameters: (self, feature_length)
return_statement: return False
docstring: To determine whether the model needs to be re-initialized
          :param model_name: name of the model
          :return:
docstring_summary: To determine whether the model needs to be re-initialized
          :param model_name: name of the model
          :return:
docstring_tokens: To determine whether the model needs to be re - initialized : param model_name : name of the model : return :
function: def check_need_init(self, feature_length):
          '''
          To determine whether the model needs to be re-initialized
          :param model_name: name of the model
          :return:
          '''
          if not (os.path.exists(self.model_info.model_path) and os.path.getsize(self.model_info.model_path)):
              return True
          conf_dict = self.model_info.load_dict(self.model_info.conf_path)
          # check model's params
          if not (feature_length == self.model_info.feature_length \
                  and self.model_info.label_length == conf_dict['label_length'] \
                  and self.model_info.hidden_units == conf_dict['hidden_units']):
              return True
          return False
function_tokens: def check_need_init ( self , feature_length ) : if not ( os . path . exists ( self . model_info . model_path ) and os . path . getsize ( self . model_info . model_path ) ) : return True conf_dict = self . model_info . load_dict ( self . model_info . conf_path ) # check model's params if not ( feature_length == self . model_info . feature_length and self . model_info . label_length == conf_dict [ 'label_length' ] and self . model_info . hidden_units == conf_dict [ 'hidden_units' ] ) : return True return False