Skip to content

Commit

Permalink
Manually disable normalized stress for MDS
Browse files Browse the repository at this point in the history
Suppress a user warning from scikit-learn's MDS implementation caused by
not setting the `normalized_stress` value in v1.3. The default value changed
from `False` to `"auto"` in v1.4, but we want the original default
anyway so we set it here.
  • Loading branch information
huddlej committed Jan 23, 2024
1 parent b673311 commit 7037c5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pathogen_embed/pathogen_embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ def embed(args):
"n_jobs": 1,
"n_init": 2,
"random_state" : args.random_seed,
"normalized_stress": False,
}

# Override defaults with parameter values passed through embedding parameters, if
Expand Down

0 comments on commit 7037c5a

Please sign in to comment.