'check X format
check X format and make sure no negative value in X.
Parameters
X :  array-like or sparse matrix'

def _check_non_neg_array(self, X, whom):

    X = check_array(X, accept_sparse='csr')
    check_non_negative(X, whom)
    return X
