Summary
Full Transcript
Code - https://colab.research.google.com/drive/15sGD09W5CVrYxuayY_81vDXlv6a7f-PB?usp=sharing ------------------------------------------------------------------------------------------------------------------------------------------------------ Time stamp ---------------------- 0:00 Q-1 Create a null vector of size 10 but the fifth value which is 1. 1:39 Q-2 Write a program to generate a random array of shape (a, b) and print the array and avg of the array. 3:14 Q-3 Write a function to create a 2d array with 1 on the border and 0 inside. Take 2-D array shape as (a,b) as parameter to function. 5:36 Q-4 Create a vector of size 10 with values ranging from 0 to 1, both excluded. 6:56 Q-5 Can you create a identity mattrix of shape (3,4). If yes write code for it. 7:37 Q-6 Create a 5x5 matrix with row values ranging from 0 to 4. 9:23 Q-7 Create an array of distance of each point in the random vectros from the given point. 13:51 Q-8 Consider a (6,7,8) shape array, what is the index (x,y,z) of the 100th element? 15:58 Q-9 You are given a space separated list of numbers. Your task is to print a reversed NumPy array with the element type float. 17:28 Q-10 Count the number of elements of a NumPy array. 18:26 Q-11 SoftMax function 22:38 Q-12 Vertical stack 27:36 Q-13 Dates dates between 2 dates 38:06 Q-14 Subtract the mean of each row from a matrix. 40:41 Q-15 Swap column-1 of array with column-2 in the array. 41:22 Q-16 Replace odd elements in arrays with -1. 42:24 Q-17 Given two arrays of same shape make an array of max out of two arrays. (Numpy way) 44:05 Q-18.1 Fetch Every alternate column of the array 45:24 Q-18.2 Normalise a given array 46:37 Q-19 nth largest item out of the array 48:41 Q-20 Question on tile repeat and tile
