"...git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "0f3d90e7b0afd39733a5c8aefe772425aad764cc"
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 @@ ...@@ -18,25 +18,20 @@
, "categorical_column" , "categorical_column"
, "cat_column" , "cat_column"
) )
, "seed" = c( , "data_random_seed" = c(
"seed" "data_random_seed"
, "data_random_seed" , "data_seed"
, "feature_fraction_seed"
) )
, "enable_bundle" = c( , "enable_bundle" = c(
"enable_bundle" "enable_bundle"
, "is_endable_bundle" , "is_enable_bundle"
, "bundle" , "bundle"
) )
, "enable_sparse" = c(
"enable_sparse"
, "is_sparse"
, "sparse"
)
, "feature_pre_filter" = "feature_pre_filter" , "feature_pre_filter" = "feature_pre_filter"
, "forcedbins_filename" = "forcedbins_filename" , "forcedbins_filename" = "forcedbins_filename"
, "group_column" = c( , "group_column" = c(
"group_column" "group_column"
, "group"
, "group_id" , "group_id"
, "query_column" , "query_column"
, "query" , "query"
...@@ -51,14 +46,21 @@ ...@@ -51,14 +46,21 @@
, "ignore_feature" , "ignore_feature"
, "blacklist" , "blacklist"
) )
, "is_enable_sparse" = c(
"is_enable_sparse"
, "is_sparse"
, "enable_sparse"
, "sparse"
)
, "label_column" = c( , "label_column" = c(
"label_column" "label_column"
, "label" , "label"
) )
, "max_bin" = "max_bin" , "max_bin" = "max_bin"
, "max_bin_by_feature" = "max_bin_by_feature" , "max_bin_by_feature" = "max_bin_by_feature"
, "min_data_in_bin" = "min_data_in_bin"
, "pre_partition" = c( , "pre_partition" = c(
"pre_parition" "pre_partition"
, "is_pre_partition" , "is_pre_partition"
) )
, "two_round" = c( , "two_round" = c(
......
...@@ -53,6 +53,7 @@ test_that(".PARAMETER_ALIASES() returns a named list of character vectors, where ...@@ -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[["boosting"]]))
expect_true(is.character(param_aliases[["early_stopping_round"]])) expect_true(is.character(param_aliases[["early_stopping_round"]]))
expect_true(is.character(param_aliases[["num_iterations"]])) 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(length(names(param_aliases)) == length(param_aliases))
expect_true(all(sapply(param_aliases, is.character))) expect_true(all(sapply(param_aliases, is.character)))
expect_true(length(unique(names(param_aliases))) == length(param_aliases)) 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