function [b, alphas] = smo_train(X, Y, C, tol, max_passes) % Runs the SMO algorithm. X is the matrix of training examples. Each row is % a training example, and the jth column holds the jth feature. Y is a column % matrix containing 1 for positive examples and -1 for negative examples. C % is the standard SVM regularization parameter. tol is a tolerance value used % for determining equality of floating point numbers. % YOUR CODE HERE