You can use numpy.log instead. Math.log is expecting a single number, not array.
More Related Contents:
- code that count the amount of yes and no in a list [closed]
- how to unpack a tuple in this form (‘abc’, [20, 20])? [closed]
- Convert bytes to a string
- How to pass arguments to a Button command in Tkinter?
- How do I use raw_input in Python 3
- Relative imports – ModuleNotFoundError: No module named x
- Find all combinations of a list of numbers with a given sum
- python ctypes issue on different OSes
- Threads and tkinter
- numpy is already installed with Anaconda but I get an ImportError (DLL load failed: The specified module could not be found)
- tkinter.TclError: image “pyimage3” doesn’t exist
- Simplest async/await example possible in Python
- Sorting list by an attribute that can be None
- How to use threading in Python?
- Nested list comprehension scope
- How to check if a variable is a function in Python?
- time.time vs. timeit.timeit
- How do the scoping rules work with classes?
- Identifying the data type of an input
- “Failed to load HostKeys” warning while connecting to SFTP server with pysftp
- Using 100% of all cores with the multiprocessing module
- What should I put in the body of an abstract method?
- pass task instance variables as op_args
- Resize fields in Django Admin
- PyQt4 center window on active screen
- AttributeError: Could not find PyAudio; check installation…can’t use speech Recognition
- Performing len on list of a zip object clears zip [duplicate]
- What does the slice() function do in Python?
- Can’t use chrome driver for Selenium
- how to add a coroutine to a running asyncio loop?