netmap.grn.inferrence.aggregate_attributions

netmap.grn.inferrence.aggregate_attributions(attributions, strategy='mean')[source]

Aggregate a list of per-model attribution arrays into a single array.

Parameters:
  • attributions (list of numpy.ndarray) – List of attribution matrices, each of shape (n_cells, n_genes).

  • strategy (str) – Aggregation method — 'mean' (default), 'sum', or 'median'.

Returns:

Aggregated attribution matrix of shape

(n_cells, n_genes).

Return type:

numpy.ndarray