Skip to content

Add configurable random state - #26

Open
VictorLiwentao wants to merge 1 commit into
Center-For-Complex-Systems-Science:mainfrom
VictorLiwentao:fix/issue-22-random-state
Open

VictorLiwentao wants to merge 1 commit into
Center-For-Complex-Systems-Science:mainfrom
VictorLiwentao:fix/issue-22-random-state

Conversation

@VictorLiwentao

Copy link
Copy Markdown

Fixes #22.

Adds a random_state argument to discover_network so users can control the permutation-test RNG.

Example:
discover_network(data, random_state=123)

The default remains 42.

Tested:

  • same seed gives reproducible results
  • different seeds use different shuffle sequences
  • None and np.random.Generator are supported
  • discovery tests pass

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.

Reproducibility of the permutation test is not user-controllable

1 participant