How to Solve NameError: name 'dot' is not defined -- numpy

Solution: Import the 'dot' module

To Solve the error, add the following line to the top of your code.

from numpy import dot

 

For more information:
Python numpy dot