function dat  =  testing(algo,dat)
%dat =  testing(algo,dat)
% Test by using the .
% Inputs:
% algo -- A naive classifier object.
% dat -- A test data object.
% Returns:
% dat -- The same data structure, but X is replaced by the class label
% predictions on test data.

% Isabelle Guyon -- September 2005 -- isabelle@clopinet.com

n=get_name(algo);
dat=ld_test(algo, dat);

if algo.algorithm.use_signed_output
    dat=set_x(dat, sign(get_x(dat)));
end
 
dat=set_name(dat,[get_name(dat) ' -> ' get_name(algo)]); 
  

 