{"issue":{"created_at":"2011-10-09T13:58:37Z","state":"open","updated_at":"2011-12-05T14:26:07Z","comments":3,"user":{"gravatar_id":"af78619231b186055bdd40c5057af17d","id":233706,"url":"https://api.github.com/users/mblondel","login":"mblondel","avatar_url":"https://secure.gravatar.com/avatar/af78619231b186055bdd40c5057af17d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"`LinearSVC` and `SVC`'s `predict` and `decision_function` could easily be implemented in pure python.\r\n\r\nAdvantages:\r\n\r\n* Reduce binding size\r\n* Avoid the creation of liblinear and libsvm's internal models from numpy arrays / sparse matrices at each call\r\n\r\nDisadvantage:\r\n\r\n* Less memory efficient if `predict` is implemented as the argmax of `decision_function`\r\n\r\n\r\nThis should also solve the problem that `decision_function` is not implemented in `sparse.SVC`.\r\n\r\nIn any case, we should probably do a little benchmark to make sure we don't loose too much in runtime speed.","assignee":null,"number":388,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"id":1856148,"labels":[{"color":"02e10c","name":"EasyFix","url":"https://api.github.com/repos/scikit-learn/scikit-learn/labels/EasyFix"},{"color":"02d7e1","name":"SVM","url":"https://api.github.com/repos/scikit-learn/scikit-learn/labels/SVM"}],"title":"implement (Linear)SVC predict and decision_function in pure Python","html_url":"https://github.com/scikit-learn/scikit-learn/issues/388","closed_at":null,"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/388","milestone":null},"action":"created","comment":{"created_at":"2011-12-05T14:26:07Z","updated_at":"2011-12-05T14:26:07Z","user":{"gravatar_id":"ad6f40e3a5e62ff3e31fb0f38dcfab97","id":22715,"url":"https://api.github.com/users/tehf0x","login":"tehf0x","avatar_url":"https://secure.gravatar.com/avatar/ad6f40e3a5e62ff3e31fb0f38dcfab97?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"+1 for decision_function in sparse.SVC, I was about to file a bug on that, but I guess I won't unless someone thinks it's worth it.","id":3017537,"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments/3017537"}}