Skip to content

reproducibility and seed in dmn() #12

Description

@handibles

Thanks for the implementation, and the great reference page. I appreciate that this issue relates to an older package, but hoping a description will be of help to others.

In the reference, the best grouping for the test data is always k=4, and is always at a Laplace value of 39477 (run 6 times):
Image

For my own microbiome count data, there is a huge variability in optimal $k$ (and group membership), and the Laplace value changes across a range of values.
Image

I've tried to counter this by setting seed before each call to mclapply, and I've tried setting the mc.set.seed param in mclapply to FALSE as per the manpage for mclapply - this does seem to temper the variability, but I still see more varaibility than in the tutorial.
Image

Is this simply a reflection of the complexity in my own data? How deterministic is the dmn() implementation?

As an aside, I'm also seeing an additional, second level of variability in outcome if the order of rows is shuffled. I might end up permuting the rows and polling for solution from this randomised start.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions