How to fix : " AttributeError: 'CountVectorizer' object has no attribute 'get_feature_names_out'"
2 answers ( 0 marked as helpful)
Hey Mohamed,
Thank you for engaging with the Machine Learning with Naïve Bayes course!
Please, make sure that the version of sklearn
you are using is 1.0 or greater. The method get_feature_names_out()
substitutes the already deprecated and removed get_feature_names()
one.
Please, let me know if the error persists.
Kind regards,
365 Hristina
Hey Hristina,
Thank you very much it is now working well.
Br,
Mohamed.