setFeatureSubsetRatio('log'); return $classifier; } protected function getAvailableBaseClassifiers() { return [ DecisionTree::class => ['depth' => 5] ]; } public function testOtherBaseClassifier() { try { $classifier = new RandomForest(); $classifier->setClassifer(NaiveBayes::class); $this->assertEquals(0, 1); } catch (\Exception $ex) { $this->assertEquals(1, 1); } } }