From 50a23cce75dd5828c88c61c057024ee97dd5acc0 Mon Sep 17 00:00:00 2001 From: Christophe Murphy Date: Fri, 25 Jul 2025 17:57:37 -0700 Subject: [PATCH] Update get_feature_names methods to get_feature_names_out The get_feature_names() method for various SciKit Learn classes has been renamed to get_feature_names_out(). --- nbs/2. Topic Modeling with NMF and SVD.ipynb | 2 +- nbs/5. Health Outcomes with Linear Regression.ipynb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nbs/2. Topic Modeling with NMF and SVD.ipynb b/nbs/2. Topic Modeling with NMF and SVD.ipynb index 9b09ca1..1c02a40 100644 --- a/nbs/2. Topic Modeling with NMF and SVD.ipynb +++ b/nbs/2. Topic Modeling with NMF and SVD.ipynb @@ -348,7 +348,7 @@ }, "outputs": [], "source": [ - "vocab = np.array(vectorizer.get_feature_names())" + "vocab = np.array(vectorizer.get_feature_names_out())" ] }, { diff --git a/nbs/5. Health Outcomes with Linear Regression.ipynb b/nbs/5. Health Outcomes with Linear Regression.ipynb index bbbf305..a58e45b 100755 --- a/nbs/5. Health Outcomes with Linear Regression.ipynb +++ b/nbs/5. Health Outcomes with Linear Regression.ipynb @@ -285,7 +285,7 @@ } ], "source": [ - "', '.join(poly.get_feature_names(feature_names))" + "', '.join(poly.get_feature_names_out(feature_names))" ] }, {