Code covered by the BSD License  

Highlights from
Geometric Gaussian-Kernel Bolstered Error Estimation for Linear Classification

image thumbnail

Geometric Gaussian-Kernel Bolstered Error Estimation for Linear Classification

by

 

This is fast implementation of bolstered error estimation algorithm for linear SVM classification.

svmcoefs(svm_struct)
function [svm_w, svm_b] = svmcoefs(svm_struct)
% Extract hyperplane coefficients from SVM structure
% svm_struct - structure containing information about the trained linear support vector machine
% Output:
% svm_w - hyperplane coefficients
% svm_b - hyperplane intercept
% NOTE: Works only if the svm was trained with option 'Autoscale', 'off'
sv = svm_struct.SupportVectors;
alphaHat = svm_struct.Alpha;
scaleData = svm_struct.ScaleData;
svm_w = (alphaHat)'*sv;
svm_b = svm_struct.Bias;


Contact us