% classify spect data
load spect.mat

Forest  = learnForest(Xtr, Ytr,100); %train the forest
Yeval = classForest(Forest, Xtest); %classify using the forest
acc   = 100 * sum(Yeval == Ytest)/length(Ytest) %calculate the accuracy of the resulted prediction