parameters: (self, X)
docstring: Check that func and inverse_func are the inverse.
docstring_summary: Check that func and inverse_func are the inverse.
docstring_tokens: Check that func and inverse_func are the inverse .
function: def _check_inverse_transform(self, X):
          """Check that func and inverse_func are the inverse."""
          idx_selected = slice(None, None, max(1, X.shape[0] // 100))
          X_round_trip = self.inverse_transform(self.transform(X[idx_selected]))
          if not _allclose_dense_sparse(X[idx_selected], X_round_trip):
              warnings.warn("The provided functions are not strictly"
                            " inverse of each other. If you are sure you"
                            " want to proceed regardless, set"
                            " 'check_inverse=False'.", UserWarning)
function_tokens: def _check_inverse_transform ( self , X ) : idx_selected = slice ( None , None , max ( 1 , X . shape [ 0 ] // 100 ) ) X_round_trip = self . inverse_transform ( self . transform ( X [ idx_selected ] ) ) if not _allclose_dense_sparse ( X [ idx_selected ] , X_round_trip ) : warnings . warn ( "The provided functions are not strictly" " inverse of each other. If you are sure you" " want to proceed regardless, set" " 'check_inverse=False'." , UserWarning )