Skip to content

Commit

Permalink
improve eq readability
Browse files Browse the repository at this point in the history
  • Loading branch information
gubertoli committed May 19, 2020
1 parent 78ebb6f commit 1590938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tsfresh/feature_extraction/feature_calculators.py
Original file line number Diff line number Diff line change
Expand Up @@ -2117,7 +2117,7 @@ def benford_correlation(x):
x = np.array([int(str(np.format_float_scientific(i))[:1]) for i in np.abs(np.nan_to_num(x))])

# benford distribution
benford_distribution = np.array([np.log10(1+1/n) for n in range(1, 10)])
benford_distribution = np.array([np.log10(1 + 1/n) for n in range(1, 10)])

data_distribution = np.array([(x == n).mean() for n in range(1, 10)])

Expand Down

0 comments on commit 1590938

Please sign in to comment.