Skip to content

Commit

Permalink
Update signatures.py
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulcollenteur committed Nov 23, 2023
1 parent f52d5f8 commit df29d98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pastas/stats/signatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def colwell_components(

hx = -(x / z * log(x / z)).sum()
hy = -(y / z * log(y / z)).sum()
hxy = -(df / z * log(df / z, where=df != 0)).sum().sum()
hxy = -(df / z * log(df / z, where=df.values != 0)).sum().sum()

# Compute final components
p = 1 - (hxy - hy) / log(bins) # Predictability
Expand Down

0 comments on commit df29d98

Please sign in to comment.