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

[BUG] Overflows in irls_solver and shape mismatch in _refit_without_outliers when using continuous variable #201

Open
ozanozisik opened this issue Nov 8, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@ozanozisik
Copy link

When using a continuous variable I get
ValueError: shape mismatch: value array of shape (228,77) could not be broadcast to indexing result of shape (228,7)
while running self.varm["LFC"][to_replace] = sub_dds.varm["LFC"] in _refit_without_outliers.

I also get overflow warnings from irls_solver.

  • Setting 1
    design_factors=['Batch','Condition']
    continuous_factors=None

Works fine

  • Setting 2
    design_factors=['Batch', 'Age', 'Condition']
    continuous_factors=None

Works fine (Refitting 29547 outliers, compared to 1567 in the previous setting, does this make sense?)

  • Setting 3
    design_factors=['Batch', 'Age', 'Condition']
    continuous_factors=['Age']

Overflows in irls_solver (similar to Issue #169). To be precise, I do not get these in previous settings.

ValueError: shape mismatch: value array of shape (228,77) could not be broadcast to indexing result of shape (228,7)
(while running self.varm["LFC"][to_replace] = sub_dds.varm["LFC"] in _refit_without_outliers)

@ozanozisik ozanozisik added the bug Something isn't working label Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant