-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #844 from mlr-org/dev-compatibility
make sure dev-version of mlr3 is compatible
- Loading branch information
Showing
9 changed files
with
63 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#' @title Housing Data for 506 Census Tracts of Boston | ||
#' | ||
#' @usage NULL | ||
#' @name mlr_tasks_boston_housing | ||
#' @format [`R6Class`][R6::R6Class] object inheriting from [`TaskRegr`][mlr3::TaskRegr]. | ||
#' | ||
#' The [`BostonHousing2`][mlbench::BostonHousing2] dataset | ||
#' containing the corrected data from `r format_bib("freeman_1979")` | ||
#' as provided by the `mlbench` package. See data description there. | ||
#' | ||
NULL | ||
|
||
load_boston_housing = function(id = "boston_housing") { | ||
bh = mlr3misc::load_dataset("BostonHousing2", "mlbench") | ||
bh$medv = NULL | ||
bht = as_task_regr(bh, target = "cmedv", id = id, label = "Boston Housing Prices") | ||
bht$man = "mlr3pipelines::mlr_tasks_boston_housing" | ||
bht$backend$hash = "mlr3::mlr_tasks_boston_housing" | ||
bht | ||
} | ||
|
||
supply_boston_housing = function() { | ||
if (tsk()$has("boston_housing")) return(invisible(NULL)) | ||
tsk()$add("boston_housing", load_boston_housing) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters