Azure / Azure/azureml-examples

Setting a URI_FOLDER to be both input and output

Open
#1,927 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Jupyter Notebook
Stars
2k
Forks
1.7k
Avg merge
18h 18m
Merged PRs (30d)
2

Description

### Describe your suggestion

The source code is like this:

> dir_path = ...
> recompute_feature = True
> if recompute_feature:
> (Do something)
> df.to_csv(dir_path) # cache the DataFrame
> else:
> df = pd.read_csv(dir_path)

When using azure.ai.ml, we need to specify Inputs and Outputs. When a folder can be both Input and Output in this case (if recompute_feature = True, dir_path will be Output. Otherwise it will be the Input), is there a way to handle this if I don't change the arrangement of source scripts? Can I specify the dir_path in both Inputs and Outputs for this component/script?

### Additional details

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the azure.ai.ml component input and output handling, then compare it with the pandas read_csv and to_csv pattern shown in the issue. Determine whether one folder can be declared in both roles when recompute_feature changes the path role, and document the supported behavior or the required example change.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, pandas, python
Domain
cloud, machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.