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
When having pandas 2 installed in the environment, fit calls on AutoSklearn2Classifier objects will result in an error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/bench/frameworks/autosklearn/venv/lib/python3.9/site-packages/autosklearn/experimental/askl2.py", line 472, in fit
selection = np.argmax(selector.predict(metafeatures))
File "/bench/frameworks/autosklearn/venv/lib/python3.9/site-packages/autosklearn/experimental/selector.py", line 25, in predict
prediction = self._predict(X, y)
File "/bench/frameworks/autosklearn/venv/lib/python3.9/site-packages/autosklearn/experimental/selector.py", line 366, in _predict
prediction = self.selector.predict(X)
File "/bench/frameworks/autosklearn/venv/lib/python3.9/site-packages/autosklearn/experimental/selector.py", line 26, in predict
for col, series in prediction.iteritems():
File "/bench/frameworks/autosklearn/venv/lib/python3.9/site-packages/pandas/core/generic.py", line 5989, in __getattr__
return object.__getattribute__(self, name)
AttributeError: 'DataFrame' object has no attribute 'iteritems'
Describe the bug
When having pandas 2 installed in the environment, fit calls on
AutoSklearn2Classifier
objects will result in an error:It looks like pandas 2 and up
.items
should be used instead as.iteritems
was removed.To Reproduce
Running from the framework environment in
docker run -it -u 0 automlbenchmark/autosklearn:0.15.0-add_versions_2023Q2
:mwe.py:
above produces the error, but after downgrading pandas it works fine:
Expected behavior
For it not to crash.
Actual behavior, stacktrace or logfile
Provided above.
Environment and installation:
See Docker image.
The text was updated successfully, but these errors were encountered: