class_docstr: Unit test Smart Predictor class
class_docstr_tok: ["Unit","test","Smart","Predictor","class"]
docstr: Unit test modify_mask method
docstr_tok: ["Unit","test","modify_mask","method"]
code: def test_modfiy_mask(self):
      """
      Unit test modify_mask method
      """
      predictor_1 = self.predictor_2
  
      assert all(
          [value is None for value in predictor_1.mask_params.values()]
      )
  
      predictor_1.modify_mask(max_contrib=1)
  
      assert not all(
          [value is None for value in predictor_1.mask_params.values()]
      )
      assert predictor_1.mask_params["max_contrib"] == 1
      assert predictor_1.mask_params["positive"] == None
  
      predictor_1.modify_mask(max_contrib=2)
  
imports: import unittest
  from shapash.explainer.smart_predictor import SmartPredictor
  from shapash import SmartExplainer
  from shapash.explainer.smart_state import SmartState
  from shapash.explainer.multi_decorator import MultiDecorator
  from shapash.backend import ShapBackend
  import os
  from os import path
  from pathlib import Path
  import pandas
  import numpy
  import catboost
  from catboost import Pool
  import category_encoders
  from unittest.mock import patch
  import types
  from sklearn.compose import ColumnTransformer
  import sklearn.preprocessing
  import shap
label_desc: Use image node_id 30 for calling the TestSmartPredictor obj's underlying member method code with example usage: obj.test_modfiy_mask() without return types