kernel = $kernel; $this->C = $C; $this->tolerance = $tolerance; $this->upperBound = $upperBound; $this->binPath = realpath(implode(DIRECTORY_SEPARATOR, array(dirname(__FILE__), '..', '..', '..', 'bin'))) . DIRECTORY_SEPARATOR; } /** * @param array $samples * @param array $labels */ public function train(array $samples, array $labels) { $this->samples = $samples; $this->labels = $labels; } /** * @param array $sample * * @return mixed */ protected function predictSample(array $sample) { } }