This page

scikits.learn.svm.libsvm.decision_function

scikits.learn.svm.libsvm.decision_function()

Predict margin (libsvm name for this is predict_values)

We have to reconstruct model and parameters to make sure we stay in sync with the python object.