Summary

In this chapter, we introduced the Dynamic Time Warping (DTW) algorithm, which is an excellent tool for finding similarity between vectors with an unsupervised learning model. We presented an implementation of DTW to find similarity between a set of images, which works very well in most cases. This method can be used in several other problems, in a variety of areas, such as robotics, computer vision, speech recognition, and time series analysis. We also saw how to turn an image into a time series with the PIL library. Finally, we learned how to implement DTW with the Python mlpy library.

In the next chapter, we will present how simulation can help us in data analysis and how to model pseudo-random events.

Get Practical Data Analysis - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.