Skip to content

Follow-ups from Combine distributed fix (yherin/fix-distributed-combine-transform) #606

@nasaul

Description

@nasaul

Follow-up items from the review of #579

Test coverage gaps

  • test_combine_stack only asserts structure (isinstance, operator) but not numerical correctness of update() output. Should add an np.testing.assert_allclose check similar to test_combine_stack_preserves_all_series.

  • test_nested_combine_take only asserts that types and operators are preserved after take(). Should add a numerical correctness assertion to verify the subset transform produces the same update() output as a freshly-fitted transform on the subset.

Minor efficiency issue

Combine.stack() does copy.deepcopy(transforms[0]) and then immediately overwrites out.tfm1 and out.tfm2, so the deepcopy of those two attributes is wasted work. This mirrors the pattern in _BaseLagTransform.stack() so it's consistent, but could be cleaned up if performance becomes a concern.

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