combo icon indicating copy to clipboard operation
combo copied to clipboard

combo.models.score_comb.median() doesn't work properly with pd.DataFrame's

Open aks43725 opened this issue 2 years ago • 2 comments

combo.models.score_comb.median() only work properly with pd.DataFrame as input X, which seems to compute the medians over columns rather than rows (as axis=1 works differently for np.ndarray and pd.DataFrame).

As far as I know, average() and maximization() don't have such problem, but I haven't tried aom() nor moa() yet.

aks43725 avatar Mar 08 '22 17:03 aks43725

that was weired since basically all these methods are calling some operation with axis 1 using np return np.mean(scores, axis=1).ravel()

yzhao062 avatar Mar 08 '22 22:03 yzhao062

That's what I thought as well, but somehow I got some weird results earlier. I'll see if I can reproduce the weird results (which should be provided with the issue posting... sorry about that).

On Tue, Mar 8, 2022, 17:28 Yue Zhao @.***> wrote:

that was weired since basically all these methods are calling some operation with axis 1 using np return np.mean(scores, axis=1).ravel()

— Reply to this email directly, view it on GitHub https://github.com/yzhao062/combo/issues/14#issuecomment-1062283676, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGXFARI22VWFVACRUIHRBI3U67IADANCNFSM5QG7BTRQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

aks43725 avatar Mar 08 '22 22:03 aks43725