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
[FIX] Update array_math.py #2398
[FIX] Update array_math.py #2398
Conversation
Provide support for models that return pandas series for predict, predict_proba
Hi @mglowacki100, thanks for the contribution! Could you please fix the minor indentation issue raised by pylint? You can validate locally that it's fixed by running |
Fix indentation bug
Hi @noamzbr , sorry for this indention bug, I've checked with pylint and updated PR seems to be ok (there are warnings about exception, but it is not caused by my change).
|
Head branch was pushed to by a user without write access
Hi @noamzbr I've fixed import order with |
It's run on an external machine, let me try to just re-run it (could be some connection issue perhaps?) |
@all-contributors please add @mglowacki100 for code |
I've put up a pull request to add @mglowacki100! 🎉 |
Provide support for models that return pandas series for predict, predict_proba (e.g. autogluon) by fixing
sequence_to_numpy
function fromutils/array_math.py
Reference Issues/PRs
Partially Fixes #2364 as discussed with @noamzbr
What does this implement/fix? Explain your changes.
Fixing is just by adding additional case for
pd.Series
. Pandas series has method toto_numpy
after this justflatten
.I didn't find specific test for
sequence_to_numpy
, so I've locally tested it end-to-end with autogluon:https://colab.research.google.com/gist/mglowacki100/49ba6dca46f75ab494068d5b26a6a39c/autogluon_with_deepchecks_test.ipynb