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

edit_dataset function not working

Open prithagupta opened this issue 1 year ago • 3 comments

Description

The edit_dataset function is also not working:

Steps/Code to Reproduce

Example:

import openml
YOUR_API_KEY = 'REMOVED'
USER_ID = "2086"
openml.config.apikey = YOUR_API_KEY
filtered_datasets = [dataset_id for dataset_id, dataset in datasets.items() if dataset['uploader'] == USER_ID]
for data_id in filtered_datasets:
    new_creator = "Jan Peter Drees and Dennis Funke"  # Replace with the new creator name

    # Update the dataset metadata
    data_id = openml.datasets.edit_dataset(data_id=data_id, creator=new_creator)
    dataset =  openml.datasets.get_dataset(data_id)
    print(dataset.creator)

Expected Results

Jan Peter Drees and Dennis Funke

Actual Results

Jan Drees and Dennis Funke

Versions

Please run the following snippet and paste the output below. Linux-4.15.0-213-generic-x86_64-with-glibc2.17 Python 3.8.12 (default, Oct 12 2021, 13:49:34) [GCC 7.5.0] NumPy 1.22.4 SciPy 1.10.1 Scikit-Learn 1.1.1 OpenML 0.13.1

prithagupta avatar Feb 27 '24 16:02 prithagupta

@eddiebergman @LennartPurucker Should check if this is still a bug in the latest release.

PGijsbers avatar Oct 14 '24 10:10 PGijsbers

Would love to take this one.

staru09 avatar Nov 14 '25 18:11 staru09

Issue is already solved in the latest versions

ishan0803 avatar Nov 15 '25 04:11 ishan0803