Write a python class/method that will: 1. Load a npy file into ndarray, assert that the loaded array has shape (*,*, 7) 2. Crop the loaded array along the dimension number 1 (count starts at 0) with a...


Write a python class/method that will:
1. Load a npy file into ndarray, assert that the loaded array has shape (*,*, 7) 2. Crop the
loaded array along the dimension number 1 (count starts at 0) with a sliding window of
length K, and take every 10th sample in dimension number 2, to an array shape of (*,*, K,
7). Take the 2nd feature (dimension -1) to an array of shape (*,*,K), concatenate along the
first dimension to an array of shape (*,K)



Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here