class_docstr: Defines a Bin specified by a half-open interval [left_end, right_end) where the sub-score is calculated using
  a linear function of the feature value (requires the feature to evaluate to a numerical value).
docstr: Evaluates the value of the feature for the specified variable assignment. Raises ValueError if the feature
  evaluates to a non-numerical value.
  
  @param assignment: dict mapping variable name to value
  @return: float, value of the feature
docstr_tok: ["Evaluates","the","value","of","the","feature","for","the","specified","variable","assignment",".","Raises","ValueError","if","the","feature","evaluates","to","a","non-numerical","value",".","@","param","assignment",":","dict","mapping","variable","name","to","value","@","return",":","float",",","value","of","the","feature"]
code: def _get_feature_value(self, assignment: Dict[str, Any]) -> Real:
      """
      Evaluates the value of the feature for the specified variable assignment. Raises ValueError if the feature
      evaluates to a non-numerical value.
  
      @param assignment: dict mapping variable name to value
      @return: float, value of the feature
      """
      feature_value = self.feature.evaluate(assignment)
      if isinstance(feature_value, Real):
          return feature_value
      raise ValueError(
          'Need the feature to evaluate to a numerical value but the type of returned value is "{}"'.format(
              type(feature_value)
          )
      )
  
imports: import abc
  from numbers import Real
  from typing import Dict, Set, Any, Optional
  from aix360.algorithms.rule_induction.trxf.core import Feature
label_desc: Use image node_id 5 for calling the LinearIntervalBin obj's underlying member method code with example usage: obj._get_feature_value(assignment) and returns: feature_value