Skip to content

Vectorize cSIL state evaluation #133

Closed

Description

@NiklasMelton

Scope

  • vectorize changed cSIL dissimilarity rows and columns
  • rebuild structural state with matrix operations
  • evaluate all silhouette coefficients in one reduction
  • preserve the raw-moment definition, orientation, and zero-denominator behavior

Implementation: #124

Measured change

At 10,000 samples and 10 clusters, incremental cSIL improves from 575.783 ms to 173.323 ms, a 3.32x speedup. At 4,096 samples and 128 clusters, it improves from 2,655.221 ms to 123.771 ms, a 21.45x speedup.

scikit-learn's sample silhouette score is mathematically different from this centroid-based cSIL, so it is not a direct timing reference.

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