class_docstr: Base class for feature drift checks.
class_docstr_tok: ["Base","class","for","feature","drift","checks","."]
docstr: Add condition - require drift score to be less than the threshold.
  
  The industry standard for PSI limit is above 0.2.
  There are no common industry standards for other drift methods, such as Cramer's V,
  Kolmogorov-Smirnov and Earth Mover's Distance.
  
  Parameters
  ----------
  max_allowed_categorical_score: float , default: 0.2
      The max threshold for the categorical variable drift score
  max_allowed_numeric_score: float ,  default: 0.2
      The max threshold for the numeric variable drift score
  allowed_num_features_exceeding_threshold: int , default: 0
      Determines the number of features with drift score above threshold needed to fail the condition.
  
  Returns
  -------
  ConditionResult
      False if more than allowed_num_features_exceeding_threshold drift scores are above threshold, True otherwise
docstr_tok: ["Add","condition","-","require","drift","score","to","be","less","than","the","threshold",".","The","industry","standard","for","PSI","limit","is","above","0.2",".","There","are","no","common","industry","standards","for","other","drift","methods",",","such","as","Cramer","'s","V",",","Kolmogorov-Smirnov","and","Earth","Mover","'s","Distance",".","Parameters","--","--","--","--","--","max_allowed_categorical_score",":","float",",","default",":","0.2","The","max","threshold","for","the","categorical","variable","drift","score","max_allowed_numeric_score",":","float",",","default",":","0.2","The","max","threshold","for","the","numeric","variable","drift","score","allowed_num_features_exceeding_threshold",":","int",",","default",":","0","Determines","the","number","of","features","with","drift","score","above","threshold","needed","to","fail","the","condition",".","Returns","--","--","--","-","ConditionResult","False","if","more","than","allowed_num_features_exceeding_threshold","drift","scores","are","above","threshold",",","True","otherwise"]
code: def add_condition_drift_score_less_than(
      self: Self,
      max_allowed_categorical_score: float = 0.2,
      max_allowed_numeric_score: float = 0.2,
      allowed_num_features_exceeding_threshold: int = 0,
  ) -> Self:
      """
      Add condition - require drift score to be less than the threshold.
  
      The industry standard for PSI limit is above 0.2.
      There are no common industry standards for other drift methods, such as Cramer's V,
      Kolmogorov-Smirnov and Earth Mover's Distance.
  
      Parameters
      ----------
      max_allowed_categorical_score: float , default: 0.2
          The max threshold for the categorical variable drift score
      max_allowed_numeric_score: float ,  default: 0.2
          The max threshold for the numeric variable drift score
      allowed_num_features_exceeding_threshold: int , default: 0
          Determines the number of features with drift score above threshold needed to fail the condition.
  
      Returns
      -------
      ConditionResult
          False if more than allowed_num_features_exceeding_threshold drift scores are above threshold, True otherwise
      """
      condition = drift_condition(
          max_allowed_categorical_score,
          max_allowed_numeric_score,
          "column",
          "columns",
          allowed_num_features_exceeding_threshold,
      )
  
      return self.add_condition(
          f"categorical drift score < {max_allowed_categorical_score} and "
          f"numerical drift score < {max_allowed_numeric_score}",
          condition,
      )
  
file_path: deepchecks/deepchecks/utils/abstracts/feature_drift.py
imports: import abc
  import textwrap
  import typing
  import pandas
  from typing_extensions import Literal, Self
  from deepchecks.core.errors import NotEnoughSamplesError
  from deepchecks.utils.distribution.drift import calc_drift_and_plot, drift_condition, get_drift_plot_sidenote
label_desc: Use image node_id 2 for calling the FeatureDriftAbstract obj's underlying member method code with example usage: obj.add_condition_drift_score_less_than(max_allowed_categorical_score, max_allowed_numeric_score, allowed_num_features_exceeding_threshold) and returns: self