Nothing
test_that("FilterInformationGain handles features with only missings gracefully", {
data = tsk("mtcars")$data()
data[, wt := NA]
task = as_task_regr(data, target = "mpg")
scores = flt("information_gain")$calculate(task)$scores
expect_numeric(scores, any.missing = FALSE)
expect_lte(scores["wt"], 1e-8)
})
test_that("FilterInformationGain handles features with only missings gracefully", {
data = tsk("iris")$data()
data[, Sepal.Length := NA]
task = as_task_classif(data, target = "Species")
scores = flt("information_gain")$calculate(task)$scores
expect_numeric(scores, any.missing = FALSE)
expect_lte(scores["Sepal.Length"], 1e-8)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.