![]() ‘How to Index, Slice and Reshape NumPy Arrays for Machine Learning’ #How to select particular rows of all submatrixĭoo,0] #Select 1st (0th) row from each submatrixĭoo,1] #Select 2nd (1st) row from each submatrixĭoo,2] #Select 3rd (2nd) row from each submatrixĭoo,0] #Select 1st (0th) row from first and last submatrixĭoo,1] #Select 2nd (1st) row from first and last submatrix #Selecting particular rows - the list is not exhaustible #Specific columns of all submatrices 3x3x3ĭoo] #First, second and fourth cols of all submatrices #Example 1st and 2nd columns of each submatrix #Specific columns of all submatrices 3x3 -please relate this to the 3x4x3 matrixĭoo #First column of all submatricesĭoo #Second column of all submatrices #Getting specific columns for a particular submatrixĭoo,0] #1st submatrix, rows 0-2, 0th column, that is first column of first submatrixĭoo,1] #1st submatrix, rows 0-2, 0th column, that is the 2nd column of first submatrixĭoo,0] #2nd submatrix, rows 0-2, 0th column, that is the 1st column of 2nd submatrixĭoo,1] #2nd submatrix rows 0-2, 1st column, that is the 2nd column of 2nd submatrix # We relate all examples from the 3x3x4 arrayĭoo # The first row (0th) of each submatrixĭoo # The second row (1st) of each submatrixĭoo # The third row (2nd) of each submatrix
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |