openml / openml-python

Python module to interface with OpenML

Home Page:https://openml.github.io/openml-python/main/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

edit_dataset function not working

prithagupta opened this issue · comments

Description

The edit_dataset function is also not working:

Steps/Code to Reproduce

Example:

import openml
YOUR_API_KEY = '2e5bf0586e06bc552a66c263cbdbd52f'
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