SyntheticControlMethods icon indicating copy to clipboard operation
SyntheticControlMethods copied to clipboard

Bug report: `np.apply_along_axis(np.std, 0, big_dataframe)` in main.py

Open acgacgacgacg opened this issue 3 years ago • 0 comments

I found np.apply_along_axis(np.std, 0, big_dataframe) was a bug here. The outcome will become something like below.

array([[inf, inf, inf, inf, inf, inf, inf, inf, inf, inf, inf, inf, inf,
        inf, inf, inf, inf, inf, inf, inf, inf, inf, inf, inf, inf, inf,
        inf, inf, inf]])

The axis is mistaken and it should be np.apply_along_axis(np.std, 1, big_dataframe, keepdims=True)

I'm not sure if this is due to the numpy version. Currently I'm using 1.19.1

acgacgacgacg avatar Jul 02 '21 11:07 acgacgacgacg