Skip to content

Getting non-encoded dataset #408

Closed

Description

@joaquinvanschoren

If I import, for instance, the adult dataset: https://www.openml.org/d/1590
get_data automatically encodes categorical features:

dataset = oml.datasets.get_dataset(1590) # Adult dataset
X, y, attribute_names = dataset.get_data(target=dataset.default_target_attribute, 
    return_attribute_names=True)
data = pd.DataFrame(X, columns=attribute_names)
display(data.head())

->'education' is encoded as numbers

Is there a way to get the original non-encoded features, so I can look at them with pandas?

Thanks!

Activity

  1. mfeurer commented on Feb 26, 2018

    @mfeurer
    Collaborator

    No, there isn't. I wrote that part before knowing how nicely pandas could do the job here. That would be a great feature! Related to #364 and #257.

  2. mfeurer commented on Mar 7, 2019

    @mfeurer
    Collaborator

    Should be possible with the latest merge of #548. Please reopen if this is not the case.

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