Machine Learning with Swift
上QQ阅读APP看书,第一时间看更新

Hardware acceleration

The KNN algorithm is inherently parallel because to calculate the distance between two data points you don't need to know anything about other data points. This makes it a perfect candidate for GPU acceleration. DTW, as we've mentioned, can also be optimized for parallel execution.