pyreal.explanation_types.base.Explanation.update_explanation#

Explanation.update_explanation(new_explanation, inplace=False, persist_values=True)[source]#

Sets this object’s explanation to the new value.

Parameters:
  • new_explanation (object) – New explanation

  • inplace (Boolean) – If True, change the explanation on this object. Otherwise, create a new object identical to this one but with a new explanation

  • persist_values (Boolean) – If False, remove values from the updated explanation, ie. if the new explanation will not be compatible with values