AttributeError when using gridsearch hyperparameter tuning.
jannichorst opened this issue · 1 comments
jannichorst commented
I'm following the example from the documentation here: link
Get the following error message when trying to run the gridsearch:
AttributeError: 'SASDataFrame' object has no attribute 'ix'
The "train_ct" table is in fact a CASTable and has the attribute 'ix'. As there are no other arguments, I don't know wether this is user error or a bug.
Jincheng-Sun commented
I believe the problem comes from Pandas dependency. Pandas retired DataFrame.ix() method starting from v0.20.0. In Pipefitter's release version 1.0.0 they still use df.ix(), therefore if you are using a Pandas package version later than 0.20.0 you will meet this problem.
I think the solution here will be either:
- Downgrade your Pandas version
- Install pipefitter package from github (They fixed this issue in this commit)