class_docstr: Unit tests for webapp settings class
  Checks that the webapp settings remain valid whether the user input is valid or not
class_docstr_tok: ["Unit","tests","for","webapp","settings","class","Checks","that","the","webapp","settings","remain","valid","whether","the","user","input","is","valid","or","not"]
docstr: Constructor - loads a SmartExplainer object from the appropriate pickle
docstr_tok: ["Constructor","-","loads","a","SmartExplainer","object","from","the","appropriate","pickle"]
code: def __init__(self, *args, **kwargs):
      """
      Constructor - loads a SmartExplainer object from the appropriate pickle
      """
      contributions = pd.DataFrame(
          [[-0.1, 0.2, -0.3], [0.1, -0.2, 0.3]]
      )
      y_pred = pd.DataFrame(data=np.array([1, 2]), columns=["pred"])
      dataframe_x = pd.DataFrame([[1, 2, 3], [1, 2, 3]])
      model = DecisionTreeRegressor().fit([[0]], [[0]])
      self.xpl = SmartExplainer(model=model)
      self.xpl.compile(
          contributions=contributions, x=dataframe_x, y_pred=y_pred
      )
      self.xpl.filter(max_contrib=2)
      super(TestWebappSettings, self).__init__(*args, **kwargs)
  
file_path: shapash/tests/unit_tests/webapp/test_webapp_settings.py
imports: import unittest
  from shapash import SmartExplainer
  from sklearn.tree import DecisionTreeRegressor
  import pandas
  import numpy
label_desc: Use image node_id 1 to create a new TestWebappSettings object from inherited base classes: unittest with example: obj = TestWebappSettings()