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
Using bias variance decomposition with pandas dataframe. Since scikit learn now supports pandas api train test splits are available as pandas dataframes for some workflows. Raising an error when passing these as inputs to bias_variance_decomp, just makes us use an extra step outside mlxtend that is out of context of more general workflow (that is accomplished entire in pandas dataframes).
Describe your proposed solution
Instead of raising error with a message, convert pandas dataframes to numpy arrays internally.
Describe alternatives you've considered, if relevant
An alternative would be a config parameter for the package like scikit-learn that can more generally handle dataframes across range of functionalities either by converting to numpy arrays or implementing functionalities compatible with dataframes.
Additional context
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion. This would be a nice addition indeed. Unfortunately, I am a bit overcommitted and don't know when/if I would have time to implement this.
Describe the workflow you want to enable
Using bias variance decomposition with pandas dataframe. Since scikit learn now supports pandas api train test splits are available as pandas dataframes for some workflows. Raising an error when passing these as inputs to bias_variance_decomp, just makes us use an extra step outside mlxtend that is out of context of more general workflow (that is accomplished entire in pandas dataframes).
Describe your proposed solution
Instead of raising error with a message, convert pandas dataframes to numpy arrays internally.
Describe alternatives you've considered, if relevant
An alternative would be a config parameter for the package like scikit-learn that can more generally handle dataframes across range of functionalities either by converting to numpy arrays or implementing functionalities compatible with dataframes.
Additional context
The text was updated successfully, but these errors were encountered: