dataset = $dataset; } /** * Perform a check of the specification and throw an exception if invalid. * * @throws \Rubix\ML\Exceptions\LabelsAreMissing */ public function check() : void { if (!$this->dataset instanceof Labeled) { throw new LabelsAreMissing(); } } }