for i in range(EEE.shape[1]): samples = [] for j in range(len(namelist)): if namelist[j]…
Jump to turn (6)
- 1for i in range(EEE.shape[1]): samples = [] for j in range(len(namelist)): if nam
- 2翻译成中文
- 3file = 'windpredict' dirpath = './' filename = './windpredict' print('save file:
- 4解释代码
- 5trainimg = trainingset[0] # (B,N,F,T') valimg = validationset[0] testimg = testi
- 6rainx = np.concatenate(trainingset[2:-1], axis=-1) # (B,N,F,T') valx = np.concat
- User
for i in range(EEE.shape[1]): samples = [] for j in range(len(name_list)): if name_list[j] == 'EEE': temp = data[name_list[j]] temp = temp[:, i][0] temp = temp.astype(np.float64) temp = np.expand_dims(temp, axis=0) samples.append(temp) elif name_list[j] == 'EEE0': temp = data[name_list[j]] temp = temp[:, i][0] temp = temp.astype(np.float64) temp = np.expand_dims(temp, axis=0) samples.append(temp) else: temp = data[name_list[j]] temp = temp[:, i] temp = np.expand_dims(temp, axis=0) temp = np.expand_dims(temp, axis=0) samples.append(temp) all_samples.append(samples)
- Assistant