code: def test_inverse_transform(self, algo):
      iris = datasets.load_iris()
      df = pdml.ModelFrame(iris)
  
      mod1 = getattr(df.decomposition, algo)()
      mod2 = getattr(decomposition, algo)()
  
      df.fit(mod1)
      mod2.fit(iris.data, iris.target)
  
      result = df.transform(mod1)
      expected = mod2.transform(iris.data)
  
      self.assertIsInstance(result, pdml.ModelFrame)
      tm.assert_series_equal(df.target, result.target)
      self.assert_numpy_array_almost_equal(result.data.values, expected)
  
      result = df.inverse_transform(mod1)
      expected = mod2.inverse_transform(iris.data)
  
      self.assertIsInstance(result, pdml.ModelFrame)
      tm.assert_series_equal(df.target, result.target)
      self.assert_numpy_array_almost_equal(result.data.values, expected)
      tm.assert_index_equal(result.columns, df.columns)
  
file_path: pandas-ml/pandas_ml/skaccessors/test/test_decomposition.py
imports: import pytest
  import sklearn.datasets
  import sklearn.decomposition
  import pandas_ml
  import pandas_ml.util.testing
label_desc: Use image node_id 10 for calling the TestDecomposition obj's underlying member method code with example usage: obj.test_inverse_transform(algo) without return types