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

Pad zeros #63

Merged
merged 11 commits into from
Sep 27, 2023
Merged

Pad zeros #63

merged 11 commits into from
Sep 27, 2023

Conversation

mayer79
Copy link
Collaborator

@mayer79 mayer79 commented Sep 26, 2023

This PR implements the new default that some features with zero interaction will be shown in pairwise/threeway stats (in line with pairwise_m, threeway_m).

  • The behaviour can be changed in the statistics functions by setting zero = FALSE.
  • This change allows the workflow:
    1. Select m most important features v via perm_importance()
    2. Run e.g. s <- hstats(..., v = v, ..., pairwise_m = length(v), threeway_m = 0)
    3. Get all pairwise interaction statistics via h2_pairwise(s), including also features without interactions.

@mayer79 mayer79 merged commit 523ff21 into main Sep 27, 2023
@mayer79 mayer79 deleted the pad_zeros branch September 27, 2023 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant