rex_xai._utils ============== .. py:module:: rex_xai._utils Attributes ---------- .. autoapisummary:: rex_xai._utils.Strategy rex_xai._utils.Queue rex_xai._utils.SpatialSearch Exceptions ---------- .. autoapisummary:: rex_xai._utils.ReXError rex_xai._utils.ReXTomlError rex_xai._utils.ReXPathError rex_xai._utils.ReXScriptError rex_xai._utils.ReXDataError rex_xai._utils.ReXMapError Functions --------- .. autoapisummary:: rex_xai._utils.powerset rex_xai._utils.clause_area rex_xai._utils.xlogx rex_xai._utils._xlogx rex_xai._utils.add_boundaries rex_xai._utils.get_device rex_xai._utils.get_map_locations rex_xai._utils.set_boolean_mask_value rex_xai._utils.ff rex_xai._utils.version Module Contents --------------- .. py:data:: Strategy .. py:data:: Queue .. py:data:: SpatialSearch .. py:function:: powerset(r, reverse=True) .. py:function:: clause_area(clause, areas) .. py:exception:: ReXError Bases: :py:obj:`Exception` Common base class for all non-exit exceptions. .. py:exception:: ReXTomlError(message) Bases: :py:obj:`ReXError` Common base class for all non-exit exceptions. .. py:attribute:: message .. py:method:: __str__() Return str(self). .. py:exception:: ReXPathError(message) Bases: :py:obj:`ReXError` Common base class for all non-exit exceptions. .. py:attribute:: message .. py:method:: __str__() Return str(self). .. py:exception:: ReXScriptError(message) Bases: :py:obj:`ReXError` Common base class for all non-exit exceptions. .. py:attribute:: message .. py:method:: __str__() Return str(self). .. py:exception:: ReXDataError(message) Bases: :py:obj:`ReXError` Common base class for all non-exit exceptions. .. py:attribute:: message .. py:method:: __str__() Return str(self). .. py:exception:: ReXMapError(message) Bases: :py:obj:`ReXError` Common base class for all non-exit exceptions. .. py:attribute:: message .. py:method:: __str__() Return str(self). .. py:function:: xlogx(ps) .. py:function:: _xlogx(p) .. py:function:: add_boundaries(img, segs, colour=None) .. py:function:: get_device(gpu) .. py:function:: get_map_locations(map, reverse=True) .. py:function:: set_boolean_mask_value(tensor, mode, order, coords, val = True) .. py:function:: ff(obj, fmt) Like format(obj, fmt), but returns the string 'None' if obj is None. See the help for format() to see acceptable values for fmt. .. py:function:: version()