diff --git a/Project.toml b/Project.toml index 9ac34ecd..8875a41d 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "MLJBase" uuid = "a7f614a8-145f-11e9-1d2a-a57a1082229d" authors = ["Anthony D. Blaom "] -version = "1.0.1" +version = "1.1.0" [deps] CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597" diff --git a/src/machines.jl b/src/machines.jl index 2023f481..a1a3afc5 100644 --- a/src/machines.jl +++ b/src/machines.jl @@ -218,8 +218,9 @@ function check(model::Model, scitype_check_level, args...) return is_okay end - # we use `elscitype` here instead of `scitype` because the data is - # wrapped in source nodes: + # Sometimes (X, ) is a table, when X is a table, which leads to scitype((X,)) = + # Table(...) where `Tuple{scitype(X)}` is wanted. Also, we use `elscitype` here + # instead of `scitype` because the data is wrapped in source nodes; S = Tuple{elscitype.(args)...} if !(S <: F) is_okay = false