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 batch neighbor counting helper #38

Open
dburkhardt opened this issue Mar 21, 2019 · 0 comments
Open

Add batch neighbor counting helper #38

dburkhardt opened this issue Mar 21, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@dburkhardt
Copy link
Member

Code from Scott.

batch_mix_mat = np.array([[G.kernel[sample_idx==batch_i,:][:,sample_idx==batch_j].sum()
                 for batch_i in np.unique(sample_idx)]
                 for batch_j in np.unique(sample_idx)])
batch_mix_mat = batch_mix_mat / np.sum(batch_mix_mat, axis=1)[:,None]
batch_mix_mat```
@dburkhardt dburkhardt added the enhancement New feature or request label Mar 21, 2019
@dburkhardt dburkhardt self-assigned this Mar 21, 2019
@scottgigante scottgigante added good first issue Good for newcomers help wanted Extra attention is needed labels Oct 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants