Azure / Azure/MachineLearningNotebooks

How to register multiple files without directory name?

Offen
#1,473 0 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @shivp950 Auf GitHub ansehen
ADO MLOps product-question
Vorherrschende Sprache
Jupyter Notebook
Sterne
4.4k
Forks
2.6k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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**

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.