
% this can only generate something to
% the scaled files used by our KDD paper

[y1,x1] = libsvmread('train');
%[y2,x2] = libsvmread('test');
%x = [x1;x2]; 
x = x1;
[l, n ] = size(x);

newx = x;

for j=1:n,
  m = nnz(x(:,j));
  if (m > 0)
    newx(:,j) = log(1+x(:,j))*log2(l/m);
  end
end

%v = newx(4432,:)/norm(newx(4432,:))
%v = newx(2275,:)/norm(newx(2275,:))
v = newx(3444,:)/norm(newx(3444,:))