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

Solution: Import the 'exp' module

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

from numpy import exp

 

For more information:
Python numpy exp