openml.datasets.check_datasets_active

openml.datasets.check_datasets_active(dataset_ids: list[int], raise_error_if_not_exist: bool = True) dict[int, bool]

Check if the dataset ids provided are active.

Raises an error if a dataset_id in the given list of dataset_ids does not exist on the server and raise_error_if_not_exist is set to True (default).

Parameters:
dataset_idsList[int]

A list of integers representing dataset ids.

raise_error_if_not_existbool (default=True)

Flag that if activated can raise an error, if one or more of the given dataset ids do not exist on the server.

Returns:
dict

A dictionary with items {did: bool}