def __init__(self, model_path, script_path): self.model_path = model_path self.script_path = script_path self.session = get_sagemaker_session() self.attach_model()
def __init__(self, job_name): self.job_name = job_name self.session = get_sagemaker_session() self.attach_estimator()
def create_sagemaker_session(self): self.sagemaker_session = get_sagemaker_session()
def __init__(self, endpoint_name): self.endpoint_name = endpoint_name self.session = get_sagemaker_session() self.attach_predictor()