ddl.utils.check_X_in_interval

ddl.utils.check_X_in_interval(X, interval)[source]

Check if the input X lies in the specified interval.

Parameters:
X : array-like, shape (n_samples, n_features)

Data matrix to check.

interval : array-like, shape (2,) or (2, n_features)

Interval to check. See check_domain for interval types.

Returns:
X : array, shape (n_samples, n_features)

Data matrix as numpy array after checking and possibly shifting/scaling data as necessary to fit within specified interval.