Skip to content

Commit

Permalink
refactor: expect_vector => expect_numeric
Browse files Browse the repository at this point in the history
  • Loading branch information
bblodfon committed Nov 18, 2024
1 parent 3bca203 commit d457221
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/testthat/test_ensemble_fselect.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ test_that("efs works", {
expect_character(efsr$man)
expect_data_table(efsr$result, nrows = 4)
expect_list(efsr$result$features, any.missing = FALSE, len = 4)
expect_vector(efsr$result$n_features, size = 4)
expect_vector(efsr$result$classif.ce, size = 4)
expect_vector(efsr$result$classif.ce_inner, size = 4)
expect_numeric(efsr$result$n_features, len = 4)
expect_numeric(efsr$result$classif.ce, len = 4)
expect_numeric(efsr$result$classif.ce_inner, len = 4)
expect_benchmark_result(efsr$benchmark_result)
expect_equal(efsr$measure, "classif.ce")
expect_true(efsr$minimize) # classification error
Expand Down Expand Up @@ -89,9 +89,9 @@ test_that("efs works with rfe", {
expect_character(efsr$man)
expect_data_table(efsr$result, nrows = 4)
expect_list(efsr$result$features, any.missing = FALSE, len = 4)
expect_vector(efsr$result$n_features, size = 4)
expect_vector(efsr$result$classif.ce_inner, size = 4)
expect_vector(efsr$result$classif.acc, size = 4)
expect_numeric(efsr$result$n_features, len = 4)
expect_numeric(efsr$result$classif.ce_inner, len = 4)
expect_numeric(efsr$result$classif.acc, len = 4)
expect_list(efsr$result$importance, any.missing = FALSE, len = 4)
expect_benchmark_result(efsr$benchmark_result)
expect_equal(efsr$measure, "classif.acc")
Expand Down

0 comments on commit d457221

Please sign in to comment.