public function train(array $samples, array $targets) { $this->samples = $samples; $this->targets = $targets; }