Question: Define a function list _ relu ( L ) which takes as input a list L of numbers, and returns a list which is the

Define a function list_relu(L) which takes as input a list L of numbers, and returns a list which is the same as L except that all negative values in L are replaced with 0. So, for example, list_relu([1,-2,17,-3.2,-15]) should return the list [1,0,17,0,0].

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!