In the hmeq_train.py code for the registery_py_model example, some users will find that the current Python code utilizes a scikit-learn method that has been deprecated. Specifically on line 66, the get_feature_names() method was deprecated in version 1.2 of scikit-learn.
I believe a simple solution for the code would be a try/except block as follows:
In the hmeq_train.py code for the
registery_py_model
example, some users will find that the current Python code utilizes a scikit-learn method that has been deprecated. Specifically on line 66, theget_feature_names()
method was deprecated in version 1.2 of scikit-learn.I believe a simple solution for the code would be a try/except block as follows:
Or to explicitly validate the scikit-learn version: