mutant ====== .. py:module:: mutant Attributes ---------- .. autoapisummary:: mutant.__combinations Classes ------- .. autoapisummary:: mutant.Mutant Functions --------- .. autoapisummary:: mutant._apply_to_data mutant.get_combinations Module Contents --------------- .. py:data:: __combinations :value: [[0], [1], [2], [3], [0, 1], [0, 2], [0, 3], [1, 2], [1, 3], [2, 3], [0, 1, 2], [0, 1, 3], [0,... .. py:function:: _apply_to_data(mask, data) .. py:function:: get_combinations() .. py:class:: Mutant(data, static, active, masking_func) .. py:attribute:: shape .. py:attribute:: mode .. py:attribute:: channels :type: int .. py:attribute:: order .. py:attribute:: mask .. py:attribute:: static .. py:attribute:: active .. py:attribute:: prediction :type: Optional[rex_xai.responsibility.prediction.Prediction] :value: None .. py:attribute:: passing :value: False .. py:attribute:: masking_func .. py:attribute:: depth :value: 0 .. py:method:: __repr__() .. py:method:: get_name() .. py:method:: update_status(target) .. py:method:: get_length() .. py:method:: get_active_boxes() .. py:method:: area() Return the total area *not* concealed by the mutant. .. py:method:: set_static_mask_regions(names, search_tree) .. py:method:: set_active_mask_regions(boxes) .. py:method:: set_mask_region_to_true(box) .. py:method:: apply_to_data(data) .. py:method:: save_mutant(data, name=None, segs=None)