Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aks43725 opened this issue Mar 8, 2022 · 2 comments

Comments

@aks43725
Copy link

aks43725 commented Mar 8, 2022

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 aks43725 changed the title combo.models.score_comb.median() doesn't work with pd.DataFrame's combo.models.score_comb.median() doesn't work properly with pd.DataFrame's Mar 8, 2022
@yzhao062
Copy link
Owner

yzhao062 commented Mar 8, 2022

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

@aks43725
Copy link
Author

aks43725 commented Mar 8, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants