Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edit_dataset function not working #1331

Open
prithagupta opened this issue Feb 27, 2024 · 1 comment
Open

edit_dataset function not working #1331

prithagupta opened this issue Feb 27, 2024 · 1 comment
Labels
Milestone

Comments

@prithagupta
Copy link

prithagupta commented Feb 27, 2024

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

@PGijsbers PGijsbers added the bug label Feb 29, 2024
@PGijsbers
Copy link
Collaborator

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

@PGijsbers PGijsbers added this to the 0.16.0 milestone Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants