|
47 | 47 | "outputs": [], |
48 | 48 | "source": [ |
49 | 49 | "import azureml.core\n", |
50 | | - "from azureml.core import Workspace, Experiment, Dataset\n", |
| 50 | + "from azureml.core import Workspace, Experiment, Dataset, RunConfiguration\n", |
51 | 51 | "from azureml.core.compute import ComputeTarget, AmlCompute\n", |
| 52 | + "from azureml.core.environment import CondaDependencies\n", |
52 | 53 | "from azureml.data.dataset_consumption_config import DatasetConsumptionConfig\n", |
53 | 54 | "from azureml.widgets import RunDetails\n", |
54 | 55 | "\n", |
|
223 | 224 | "Note that the ```file_ds_consumption``` and ```tabular_ds_consumption``` are specified as both arguments and inputs to create a step." |
224 | 225 | ] |
225 | 226 | }, |
| 227 | + { |
| 228 | + "cell_type": "code", |
| 229 | + "execution_count": null, |
| 230 | + "metadata": {}, |
| 231 | + "outputs": [], |
| 232 | + "source": [ |
| 233 | + "conda_dep = CondaDependencies()\n", |
| 234 | + "conda_dep.add_pip_package(\"pandas\")\n", |
| 235 | + "\n", |
| 236 | + "run_config = RunConfiguration(conda_dependencies=conda_dep)" |
| 237 | + ] |
| 238 | + }, |
226 | 239 | { |
227 | 240 | "cell_type": "code", |
228 | 241 | "execution_count": null, |
|
235 | 248 | " arguments=[\"--param1\", file_ds_consumption, \"--param2\", tabular_ds_consumption],\n", |
236 | 249 | " inputs=[file_ds_consumption, tabular_ds_consumption],\n", |
237 | 250 | " compute_target=compute_target,\n", |
238 | | - " source_directory=source_directory)\n", |
| 251 | + " source_directory=source_directory,\n", |
| 252 | + " runconfig=run_config)\n", |
239 | 253 | "\n", |
240 | 254 | "print(\"train_step created\")\n", |
241 | 255 | "\n", |
|
498 | 512 | "pygments_lexer": "ipython3", |
499 | 513 | "version": "3.6.7" |
500 | 514 | }, |
501 | | - "order_index": 13, |
| 515 | + "order_index": 13.0, |
502 | 516 | "star_tag": [ |
503 | 517 | "featured" |
504 | 518 | ], |
|
0 commit comments