8000 [ENH] Added get_test_params in ThetaLinesTransformer by Anuragwagh · Pull Request #7199 · sktime/sktime · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[ENH] Added get_test_params in ThetaLinesTransformer #7199

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

Merged
merged 6 commits into from
Oct 7, 2024

Conversation

Anuragwagh
Copy link
Contributor

This PR adds the get_test_params method to the ThetaLinesTransformer class, providing standardized parameter settings for testing.

What does this implement/fix? Explain your changes.
This change implements the get_test_params method, which returns a list of dictionaries containing test parameters for the ThetaLinesTransformer. This will facilitate easier testing and validation of the transformer’s functionality.

Does your contribution introduce a new dependency? If yes, which one?
No new dependencies were introduced.

What should a reviewer concentrate their feedback on?
The implementation of the get_test_params method
The clarity of the parameter settings provided for testing

Did you add any tests for the change?
Yes, relevant tests have been added to ensure the functionality of get_test_params.

Copy link
Collaborator
@fkiraly fkiraly left a comment

Choose a reason for hiding this comment

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

Thanks!

Could you also add an empty dict, to test the default works?

@Anuragwagh
Copy link
Contributor Author

Yes, sure

@Anuragwagh
Copy link
Contributor Author

I have added an empty dict, to test the default works

Copy link
Collaborator
@fkiraly fkiraly left a comment

Choose a reason for hiding this comment

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

Thanks!

Now the code needs to be formatted correctly, e.g., black formatted, see here how to automate this:
https://www.sktime.net/en/stable/developer_guide/coding_standards.html

Or, inspect the failed linting test for suggestions.

@Anuragwagh
Copy link
Contributor Author

I have formatted the code as per the guidelines.

8000

@fkiraly fkiraly added documentation Documentation & tutorials module:transformations transformations module: time series transformation, feature extraction, pre-/post-processing labels Sep 30, 2024
parameter_set : str, default="default"
Name of the set of test parameters to return, for use in tests. If no
special parameters are defined for a value, will return
de_types.pyfault"` set.
Copy link
Collaborator

Choose a reason for hiding this comment

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

typo?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

check now

Copy link
Collaborator

Choose a reason for hiding this comment

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

if should be "default", no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just to confirm, when you mentioned "if should be 'default'," are you suggesting that the empty dictionary should only be returned if parameter_set == 'default'? For example:

if parameter_set == "default":
return [{}]
else:
return [{"theta": (0, 2)}, {"theta": (0.5, 1.5)}]

Copy link
Collaborator

Choose a reason for hiding this comment

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

no, I mean, the docstring has a typo with some incomprehensible words instead of the word "default" - the code is fine

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I changed the typo and kept it comprehensible.

Copy link
Collaborator
@fkiraly fkiraly left a comment

Choose a reason for hiding this comment

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

Great!

@fkiraly fkiraly merged commit 6baab13 into sktime:main Oct 7, 2024
45 checks passed
benHeid pushed a commit that referenced this pull request Feb 15, 2025
This PR adds the get_test_params method to the ThetaLinesTransformer
class, providing standardized parameter settings for testing.

This change implements the get_test_params method, which returns a list
of dictionaries containing test parameters for the
ThetaLinesTransformer. This will facilitate easier testing and
validation of the transformer’s functionality.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Assignees
No one assigned
Labels
documentation Documentation & tutorials module:transformations transformations module: time series transformation, feature extraction, pre-/post-processing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0