train($samples, $labels); $this->assertEquals('b', $classifier->predict([3, 2])); $this->assertEquals('b', $classifier->predict([5, 1])); $this->assertEquals('b', $classifier->predict([4, 3])); $this->assertEquals('b', $classifier->predict([4, -5])); $this->assertEquals('a', $classifier->predict([2, 3])); $this->assertEquals('a', $classifier->predict([1, 2])); $this->assertEquals('a', $classifier->predict([1, 5])); $this->assertEquals('a', $classifier->predict([3, 10])); } }