Skip to content

Wasserstein distance fix and 0 mean stats as NaN#2

Open
carmelinacharalambous wants to merge 3 commits intodevelopfrom
v1-dev
Open

Wasserstein distance fix and 0 mean stats as NaN#2
carmelinacharalambous wants to merge 3 commits intodevelopfrom
v1-dev

Conversation

@carmelinacharalambous
Copy link
Copy Markdown
Collaborator

Fix feature generation by computing Wasserstein distance over repeat bins and encoding undefined mean stats as NaN in feature_generator.py

Fixed Wasserstein calculation in feature_generator.py:86 to use bin positions + weights:
wasserstein_distance(bins, bins, u_weights=norm_tumor, v_weights=norm_normal)
Added safe_mean() in feature_generator.py:99 and switched undefined mean fields to np.nan at feature_generator.py:117

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