Importance¶
importance_sum
¶
importance_sum(graph: ConceptGraph, feature_names: Sequence[str], importances: ndarray, *, signed: bool = False, agg: str = 'mean', on_unknown: str = 'warn') -> DataFrame
Sum per-feature importance under each concept.
| PARAMETER | DESCRIPTION |
|---|---|
graph
|
ConceptGraph whose features are a subset of
TYPE:
|
feature_names
|
Names matching the columns of
TYPE:
|
importances
|
TYPE:
|
signed
|
Pass-through to :func:
TYPE:
|
agg
|
Pass-through to :func:
TYPE:
|
on_unknown
|
Behaviour when input features are missing from the graph:
TYPE:
|