Azure / Azure/MachineLearningNotebooks

Limit input to PipelineParameter

Đang mở
#1,604 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Jupyter Notebook
Star
4.4k
Fork
2.6k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

It would be nice if you could limit the possible inpute to a pipeline parameter.
E.g. if you want to parameterize the metric an AutoML run uses as primary metric it could look like this:

```python
METRIC_NAMES = ['mean_absolute_percentage_error', 'normalized_root_mean_squared_error', 'root_mean_squared_log_error', 'r2_score', 'spearman_correlation', 'median_absolute_error', 'root_mean_squared_error', 'normalized_mean_absolute_error', 'mean_absolute_error', 'normalized_root_mean_squared_log_error', 'explained_variance', 'normalized_median_absolute_error']

metric = PipelineParameter(name="metric", default_value="r2_score", limit_input_to=METRIC_NAMES)
```

In the UI this could then be a dropdown similar to available Datasets if you specify a Dataset PipelineParameter. When submitting with the SDK it should throw an error and display the possible inputs.

---
#### Document Details

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

* ID: 8e3ec7f7-25c2-8f63-331c-2eb62ffb73c7
* Version Independent ID: 4e31dffb-12fd-85d9-a1a2-aa038017d075
* Content: [azureml.pipeline.core.graph.PipelineParameter class - Azure Machine Learning Python](https://docs.microsoft.com/en-us/python/api/azureml-pipeline-core/azureml.pipeline.core.graph.pipelineparameter?view=azure-ml-py)
* Content Source: [AzureML-Docset/stable/docs-ref-autogen/azureml-pipeline-core/azureml.pipeline.core.graph.PipelineParameter.yml](https://github.com/MicrosoftDocs/MachineLearning-Python-pr/blob/live/AzureML-Docset/stable/docs-ref-autogen/azureml-pipeline-core/azureml.pipeline.core.graph.PipelineParameter.yml)
* Service: **machine-learning**
* Sub-service: **core**
* GitHub Login: @DebFro
* Microsoft Alias: **debfro**

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Issue nêu azureml.pipeline.core.graph.PipelineParameter và liên kết đến nguồn tham chiếu của nó tại AzureML-Docset/stable/docs-ref-autogen/azureml-pipeline-core/azureml.pipeline.core.graph.PipelineParameter.yml. Trước tiên, hãy đọc API của PipelineParameter và theo dõi cách các giá trị đến được quá trình gửi bằng SDK và UI. Công việc được coi là hoàn tất khi các giá trị được phép được hỗ trợ, các đầu vào SDK không hợp lệ báo cáo các lựa chọn và UI có thể hiển thị chúng dưới dạng danh sách thả xuống.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
api, machine-learning
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.