class documentation

class ModalityCombinor:

View In Hierarchy

Utility class that defines and helps to select the various methods for combining diagnoses from different modalities.

Static Method logical_AND Logical AND combination method.
Static Method logical_OR Use the logical OR to determine combined involvement.
Static Method max_llh Combine diagnoses by computing true involvement is the most likely, given the provided set of observations.
Static Method rank Combine diagnoses by trusting the one with the highest spcificity/sensitivity.
Method __init__ Initialize the helper class with the name of the method to combine modalities.
Method combine Choose the method to combine the diagnoses and perform the combination using the stored values for sensitivity and specificity.
Instance Variable method Undocumented
Instance Variable sensitivities Undocumented
Instance Variable specificities Undocumented
@staticmethod
@lru_cache
def logical_AND(values, specificities, sensitivities):

Logical AND combination method.

Parameters
values:Tuple[Optional[bool]]Undocumented
specificities:Tuple[float]Undocumented
sensitivities:Tuple[float]Undocumented
Returns
boolUndocumented
@staticmethod
@lru_cache
def logical_OR(values, specificities, sensitivities):

Use the logical OR to determine combined involvement.

Parameters
values:Tuple[Optional[bool]]Undocumented
specificities:Tuple[float]Undocumented
sensitivities:Tuple[float]Undocumented
Returns
boolUndocumented
@staticmethod
@lru_cache
def max_llh(values, specificities, sensitivities):

Combine diagnoses by computing true involvement is the most likely, given the provided set of observations.

Parameters
values:Tuple[Optional[bool]]Undocumented
specificities:Tuple[float]Undocumented
sensitivities:Tuple[float]Undocumented
Returns
boolUndocumented
@staticmethod
@lru_cache
def rank(values, specificities, sensitivities):

Combine diagnoses by trusting the one with the highest spcificity/sensitivity.

Parameters
values:Tuple[Optional[bool]]Undocumented
specificities:Tuple[float]Undocumented
sensitivities:Tuple[float]Undocumented
Returns
boolUndocumented
def __init__(self, method):

Initialize the helper class with the name of the method to combine modalities.

Parameters
method:strUndocumented
def combine(self, values):

Choose the method to combine the diagnoses and perform the combination using the stored values for sensitivity and specificity.

Parameters
values:Tuple[Optional[bool]]Undocumented
Returns
Optional[bool]Undocumented
method =

Undocumented

sensitivities =

Undocumented

specificities =

Undocumented