Skip to content

Commit

Permalink
Don't check for donors here, use the strategy to check
Browse files Browse the repository at this point in the history
  • Loading branch information
27pchrisl committed May 26, 2024
1 parent 6e81fdf commit 9dec363
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Transformers/MissingDataImputer.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,6 @@ public function fit(Dataset $dataset) : void
continue;
}

if (empty($donors)) {
throw new InvalidArgumentException('Dataset must contain'
. ' at least 1 donor per feature column.');
}

$strategy->fit($donors);

$this->strategies[$column] = $strategy;
Expand Down

0 comments on commit 9dec363

Please sign in to comment.