addpath('../11_logistic_regression/');
clear all;
load('diabetes.mat');
X = X';
Y = Y';
% set C_range
lambda = [0.0001 0.001 0.01 0.1 1 10 100 1000 10000];
[err, std_err] = nestedCrossValidation(X,Y,@learnLogReg, @classLogReg,10,3,lambda);
disp(['major class error: ' num2str(min(sum(Y == 1),sum(Y == -1)) / length(Y))]);