Auto-assigning NUTS sampler...
Initializing NUTS using ADVI...
Average Loss = 21.01: 6%|▌ | 12261/200000 [00:01<00:23, 7886.79it/s]
Convergence archived at 12600
Interrupted at 12,600 [6%]: Average Loss = 469.16
99%|█████████▉| 7920/8000 [00:21<00:00, 359.80it/s]/Users/balarsen/miniconda3/envs/python3/lib/python3.6/site-packages/pymc3/step_methods/hmc/nuts.py:456: UserWarning: Chain 1 contains 5 diverging samples after tuning. If increasing `target_accept` does not help try to reparameterize.
% (self._chain_id, n_diverging))
100%|█████████▉| 7998/8000 [00:22<00:00, 373.82it/s]/Users/balarsen/miniconda3/envs/python3/lib/python3.6/site-packages/pymc3/step_methods/hmc/nuts.py:456: UserWarning: Chain 0 contains 6 diverging samples after tuning. If increasing `target_accept` does not help try to reparameterize.
% (self._chain_id, n_diverging))
100%|██████████| 8000/8000 [00:22<00:00, 363.09it/s]
/Users/balarsen/miniconda3/envs/python3/lib/python3.6/site-packages/pymc3/step_methods/hmc/nuts.py:456: UserWarning: Chain 2 contains 9 diverging samples after tuning. If increasing `target_accept` does not help try to reparameterize.
% (self._chain_id, n_diverging))
/Users/balarsen/miniconda3/envs/python3/lib/python3.6/site-packages/pymc3/step_methods/hmc/nuts.py:456: UserWarning: Chain 3 contains 2 diverging samples after tuning. If increasing `target_accept` does not help try to reparameterize.
% (self._chain_id, n_diverging))
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-88-e202e53a8b06> in <module>()
16
17 plt.figure(figsize=(7, 7))
---> 18 plt.plot(np.linspace(0, 180, 100), PA(amp, np.linspace(0, 180, 100), order))
19 plt.plot(angles, vals, 'x')
20
~/miniconda3/envs/python3/lib/python3.6/site-packages/matplotlib/pyplot.py in plot(*args, **kwargs)
3315 mplDeprecation)
3316 try:
-> 3317 ret = ax.plot(*args, **kwargs)
3318 finally:
3319 ax._hold = washold
~/miniconda3/envs/python3/lib/python3.6/site-packages/matplotlib/__init__.py in inner(ax, *args, **kwargs)
1896 warnings.warn(msg % (label_namer, func.__name__),
1897 RuntimeWarning, stacklevel=2)
-> 1898 return func(ax, *args, **kwargs)
1899 pre_doc = inner.__doc__
1900 if pre_doc is None:
~/miniconda3/envs/python3/lib/python3.6/site-packages/matplotlib/axes/_axes.py in plot(self, *args, **kwargs)
1404 kwargs = cbook.normalize_kwargs(kwargs, _alias_map)
1405
-> 1406 for line in self._get_lines(*args, **kwargs):
1407 self.add_line(line)
1408 lines.append(line)
~/miniconda3/envs/python3/lib/python3.6/site-packages/matplotlib/axes/_base.py in _grab_next_args(self, *args, **kwargs)
405 return
406 if len(remaining) <= 3:
--> 407 for seg in self._plot_args(remaining, kwargs):
408 yield seg
409 return
~/miniconda3/envs/python3/lib/python3.6/site-packages/matplotlib/axes/_base.py in _plot_args(self, tup, kwargs)
379 if len(tup) == 2:
380 x = _check_1d(tup[0])
--> 381 y = _check_1d(tup[-1])
382 else:
383 x, y = index_of(tup[-1])
~/miniconda3/envs/python3/lib/python3.6/site-packages/matplotlib/cbook.py in _check_1d(x)
2218 dimension; leaves everything else untouched.
2219 '''
-> 2220 if not hasattr(x, 'shape') or len(x.shape) < 1:
2221 return np.atleast_1d(x)
2222 else:
TypeError: object of type 'TensorVariable' has no len()