-
Notifications
You must be signed in to change notification settings - Fork 122
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
[BUG] Fix LearningShapeletClassifier
non-standard methods
#1387
Comments
Not sure. We were having failures such as https://github.com/aeon-toolkit/aeon/actions/runs/8560508379/job/23459706210 before. I think some tests check for the presence of methods such as transform. Dont really like having these methods in a classifier either way. |
just looking at this issue. imo these two methods (transform and locate) should only be callable after fit, and should return stored data, or just not have them in classifier and wrap it as a transformer |
I am still looking at the code to understand the test data, scenarios and the flow. When I have more clarity, hopefully I will be able to come back on this issue. |
@nileenagp I would not put too much effort into understanding the test scenarios, we are reworking it to make it simpler. I think we can resolve this issue quite simply as described above, I'll have a go and see what you think |
Thank you for sharing the details. I checked the changes in the PR and understand what you explained here. By looking at the code and the LearningShapelets library, as per my understanding we should still return the shapelet transform vector in the get_transform method. Let me know if I got that wrong.. I ran the new test_ls.py that you have created with above change and logging, it looks to be returning the shapelet transform vector as expected. |
Just for my understanding, should we not have a PR to call the self.clf_.transform(self.trasformed_data_) to transform the shapelet, before closing the issue? |
Hey @nileenagp, sorry I'm not sure that I understand your issue, do you mean that you think we should expose a |
Describe the bug
The non-standard methods in
LearningShapeletClassifier
were breaking the CI, likely due to the naming oftransform
. These have been commented out for now.They should be included again and some testing should be done to figure out if this is why it breaks.
Steps/Code to reproduce the bug
N/A
Expected results
These methods can be included without CI breakage.
Actual results
CI breaks.
i.e. https://github.com/aeon-toolkit/aeon/actions/runs/8560508379/job/23459706210
Versions
No response
The text was updated successfully, but these errors were encountered: