Skip to content

Commit

Permalink
remove v -> [v...] from output of encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
ablaom committed Sep 29, 2024
1 parent b2bafd2 commit bc805e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/encoders.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bc805e4

Please sign in to comment.