You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Line 146: indices is not defined if sort is False. My guess is that 'if descending' might be within 'if sort'
Line 139: it seems to me that 'if descending' should return sample by the descending order of the probability. But when I checked the code of the function 'sort_by_rho',
Line 59: indices = np.argsort(P_samples)[::-1][0:nnz]
[::-1] will make it return the indices in descending order. This means that 'indices' in Line 128 is the descending index, so I think there is no need of Line 146. Then Line 140-145 will also make those terms sort by ascending order.