sassoftware / python-pipefitter

The SAS pipefitter package provides a Python API for developing pipelines for data transformation and model fitting as stages of a repeatable machine learning workflow in either SAS v9 or SAS Viya.
Apache License 2.0
12 stars 7 forks source link

Hyperparameter tuning fails because of .ix #2

Closed sahbic closed 3 years ago

sahbic commented 3 years ago

hyperparameter tuning fails in the provided example

hpt = HyperParameterTuning(
          estimator=DecisionTree(target='label', 
              inputs=['a'+str(i) for i in range(50)]),
          param_grid=param_grid, 
          cv=3)

hpt.gridsearch(casdata)

with the following error

'SASDataFrame' object has no attribute 'ix' error

the reason seems to be that .ix is deprecated

kesmit13 commented 3 years ago

Fixed with commits c58d78e and 4d3afe0.