print('computation time DTW 2 = '+str(time()-tic))
op_2_x=[col[0]forcolinoptimal_path_2]
op_2_y=[col[1]forcolinoptimal_path_2]
ifTrue:
plt.imshow(dm_2.T,origin='lower')
plt.plot(op_2_x,op_2_y,':w')
plt.title('DTW 2 = '+str(round(dtw_score_2,3)))
```
%% Output
computation time DTW 2 = 0.004911184310913086
%% Cell type:markdown id: tags:
Notice that the 'barebones' (default) version of method 2 returns a DTW based on absolute differences, not on the Euclidean distance as in the 'cocky' version used by the tslearn library.