DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
create a relu function in python
# Method 1
def
ReLU
(
x
)
:
return
max
(
x
,
0
)
# Method 2 by a lambda function
lambda
x
:
max
(
x
,
0
)
PREVIOUS
NEXT
Tagged:
#create
#relu
#function
#python
ADD COMMENT
Topic
COMMENT
Name
3+1 =
Submit