Notebook
W = np.zeros((x.shape[1], n_classes), dtype = dtype) b = np.zeros(n_classes, dtype = dtype) print x.dtype, y1.dtype, W.dtype, b.dtype def batch_cost_l2(W, b): #W, b = Wb return ova_svm_cost_l2(W, b, x, y1) import scipy as sp #W, b = sp.optimize.fmin_bfgs(batch_cost_l2, (W, b)) autodiff.optimize.fmin_l_bfgs_b(batch_cost_l2, (W, b)) print 'final cost', batch_cost_l2(W, b) import util util.show_filters(W.T, img_shape, (2, 5))