imblearn.utils.hash_X_y

imblearn.utils.hash_X_y(X, y, n_samples=1000)[source][source]

Compute hash of the input arrays.

Parameters:

X : ndarray, shape (n_samples, n_features)

The X array.

y : ndarray, shape (n_samples)

Returns:

X_hash: str

Hash identifier of the X matrix.

y_hash: str

Hash identifier of the y matrix.