(self, model_path)
return model
Load a pretrained scikit-learn pipeline from disk.
        The pipeline must have been saved in the pickle format.
        Versions for Python and scikit-learn should match the SSE.
Load a pretrained scikit-learn pipeline from disk.
        The pipeline must have been saved in the pickle format.
        Versions for Python and scikit-learn should match the SSE.
Load a pretrained scikit - learn pipeline from disk . The pipeline must have been saved in the pickle format . Versions for Python and scikit - learn should match the SSE .
def _get_model_sklearn(self, model_path):
        """
        Load a pretrained scikit-learn pipeline from disk.
        The pipeline must have been saved in the pickle format.
        Versions for Python and scikit-learn should match the SSE.
        """

        # Add model directory to the system path
        self._add_model_path(model_path)

        # Load the saved pipeline from disk
        with open(model_path, 'rb') as file:
            model = pickle.load(file)
        
        return model
def _get_model_sklearn ( self , model_path ) : # Add model directory to the system path self . _add_model_path ( model_path ) # Load the saved pipeline from disk with open ( model_path , 'rb' ) as file : model = pickle . load ( file ) return model