Skip to content

Commit

Permalink
🛑 Stop forcing abstract type
Browse files Browse the repository at this point in the history
  • Loading branch information
EssamWisam committed Sep 27, 2024
1 parent c57870b commit 3ecf348
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(
value => Float32(index) for (index, value) in enumerate(feat_levels)
)
end
Expand Down

0 comments on commit 3ecf348

Please sign in to comment.