During the fit stage of MissingDataImputer, it checks if there are donors: "Dataset must contain at least 1 donor per feature column.".
This is true for every strategy except the Constant strategy, where you don't need donors.
I checked, and every other strategy does its own check, throwing the right Exception if the provided array is empty.
This PR removes the check within MissingDataImputer so it's possible to use the Constant strategy with a dataset that has no donors.
Hi,
During the fit stage of
MissingDataImputer
, it checks if there are donors: "Dataset must contain at least 1 donor per feature column.".This is true for every strategy except the
Constant
strategy, where you don't need donors. I checked, and every other strategy does its own check, throwing the rightException
if the provided array is empty.This PR removes the check within
MissingDataImputer
so it's possible to use theConstant
strategy with a dataset that has no donors.