Skip to content

Commit

Permalink
ensure ordinal encoder returns concrete type
Browse files Browse the repository at this point in the history
  • Loading branch information
ablaom committed Sep 26, 2024
1 parent 804c0c5 commit 87c8f66
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 87c8f66

Please sign in to comment.