**Note**: The optimal number of workers will depend on the system * specifications of the computer. Fewer workers than CPU cores can result in * slower performance but too many workers can cause excess overhead. * * @category Machine Learning * @package Rubix/ML * @author Andrew DalPino */ trait Multiprocessing { /** * The parallel processing backend. * * @var \Rubix\ML\Backends\Backend */ protected \Rubix\ML\Backends\Backend $backend; /** * Set the parallel processing backend. * * @param \Rubix\ML\Backends\Backend $backend */ public function setBackend(Backend $backend) : void { $this->backend = $backend; } }