Skip to content

[Test] Assert intentional RuntimeWarning in VotingChainladder tests #823

@henrydingliu

Description

@henrydingliu

continuing the campaign from #765

test_weight_broadcasting currently emits 420 numpy NaN-related RuntimeWarning due to the calculation on stochastic parameters on 100+ sparse triangles. These warnings are harmless in the context of the test because the stochastic parameters are not used. However, I'm not convinced that asserting them via pytest.warns is right approach.

alternatively, we can suppress stochastic parameter calculation. the stochastic parameters are currently calculated on every Development estimator. this is arguably wasteful. we can introduce a parameter, .e.g. stoch_params, to Development to skip the calc if the user doesn't intend to use them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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