-
Notifications
You must be signed in to change notification settings - Fork 51
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
[ENH] Syncing datatypes module _check.py
and _convert.py
with sktime
#432
Conversation
skpro/datatypes/_convert.py
Outdated
f"which is {as_scitype}" | ||
) | ||
to_type = same_scitype_mtypes[0] | ||
# # if to_type is a list, we do the following: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this commented out? Can this not be entirely removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
impacts both skpro
and sktime
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the comment out code was not used at all in the sktime _convert.py
file. will remove it. I only commented it out and left it there to see if it would break anything if it was commented
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks!
Added a quick review, and it seems there are a few minor things that might be worth changing both in sktime
and skpro
.
Also, question: are there no tests accompanying these changes?
_check.py
and _convert.py
to match sktime
functionality_check.py
and _convert.py
with sktime
…_mtype` function (#6835) Also added a input checker for `to_type` inside the `convert` function inside `_convert`. Relates to sktime/skpro#432
As per requested by @fkiraly, we are updating the files
_check.py
and_convert.py
to match functionality with thesktime
library. Note that_common.py
is exactly the same for both libraries, so no changes were needed.This pr also should allow list of strings to be accepted as valid
X_inner_mtype
andy_inner_mtype
.@fkiraly Could you please do a review to ensure that the code is correct?
Thanks!