function mre(predictions, actualdata)
	#Julia: simple version of mre( without checking the third parameter)
	#%if the third parameter is provided as true, then we will first convert
	#%everything into integers!
	#if nargin == 3 && varargin{1}
	#    predictions = ceil(predictions);
	#    actualdata = ceil(actualdata);
	#end;

	#% mean absolute error

	out = zeros(1,size(predictions,2));
	for i=1:size(predictions,2)
		if i > size(actualdata,2)
			continue
		end
		act = actualdata[:,i];
		pre = predictions[:,i];
		nonz = find(act);

		#%My own definition
		out[i] = mean(abs(pre[nonz]-act[nonz])./abs(act[nonz]));
		#%Weka!!
		#%avgAct = mean(act);
		#%out(i) = sum(abs(pre-act)) / sum(abs(avgAct-act));
	end
	out
end
