We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
def composite_dis(df_wave, wave_all): dtw_dis = dict() for i in range(0, len(df_wave)): dtw_ij = dict() for j in range(0, len(df_wave[i])): krec = [] for k in df_wave[i][j].keys(): krec.append(k) for l in df_wave[i][j].keys(): if l not in krec: if k == l: continue else: wave_npk = np.empty( dtype=int, shape=[len(df_wave[i][j][k][k].values), 2] ) wave_npl = np.empty( dtype=int, shape=[len(df_wave[i][j][k][k].values), 2] ) wave_npk[:, 0] = df_wave[i][j][k]['data_time'].values wave_npk[:, 1] = df_wave[i][j][k][k].values wave_npl[:, 0] = df_wave[i][j][k]['data_time'].values wave_npl[:, 1] = df_wave[i][j][l][l].values manhattan_distance = lambda x, y: np.abs(wave_npk[:, 1] - wave_npl[:, 1]) dtw_ij[k+'_'+l] = dtw(wave_npk[:, 1], wave_npl[:, 1], dist=manhattan_distance) dtw_dis[str(i)] = dtw_ij return dtw_dis`
"I use dtw package, but the np.array emerge the above problem." what should I do?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
"I use dtw package, but the np.array emerge the above problem."
what should I do?
The text was updated successfully, but these errors were encountered: