Skip to content

Fix DWD group analysis producing broken plots#2528

Open
akenmorris wants to merge 1 commit intomasterfrom
amorris/fix-dwd
Open

Fix DWD group analysis producing broken plots#2528
akenmorris wants to merge 1 commit intomasterfrom
amorris/fix-dwd

Conversation

@akenmorris
Copy link
Copy Markdown
Contributor

DWD's discriminant direction optimizes for margin, not mean separation, so it can be nearly orthogonal to the group mean difference. The normalize() function divides by the mean projection gap, which blows up when that gap is near-zero, producing shape mappings at ±100 and flat PDFs. Skip mean-based normalization for DWD and use raw unit-length projections with adaptive PDF x-ranges instead. Also scale scatter dot y-position to peak PDF height so dots stay at the plot bottom regardless of PDF scale.

DWD's discriminant direction optimizes for margin, not mean
separation, so it can be nearly orthogonal to the group mean
difference. The normalize() function divides by the mean projection
gap, which blows up when that gap is near-zero, producing shape
mappings at ±100 and flat PDFs. Skip mean-based normalization for DWD
and use raw unit-length projections with adaptive PDF x-ranges
instead. Also scale scatter dot y-position to peak PDF height so dots
stay at the plot bottom regardless of PDF scale.
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