public function train(Dataset $dataset) : void
    {
        $this->fit($dataset);

        if ($this->estimator instanceof Learner) {
            $this->estimator->train($dataset);
        }

        $this->fitted = true;
    }
public function train(Dataset $dataset) : void
    {
        $this->fit($dataset);

        if ($this->estimator instanceof Learner) {
            $this->estimator->train($dataset);
        }

        $this->fitted = true;
    }
public function train ( Dataset $ dataset ) : void { $ this -> fit ( $ dataset ) ; if ( $ this -> estimator instanceof Learner ) { $ this -> estimator -> train ( $ dataset ) ; } $ this -> fitted = true ; }
Run the training dataset through all transformers in order and use the
transformed dataset to train the estimator.

@param \Rubix\ML\Datasets\Dataset $dataset
Run the training dataset through all transformers in order and use the transformed dataset to train the estimator .