karpathy/svmjs — pull request #1 by panarch (2012-08-12 05:30:08+00:00)
Title: Fixed predictOne function and implemented "toJSON" and "fromJSON" functions.

ex)
var svm = svmjs.SVM();
svm.train(data, labels);

var exportedJSON = svm.toJSON();

var svm2 = svmjs.SVM();
svm2.fromJSON(exportedJSON);