Skip to content

metrics.mutual_info_score hangs when given real vectors #4976

Closed

Description

@poldrack

I accidentally passed two real vectors to this function, and it ended up completely hanging my mac, requiring several hard reboots until I discovered the issue (version 0.16.1, mac os x 10.10). Should probably validate the inputs to prevent this.

Activity

  1. amueller commented on Jul 30, 2015

    @amueller
    Member

    I agree. We should actually do this for clustering and classification metrics and also for all classifiers using type_or_target.

  2. amueller commented on Jul 30, 2015

    @amueller
    Member

    See also #5060

  3. added
    Easy
    on Jul 30, 2015
  4. amueller commented on Jul 30, 2015

    @amueller
    Member

    Fixing this occurrence is pretty easy, but I think we should fix it "once and for all".
    For the metrics there are also common tests, where we should check this.

  5. jayflo commented on Aug 5, 2015

    @jayflo

    If this is not included in the fixes for #5084, I will take a look after the pull requests are merged.

  6. tomMoral commented on Oct 19, 2015

    @tomMoral
    Contributor

    I will look into it today.

  7. GaelVaroquaux commented on Oct 19, 2015

    @GaelVaroquaux
    Member

    Fixed by #5445

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

    BugEasy

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions