PHPML\Pipeline::setEstimator PHP Method

setEstimator() public method

public setEstimator ( phpml\Estimator $estimator )
$estimator phpml\Estimator
    public function setEstimator(Estimator $estimator)
    {
        $this->estimator = $estimator;
    }

Usage Example

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