Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ValueError Traceback (most recent call last)
- <ipython-input-6-fd897dd3acbd> in <module>()
- 269 for result in results:
- 270 scores=result["scores"]
- --> 271 plt.semilogx(alphas, scores,'.-')
- 272 pen1=result["activation"]
- 273 labels.append('Activation function='+pen1)
- C:\ProgramData\Anaconda2\lib\site-packages\matplotlib\pyplot.py in semilogx(*args, **kwargs)
- 3376 mplDeprecation)
- 3377 try:
- -> 3378 ret = ax.semilogx(*args, **kwargs)
- 3379 finally:
- 3380 ax._hold = washold
- C:\ProgramData\Anaconda2\lib\site-packages\matplotlib\axes\_axes.py in semilogx(self, *args, **kwargs)
- 1625 b = self._hold
- 1626 self._hold = True # we've already processed the hold
- -> 1627 l = self.plot(*args, **kwargs)
- 1628 self._hold = b # restore the hold
- 1629 return l
- C:\ProgramData\Anaconda2\lib\site-packages\matplotlib\__init__.py in inner(ax, *args, **kwargs)
- 1708 warnings.warn(msg % (label_namer, func.__name__),
- 1709 RuntimeWarning, stacklevel=2)
- -> 1710 return func(ax, *args, **kwargs)
- 1711 pre_doc = inner.__doc__
- 1712 if pre_doc is None:
- C:\ProgramData\Anaconda2\lib\site-packages\matplotlib\axes\_axes.py in plot(self, *args, **kwargs)
- 1435 kwargs = cbook.normalize_kwargs(kwargs, _alias_map)
- 1436
- -> 1437 for line in self._get_lines(*args, **kwargs):
- 1438 self.add_line(line)
- 1439 lines.append(line)
- C:\ProgramData\Anaconda2\lib\site-packages\matplotlib\axes\_base.py in _grab_next_args(self, *args, **kwargs)
- 402 this += args[0],
- 403 args = args[1:]
- --> 404 for seg in self._plot_args(this, kwargs):
- 405 yield seg
- 406
- C:\ProgramData\Anaconda2\lib\site-packages\matplotlib\axes\_base.py in _plot_args(self, tup, kwargs)
- 382 x, y = index_of(tup[-1])
- 383
- --> 384 x, y = self._xy_from_xy(x, y)
- 385
- 386 if self.command == 'plot':
- C:\ProgramData\Anaconda2\lib\site-packages\matplotlib\axes\_base.py in _xy_from_xy(self, x, y)
- 241 if x.shape[0] != y.shape[0]:
- 242 raise ValueError("x and y must have same first dimension, but "
- --> 243 "have shapes {} and {}".format(x.shape, y.shape))
- 244 if x.ndim > 2 or y.ndim > 2:
- 245 raise ValueError("x and y can be no greater than 2-D, but have "
- ValueError: x and y must have same first dimension, but have shapes (8L,) and (1L,)
Advertisement
Add Comment
Please, Sign In to add comment