Should I use parfor on an already multithreaded function (decision tree,...)?

1 visualización (últimos 30 días)
Dang Manh Truong
Dang Manh Truong el 11 de Feb. de 2017
Respondida: Jan el 11 de Feb. de 2017
Hi, I want to train many decision trees in parallel by using parfor, but I've heard elsewhere that they are multithreaded, so should I use parfor with them? I tried on some datasets, but they seem to be slower. However I don't know if things would be the same for very large datasets. Please help me, my understanding of parallel processing is very limited, I don't even understand the difference between process and thread, thank you very much

Respuestas (1)

Jan
Jan el 11 de Feb. de 2017
Trying is the best way to find out, if it runs faster or not. There is no general best way and it depends on the data and the algorithm.

Categorías

Más información sobre Parallel for-Loops (parfor) en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by