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