SyntheticControlMethods
SyntheticControlMethods copied to clipboard
Bug report: `np.apply_along_axis(np.std, 0, big_dataframe)` in main.py
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