[Question]Question on permutation strategy in discrim_two_sample test

Open
#440 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
testing-qa

Research direction

Read discrim_two_sample.py around lines 190-191 and trace _get_convex_comb for both inputs. Compare that behavior with the permutation strategy described in Bridgeford et al. (2021); done means documenting whether the within-matrix combinations are intentional and explaining the rationale or identifying the discrepancy.

Written by the indexing model from the issue text.

Description

question

Dear experts,

I have a question about the permutation strategy in the two-sample discriminability test. When comparing two Discr estimates, I noticed that the current implementation in discrim_two_sample.py uses a different permutation approach than described in the original paper (Bridgeford et al., 2021).

Current implementation (lines 190-191 in discrim_two_sample.py):

permx1 = self._get_convex_comb(self.x1, random_state)  # convex combination within x1
permx2 = self._get_convex_comb(self.x2, random_state)  # convex combination within x2

Paper description (Bridgeford et al., 2021):
The paper suggests creating "randomly combined datasets" by taking "random convex combinations of the observed data from each of the two methods choices", which I interpret as mixing data between the two input matrices.

Could you help me understand the rationale behind performing convex combinations within each matrix rather than between them? Is this an intentional design choice for specific theoretical or practical reasons?

Thank you for your time and clarification!

Best regards,
Alex

Dominant language
Python
Stars
253
Forks
103
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from neurodata/hyppo

All issues in neurodata/hyppo

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.