Skip to content

Random Assertion error in test_multiple_feature_drop test #112

@maxsch3

Description

@maxsch3

There is a random failure in the above test.

    def test_multiple_feature_drop(self):
        fd = FeatureDropout([0., .7, .3], ['var1', 'var2', 'label'], drop_values='', col_probs=[.5, .3, .2])
        batch = fd.transform(self.df.sample(1000, replace=True))
        b = (batch == '').sum(axis=1).value_counts().sort_index().tolist()
        c, p = chisquare(b, [700, 300])
>       assert p > 0.01
E       assert 0.0015019754745869893 > 0.01

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglow impactLow impact

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions