evalml.data_checks.NoVarianceDataCheck.validate

NoVarianceDataCheck.validate(X, y)[source]

Check if the target or any of the features have no variance (1 unique value).

Parameters
  • X (pd.DataFrame) – The input features.

  • y (pd.Series) – The target data.

Returns

dict of warnings/errors corresponding to features or target with no variance.

Return type

dict (DataCheckWarning or DataCheckError)