Parallel#

Multiprocessing is the use of two or more processes that usually execute in parallel on multiple cores. Objects that implement the Parallel interface can take advantage of multi core systems by executing parts or all of their algorithm in parallel. Parallelizable objects can utilize various parallel processing Backends under the hood which are set using the setBackend() method.

Set Backend#

To set the backend processing engine:

public setBackend(Backend $backend) : void

Example

use Rubix\ML\Backends\Amp;

$estimator->setBackend(new Amp(8));

Note: Unless otherwise stated, all objects implementing Parallel have a default backend of Serial.