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

Solution: Import the 'norm' module

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

from numpy.linalg import norm

 

For more information:
Python numpy norm