public function setEstimator(Estimator $estimator) { $this->estimator = $estimator; }
public function testPipelineEstimatorSetter() { $pipeline = new Pipeline([new TfIdfTransformer()], new SVC()); $estimator = new SVR(); $pipeline->setEstimator($estimator); $this->assertEquals($estimator, $pipeline->getEstimator()); }