protected function predictSample(array $sample) { return $this->perceptron->setInput($sample)->getOutput(); }