Skip to content

Commit

Permalink
unwrap after recoding
Browse files Browse the repository at this point in the history
  • Loading branch information
tiemvanderdeure committed Nov 1, 2024
1 parent 3315da4 commit 268afad
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(col, level2scalar...)
new_col = unwrap.(recode(col, level2scalar...))
push!(new_feats, new_col)
else
push!(new_feats, col)
Expand Down

0 comments on commit 268afad

Please sign in to comment.