predictSample($samples); } $predicted = []; foreach ($samples as $index => $sample) { $predicted[$index] = $this->predictSample($sample); } return $predicted; } /** * @return mixed */ abstract protected function predictSample(array $sample); }