Question: Python Coding Problem 3. Define a function list_relu(L) which takes as input a list L of numbers, and returns a list which is the same

Python Coding

Python Coding Problem 3. Define a function list_relu(L) which takes as input

Problem 3. 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]. Hint: Your code will probably need to use an if statement inside a for loop. Problem 4. Find the value of e5 log(75) ecos(3) using NumPy functions, and save its value as the variable my_var. Here log(V5) denotes the natural logarithm of V5 (i.e. the logarithm with base e)

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!