Unverified Commit 25d149d8 authored by Nikita Titov's avatar Nikita Titov Committed by GitHub
Browse files

[R-package] fixed R Dataset aliases (#2775)



* fixed R Dataset aliases

* Update R-package/R/aliases.R
Co-Authored-By: default avatarJames Lamb <jaylamb20@gmail.com>

* fix one more typo
Co-authored-by: default avatarJames Lamb <jaylamb20@gmail.com>
parent c315087f
......@@ -18,25 +18,20 @@
, "categorical_column"
, "cat_column"
)
, "seed" = c(
"seed"
, "data_random_seed"
, "feature_fraction_seed"
, "data_random_seed" = c(
"data_random_seed"
, "data_seed"
)
, "enable_bundle" = c(
"enable_bundle"
, "is_endable_bundle"
, "is_enable_bundle"
, "bundle"
)
, "enable_sparse" = c(
"enable_sparse"
, "is_sparse"
, "sparse"
)
, "feature_pre_filter" = "feature_pre_filter"
, "forcedbins_filename" = "forcedbins_filename"
, "group_column" = c(
"group_column"
, "group"
, "group_id"
, "query_column"
, "query"
......@@ -51,14 +46,21 @@
, "ignore_feature"
, "blacklist"
)
, "is_enable_sparse" = c(
"is_enable_sparse"
, "is_sparse"
, "enable_sparse"
, "sparse"
)
, "label_column" = c(
"label_column"
, "label"
)
, "max_bin" = "max_bin"
, "max_bin_by_feature" = "max_bin_by_feature"
, "min_data_in_bin" = "min_data_in_bin"
, "pre_partition" = c(
"pre_parition"
"pre_partition"
, "is_pre_partition"
)
, "two_round" = c(
......
......@@ -53,6 +53,7 @@ test_that(".PARAMETER_ALIASES() returns a named list of character vectors, where
expect_true(is.character(param_aliases[["boosting"]]))
expect_true(is.character(param_aliases[["early_stopping_round"]]))
expect_true(is.character(param_aliases[["num_iterations"]]))
expect_true(is.character(param_aliases[["pre_partition"]]))
expect_true(length(names(param_aliases)) == length(param_aliases))
expect_true(all(sapply(param_aliases, is.character)))
expect_true(length(unique(names(param_aliases))) == length(param_aliases))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment