VitalyD

Untitled

Nov 21st, 2017
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.68 KB | None | 0 0
  1. ValueError                                Traceback (most recent call last)
  2. <ipython-input-6-fd897dd3acbd> in <module>()
  3.     269 for result in results:
  4.     270     scores=result["scores"]
  5. --> 271     plt.semilogx(alphas, scores,'.-')
  6.     272     pen1=result["activation"]
  7.     273     labels.append('Activation function='+pen1)
  8.  
  9. C:\ProgramData\Anaconda2\lib\site-packages\matplotlib\pyplot.py in semilogx(*args, **kwargs)
  10.    3376                       mplDeprecation)
  11.    3377     try:
  12. -> 3378         ret = ax.semilogx(*args, **kwargs)
  13.    3379     finally:
  14.    3380         ax._hold = washold
  15.  
  16. C:\ProgramData\Anaconda2\lib\site-packages\matplotlib\axes\_axes.py in semilogx(self, *args, **kwargs)
  17.    1625         b = self._hold
  18.    1626         self._hold = True  # we've already processed the hold
  19. -> 1627         l = self.plot(*args, **kwargs)
  20.    1628         self._hold = b  # restore the hold
  21.    1629         return l
  22.  
  23. C:\ProgramData\Anaconda2\lib\site-packages\matplotlib\__init__.py in inner(ax, *args, **kwargs)
  24.    1708                     warnings.warn(msg % (label_namer, func.__name__),
  25.    1709                                   RuntimeWarning, stacklevel=2)
  26. -> 1710             return func(ax, *args, **kwargs)
  27.    1711         pre_doc = inner.__doc__
  28.    1712         if pre_doc is None:
  29.  
  30. C:\ProgramData\Anaconda2\lib\site-packages\matplotlib\axes\_axes.py in plot(self, *args, **kwargs)
  31.    1435         kwargs = cbook.normalize_kwargs(kwargs, _alias_map)
  32.    1436
  33. -> 1437         for line in self._get_lines(*args, **kwargs):
  34.    1438             self.add_line(line)
  35.    1439             lines.append(line)
  36.  
  37. C:\ProgramData\Anaconda2\lib\site-packages\matplotlib\axes\_base.py in _grab_next_args(self, *args, **kwargs)
  38.     402                 this += args[0],
  39.     403                 args = args[1:]
  40. --> 404             for seg in self._plot_args(this, kwargs):
  41.     405                 yield seg
  42.     406
  43.  
  44. C:\ProgramData\Anaconda2\lib\site-packages\matplotlib\axes\_base.py in _plot_args(self, tup, kwargs)
  45.     382             x, y = index_of(tup[-1])
  46.     383
  47. --> 384         x, y = self._xy_from_xy(x, y)
  48.     385
  49.     386         if self.command == 'plot':
  50.  
  51. C:\ProgramData\Anaconda2\lib\site-packages\matplotlib\axes\_base.py in _xy_from_xy(self, x, y)
  52.     241         if x.shape[0] != y.shape[0]:
  53.     242             raise ValueError("x and y must have same first dimension, but "
  54. --> 243                              "have shapes {} and {}".format(x.shape, y.shape))
  55.     244         if x.ndim > 2 or y.ndim > 2:
  56.     245             raise ValueError("x and y can be no greater than 2-D, but have "
  57.  
  58. ValueError: x and y must have same first dimension, but have shapes (8L,) and (1L,)
Advertisement
Add Comment
Please, Sign In to add comment