From bc805e4fa7c63a77a4f3247d3fc88bed85cb9f8a Mon Sep 17 00:00:00 2001 From: "Anthony D. Blaom" Date: Mon, 30 Sep 2024 09:00:43 +1300 Subject: [PATCH] remove v -> [v...] from output of encoder --- src/encoders.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encoders.jl b/src/encoders.jl index 5085ce0..f396142 100644 --- a/src/encoders.jl +++ b/src/encoders.jl @@ -67,7 +67,7 @@ function ordinal_encoder_transform(X, mapping_matrix) test_levels = levels(col) check_unkown_levels(train_levels, test_levels) level2scalar = mapping_matrix[ind] - new_col = [recode(unwrap.(col), level2scalar...)...] + new_col = recode(unwrap.(col), level2scalar...) push!(new_feats, new_col) else push!(new_feats, col)