openml/datasets/dataset.py
def _to_dict(self) -> "OrderedDict[str, OrderedDict]":
        """ Creates a dictionary representation of self. """
        props = [
            "id",
            "name",
            "version",
            "description",
            "format",
            "creator",
            "contributor",
            "collection_date",
            "upload_date",
            "language",
            "licence",
            "url",
            "default_target_attribute",
            "row_id_attribute",
            "ignore_attribute",
            "version_label",
            "citation",
            "tag",
            "visibility",
            "original_data_url",
            "paper_url",
            "update_comment",
            "md5_checksum",
        ]

        data_container = OrderedDict()  # type: 'OrderedDict[str, OrderedDict]'
        data_dict = OrderedDict([("@xmlns:oml", "http://openml.org/openml")])
        data_container["oml:data_set_description"] = data_dict

        for prop in props:
            content = getattr(self, prop, None)
            if content is not None:
                data_dict["oml:" + prop] = content

        return data_container
 Creates a dictionary representation of self. 
Creates a dictionary representation of self.
Creates a dictionary representation of self .
def _to_dict(self) -> "OrderedDict[str, OrderedDict]":
        props = [
            "id",
            "name",
            "version",
            "description",
            "format",
            "creator",
            "contributor",
            "collection_date",
            "upload_date",
            "language",
            "licence",
            "url",
            "default_target_attribute",
            "row_id_attribute",
            "ignore_attribute",
            "version_label",
            "citation",
            "tag",
            "visibility",
            "original_data_url",
            "paper_url",
            "update_comment",
            "md5_checksum",
        ]
        data_container = OrderedDict()  
        data_dict = OrderedDict([("@xmlns:oml", "http://openml.org/openml")])
        data_container["oml:data_set_description"] = data_dict
        for prop in props:
            content = getattr(self, prop, None)
            if content is not None:
                data_dict["oml:" + prop] = content
        return data_container
def _to_dict ( self ) -> "OrderedDict[str, OrderedDict]" : props = [ "id" , "name" , "version" , "description" , "format" , "creator" , "contributor" , "collection_date" , "upload_date" , "language" , "licence" , "url" , "default_target_attribute" , "row_id_attribute" , "ignore_attribute" , "version_label" , "citation" , "tag" , "visibility" , "original_data_url" , "paper_url" , "update_comment" , "md5_checksum" , ] data_container = OrderedDict ( ) data_dict = OrderedDict ( [ ( "@xmlns:oml" , "http://openml.org/openml" ) ] ) data_container [ "oml:data_set_description" ] = data_dict for prop in props : content = getattr ( self , prop , None ) if content is not None : data_dict [ "oml:" + prop ] = content return data_container
Creates a dictionary representation of self.
Creates a dictionary representation of self .
""" Creates a dictionary representation of self. """ # type: 'OrderedDict[str, OrderedDict]'
self