Skip to content

Commit

Permalink
🚨 Get rid of ScientificTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
EssamWisam committed Sep 1, 2024
1 parent f7abf07 commit bbe121f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/MLJFlux.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export CUDALibs, CPU1
import Flux
using MLJModelInterface
using MLJModelInterface.ScientificTypesBase
using ScientificTypes: schema, Finite
import Base.==
using ProgressMeter
using CategoricalArrays
Expand Down
2 changes: 1 addition & 1 deletion src/entity_embedding_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Returns the indices of the categorical columns in the table `X`.
function get_cat_inds(X)
# if input is a matrix; conclude no categorical columns
Tables.istable(X) || return Int[]
types = schema(X).scitypes
types = [scitype(Tables.getcolumn(X, name)[1]) for name in Tables.schema(X).names]
cat_inds = findall(x -> x <: Finite, types)
return cat_inds
end
Expand Down

0 comments on commit bbe121f

Please sign in to comment.