Skip to content
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] OS-CNN for time series classification #5828

Open
james-large opened this issue Mar 2, 2020 · 8 comments · May be fixed by sktime/sktime-dl#111
Open

[ENH] OS-CNN for time series classification #5828

james-large opened this issue Mar 2, 2020 · 8 comments · May be fixed by sktime/sktime-dl#111
Labels
good first issue Good for newcomers implementing algorithms Implementing algorithms, estimators, objects native to sktime module:classification classification module: time series classification

Comments

@james-large
Copy link

james-large commented Mar 2, 2020

update 2024: as sktime now handles backends on estimator level, porting the code with a pytorch dependency is feasible. I.e., a tensorflow rewrite is no longer necessary, as in 2020 in sktime-dl.


Original code is in pytorch

Paper: https://arxiv.org/pdf/2002.10061.pdf

Code: https://github.com/Wensi-Tang/OS-CNN/

@james-large james-large added enhancement Adding new functionality implementing algorithms Implementing algorithms, estimators, objects native to sktime and removed enhancement Adding new functionality labels Mar 2, 2020
@tabhishek432
Copy link

Hello @TonyBagnall Sir, Can I be assigned this issue to implement

@tabhishek432 tabhishek432 linked a pull request Jul 21, 2021 that will close this issue
@fkiraly fkiraly added the good first issue Good for newcomers label Jan 24, 2024
@fkiraly fkiraly transferred this issue from sktime/sktime-dl Jan 24, 2024
@fkiraly fkiraly added the module:classification classification module: time series classification label Jan 24, 2024
@SABARNO-PRAMANICK
Copy link
Contributor

hey, has this issue been fixed?

@fkiraly
Copy link
Collaborator

fkiraly commented Dec 13, 2024

No, @SABARNO-PRAMANICK, the estimator has not been added yet.

I also note, the linked repository does not have a license, so in-principle it has strong copyright on it. We should contact the original author, @Wensi-Tang, whether they are willing to release their code under a permissive license, for integration in sktime.

@fkiraly fkiraly changed the title OS-CNN Implementation [ENH] OS-CNN for time series classification Dec 13, 2024
@SABARNO-PRAMANICK
Copy link
Contributor

SABARNO-PRAMANICK commented Dec 14, 2024

@fkiraly , since the issue is connected to licensing, can I contribute to this?

@fkiraly
Copy link
Collaborator

fkiraly commented Dec 19, 2024

@SABARNO-PRAMANICK, there is existing code here, this looks like a reimplementation: sktime/sktime-dl#111

You could start with the Pr and move it to sktime.

@SABARNO-PRAMANICK
Copy link
Contributor

@SABARNO-PRAMANICK, there is existing code here, this looks like a reimplementation: sktime/sktime-dl#111

You could start with the Pr and move it to sktime.

Hi @fkiraly , I'm working on it, but just to be sure, do you want me to update the already existing code for OS-CNN from sktime-dl into the sktime repo?

  1. I would need to create multiple .py files in the sktime repo.

  2. Files changes including new files would be:
    image

  3. There are other file dependencies required for this pr such as :
    sktime_dl/regression/_regressor.py
    sktime_dl/classification/_classifier
    sktime_dl/networks/_network

SABARNO-PRAMANICK added a commit to SABARNO-PRAMANICK/sktime that referenced this issue Dec 21, 2024
@fkiraly
Copy link
Collaborator

fkiraly commented Dec 21, 2024

Yes, @SABARNO-PRAMANICK, the way would be to move the files - however there is already BaseClassifier and BaseRegressor in sktime, you could look at how the other tensorflow based estimators are handled.

Regarding the utils, what would we need in sktime?

@SABARNO-PRAMANICK
Copy link
Contributor

Yes, @SABARNO-PRAMANICK, the way would be to move the files - however there is already BaseClassifier and BaseRegressor in sktime, you could look at how the other tensorflow based estimators are handled.

Regarding the utils, what would we need in sktime?

Thank you for the instructions @fkiraly , I need help with understanding a few things so I'll comment it here as well as in the discord thread for better comms;

  1. As for your instructions, should I utilise the already developed BaseClassifier and BaseRegressor in the new files for OS-CNN instead of the BaseDeepClassifier and BaseDeepRegressor ?
  2. What should be done about the missing dependency on : from sktime_dl.networks._network import BaseDeepNetwork ?
  3. Regarding the utils ;
    from sktime_dl.utils import check_and_clean_data
    from sktime_dl.utils import check_is_fitted
    from sktime_dl.utils import save_trained_model

These are the utils files required in the utils.
Also, could you please refer me some other tensorflow based model that I can take reference from?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers implementing algorithms Implementing algorithms, estimators, objects native to sktime module:classification classification module: time series classification
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants