src/sagemaker_xgboost_container/algorithm_mode/handler_service.py
def default_model_fn(self, model_dir):
            """Load a model. For XGBoost Framework, a default function to load a model is not provided.
            Users should provide customized model_fn() in script.
            Args:
                model_dir: a directory where model is saved.
            Returns:
                A XGBoost model.
                XGBoost model format type.
            """
            try:
                booster, format = serve_utils.get_loaded_booster(model_dir)
            except Exception as e:
                raise ModelLoadInferenceError("Unable to load model: {}".format(str(e)))
            return booster, format
Load a model. For XGBoost Framework, a default function to load a model is not provided.
            Users should provide customized model_fn() in script.
            Args:
                model_dir: a directory where model is saved.
            Returns:
                A XGBoost model.
                XGBoost model format type.
            
Load a model. For XGBoost Framework, a default function to load a model is not provided.
Users should provide customized model_fn() in script.
Load a model . For XGBoost Framework a default function to load a model is not provided . Users should provide customized model_fn () in script .
def default_model_fn(self, model_dir):
            try:
                booster, format = serve_utils.get_loaded_booster(model_dir)
            except Exception as e:
                raise ModelLoadInferenceError("Unable to load model: {}".format(str(e)))
            return booster, format
def default_model_fn ( self , model_dir ) : try : booster , format = serve_utils . get_loaded_booster ( model_dir ) except Exception as e : raise ModelLoadInferenceError ( "Unable to load model: {}" . format ( str ( e ) ) ) return booster , format
Load a model.
Load a model .
"""Load a model. For XGBoost Framework, a default function to load a model is not provided.
            Users should provide customized model_fn() in script.
            Args:
                model_dir: a directory where model is saved.
            Returns:
                A XGBoost model.
                XGBoost model format type.
            """
A XGBoost model.
XGBoost model format type.
A XGBoost model . XGBoost model format type .
self
model_dir
a directory where model is saved.
a directory where model is saved .