Skip to content

get_data rounds off REAL values #197

Closed

Description

@joaquinvanschoren

If you run this:

liver = oml.datasets.get_dataset(8) # Download Liver-disorders data
X, y = liver.get_data(target=liver.default_target_attribute);
y

You'll see that all targets y are integers.
The actual target is a REAL number, and gets rounded!

Activity

  1. mfeurer commented on Feb 23, 2017

    @mfeurer
    Collaborator

    Try X, y = liver.get_data(target=liver.default_target_attribute, target_dtype=float). In the long run I suggest that you use tasks in order to retrieve the datasets you're looking at. Tasks usually handle this themselves.

  2. joaquinvanschoren commented on Feb 25, 2017

    @joaquinvanschoren
    ContributorAuthor

    Thanks! Would be good to add that to the documentation, though?

  3. mfeurer commented on Oct 9, 2017

    @mfeurer
    Collaborator

    How about making this function private, and only exposing this correctly via the task object? People should rarely have to access raw data without a task.

    Thoughts @joaquinvanschoren @janvanrijn @amueller

  4. janvanrijn commented on Oct 9, 2017

    @janvanrijn
    Member
  5. added a commit that references this issue on Oct 12, 2017
    886a217
  6. amueller commented on Oct 13, 2017

    @amueller
    Contributor

    closed by #352

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions