Skip to content

Seed behaviour #59

@dimalvovs

Description

@dimalvovs

Behaviour of the program with a set seed parameter in unexpected and needs to be aligned with requirements/common practice. There are two different unexpected behaviour patterns:

  1. Standard pycogaps current behaviour: all runs without a seed yield the same result, which inter alia numerically corresponds to seed=0, which means the seed it set somewhere even if it's not provided by the user. Expected behaviour: runs without setting a seed differ. To reproduce: run pycogaps on modSim toy data without setting a seed and observe the resulting .obs and .var matrices are kept exactly equal. Run with seed:0 to obtain exactly same result. run with seed:42 to obtain a different result.
  2. Distributed pycogaps current behaviour: runs with the same seed yield different results. Expected behaviour: runs with the same seed produce exactly the same result. To reproduce: add setParams(params, {'distributed':'genome-wide', 'seed':42}) and observe that results are different each time. Removing the seed from parameters does not affect the result randomness.
  • standard run: unfix results if no seed provided
  • distributed: fix results if seed provided

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcore

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions