amueller / introduction_to_ml_with_python

Notebooks and code for the book "Introduction to Machine Learning with Python"
7.37k stars 4.55k forks source link

get_feature_names() -> get_feature_names_out() #178

Closed yernero closed 1 year ago

yernero commented 1 year ago

In chapter 7 code, ln 15 feature_names = vect.get_feature_names() should be feature_names = vect.get_feature_names_out() because deprecation warning

yernero commented 1 year ago

ln 26 too

yernero commented 1 year ago

ln 30 too

yernero commented 1 year ago

ln36 too

amueller commented 1 year ago

Indeed, the current version of the book was written for an older version, and since then we renamed the method for an API change. There's several other changes in the API.