function [data] = loaddata()

load cancer.dat; 
X = cancer(:,1:end-1);
Y = cancer(:,end); 

In = find(Y<0);
Ip = find(Y>0);

n = 100;

data.xtrain = [X(Ip(1:n),:);X(In(1:n),:)];
data.ytrain = [Y(Ip(1:n));Y(In(1:n))];

data.xtest = [X(Ip(n+1:end),:);X(In(n+1:end),:)];
data.ytest = [Y(Ip(n+1:end));Y(In(n+1:end))];
