class_docstr: Unit test Contributions Class
  TODO: Docstring
  Parameters
  ----------
  unittest : [type]
      [description]
class_docstr_tok: ["Unit","test","Contributions","Class","TODO",":","Docstring","Parameters","--","--","--","--","--","unittest",":","[","type","]","[","description","]"]
docstr: Unit test inverse transform contributions ce base n
docstr_tok: ["Unit","test","inverse","transform","contributions","ce","base","n"]
code: def test_inverse_transform_contributions_ce_basen(self):
      """
      Unit test inverse transform contributions ce base n
      """
      preprocessing = ce.BaseNEncoder(
          cols=["Age", "Sex"], return_df=True, base=3
      )
      fitted_dataset = preprocessing.fit_transform(
          self.ds_titanic_clean
      )
      contributions = pd.DataFrame(
          data=np.random.rand(
              fitted_dataset.shape[0], fitted_dataset.shape[1]
          ),
          columns=fitted_dataset.columns,
          index=self.ds_titanic_clean.index,
      )
      output = inverse_transform_contributions(
          contributions, preprocessing
      )
      assert isinstance(output, pd.DataFrame)
      assert self.ds_titanic_clean.shape == output.shape
      np.testing.assert_almost_equal(
          contributions.values.sum(axis=1), output.values.sum(axis=1)
      )
  
file_path: shapash/tests/integration_tests/test_contributions_binary.py
imports: import unittest
  from os.path import dirname, abspath, join
  import pandas
  import numpy
  import category_encoders
  from shapash.decomposition.contributions import inverse_transform_contributions
label_desc: Use image node_id 2 for calling the TestContributions obj's underlying member method code with example usage: obj.test_inverse_transform_contributions_ce_basen() without return types