Skip to content

Commit

Permalink
metrics.distribution: Fix GID bug
Browse files Browse the repository at this point in the history
Fix an awful bug where an extra factor of 'p' was included;
informativeness is pointwise mutual information, not relative entropy
  • Loading branch information
wmayner committed Dec 7, 2022
1 parent 1820de6 commit 7aa26f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyphi/metrics/distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ def generalized_intrinsic_difference(
selectivity_repertoire,
state=None,
):
informativeness = information_density(
informativeness = pointwise_mutual_information_vector(
forward_repertoire, partitioned_forward_repertoire
)
gid = selectivity_repertoire * informativeness
Expand Down

0 comments on commit 7aa26f0

Please sign in to comment.