openml/datasets/functions.py
def _create_dataset_from_description(
    description: Dict[str, str],
    features_file: str,
    qualities_file: str,
    arff_file: str = None,
    parquet_file: str = None,
    cache_format: str = "pickle",
) -> OpenMLDataset:
    """Create a dataset object from a description dict.

    Parameters
    ----------
    description : dict
        Description of a dataset in xml dict.
    featuresfile : str
        Path of the dataset features as xml file.
    qualities : list
        Path of the dataset qualities as xml file.
    arff_file : string, optional
        Path of dataset ARFF file.
    parquet_file : string, optional
        Path of dataset Parquet file.
    cache_format: string, optional
        Caching option for datasets (feather/pickle)

    Returns
    -------
    dataset : dataset object
        Dataset object from dict and ARFF.
    """
    return OpenMLDataset(
        description["oml:name"],
        description.get("oml:description"),
        data_format=description["oml:format"],
        dataset_id=description["oml:id"],
        version=description["oml:version"],
        creator=description.get("oml:creator"),
        contributor=description.get("oml:contributor"),
        collection_date=description.get("oml:collection_date"),
        upload_date=description.get("oml:upload_date"),
        language=description.get("oml:language"),
        licence=description.get("oml:licence"),
        url=description["oml:url"],
        default_target_attribute=description.get("oml:default_target_attribute"),
        row_id_attribute=description.get("oml:row_id_attribute"),
        ignore_attribute=description.get("oml:ignore_attribute"),
        version_label=description.get("oml:version_label"),
        citation=description.get("oml:citation"),
        tag=description.get("oml:tag"),
        visibility=description.get("oml:visibility"),
        original_data_url=description.get("oml:original_data_url"),
        paper_url=description.get("oml:paper_url"),
        update_comment=description.get("oml:update_comment"),
        md5_checksum=description.get("oml:md5_checksum"),
        data_file=arff_file,
        cache_format=cache_format,
        features_file=features_file,
        qualities_file=qualities_file,
        minio_url=description.get("oml:minio_url"),
        parquet_file=parquet_file,
    )
Create a dataset object from a description dict.

    Parameters
    ----------
    description : dict
        Description of a dataset in xml dict.
    featuresfile : str
        Path of the dataset features as xml file.
    qualities : list
        Path of the dataset qualities as xml file.
    arff_file : string, optional
        Path of dataset ARFF file.
    parquet_file : string, optional
        Path of dataset Parquet file.
    cache_format: string, optional
        Caching option for datasets (feather/pickle)

    Returns
    -------
    dataset : dataset object
        Dataset object from dict and ARFF.
    
Create a dataset object from a description dict.
Parameters

description : dict
Description of a dataset in xml dict.
featuresfile : str
Path of the dataset features as xml file.
qualities : list
Path of the dataset qualities as xml file.
arff_file : string, optional
Path of dataset ARFF file.
parquet_file : string, optional
Path of dataset Parquet file.
cache_format: string, optional
Caching option for datasets (feather/pickle)

Returns

dataset : dataset object
Dataset object from dict and ARFF.
Create a dataset object from a description dict . Parameters description : dict Description of a dataset in xml dict . featuresfile : str Path of the dataset features as xml file . qualities : list Path of the dataset qualities as xml file . arff_file : string optional Path of dataset ARFF file . parquet_file : string optional Path of dataset Parquet file . cache_format : string optional Caching option for datasets ( feather / pickle ) Returns dataset : dataset object Dataset object from dict and ARFF .
def _create_dataset_from_description(
    description: Dict[str, str],
    features_file: str,
    qualities_file: str,
    arff_file: str = None,
    parquet_file: str = None,
    cache_format: str = "pickle",
) -> OpenMLDataset:
    return OpenMLDataset(
        description["oml:name"],
        description.get("oml:description"),
        data_format=description["oml:format"],
        dataset_id=description["oml:id"],
        version=description["oml:version"],
        creator=description.get("oml:creator"),
        contributor=description.get("oml:contributor"),
        collection_date=description.get("oml:collection_date"),
        upload_date=description.get("oml:upload_date"),
        language=description.get("oml:language"),
        licence=description.get("oml:licence"),
        url=description["oml:url"],
        default_target_attribute=description.get("oml:default_target_attribute"),
        row_id_attribute=description.get("oml:row_id_attribute"),
        ignore_attribute=description.get("oml:ignore_attribute"),
        version_label=description.get("oml:version_label"),
        citation=description.get("oml:citation"),
        tag=description.get("oml:tag"),
        visibility=description.get("oml:visibility"),
        original_data_url=description.get("oml:original_data_url"),
        paper_url=description.get("oml:paper_url"),
        update_comment=description.get("oml:update_comment"),
        md5_checksum=description.get("oml:md5_checksum"),
        data_file=arff_file,
        cache_format=cache_format,
        features_file=features_file,
        qualities_file=qualities_file,
        minio_url=description.get("oml:minio_url"),
        parquet_file=parquet_file,
    )
def _create_dataset_from_description ( description : Dict [ str , str ] , features_file : str , qualities_file : str , arff_file : str = None , parquet_file : str = None , cache_format : str = "pickle" , ) -> OpenMLDataset : return OpenMLDataset ( description [ "oml:name" ] , description . get ( "oml:description" ) , data_format = description [ "oml:format" ] , dataset_id = description [ "oml:id" ] , version = description [ "oml:version" ] , creator = description . get ( "oml:creator" ) , contributor = description . get ( "oml:contributor" ) , collection_date = description . get ( "oml:collection_date" ) , upload_date = description . get ( "oml:upload_date" ) , language = description . get ( "oml:language" ) , licence = description . get ( "oml:licence" ) , url = description [ "oml:url" ] , default_target_attribute = description . get ( "oml:default_target_attribute" ) , row_id_attribute = description . get ( "oml:row_id_attribute" ) , ignore_attribute = description . get ( "oml:ignore_attribute" ) , version_label = description . get ( "oml:version_label" ) , citation = description . get ( "oml:citation" ) , tag = description . get ( "oml:tag" ) , visibility = description . get ( "oml:visibility" ) , original_data_url = description . get ( "oml:original_data_url" ) , paper_url = description . get ( "oml:paper_url" ) , update_comment = description . get ( "oml:update_comment" ) , md5_checksum = description . get ( "oml:md5_checksum" ) , data_file = arff_file , cache_format = cache_format , features_file = features_file , qualities_file = qualities_file , minio_url = description . get ( "oml:minio_url" ) , parquet_file = parquet_file , )
Create a dataset object from a description dict.
Create a dataset object from a description dict .
"""Create a dataset object from a description dict.

    Parameters
    ----------
    description : dict
        Description of a dataset in xml dict.
    featuresfile : str
        Path of the dataset features as xml file.
    qualities : list
        Path of the dataset qualities as xml file.
    arff_file : string, optional
        Path of dataset ARFF file.
    parquet_file : string, optional
        Path of dataset Parquet file.
    cache_format: string, optional
        Caching option for datasets (feather/pickle)

    Returns
    -------
    dataset : dataset object
        Dataset object from dict and ARFF.
    """
description
Dict[str, str]
features_file
str
qualities_file
str
arff_file
str
parquet_file
str
cache_format
str