module documentation

Undocumented

Class SegmentationFilesDirectoryHandler Undocumented
Function calc_median_score_list Undocumented
Function collect_cases Undocumented
Function copy_file Undocumented
Function evaluate_threshold_sweep Sweep through steps possible thresholds, between 0 and the max value in the distribution (or max_score, if given), and evaluate the hit and false alarm rate at each point. Yields a generator of hit-rate (recall/TPR), false positive rate, accuracy, precision, sensitivity, and f1 score...
Function get_case_and_slide Undocumented
Function load_filenames_and_generate_conditions Undocumented
Function load_jsons_from_directory Undocumented
Function make_path Undocumented
Function plot_roc Plot an ROC curve for the given matched and non-matched scores :param matched: A numpy array of matched scores :param non_matched: A numpy array of non-matched scores :param label: The label for the plotted line :param title: The title for graph :param axes: The axes to use for the plot; if None, new axes will be made :param steps: The number of steps to use for the plot (# bins) :param verbose: When true, output information about threshold values :param max_value: Use this to override the max score to consider (useful for zooming the bins on the low FA area) :return: The axes used for the plot...
Function region_count_score_list Undocumented
Constant AD Undocumented
Constant CONTROL Undocumented
Constant MSA Undocumented
Constant PD Undocumented
def calc_median_score_list(cases, path, rgb_threshold=20):

Undocumented

def collect_cases(config):

Undocumented

def copy_file(source, dest):

Undocumented

def evaluate_threshold_sweep(steps, matched, non_matched, verbose=False, max_value=None):

Sweep through steps possible thresholds, between 0 and the max value in the distribution (or max_score, if given), and evaluate the hit and false alarm rate at each point. Yields a generator of hit-rate (recall/TPR), false positive rate, accuracy, precision, sensitivity, and f1 score

Parameters
steps:intThe number of thresholds to test
matched:np.ndarrayThe distribution of match scores
non_matched:np.ndarrayThe distribution of non-match s ores
verbose:boolSet to True to make this method print out the score information for each threshold
max_value:floatSet to any float to override the maximum score value derived from the match/non-match distributions
Returns
Iterable[Tuple[float, float, float, float, float, float]]Undocumented
def get_case_and_slide(fname):

Undocumented

def load_filenames_and_generate_conditions(list_filename):

Undocumented

def load_jsons_from_directory(directory):

Undocumented

def make_path(path):

Undocumented

def plot_roc(matched, non_matched, label='ROC', title='ROC Curve', axes=None, steps=1000, verbose=False, max_value=None):

Plot an ROC curve for the given matched and non-matched scores :param matched: A numpy array of matched scores :param non_matched: A numpy array of non-matched scores :param label: The label for the plotted line :param title: The title for graph :param axes: The axes to use for the plot; if None, new axes will be made :param steps: The number of steps to use for the plot (# bins) :param verbose: When true, output information about threshold values :param max_value: Use this to override the max score to consider (useful for zooming the bins on the low FA area) :return: The axes used for the plot

Parameters
matched:np.ndarrayUndocumented
non_matched:np.ndarrayUndocumented
labelUndocumented
titleUndocumented
axesUndocumented
stepsUndocumented
verboseUndocumented
max_valueUndocumented
def region_count_score_list(cases, results):

Undocumented

AD: str =

Undocumented

Value
'AD'
CONTROL: str =

Undocumented

Value
'C'
MSA: str =

Undocumented

Value
'MSA'
PD: str =

Undocumented

Value
'PD'