From 3ecf348dac53f24b14406a373c34719bf801b0ee Mon Sep 17 00:00:00 2001 From: Essam Date: Thu, 26 Sep 2024 19:19:36 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=91=20=20Stop=20forcing=20abstract=20t?= =?UTF-8?q?ype?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/encoders.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encoders.jl b/src/encoders.jl index 4d00d2d..60aac91 100644 --- a/src/encoders.jl +++ b/src/encoders.jl @@ -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