Skip to content

Timings in crossvalidation #7639

Closed

Description

@aplavin

Description

Currently when doing cross-validation and verbose set, it prints the time for each fold. However, the time printed is just the score time, not score + fit as one would expect: see here. After changing logger.short_format_time(score_time) to logger.short_format_time(fit_time + score_time) it prints the total time correctly, as expected.

Note that in previous version it printed total time correctly, even through the variable still was called scoring_time.

Activity

  1. jnothman commented on Oct 11, 2016

    @jnothman
    Member

    Thanks. Oversight of mine in reviewing, sorry.

  2. jnothman commented on Oct 11, 2016

    @jnothman
    Member

    PR welcome

  3. added this to the 0.18.1 milestone on Oct 11, 2016
  4. added
    Easy
    on Oct 11, 2016
  5. jnothman commented on Oct 11, 2016

    @jnothman
    Member

    maybe we should test fit_time > score_time usually...

  6. srivatsan-ramesh commented on Oct 11, 2016

    @srivatsan-ramesh
    Contributor

    I can make a PR, I have to just change it to fit_time + score_time right?

  7. raghavrv commented on Oct 11, 2016

    @raghavrv
    Member

    maybe we should test fit_time > score_time usually...

    _fit_and_score returns the fit time and score time separately now, but the verbose message was not updated to print the fit_time + score_time. Sorry for that :/

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions