Skip to content

Commit 90e20a6

Browse files
authored
Merge pull request Azure#1726 from Azure/release_update/Release-131
update samples from Release-131 as a part of SDK release
2 parents e30b53f + 33a4eac commit 90e20a6

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

how-to-use-azureml/automated-machine-learning/experimental/regression-model-proxy/auto-ml-regression-model-proxy.ipynb

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
"from azureml.core.experiment import Experiment\n",
7676
"from azureml.core.workspace import Workspace\n",
7777
"from azureml.core.dataset import Dataset\n",
78+
"from azureml.data.dataset_factory import TabularDatasetFactory\n",
7879
"from azureml.train.automl import AutoMLConfig"
7980
]
8081
},
@@ -180,6 +181,29 @@
180181
"label = \"ERP\"\n"
181182
]
182183
},
184+
{
185+
"cell_type": "markdown",
186+
"metadata": {},
187+
"source": [
188+
"The split data will be used in the remote compute by ModelProxy and locally to compare results.\n",
189+
"So, we need to persist the split data to avoid descrepencies from different package versions in the local and remote."
190+
]
191+
},
192+
{
193+
"cell_type": "code",
194+
"execution_count": null,
195+
"metadata": {},
196+
"outputs": [],
197+
"source": [
198+
"ds = ws.get_default_datastore()\n",
199+
"\n",
200+
"train_data = TabularDatasetFactory.register_pandas_dataframe(\n",
201+
" train_data.to_pandas_dataframe(), target=(ds, \"machineTrainData\"), name=\"train_data\")\n",
202+
"\n",
203+
"test_data = TabularDatasetFactory.register_pandas_dataframe(\n",
204+
" test_data.to_pandas_dataframe(), target=(ds, \"machineTestData\"), name=\"test_data\")"
205+
]
206+
},
183207
{
184208
"cell_type": "markdown",
185209
"metadata": {},

0 commit comments

Comments
 (0)