mardi 28 novembre 2017

How get training and test(predicting) time for fitcensemble

I use this code for training and testing my database:

train = fitcensemble(data,'normal','Method','Bag');
test = predict(train,database);
cp = classperf(truelables,classout);

but I want my test and train Time, please help me

tic;toc;

dosn't work well, and give me all time of read and write from workspace and fitcensemble, I need just self time of fitcensemble, this part is my training time , this problem is for predict time too, please please help me( I got my answer just in 'Run and Time' bottom in MATLAB but I need code, Thanks a lot

Aucun commentaire:

Enregistrer un commentaire