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 (ww.DataTable, pd.DataFrame, np.ndarray) – The input features.

  • y (ww.DataColumn, pd.Series, np.ndarray) – The target data.

Returns

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

Return type

dict