josephmisiti/awesome-machine-learning — pull request #51 by scottsievert (2014-07-17 18:48:45+00:00)
Title: Swix

I'm currently developing an iOS machine learning library with the goal of easy Matlab-iOS conversion. This library includes a general matrix language as well as some OpenCV wrappers (at this point only [SVM][svm], [PCA][pca]/[SVD][svd] and [kNN][knn]).

An example:

```swift
var x = rand((4,10))
var y = randn(4)
var svm = SVM()
svm.train(x, y)

var z = svm.predict(ones(4))
svm.predict(z)
```

Currently, this library is very rough and under active development but the basic framework is nailed down. Since it's under active development, there are still large speed gains to be made that are easy to implement.

[knn]:https://en.wikipedia.org/wiki/K-nearest_neighbor_algorithm
[svm]:https://en.wikipedia.org/wiki/Support_vector_machine
[pca]:https://en.wikipedia.org/wiki/Principal_component_analysis
[svd]:https://en.wikipedia.org/wiki/Singular_value_decomposition