---------------------------------------------------------------------------
KeyboardInterrupt Traceback (most recent call last)
<ipython-input-8-2a5bc3a0e6fc> in <module>()
----> 1 plot_speedup()
<ipython-input-7-9e78ac9d2f7a> in plot_speedup(trials, factors)
39 local_speedups = []
40 for trial in range(trials):
---> 41 local_speedups.append(pcoords_speedup(X, y))
42
43 local_speedups = np.array(local_speedups)
<ipython-input-7-9e78ac9d2f7a> in pcoords_speedup(X, y)
24 def pcoords_speedup(X, y):
25 fast_time = pcoords_time(X, y, fast=True)
---> 26 slow_time = pcoords_time(X, y, fast=False)
27
28 return slow_time / fast_time
<ipython-input-7-9e78ac9d2f7a> in pcoords_time(X, y, fast)
13
14 start = time.time()
---> 15 oz.fit_transform(X, y)
16 delta = time.time() - start
17
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/sklearn/base.py in fit_transform(self, X, y, **fit_params)
554 else:
555 # fit method of arity 2 (supervised transformation)
--> 556 return self.fit(X, y, **fit_params).transform(X)
557
558
~/Desktop/eudicot/acorn/my_yb/yellowbrick/features/pcoords.py in fit(self, X, y, **kwargs)
373
374 # the super method calls draw and returns self
--> 375 return super(ParallelCoordinates, self).fit(X, y, **kwargs)
376
377 def draw(self, X, y, **kwargs):
~/Desktop/eudicot/acorn/my_yb/yellowbrick/features/base.py in fit(self, X, y, **kwargs)
278
279 # Draw the instances
--> 280 self.draw(X, y, **kwargs)
281
282 # Fit always returns self.
~/Desktop/eudicot/acorn/my_yb/yellowbrick/features/pcoords.py in draw(self, X, y, **kwargs)
394 if self.fast:
395 return self.draw_classes(X, y, **kwargs)
--> 396 return self.draw_instances(X, y, **kwargs)
397
398 def draw_instances(self, X, y, **kwargs):
~/Desktop/eudicot/acorn/my_yb/yellowbrick/features/pcoords.py in draw_instances(self, X, y, **kwargs)
435 self.ax.plot(
436 self._increments, Xi,
--> 437 color=self._colors[label], alpha=alpha, **kwargs
438 )
439
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/matplotlib/axes/_axes.py in plot(self, scalex, scaley, data, *args, **kwargs)
1667 for line in lines:
1668 self.add_line(line)
-> 1669 self.autoscale_view(scalex=scalex, scaley=scaley)
1670 return lines
1671
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/matplotlib/axes/_base.py in autoscale_view(self, tight, scalex, scaley)
2411 (self._xmargin and scalex and self._autoscaleXon) or
2412 (self._ymargin and scaley and self._autoscaleYon)):
-> 2413 stickies = [artist.sticky_edges for artist in self.get_children()]
2414 x_stickies = np.array([x for sticky in stickies for x in sticky.x])
2415 y_stickies = np.array([y for sticky in stickies for y in sticky.y])
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/matplotlib/axes/_base.py in <listcomp>(.0)
2411 (self._xmargin and scalex and self._autoscaleXon) or
2412 (self._ymargin and scaley and self._autoscaleYon)):
-> 2413 stickies = [artist.sticky_edges for artist in self.get_children()]
2414 x_stickies = np.array([x for sticky in stickies for x in sticky.x])
2415 y_stickies = np.array([y for sticky in stickies for y in sticky.y])
KeyboardInterrupt: