Slice rolling window array in parfor

Hello,
I get the indexed but not sliced warning for variables inputs (numerical 3209x9)and output (categorical of three classes) in this parfor loop:
matlabpool open
tic
parfor i=1:zet-1008
inputsample=inputs(i:i+1007,:);
outputsample=output(i:i+1007,:);
model = initlssvm(inputsample,outputsample,etc...;
end
toc
matlabpool close
How could I slice those variables to use them in the model?
Kind Regards

Respuestas (2)

Edric Ellis
Edric Ellis el 31 de Mayo de 2013

0 votos

In this case, I think the warning is probably inevitable, and harmless, since the iterations of your loop need to use overlapping portions of data. This warning is simply informing you that the full values of 'inputs' and 'output' need to be transmitted to each worker. The warning exists because in some cases it is possible to eliminate the non-sliced access, and that results in less data transmission.
Roji
Roji el 31 de Mayo de 2013

0 votos

Many, many thanks Edric.
Kindest Regards,
Roji

Categorías

Preguntada:

el 28 de Mayo de 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by