openml-python icon indicating copy to clipboard operation
openml-python copied to clipboard

Edit (some) fields of flow after upload?

Open PGijsbers opened this issue 6 years ago • 5 comments

I noticed I have some uploaded flows for which I would like to add a custom_name. I'm currently unable to do so through the Python API (or at all). This gives rise to the following questions:

  • Should we support filling in the custom_name field later if left empty initially?
  • Are there other attributes for which this makes sense?
  • Should we support editing custom_name (or other fields) after uploading?
  • Should we look at other entities as well to see what we might want to be editable?

Of course it is important to preserve consistency. Especially if other users start using your flow, you don't want it to suddenly represent something else.

Personally I feel that providing a custom_name after not having one at upload time is fine. I would say editing custom_name is OK too, considering we auto-generate them with the scikit-learn extension for some flows (and if that goes wrong, editing is probably preferred?).

Other fields that seem candidates for editing to me are: tags, language and binary_url (probably not md5/format).

I'm not sure to which extend this is a design issue or just openml-python.

Paging @mfeurer @janvanrijn @joaquinvanschoren

PGijsbers avatar Jan 28 '20 15:01 PGijsbers

This requires a new REST API endpoint.

We then need to discuss for which fields we want to allow editing. For inspiration, see the data edit pull request by Sahi: https://github.com/openml/OpenML/pull/1044

joaquinvanschoren avatar Jun 22 '20 14:06 joaquinvanschoren

PR related to that data edit change for openml-python: #935

PGijsbers avatar Jul 23 '20 11:07 PGijsbers

Hey, is this issue resolved? The two PRs above are both merged

mfeurer avatar Jun 15 '21 06:06 mfeurer

No. The changes were only made to allow edits to dataset entities. OpenML Python still does not support changing the flows as far as I can tell (nor does the Rest API, I think).

PGijsbers avatar Jul 02 '21 12:07 PGijsbers

Hello everyone,

I've opened Pull Request #1527 (linked above) to address this issue by implementing the client-side functionality for editing flow metadata.

The new function, openml.flows.edit_flow, allows authenticated users to update the following non-critical fields on an existing flow:

  • custom_name
  • tags
  • language
  • description

This implementation relies on the existence of the corresponding flow/edit REST API endpoint.

I believe this completes the work needed on the openml-python side to close Issue #896. Could a maintainer please review PR #1527?

Thanks!

Prachi194agrawal avatar Dec 09 '25 08:12 Prachi194agrawal