title: SageMaker: transform endpoint output with pretrained model
body: <p>I have a pretrained XgBoost Model for multilabel classification, I can deploy it as an endpoint using <code>create_model</code>, <code>create_endpoint_configuration</code> and <code>create_endpoint</code> functions of sagemaker client. When it is invoked it returns a list of probabilities for each label.</p>
  
  <p>Now I want to transform the endpoint output from the list of probabilities to actual labels representing those probabilities. </p>
  
  <p>I know I can use XGBoost estimator and <code>entry_point</code> to write my own <code>output_fn</code>. But I would still like to use the sagemaker client functions as they provide more control for our CI/CD pipeline. </p>
  
  <p>How can use <code>entry_point</code> (or something similar) in sagemaker client functions I am already using?</p>