File: test_base_dropFeatures.R

package info (click to toggle)
r-cran-mlr 2.18.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 7,088 kB
  • sloc: ansic: 65; sh: 13; makefile: 2
file content (7 lines) | stat: -rw-r--r-- 204 bytes parent folder | download
1
2
3
4
5
6
7
context("dropFeatures")

test_that("dropFeatures", {
  fns = getTaskFeatureNames(multiclass.task)
  task2 = dropFeatures(multiclass.task, fns[1])
  expect_equal(length(getTaskFeatureNames(task2)), 3L)
})