Checks whether data dimensions for X and y match.

validate_data(X, y)

Arguments

X

A data matrix or data frame.

y

A response vector.