Skip to content

don't use nextafter to get eps #11608

Closed
Closed

Description

@amueller

We're using np.nextafter(0, 1) to get an epsilon in a couple of places (git grep nextafter). We should be using dtype.eps, I think.

Activity

  1. added
    Easy
    on Jul 17, 2018
  2. timfong1015 commented on Jul 23, 2018

    @timfong1015

    I am a new contributor (just been a scikit-learn user so far) and would be happy to help with this problem.

  3. amueller commented on Jul 23, 2018

    @amueller
    MemberAuthor

    @timfong1015 I already posted an issue in #11611.

  4. timfong1015 commented on Jul 24, 2018

    @timfong1015

    Sorry for the bother. I didn't understand what was happening with #11611.

  5. qinhanmin2014 commented on Jul 25, 2018

    @qinhanmin2014
    Member

    @timfong1015 We replaced np.nextafter(0, 1) with dtype.eps and solved the issue.

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

    Easyhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions