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: Add group transformers #51

Merged
merged 3 commits into from
Feb 27, 2021
Merged

ENH: Add group transformers #51

merged 3 commits into from
Feb 27, 2021

Conversation

richford
Copy link
Member

Resolves #50

WIP until I add all of the transformers.

Also, these transformers currently take indices of groups to extract/remove. We should optionally allow the user to pass a feature name to select or remove. We could then check the feature name against elements of the feature column names (provided as another kwarg or taken from DataFrame.columns if X is a dataframe). That way, the user wouldn't have to remember which group index corresponds to the CST, for example.

@richford richford added enhancement New feature or request effort: medium A medium amount of effort needed to resolve this issue impact: high High impact issues that will really improve the project labels Feb 24, 2021
@richford richford self-assigned this Feb 24, 2021
@coveralls
Copy link

coveralls commented Feb 24, 2021

Coverage Status

Coverage increased (+1.0%) to 96.112% when pulling d1aeb72 on enh/group-extract-remove into 82c8f54 on main.

@richford richford changed the title WIP ENH: Add group transformers ENH: Add group transformers Feb 27, 2021
@richford richford requested a review from arokem February 27, 2021 13:22
@richford
Copy link
Member Author

@arokem, ready to review.

Copy link
Member

@arokem arokem left a comment

Choose a reason for hiding this comment

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

Looks great. Documentation of these features (e.g., in an example) might be helpful, but can follow on a separate PR.

groupyr/transform.py Show resolved Hide resolved
groupyr/tests/test_transform.py Show resolved Hide resolved
groupyr/transform.py Show resolved Hide resolved
groupyr/transform.py Show resolved Hide resolved
@richford richford merged commit 634c9b9 into main Feb 27, 2021
@richford richford deleted the enh/group-extract-remove branch February 27, 2021 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort: medium A medium amount of effort needed to resolve this issue enhancement New feature or request impact: high High impact issues that will really improve the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate transformers from AFQ-Insight
3 participants