setEstimator() public method

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