DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
in np array how to make element as 1 if it exceeds the threshold
a = [0 if a_ > thresh else a_ for a_ in a]
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#np
#array
#element
#exceeds
#threshold
ADD COMMENT
Topic
COMMENT
Name
5+4 =
Submit