Parallel Python System Call

for(i = 1: totalIter)
[gibbs{i}.A, gibbs{i}.A_reshaped, gibbs{i}.Z] = callPython...
('C:\Users\launch_train.py', ...
'C:\Users\Desktop\here\', 'C:\Users\Desktop\here\',...
3, 99999, alphaArray(i), sigmaAArray(i), sigmaXArray(i));
[gibbs{i}.summe, gibbs{i}.minError, gibbs{i}.indexBestFeatures] = featuresError(gibbs{i}.A_reshaped, feature_old);
disp(sprintf('Gibbs Iter %d', i));
end
Hi Matlab Community,
I want to call the system call in the loop in parallel to accelerate runtime.
The python script usually runs for <5min in sequental. According to my knowldege it should be easy to do with parfor.
When I use parfor non of the system calls ever terminates. Anyone has a idea what am I doing wrong or how I can see whats going on in the iterations?
Ps: I know about calling python with py. but thats not working properly for my purposes.
Thank you!

Réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by