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

Add Cosine, ACF and PACF transformers #509

Merged
merged 23 commits into from
Dec 22, 2020
Merged

Add Cosine, ACF and PACF transformers #509

merged 23 commits into from
Dec 22, 2020

Conversation

afzal442
Copy link
Contributor

@afzal442 afzal442 commented Nov 27, 2020

Reference Issues/PRs

Fixes #483

What does this implement/fix? Explain your changes.

Added two transformations.

Does your contribution introduce a new dependency? If yes, which one?

No

PR checklist

  • I've added myself to the list of contributors.
  • Optionally, I've updated sktime's CODEOWNERS to receive notifications about future changes to these files.
  • I've added unit tests and made sure they pass locally.
  • I've added the transformers series to the file.
  • I've updated the existing file.

@afzal442 afzal442 changed the title Dev2 Added two new files containing series-to-series transformer classes Nov 27, 2020
Copy link
Contributor

@mloning mloning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Afzal-Ind - thanks for submitting the PR! I had a quick look, the overall structure looks good, I left two comments in the code.

Next thing to do is to write unit tests for the transformers you added. For an example, check out the unit tests for the boxcox transformer

sktime/transformers/sktime.transformers.series.acf.py Outdated Show resolved Hide resolved
sktime/transformers/sktime.transformers.series.acf.py Outdated Show resolved Hide resolved
@mloning
Copy link
Contributor

mloning commented Nov 27, 2020

There were some merge conflicts, but I resolved them with the latest commit. To avoid them, you need to make sure to sync your fork before you check out a new branch,

@afzal442
Copy link
Contributor Author

There were some merge conflicts, but I resolved them with the latest commit.

Hi @mloning. Thanks a lot... I will take care of this.

@mloning
Copy link
Contributor

mloning commented Nov 28, 2020

Hi @Afzal-Ind looks much better now - next step is to write some simple unit tests as described above!

@afzal442 afzal442 mentioned this pull request Nov 30, 2020
5 tasks
@mloning
Copy link
Contributor

mloning commented Dec 7, 2020

Hi @Afzal-Ind - okay renaming solved one issue. Now the issue seems to be related to how multivariate data is handled. SeriesToSeriesTransformer can take a univariate series (pd.Series) or multivariate series (pd.DataFrame with rows representing time points and columns variables). We need to either (i) enforce univariate data and raise an error if multivariate data is passed by setting check_series(..., enforce_univariate=True) or (ii) make sure the transformers correctly handle multivariate data.

I'd start by setting check_series(..., enforce_univariate=True) to get this to run first, we can then add support for multivariate once everything is working.

Copy link
Contributor Author

@afzal442 afzal442 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd start by setting check_series(..., enforce_univariate=True) to get this to run first, we can then add support for multivariate once everything is working.

Fine now. I can start trying this way. Thanks.

sktime/transformers/sktime.transformers.series.acf.py Outdated Show resolved Hide resolved
sktime/transformers/sktime.transformers.series.acf.py Outdated Show resolved Hide resolved
sktime/transformers/sktime.transformer.series.cos.py Outdated Show resolved Hide resolved
@mloning
Copy link
Contributor

mloning commented Dec 17, 2020

Hi @Afzal-Ind if you have time to work on this, we could try to include it in the next release which I'm currently working on. For now, we can just remove the inverse_transform.

@afzal442
Copy link
Contributor Author

Fine @mloning . I am looking forward to working with u on 'inverse_transformer' in next release. Currently dealing with AutoAR. Thanks.

@mloning
Copy link
Contributor

mloning commented Dec 17, 2020

@Afzal-Ind I want to push the next release in the next few days, so if you have time to finish it, that would be great. Otherwise we'll include in the next one after that. Of course let me know if you get stuck and I can help!

@afzal442
Copy link
Contributor Author

Of course let me know if you get stuck and I can help!

I was kind of busy for two days. I would start my work on that from tomorrow and let u update.

@mloning mloning changed the title Added two new files containing series-to-series transformer classes Add Cosine, ACF and PACF transformers Dec 20, 2020
@mloning mloning added the implementing algorithms Implementing algorithms, estimators, objects native to sktime label Dec 20, 2020
@mloning
Copy link
Contributor

mloning commented Dec 20, 2020

Hi @Afzal-Ind, I've taken a look and made some changes - hopefully all tests pass now. Take a look at my commit to understand what I changed - happy to discuss this if you have any questions!

@mloning mloning merged commit d19f609 into sktime:master Dec 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
implementing algorithms Implementing algorithms, estimators, objects native to sktime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement series-to-series transformers
2 participants