-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#' @title House Sales in Ames, Iowa | ||
#' | ||
#' @name ames_housing | ||
#' @format [R6::R6Class] inheriting from [TaskRegr]. | ||
#' @aliases mlr_tasks_ames_housing | ||
#' | ||
#' @description | ||
#' A regression task to predict house sale prices for Ames, Iowa. | ||
#' This is the processed version from the [AmesHousing::make_ames()] package. | ||
#' | ||
#' Contains 80 features and 2930 observations. | ||
#' Target column is `"Sale_Price"`. | ||
#' | ||
#' @section Construction: | ||
#' ``` | ||
#' mlr_tasks$get("ames_housing") | ||
#' tsk("ames_housing") | ||
#' ``` | ||
#' | ||
#' @section Meta Information: | ||
#' `r rd_info(tsk("ames_housing"))` | ||
#' | ||
#' @template seealso_task | ||
NULL | ||
|
||
load_task_ames_housing = function(id = "ames_housing") { | ||
b = as_data_backend(readRDS(system.file("extdata", "ames_housing.rds", package = "mlr3"))) | ||
task = mlr3::TaskRegr$new(id, b, target = "Sale_Price", label = "Ames House Sales") | ||
b$hash = task$man = "mlr3::mlr_tasks_ames_housing" | ||
task | ||
} | ||
|
||
#' @include mlr_tasks.R | ||
mlr_tasks$add("ames_housing", load_task_ames_housing) | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
root = rprojroot::find_package_root_file() | ||
data = setDT(AmesHousing::make_ames()) | ||
saveRDS(data, file = file.path(root, "inst", "extdata", "ames_housing.rds"), version = 2L) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.