Python Forum
What module is missing? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: What module is missing? (/thread-39772.html)



What module is missing? - Led_Zeppelin - Apr-12-2023

I am getting thee error as shown in the following attachment. It says normal not found. I guess I am missing a library/module.

So, what module should I import for this?
Any help appreciated. Thanks, in advance.

Led_Zepplin


RE: What module is missing? - Gribouillis - Apr-12-2023

What about using a search engine? It found numpy.random.Generator.normal() for me. It looks like a good candidate for generating white noise.


RE: What module is missing? - deanhystad - Apr-12-2023

Next time post a link to the code you are copying. I found it here:

https://machinelearningmastery.com/what-is-bayesian-optimization/

On that page I found this.

from numpy.random import normal