ocsvm: fixed objective, gradients and fg creation