MMM.validate#
- MMM.validate(target, data)#
Validates the input data based on the specified target type.
This function loops over the validation methods specified for the target type and applies them to the input data.
- Parameters:
target (str) – The type of target to be validated. Expected values are “X” for features and “y” for the target variable.
data (Union[pd.DataFrame, pd.Series, np.ndarray]) – The input data to be validated.
- Raises:
ValueError – If the target type is not “X” or “y”, a ValueError will be raised.
- Return type:
None