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

Move find_zero_labels() from community to pose segmentation step #97

Open
katiekly opened this issue Oct 28, 2024 · 0 comments
Open

Move find_zero_labels() from community to pose segmentation step #97

katiekly opened this issue Oct 28, 2024 · 0 comments
Assignees
Labels
refactor Improve internal software structure without changing observable outcomes

Comments

@katiekly
Copy link
Collaborator

katiekly commented Oct 28, 2024

We're still encountering zero motif errors, where some sessions are not using some motifs so the length of motif_usage.npy is less than n_cluster. Our fix, find_zero_labels(), is located in community_analysis.py. This should be moved to pose_segmentation.py.

Note, occurred with Kyerl's cohort and Tyler's sample cohort. Tyler's cohort had one session used only one motif. Another session was missing two motifs.

in pose_segmentation.py, line 91 (shown below) does not account for unused motifs
motif_usage = np.unique(label, return_counts=True) #warning doesn't catch motif's with no usage

Consider rewriting get_motif_usage() to initialize motif usage with length of n_cluster and use count to populate motif usage

@katiekly katiekly added the refactor Improve internal software structure without changing observable outcomes label Oct 28, 2024
@katiekly katiekly self-assigned this Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Improve internal software structure without changing observable outcomes
Projects
None yet
Development

No branches or pull requests

1 participant