Advertisement
majczel23000

Untitled

Jun 1st, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. X_band_1=np.array([np.array(band).astype(np.float32).reshape(75, 75) for band in tt["band_1"]])
  2.     X_band_2=np.array([np.array(band).astype(np.float32).reshape(75, 75) for band in tt["band_2"]])
  3.     X_train = np.concatenate([X_band_1[:, :, :, np.newaxis], X_band_2[:, :, :, np.newaxis],((X_band_1/X_band_2))[:, :, :, np.newaxis]], axis=-1)
  4.     return X_train
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement