Skip to content

fetch metafeatures option in fetch_data #12

Open

Description

@lacava

It would be nice to add an option to fetch feature types from fetch_data.

Activity

  1. rhiever commented on Oct 12, 2017

    @rhiever
    Contributor

    I believe that's captured in #3.

  2. lacava commented on Oct 12, 2017

    @lacava
    CollaboratorAuthor

    not as a criteria though... an actual list of the types of each feature.

  3. rhiever commented on Oct 12, 2017

    @rhiever
    Contributor

    Oh, I see. How would we accomplish that? Scrape from the README?

  4. rrunix commented on Oct 25, 2021

    @rrunix

    Any progress on this? It shouldn't be much work using the metadata file of each dataset. I can create a draft pull request, something like:

    dataset, metadata = fetch_data('adult', return_medadata=True)

    However, I'm not sure what information should be included in the metadata... I can think of three possible options:

    • the whole metadata.yaml parsed into a dictionary
    • a dictionary feature -> feature_type (e.g., {"age": "continuous", "education_type": "categorical", ....})
    • a list of the feature types (e.g., ["continuous", "categorical", ....])
  5. trangdata commented on Oct 27, 2021

    @trangdata
    Collaborator

    Thanks for this note @rrunix. 🙏🏽 🙌🏽 @JDRomano2 would be the contact at this point, but if I may chime in: yes, a PR would be most welcome. My suggestion would be that the argument return_medadata could take 'all' (metadata.yaml parsed into a dictionary), 'features' (dictionary of features), or NA (no metadata).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions