|
258 | 258 | "\n",
|
259 | 259 | "# Get the region defined in the current configuration (default to us-west-2 if none defined)\n",
|
260 | 260 | "region=$(aws configure get region)\n",
|
261 |
| - "# specifically setting to us-east-2 since during the pre-release period, we support only that region.\n", |
262 |
| - "region=${region:-us-east-2}\n", |
263 | 261 | "\n",
|
264 | 262 | "fullname=\"${account}.dkr.ecr.${region}.amazonaws.com/${algorithm_name}:latest\"\n",
|
265 | 263 | "\n",
|
|
595 | 593 | "Now that you have verified that the algorithm code works for training, live inference and batch inference in the above sections, you can start packaging it up as an Amazon SageMaker Algorithm."
|
596 | 594 | ]
|
597 | 595 | },
|
598 |
| - { |
599 |
| - "cell_type": "markdown", |
600 |
| - "metadata": {}, |
601 |
| - "source": [ |
602 |
| - "#### Region Limitation\n", |
603 |
| - "Seller onboarding is limited to us-east-2 region (CMH) only. The client we are creating below will be hard-coded to talk to our us-east-2 endpoint only." |
604 |
| - ] |
605 |
| - }, |
606 | 596 | {
|
607 | 597 | "cell_type": "code",
|
608 | 598 | "execution_count": null,
|
|
611 | 601 | "source": [
|
612 | 602 | "import boto3\n",
|
613 | 603 | "\n",
|
614 |
| - "smmp = boto3.client('sagemaker', region_name='us-east-2', endpoint_url=\"https://sagemaker.us-east-2.amazonaws.com\")" |
| 604 | + "smmp = boto3.client('sagemaker')" |
615 | 605 | ]
|
616 | 606 | },
|
617 | 607 | {
|
|
807 | 797 | "A Model Package is a reusable model artifacts abstraction that packages all ingredients necessary for inference. It consists of an inference specification that defines the inference image to use along with an optional model weights location.\n"
|
808 | 798 | ]
|
809 | 799 | },
|
810 |
| - { |
811 |
| - "cell_type": "markdown", |
812 |
| - "metadata": {}, |
813 |
| - "source": [ |
814 |
| - "#### Region Limitation\n", |
815 |
| - "Seller onboarding is limited to us-east-2 region (CMH) only. The client we are creating below will be hard-coded to talk to our us-east-2 endpoint only. (Note: You may have previous done this step in Part 3. Repeating here to keep Part 4 self contained.)" |
816 |
| - ] |
817 |
| - }, |
818 | 800 | {
|
819 | 801 | "cell_type": "code",
|
820 | 802 | "execution_count": null,
|
821 | 803 | "metadata": {},
|
822 | 804 | "outputs": [],
|
823 | 805 | "source": [
|
824 |
| - "smmp = boto3.client('sagemaker', region_name='us-east-2', endpoint_url=\"https://sagemaker.us-east-2.amazonaws.com\")" |
| 806 | + "smmp = boto3.client('sagemaker')" |
825 | 807 | ]
|
826 | 808 | },
|
827 | 809 | {
|
|
982 | 964 | "name": "python",
|
983 | 965 | "nbconvert_exporter": "python",
|
984 | 966 | "pygments_lexer": "ipython3",
|
985 |
| - "version": "3.6.5" |
| 967 | + "version": "3.6.10" |
986 | 968 | }
|
987 | 969 | },
|
988 | 970 | "nbformat": 4,
|
|
0 commit comments