Skip to content

Commit

Permalink
Don't check for donors here, use the strategy to check (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
27pchrisl committed Jun 26, 2024
1 parent d43a5f2 commit 3b7032a
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 3b7032a

Please sign in to comment.