8df87625c7514476035b37b16b8700aa7c83fb1e,arviz/stats/diagnostics.py,,ks_summary,#Any#,472
Before Change
_numba_flag = Numba.numba_flag
if _numba_flag:
kcounts = histogram(pareto_tail_indices)
else:
kcounts, _ = np.histogram(pareto_tail_indices, bins=[-np.Inf, 0.5, 0.7, 1, np.Inf])
kprop = kcounts / len(pareto_tail_indices) * 100
df_k = pd.DataFrame(
After Change
_numba_flag = Numba.numba_flag
if _numba_flag:
bins = np.asarray([-np.Inf, 0.5, 0.7, 1, np.Inf])
kcounts, _ = histogram(pareto_tail_indices, bins)
else:
kcounts, _ = np.histogram(pareto_tail_indices, bins=[-np.Inf, 0.5, 0.7, 1, np.Inf])
kprop = kcounts / len(pareto_tail_indices) * 100
df_k = pd.DataFrame(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: arviz-devs/arviz
Commit Name: 8df87625c7514476035b37b16b8700aa7c83fb1e
Time: 2019-07-31
Author: 29407246+Ban-zee@users.noreply.github.com
File Name: arviz/stats/diagnostics.py
Class Name:
Method Name: ks_summary
Project Name: arviz-devs/arviz
Commit Name: acdba3fbb14cbfba52ea6551d807b0b53fd0db78
Time: 2019-07-03
Author: 29407246+Ban-zee@users.noreply.github.com
File Name: arviz/stats/stats_utils.py
Class Name: ELPDData
Method Name: __str__
Project Name: arviz-devs/arviz
Commit Name: 8df87625c7514476035b37b16b8700aa7c83fb1e
Time: 2019-07-31
Author: 29407246+Ban-zee@users.noreply.github.com
File Name: arviz/tests/test_stats_utils.py
Class Name:
Method Name: test_histogram