(self, use_cache=True)
Get the model from the class model cache or disk.
        Update the cache if loading from disk.
        Return the model.
Get the model from the class model cache or disk.
        Update the cache if loading from disk.
        Return the model.
Get the model from the class model cache or disk . Update the cache if loading from disk . Return the model .
def _get_model(self, use_cache=True):
        """
        Get the model from the class model cache or disk.
        Update the cache if loading from disk.
        Return the model.
        """
        
        if use_cache and self.model.name in self.__class__.model_cache:
            # Load the model from cache
            self.model = self.__class__.model_cache[self.model.name]

            # Refresh the keras model to avoid tensorflow errors 
            if self.model.using_keras and hasattr(self.model, 'pipe'):
                self._keras_refresh()
            
            # Debug information is printed to the terminal and logs if the paramater debug = true
            if self.model.debug:
                self._print_log(6)
        else:
            # Load the model from disk
            self.model = self.model.load(self.model.name, self.path) 

            # Debug information is printed to the terminal and logs if the paramater debug = true
            if self.model.debug:
                self._print_log(7)
            
            # Update the cache to keep this model in memory
            self._update_cache()
def _get_model ( self , use_cache = True ) : if use_cache and self . model . name in self . __class__ . model_cache : # Load the model from cache self . model = self . __class__ . model_cache [ self . model . name ] # Refresh the keras model to avoid tensorflow errors  if self . model . using_keras and hasattr ( self . model , 'pipe' ) : self . _keras_refresh ( ) # Debug information is printed to the terminal and logs if the paramater debug = true if self . model . debug : self . _print_log ( 6 ) else : # Load the model from disk self . model = self . model . load ( self . model . name , self . path ) # Debug information is printed to the terminal and logs if the paramater debug = true if self . model . debug : self . _print_log ( 7 ) # Update the cache to keep this model in memory self . _update_cache ( )