bias-variance-decomp hates this dataset #821
Unanswered
tomas-o-dev
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I am not sure that I wrote the function with pandas data frames in mind, so it might have been a coincidence that it worked before :). Not saying I don't want it to work with data frames as well, but it would require some tweaks, I assume. Until then, passing NumPy arrays should work: I.e., via the
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Odd but true - the red-wine quality dataset from https://archive.ics.uci.edu/ml/datasets/wine+quality
consistently raises an index error - summarised trace from running it with the sample code from the documentation
and opening it with df = pd.read_csv('../datasets/winequality-red.csv', sep=';')
D:\conda\lib\site-packages\mlxtend\evaluate\bias_variance_decomp.py in bias_variance_decomp
---> 86 X_boot, y_boot = _draw_bootstrap_sample(rng, X_train, y_train)
D:\conda\lib\site-packages\mlxtend\evaluate\bias_variance_decomp.py in _draw_bootstrap_sample
---> 16 return X[bootstrap_indices], y[bootstrap_indices]
D:\conda\lib\site-packages\pandas\core\series.py
D:\conda\lib\site-packages\pandas\core\indexing.py
KeyError: "Passing list-likes to .loc or [] with any missing labels is no longer supported.
it is a useful function that normally works - this has me stumped!
Beta Was this translation helpful? Give feedback.
All reactions