Coherence¶
coherence_importance
¶
coherence_importance(graph: ConceptGraph, X: DataFrame, feature_names: Sequence[str], importances: ndarray, *, method: CorrelationMethod = 'spearman', coherence_threshold: float | None = None, importance_threshold: float | None = None) -> DataFrame
Per-concept coherence × importance table.
| PARAMETER | DESCRIPTION |
|---|---|
graph
|
ConceptGraph.
TYPE:
|
X
|
Feature matrix used to compute within-block correlation.
TYPE:
|
feature_names
|
Inputs to :func:
TYPE:
|
importances
|
Inputs to :func:
TYPE:
|
method
|
Correlation method passed to :func:
TYPE:
|
coherence_threshold
|
Quadrant boundary on the coherence axis. Defaults to the median across concepts.
TYPE:
|
importance_threshold
|
Quadrant boundary on the importance axis. Defaults to the median across concepts.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
DataFrame
|
One row per concept (root included). Columns include |