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

Open
#244 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
r
Domain
testing-qa

Research direction

Review the listed survival tests: tests/testthat/test-survival-tune-grid.R, test-survival-tune-bayes.R, and test-survival-tune-sa.R. Start with the first three Bayesian tests and compare the expected names of each .predictions data frame with the reported actual order. The work is done when the affected tests consistently pass with the intended column order.

Written by the indexing model from the issue text.

Description

upkeep

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"
Dominant language
R
Stars
23
Forks
0
Avg merge
55m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tidymodels/extratests

All issues in tidymodels/extratests

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.