From 616552a17baef0e2b595fd8463f79efb89a6e32a Mon Sep 17 00:00:00 2001 From: Sarah Castillo <67715639+secastillo@users.noreply.github.com> Date: Fri, 24 Jun 2022 11:22:56 -0700 Subject: [PATCH] Updating notebooks with newest xgboost framework versions (#3449) --- ...ost_abalone_dist_script_mode_outputs.ipynb | 24 +++++++++---------- .../xgboost_inferenece_script_mode.ipynb | 4 ++-- .../xgboost_managed_spot_training.ipynb | 4 ++-- .../xgboost_parquet_input_training.ipynb | 4 ++-- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/introduction_to_amazon_algorithms/xgboost_abalone/xgboost_abalone_dist_script_mode_outputs.ipynb b/introduction_to_amazon_algorithms/xgboost_abalone/xgboost_abalone_dist_script_mode_outputs.ipynb index f3a0d94f4d..b2e9b612b6 100644 --- a/introduction_to_amazon_algorithms/xgboost_abalone/xgboost_abalone_dist_script_mode_outputs.ipynb +++ b/introduction_to_amazon_algorithms/xgboost_abalone/xgboost_abalone_dist_script_mode_outputs.ipynb @@ -670,7 +670,7 @@ "\n", "xgb_script_mode_estimator = XGBoost(\n", " entry_point=script_path,\n", - " framework_version=\"0.90-1\", # Note: framework_version is mandatory\n", + " framework_version=\"1.5-1\", # Note: framework_version is mandatory\n", " hyperparameters=hyperparams,\n", " role=role,\n", " instance_count=2,\n", @@ -736,17 +736,17 @@ "2022-04-18 00:22:23 Starting - Preparing the instances for trainingProfilerReport-1650241324: InProgress\n", "......\n", "2022-04-18 00:23:27 Downloading - Downloading input data...\n", - "2022-04-18 00:24:12 Training - Downloading the training image..\u001b[34mINFO:sagemaker-containers:Imported framework sagemaker_xgboost_container.training\u001b[0m\n", - "\u001b[34mINFO:sagemaker-containers:No GPUs detected (normal if no gpus installed)\u001b[0m\n", - "\u001b[34mINFO:sagemaker_xgboost_container.training:Invoking user training script.\u001b[0m\n", - "\u001b[34mINFO:sagemaker-containers:Module abalone does not provide a setup.py. \u001b[0m\n", + "2022-04-18 00:24:12 Training - Downloading the training image..\u001B[34mINFO:sagemaker-containers:Imported framework sagemaker_xgboost_container.training\u001B[0m\n", + "\u001B[34mINFO:sagemaker-containers:No GPUs detected (normal if no gpus installed)\u001B[0m\n", + "\u001B[34mINFO:sagemaker_xgboost_container.training:Invoking user training script.\u001B[0m\n", + "\u001B[34mINFO:sagemaker-containers:Module abalone does not provide a setup.py. \u001B[0m\n", "...\n", - "2022-04-18 00:24:45 Training - Training image download completed. Training in progress.\u001b[34m[00:24:30] WARNING: /workspace/src/objective/regression_obj.cu:152: reg:linear is now deprecated in favor of reg:squarederror.\u001b[0m\n", - "\u001b[34m[00:24:30] WARNING: /workspace/src/learner.cc:622: Tree method is automatically selected to be 'approx' for distributed training.\u001b[0m\n", - "\u001b[34m[00:24:30] Tree method is automatically selected to be 'approx' for distributed training.\u001b[0m\n", - "\u001b[35m[00:24:30] WARNING: /workspace/src/objective/regression_obj.cu:152: reg:linear is now deprecated in favor of reg:squarederror.\u001b[0m\n", - "\u001b[35m[00:24:30] WARNING: /workspace/src/learner.cc:622: Tree method is automatically selected to be 'approx' for distributed training.\u001b[0m\n", - "\u001b[35m[00:24:30] Tree method is automatically selected to be 'approx' for distributed training.\u001b[0m\n", + "2022-04-18 00:24:45 Training - Training image download completed. Training in progress.\u001B[34m[00:24:30] WARNING: /workspace/src/objective/regression_obj.cu:152: reg:linear is now deprecated in favor of reg:squarederror.\u001B[0m\n", + "\u001B[34m[00:24:30] WARNING: /workspace/src/learner.cc:622: Tree method is automatically selected to be 'approx' for distributed training.\u001B[0m\n", + "\u001B[34m[00:24:30] Tree method is automatically selected to be 'approx' for distributed training.\u001B[0m\n", + "\u001B[35m[00:24:30] WARNING: /workspace/src/objective/regression_obj.cu:152: reg:linear is now deprecated in favor of reg:squarederror.\u001B[0m\n", + "\u001B[35m[00:24:30] WARNING: /workspace/src/learner.cc:622: Tree method is automatically selected to be 'approx' for distributed training.\u001B[0m\n", + "\u001B[35m[00:24:30] Tree method is automatically selected to be 'approx' for distributed training.\u001B[0m\n", "\n", "2022-04-18 00:25:05 Uploading - Uploading generated training model\n", "2022-04-18 00:25:05 Completed - Training job completed\n", @@ -991,4 +991,4 @@ }, "nbformat": 4, "nbformat_minor": 5 -} +} \ No newline at end of file diff --git a/introduction_to_amazon_algorithms/xgboost_abalone/xgboost_inferenece_script_mode.ipynb b/introduction_to_amazon_algorithms/xgboost_abalone/xgboost_inferenece_script_mode.ipynb index b1cf1d94c8..d57f045db7 100644 --- a/introduction_to_amazon_algorithms/xgboost_abalone/xgboost_inferenece_script_mode.ipynb +++ b/introduction_to_amazon_algorithms/xgboost_abalone/xgboost_inferenece_script_mode.ipynb @@ -121,7 +121,7 @@ "\n", "* __entry_point__: The path to the Python script SageMaker runs for training and prediction.\n", "* __role__: Role ARN\n", - "* __framework_version__: SageMaker XGBoost version you want to use for executing your model training code, e.g., `0.90-1`, `0.90-2`, `1.0-1`, or `1.5-1`.\n", + "* __framework_version__: SageMaker XGBoost version you want to use for executing your model training code, e.g., `1.0-1`, `1.2-2`, `1.3-1`, or `1.5-1`.\n", "* __train_instance_type__ *(optional)*: The type of SageMaker instances for training. __Note__: Because Scikit-learn does not natively support GPU training, Sagemaker Scikit-learn does not currently support training on GPU instance types.\n", "* __sagemaker_session__ *(optional)*: The session used to train on Sagemaker.\n", "* __hyperparameters__ *(optional)*: A dictionary passed to the train function as hyperparameters." @@ -456,4 +456,4 @@ }, "nbformat": 4, "nbformat_minor": 4 -} +} \ No newline at end of file diff --git a/introduction_to_amazon_algorithms/xgboost_abalone/xgboost_managed_spot_training.ipynb b/introduction_to_amazon_algorithms/xgboost_abalone/xgboost_managed_spot_training.ipynb index dd4508bdf6..081ca722ed 100644 --- a/introduction_to_amazon_algorithms/xgboost_abalone/xgboost_managed_spot_training.ipynb +++ b/introduction_to_amazon_algorithms/xgboost_abalone/xgboost_managed_spot_training.ipynb @@ -87,7 +87,7 @@ "metadata": {}, "source": [ "### Obtaining the latest XGBoost container\n", - "We obtain the new container by specifying the framework version (1.5-1). This version specifies the upstream XGBoost framework version (1.3) and an additional SageMaker version (1). If you have an existing XGBoost workflow based on the previous (0.72, 0.90-1, 0.90-2, or 1.0-1) container, this would be the only change necessary to get the same workflow working with the new container." + "We obtain the new container by specifying the framework version (1.5-1). This version specifies the upstream XGBoost framework version (1.5) and an additional SageMaker version (1). If you have an existing XGBoost workflow based on the previous (1.0-1, 1.2-2 or 1.3-1) container, this would be the only change necessary to get the same workflow working with the new container." ] }, { @@ -330,4 +330,4 @@ }, "nbformat": 4, "nbformat_minor": 4 -} +} \ No newline at end of file diff --git a/introduction_to_amazon_algorithms/xgboost_abalone/xgboost_parquet_input_training.ipynb b/introduction_to_amazon_algorithms/xgboost_abalone/xgboost_parquet_input_training.ipynb index 5eb1b1c68b..124fab58bb 100644 --- a/introduction_to_amazon_algorithms/xgboost_abalone/xgboost_parquet_input_training.ipynb +++ b/introduction_to_amazon_algorithms/xgboost_abalone/xgboost_parquet_input_training.ipynb @@ -122,7 +122,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "We obtain the new container by specifying the framework version (1.5-1). This version specifies the upstream XGBoost framework version (1.3) and an additional SageMaker version (1). If you have an existing XGBoost workflow based on the previous (0.72, 0.90-1, 0.90-2, or 1.0-1) container, this would be the only change necessary to get the same workflow working with the new container." + "We obtain the new container by specifying the framework version (1.5-1). This version specifies the upstream XGBoost framework version (1.5) and an additional SageMaker version (1). If you have an existing XGBoost workflow based on the previous (1.0-1, 1.2-2 or 1.3-1) container, this would be the only change necessary to get the same workflow working with the new container." ] }, { @@ -257,4 +257,4 @@ }, "nbformat": 4, "nbformat_minor": 4 -} +} \ No newline at end of file