Write a python code to implement RELU function


Topic: Write a python code to implement RELU function

Solution

def relu(array):
    return [max(0,i) for i in array if(isinstance(i, int) or isinstance(i, float))]



List all Python Programs