update samples from Release-61 as a part of SDK release

This commit is contained in:
amlrelsa-ms
2020-08-17 17:45:26 +00:00
parent 79739b5e1b
commit d0dc4836ae
46 changed files with 1757 additions and 1414 deletions

View File

@@ -64,10 +64,27 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"# Check core SDK version number\n",
"import azureml.core\n",
"\n",
"print(\"SDK version:\", azureml.core.VERSION)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"from azureml.core import Workspace\n",
"\n",
"ws = Workspace.from_config()"
]
},
@@ -397,7 +414,26 @@
"from azureml.pipeline.core import Pipeline\n",
"\n",
"pipeline = Pipeline(workspace=ws, steps=[batch_score_step])\n",
"pipeline_run = Experiment(ws, \"batch_scoring\").submit(pipeline)\n",
"pipeline_run = Experiment(ws, \"batch_scoring\").submit(pipeline)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# This will output information of the pipeline run, including the link to the details page of portal.\n",
"pipeline_run"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Wait the run for completion and show output log to console\n",
"pipeline_run.wait_for_completion(show_output=True)"
]
},
@@ -544,10 +580,18 @@
"outputs": [],
"source": [
"from azureml.pipeline.core.run import PipelineRun\n",
"from azureml.widgets import RunDetails\n",
"\n",
"published_pipeline_run = PipelineRun(ws.experiments[\"batch_scoring\"], run_id)\n",
"RunDetails(published_pipeline_run).show()"
"published_pipeline_run = PipelineRun(ws.experiments[\"batch_scoring\"], run_id)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Show detail information of the run\n",
"published_pipeline_run"
]
},
{

View File

@@ -98,7 +98,7 @@
"\n",
"for sample_month in range(12):\n",
" temp_df_green = NycTlcGreen(start + relativedelta(months=sample_month), end + relativedelta(months=sample_month)) \\\n",
" .to_pandas_dataframe()\n",
" .get_tabular_dataset().to_pandas_dataframe()\n",
" green_taxi_df = green_taxi_df.append(temp_df_green.sample(2000))\n",
" \n",
"green_taxi_df.head(10)"