Skip to content

Improving probabilistic tests #42

@smmaurer

Description

@smmaurer

Some of our unit tests are probabilistic, so they sometimes fail.

The tests are intended to verify that things like sampling weights are being applied correctly. But since the sampling is random, occasionally the tests don't pass. We should make this more sophisticated 🙂

Here's an example of a probabilistic test:
https://github.com/UDST/choicemodels/blob/master/tests/test_mct.py#L46

And a failure that was resolved simply by re-running the test:
https://travis-ci.org/UDST/choicemodels/jobs/427893157

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions