ssm.log 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. Traceback (most recent call last):
  2. File "/opt/anaconda3/lib/python3.8/site-packages/jupyter_cache/executors/utils.py", line 51, in single_nb_execution
  3. executenb(
  4. File "/opt/anaconda3/lib/python3.8/site-packages/nbclient/client.py", line 1087, in execute
  5. return NotebookClient(nb=nb, resources=resources, km=km, **kwargs).execute()
  6. File "/opt/anaconda3/lib/python3.8/site-packages/nbclient/util.py", line 74, in wrapped
  7. return just_run(coro(*args, **kwargs))
  8. File "/opt/anaconda3/lib/python3.8/site-packages/nbclient/util.py", line 53, in just_run
  9. return loop.run_until_complete(coro)
  10. File "/opt/anaconda3/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
  11. return future.result()
  12. File "/opt/anaconda3/lib/python3.8/site-packages/nbclient/client.py", line 540, in async_execute
  13. await self.async_execute_cell(
  14. File "/opt/anaconda3/lib/python3.8/site-packages/nbclient/client.py", line 832, in async_execute_cell
  15. self._check_raise_for_error(cell, exec_reply)
  16. File "/opt/anaconda3/lib/python3.8/site-packages/nbclient/client.py", line 740, in _check_raise_for_error
  17. raise CellExecutionError.from_cell_and_msg(cell, exec_reply['content'])
  18. nbclient.exceptions.CellExecutionError: An error occurred while executing the following cell:
  19. ------------------
  20. # MAP estimation
  21. fig, ax = plt.subplots()
  22. plot_inference(z_map, z_hist, ax, map_estimate=True)
  23. ax.set_ylabel("MAP state")
  24. ax.set_title("Viterbi")
  25. ------------------
  26. ---------------------------------------------------------------------------
  27. NameError Traceback (most recent call last)
  28. <ipython-input-12-d20416120056> in <module>
  29.  1 # MAP estimation
  30.  2 fig, ax = plt.subplots()
  31. ----> 3 plot_inference(z_map, z_hist, ax, map_estimate=True)
  32.  4 ax.set_ylabel("MAP state")
  33.  5 ax.set_title("Viterbi")
  34. NameError: name 'z_map' is not defined
  35. NameError: name 'z_map' is not defined