Skip to content

Commit

Permalink
✅ Fix float type
Browse files Browse the repository at this point in the history
  • Loading branch information
EssamWisam committed Sep 28, 2024
1 parent 3bf0902 commit b2bafd2
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 @@ -22,7 +22,7 @@ function ordinal_encoder_fit(X; featinds)
(Set([Float32(i) for i in 1:length(feat_levels)]) == Set(feat_levels)) && continue
# Compute the dict using the given feature_mapper function
mapping_matrix[i] =
Dict{Any, AbstractFloat}(
Dict{eltype(feat_levels), Float32}(
value => Float32(index) for (index, value) in enumerate(feat_levels)
)
end
Expand Down

0 comments on commit b2bafd2

Please sign in to comment.