From f8fad0067cd3aa2e80deec8ed95740bae27ee98c Mon Sep 17 00:00:00 2001 From: arvkevi Date: Sat, 24 Oct 2020 14:20:24 -0400 Subject: [PATCH] Explicitly convert x and y (array-like) to numpy arrays. --- yellowbrick/utils/kneed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yellowbrick/utils/kneed.py b/yellowbrick/utils/kneed.py index 324f97004..5378115e6 100644 --- a/yellowbrick/utils/kneed.py +++ b/yellowbrick/utils/kneed.py @@ -93,8 +93,8 @@ def __init__( ): # Raw Input - self.x = x - self.y = y + self.x = np.array(x) + self.y = np.array(y) self.curve_nature = curve_nature self.curve_direction = curve_direction self.N = len(self.x)