diff --git a/sagemaker-inference-recommender/inference-recommender.ipynb b/sagemaker-inference-recommender/inference-recommender.ipynb index 9ad1914ecf..7c25789e8e 100644 --- a/sagemaker-inference-recommender/inference-recommender.ipynb +++ b/sagemaker-inference-recommender/inference-recommender.ipynb @@ -420,11 +420,11 @@ "import uuid\n", "from sagemaker import get_execution_role\n", "\n", - "client = boto3.client(\"sagemaker\", region)\n", + "inference_client = boto3.client(\"sagemaker\", region)\n", "\n", "role = get_execution_role()\n", "default_job = uuid.uuid1()\n", - "default_response = client.create_inference_recommendations_job(\n", + "default_response = inference_client.create_inference_recommendations_job(\n", " JobName=str(default_job),\n", " JobDescription=\"Job Description\",\n", " JobType=\"Default\",\n", @@ -460,11 +460,11 @@ "import pprint\n", "import pandas as pd\n", "\n", - "client = boto3.client(\"sagemaker\", region)\n", + "inference_client = boto3.client(\"sagemaker\", region)\n", "\n", "stopped = False\n", "while not stopped:\n", - " inference_recommender_job = client.describe_inference_recommendations_job(\n", + " inference_recommender_job = inference_client.describe_inference_recommendations_job(\n", " JobName=str(default_job)\n", " )\n", " if inference_recommender_job[\"Status\"] in [\"COMPLETED\", \"STOPPED\", \"FAILED\"]:\n", @@ -525,11 +525,11 @@ "import boto3\n", "import uuid\n", "\n", - "client = boto3.client(\"sagemaker\", region)\n", + "inference_client = boto3.client(\"sagemaker\", region)\n", "\n", "role = get_execution_role()\n", "advanced_job = uuid.uuid1()\n", - "advanced_response = client.create_inference_recommendations_job(\n", + "advanced_response = inference_client.create_inference_recommendations_job(\n", " JobName=str(advanced_job),\n", " JobDescription=\"JobDescription\",\n", " JobType=\"Advanced\",\n", @@ -586,11 +586,11 @@ "import pprint\n", "import pandas as pd\n", "\n", - "client = boto3.client(\"sagemaker\", region)\n", + "inference_client = boto3.client(\"sagemaker\", region)\n", "\n", "stopped = False\n", "while not stopped:\n", - " inference_recommender_job = client.describe_inference_recommendations_job(\n", + " inference_recommender_job = inference_client.describe_inference_recommendations_job(\n", " JobName=str(advanced_job)\n", " )\n", " if inference_recommender_job[\"Status\"] in [\"COMPLETED\", \"STOPPED\", \"FAILED\"]:\n",