evalml.data_checks.NoVarianceDataCheck.validate

NoVarianceDataCheck.validate(X, y)[source]

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

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

  • y (pd.Series) – The labels.

Returns

list (DataCheckWarning or DataCheckError), list of warnings/errors corresponding to features or labels with no variance.