-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tuple/table ambiguity #182
Comments
cc @pazzo83 |
Ah so this is why my tests were failing? |
No, I now think that the MLJBase PR is (by accident?) actually avoiding this issue. See JuliaAI/MLJBase.jl#731 (comment) . Still this issue could turn up unexpectedly elsewhere. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The scitype of a tuple is intended to be the
Tuple
of the element scitypes. For example:By this logic, if I create a 1-tuple with a table
t
as it's single element, then this tuple should haveTuple{scitype(t)}
. But this isn't always the case:The problem is that
(t, )
is also a table (with one row):This is pretty awful 😢 . For example it makes it tricky, in MLJBase, to use the
fit_data_scitype
of models, to check compatibility of a model with data, as in JuliaAI/MLJBase.jl#731 . That is, the testscitype(data) <: fit_data_scitype(model)
wheredata
is the tuple of data arguments, is not reliable.The text was updated successfully, but these errors were encountered: