Skip to content

Unify integer batch label preparation #130

Closed

Description

@NiklasMelton

Scope

  • validate, encode, and group integer batch labels with one stable sort
  • preserve first-seen external-label order and within-cluster sample order
  • retain the existing fallback for object, float, and string labels
  • reuse the prepared grouping through batch initialization

Implementation: #121

Measured change

At 10,000 samples and 10 clusters, batch speedups range from 4.31x to 6.25x for CH, WB, DB, XB, GD43, GD53, PS, and cSIL; rCIP improves by 1.23x. Incremental controls remain within approximately 1%.

After this layer, CH takes 0.523 ms versus scikit-learn's 0.592 ms, while DB takes 0.566 ms versus 1.033 ms. CH is equivalent; the DB definitions differ.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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