Azure / Azure/MachineLearningNotebooks

How to register multiple files without directory name?

Open
#1,473 0 comments 0 reactions 1 assignee Claimed by @shivp950 View on GitHub
ADO MLOps product-question
Dominant language
Jupyter Notebook
Stars
4.4k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Description

In the `Model.register()` class. We have `model_path` and `child_paths` option.

```
register(workspace, model_path, model_name, tags=None, properties=None, description=None, datasets=None, model_framework=None, model_framework_version=None, child_paths=None, sample_input_dataset=None, sample_output_dataset=None, resource_configuration=None)
```
However, if we do provide child_paths it will include the directory structure. That is,
![image](https://user-images.githubusercontent.com/52232270/118265060-4cd59980-b4d6-11eb-9f20-316c41122ca6.png)

Is there any way, to include just the files without the directory structure? Maybe making `model_paths` a list instead of a string.
---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 391777fc-4073-28f0-6d56-b919e734904b
* Version Independent ID: b8a616d0-98f4-2171-d4f1-b753126c0e6d
* Content: [azureml.core.Model class - Azure Machine Learning Python](https://docs.microsoft.com/en-us/python/api/azureml-core/azureml.core.model(class)?view=azure-ml-py)
* Content Source: [AzureML-Docset/stable/docs-ref-autogen/azureml-core/azureml.core.Model(class).yml](https://github.com/MicrosoftDocs/MachineLearning-Python-pr/blob/live/AzureML-Docset/stable/docs-ref-autogen/azureml-core/azureml.core.Model(class).yml)
* Service: **machine-learning**
* Sub-service: **core**
* GitHub Login: @DebFro
* Microsoft Alias: **debfro**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.