Skip to content

Fix tensorflow2-california-housing-regression-experiment.ipynb #3306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"cells": [
{
"cell_type": "markdown",
"id": "b673db31",
"metadata": {},
"source": [
"## California Housing Regression Experiment\n",
Expand All @@ -24,7 +23,6 @@
},
{
"cell_type": "markdown",
"id": "6aa9af97",
"metadata": {},
"source": [
"### Install Python Packages"
Expand All @@ -33,18 +31,16 @@
{
"cell_type": "code",
"execution_count": null,
"id": "07ef2630",
"metadata": {},
"outputs": [],
"source": [
"import sys\n",
"\n",
"!{sys.executable} -m pip install sagemaker-experiments==0.1.31 matplotlib"
"!{sys.executable} -m pip install matplotlib"
]
},
{
"cell_type": "markdown",
"id": "5f6e0e4a",
"metadata": {},
"source": [
"### Setup"
Expand All @@ -53,7 +49,6 @@
{
"cell_type": "code",
"execution_count": null,
"id": "a919b135",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -74,7 +69,6 @@
{
"cell_type": "code",
"execution_count": null,
"id": "e64e12da",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -88,7 +82,6 @@
},
{
"cell_type": "markdown",
"id": "9fb68336",
"metadata": {},
"source": [
"### Download California Housing dataset and upload to Amazon S3"
Expand All @@ -97,7 +90,6 @@
{
"cell_type": "code",
"execution_count": null,
"id": "6ece115e",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -132,7 +124,6 @@
{
"cell_type": "code",
"execution_count": null,
"id": "b066d544",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -148,7 +139,6 @@
},
{
"cell_type": "markdown",
"id": "5a2d2a6e",
"metadata": {},
"source": [
"### Step 1 - Set up the Experiment\n",
Expand All @@ -158,7 +148,6 @@
},
{
"cell_type": "markdown",
"id": "c2f86710",
"metadata": {},
"source": [
"### Create an Experiment"
Expand All @@ -167,7 +156,6 @@
{
"cell_type": "code",
"execution_count": null,
"id": "4c1fbca9",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -180,7 +168,6 @@
{
"cell_type": "code",
"execution_count": null,
"id": "581b6c8d",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -194,7 +181,6 @@
},
{
"cell_type": "markdown",
"id": "9f872fca",
"metadata": {},
"source": [
"### Step 2 - Track Experiment\n",
Expand All @@ -205,7 +191,6 @@
{
"cell_type": "code",
"execution_count": null,
"id": "d0336132",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -218,7 +203,6 @@
},
{
"cell_type": "markdown",
"id": "7680ca71",
"metadata": {},
"source": [
"If you want to run the following training jobs asynchronously, you may need to increase your resource limit. Otherwise, you can run them sequentially.\n",
Expand All @@ -229,7 +213,6 @@
{
"cell_type": "code",
"execution_count": null,
"id": "df3f4b99",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -296,7 +279,6 @@
},
{
"cell_type": "markdown",
"id": "79d10cf4",
"metadata": {},
"source": [
"### Compare the model training runs for an experiment\n",
Expand All @@ -307,7 +289,6 @@
{
"cell_type": "code",
"execution_count": null,
"id": "54457af4",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -324,7 +305,6 @@
},
{
"cell_type": "markdown",
"id": "ad3c1940",
"metadata": {},
"source": [
"Let's show the accuracy, epochs and optimizer.\n",
Expand All @@ -334,7 +314,6 @@
{
"cell_type": "code",
"execution_count": null,
"id": "f970a995",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -344,7 +323,6 @@
},
{
"cell_type": "markdown",
"id": "3fe96a4a",
"metadata": {},
"source": [
"### Visualize experiment\n",
Expand All @@ -355,7 +333,6 @@
{
"cell_type": "code",
"execution_count": null,
"id": "5f13ab1e",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -374,7 +351,6 @@
},
{
"cell_type": "markdown",
"id": "777780e4",
"metadata": {},
"source": [
"### Compare Experiments, Trials, and Trial Components in Amazon SageMaker Studio\n",
Expand All @@ -395,7 +371,6 @@
},
{
"cell_type": "markdown",
"id": "fa992be5",
"metadata": {},
"source": [
"### Cleanup\n",
Expand All @@ -406,7 +381,6 @@
{
"cell_type": "code",
"execution_count": null,
"id": "8672ca44",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -434,7 +408,6 @@
{
"cell_type": "code",
"execution_count": null,
"id": "1da56a6c",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -444,14 +417,12 @@
{
"cell_type": "code",
"execution_count": null,
"id": "3cd76c89",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"instance_type": "ml.t3.medium",
"kernelspec": {
"display_name": "Python 3 (TensorFlow 2.3 Python 3.7 CPU Optimized)",
"language": "python",
Expand Down