pelinker.entity_head¶
Entity-assignment heads trained on HDBSCAN cluster labels (compact predict path).
EntityHead
dataclass
¶
Multi-class head mapping UMAP coords → emergent cluster id + confidence score.
Source code in pelinker/entity_head.py
predict(X)
¶
Predict cluster labels and per-row scores.
Returns:
| Type | Description |
|---|---|
ndarray
|
|
ndarray
|
( |
Source code in pelinker/entity_head.py
fit_linear_svc_entity_head(X_umap, cluster_labels, *, random_state=13)
¶
Fit a linear multi-class SVM (study underfitting control; not the shipped default).
Source code in pelinker/entity_head.py
fit_mlp_entity_head(X_umap, cluster_labels, *, hidden_layer_sizes=DEFAULT_ENTITY_HEAD_HIDDEN_LAYERS, random_state=13)
¶
Fit an MLP on non-noise HDBSCAN labels (cluster_labels != -1).