MMMModelBuilder.validate#

MMMModelBuilder.validate(target, data)[source]#

Validate 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:
targetstr

The type of target to be validated. Expected values are “X” for features and “y” for the target variable.

dataUnion[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.