Skip to content

melodie-swtich: Column order for tune_results$.predictions changed #244

@hfrick

Description

@hfrick

With https://github.com/tidymodels/tune/tree/melodie-switch:

The .predictions data frame of a tune_results object has a different column order now. It affects censored regression.

  • tests/testthat/test-survival-tune-grid.R
  • tests/testthat/test-survival-tune-bayes.R (first 3 tests)
  • tests/testthat/test-survival-tune-sa.R
> expect_equal(
+     names(bayes_static_res$.predictions[[1]]),
+     c(".pred_time", ".row", "tree_depth", "event_time", ".config")
+   )
Error:
! names(bayes_static_res$.predictions[[1]]) (`actual`) not equal to c(".pred_time", ".row", "tree_depth", "event_time", ".config") (`expected`).

`actual`:   ".pred_time" ".row" "event_time" "tree_depth" ".config"
`expected`: ".pred_time" ".row" "tree_depth" "event_time" ".config"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions