Docs Navigation (Stage 05)›

Subspace Re-Clustering Drill-Down

Projects out constant parent traits and re-clusters zoomed subsets locally over high-variance features, vectors, or similarities.

Key Takeaways

  • Recommended conformal 1:4 drill-down strategy for embeddings, similarity kernels, mixed-attribute records, and multi-modal catalogs.
  • Automatically zeroes out parent traits with no intra-cluster variance (σ_local = 0) so secondary domain facets, continuous axes, or residual embeddings separate items cleanly.
  • Works zero-config via automatic tag and object-field introspection, or with explicit domain SubspaceZoomFeature extractors for human-readable sub-cluster badges.

Visual Mechanism

1. Local Subset Variance Filtermilk = true (σ_local = 0.00)predator / budget (σ = 0.49)aquatic / era (σ = 0.46)6! QAP align2. Re-Clustered 1:4 Subspace MeshPredatorsAquaticLarge SizeDomestic
Projects out zero-variance parent traits (σ_local = 0), re-clusters covered items over high-variance local features, and aligns 6 labeled sub-clusters onto the 1:4 sub-mesh via exact 6! QAP search.

Factory Signature

Re-exported from @simplex-viz/core, @simplex-viz/svg, and @simplex-viz/reactStage 05 Overview →
createSubspaceZoomStrategy<TItem, TTagMeta, TClusterMeta>(options?: SubspaceZoomStrategyOptions<TItem>): SimplexZoomStrategy<TItem, TTagMeta, TClusterMeta>

Options & Defaults

featuresDefault: undefined (auto-introspect)

readonly SubspaceZoomFeature<TItem>[] | ((ctx: SubspaceZoomContext<TItem>) => readonly SubspaceZoomFeature<TItem>[])

Optional boolean, categorical, or numeric domain facets evaluated locally on zoomed subsets to synthesize distinct sub-cluster labels.

getVectorDefault: undefined

(item: TItem) => readonly number[]

Optional continuous embedding extractor locally mean-centered and standardized inside each zoomed subset.

getSimilarityDefault: undefined

(a: TItem, b: TItem) => number

Optional pairwise similarity kernel S(a, b) ∈ [0, 1] projected onto farthest-first local landmarks when explicit features are absent.

clusterZoomModeDefault: 'incident-star'

'incident-star' | 'spotlight' | 'none'

Focuses a cluster's lattice-conformal 1-ring star with simplex-distance item dimming in 'incident-star' mode (further drill-down proceeds via incident 1:4 triangles), or splits immediately into a 3-way local subspace spotlight in 'spotlight' mode.

stopWhenFullScaleDefault: true

boolean

Stops marking sub-triangles as 1:4 drillable once all covered items reach fullScaleThreshold (0.75).

fullScaleThresholdDefault: 0.75

number

Scale ratio in (0, 1] at which content items count as legible leaf nodes (exported as DEFAULT_FULL_SCALE_THRESHOLD).

leafTriangleFocusDefault: true

boolean

Keeps non-subdividable leaf triangles focusable as a single un-subdivided triangle ('triangle-focus') via their free face while content nodes remain directly clickable.

Local Variance Projection & Exact 6! Sub-Mesh QAP

Purely geometric 1:4 subdivision preserves parent barycentric ratios, which works well as a baseline—but inside a specialized region (for example a Mammals triangle in UCI Zoo or a Blockbuster triangle in Vega Cinema), the features that formed the root overview are already locally constant (milk = true, backbone = true → σ_local = 0).

createSubspaceZoomStrategy solves a genuine local subspace re-clustering problem at every drill-down step while preserving conformal 1:4 equilateral geometry:

  1. Zero-Variance Projection: Evaluates candidate boolean, categorical, numeric, vector, or similarity axes exclusively over the subset S of items inside the focused triangle or cluster. Any attribute that is constant across S (σ_local ≤ 10⁻⁶) drops out automatically, promoting intra-group variations (such as Predator, Aquatic, Body Size, Budget, or Release Era).
  2. Local k-Means++ & Distinct Facet Labeling: Partitions S into up to 6 local prototypes (or 3 prototypes for a cluster spotlight) and assigns collision-free, human-readable subclusterLabels ranked by standardized z-score separation.
  3. Exact 6! = 720 Permutation Alignment: Evaluates all 720 bijections mapping the 6 local prototypes onto [V₀, V₁, V₂, M₀₁, M₁₂, M₂₀] to jointly maximize parent-corner spatial continuity, 9-edge QAP cosine similarity, and degree-4 midpoint load balance.
  4. Parent-Context Orientation Plaques: The 3 outer corners (V₀, V₁, V₂) retain their parent corner’s parentContextLabel as a compact header line above the newly discovered local subclusterLabel (for example EPIC RUNTIME / New Hollywood), while the 3 edge midpoints (M₀₁, M₁₂, M₂₀) render as single-line chamfered sub-cluster plaques alongside color-coded ZoomBreadcrumbSegment breadcrumbs.
  5. Uniform Cluster/Subcluster Stars & Single-Triangle Leaf Focus: Clicking any cluster or subcluster badge opens its lattice-conformal 1-ring 'incident-star' with continuous simplex-distance item dimming (opacity = 0.32 + 0.68 · w̃₀), and clicking the free background face of a 1.0× leaf triangle focuses that single un-subdivided triangle ('triangle-focus') while keeping its items directly clickable.

Usage Example

import {
  SimplexTopicGraph,
  createCollisionDrivenLayoutStrategy,
  createSubspaceZoomStrategy,
} from '@simplex-viz/react';

const zoomStrategy = createSubspaceZoomStrategy<FilmRecord>({
  features: [
    {
      label: 'Budget',
      getValue: (f) => Math.log10(f.budgetMusd),
      highLabel: 'High Budget',
      lowLabel: 'Low Budget',
    },
    {
      label: 'Release Era',
      getValue: (f) => f.releaseYear,
      highLabel: 'New Hollywood',
      lowLabel: 'Golden Age',
    },
    {
      label: 'Genre',
      getValue: (f) => f.genre,
    },
  ],
  clusterZoomMode: 'incident-star',
});

<SimplexTopicGraph
  items={films}
  layoutStrategy={createCollisionDrivenLayoutStrategy()}
  zoomStrategy={zoomStrategy}
  showZoomBreadcrumbs
/>;